shish před 3 roky
rodič
revize
c08a13801d

+ 4 - 4
mallApp/src/mixins/cgProduct.js

@@ -42,10 +42,10 @@ export default {
 		if (this.autoLoad) {
 		if (this.autoLoad) {
 			this.initData();
 			this.initData();
 			if(this.isGhsProduct){
 			if(this.isGhsProduct){
-				//this.initGhsData(id,shopId)
+
 			}else{
 			}else{
 				if(!this.$util.isEmpty(this.tabIndex)){
 				if(!this.$util.isEmpty(this.tabIndex)){
-					this.initData();//组合
+					this.initData();
 				}
 				}
 			}
 			}
 		}
 		}
@@ -187,7 +187,7 @@ export default {
 	},
 	},
 	onShow(){
 	onShow(){
 		if(this.pageType == 'cg' && !this.$util.isEmpty(this.option.id)){
 		if(this.pageType == 'cg' && !this.$util.isEmpty(this.option.id)){
-			//在initGhsData()获取记忆的花材,保证价格有变时取到最新价格
+
 		}else{
 		}else{
 			if(uni.getStorageSync('selectList'+this.pageType)){
 			if(uni.getStorageSync('selectList'+this.pageType)){
 				this.setSelectInfoByType({ type: this.pageType, info: uni.getStorageSync('selectList'+this.pageType) })
 				this.setSelectInfoByType({ type: this.pageType, info: uni.getStorageSync('selectList'+this.pageType) })
@@ -362,7 +362,7 @@ export default {
 			price = Math.round(sum * 100) / 100;
 			price = Math.round(sum * 100) / 100;
 			return price;
 			return price;
 		},
 		},
-		//成品-请求商品数据
+		//请求成品数据
 		async initGoodsData(extendInfo) {
 		async initGoodsData(extendInfo) {
 			//extendInfo调用时的扩展参数  如  shopId
 			//extendInfo调用时的扩展参数  如  shopId
 			try {
 			try {

+ 1 - 5
mallApp/src/pages/item/item.vue

@@ -184,7 +184,7 @@ export default {
 			isNewCustom:false,
 			isNewCustom:false,
 			//0没有登录 1有登录
 			//0没有登录 1有登录
       		loginStatus :0,
       		loginStatus :0,
-			cartItemShow:false,
+			cartItemShow:false
 		};
 		};
 	},
 	},
 	onPullDownRefresh() {
 	onPullDownRefresh() {
@@ -271,10 +271,6 @@ export default {
 		}
 		}
 		this.xjData = {}
 		this.xjData = {}
 	},
 	},
-	onLoad() {
-	},
-	onUnload() {
-	},
 	methods: {
 	methods: {
 		showCartItem(){
 		showCartItem(){
 			if(this.cartItemShow == true){
 			if(this.cartItemShow == true){