Ver código fonte

商品兑换购买修改

hwb0 3 anos atrás
pai
commit
1c31e5196c

+ 4 - 2
packageGoods/components/exchange-popup/exchange-popup.vue

@@ -68,7 +68,7 @@
 				type: Array,
 				default: () => []
 			},
-			skuList: {
+			skuListPopup: {
 				type: Array,
 				default: () => []
 			},
@@ -84,12 +84,14 @@
 		data() {
 			return {
 				orderNum: 1,
-				payInfo: {}
+				payInfo: {},
+				skuList: []
 			};
 		},
 		
 		created() {
 			this.payInfo = this.popupInfo
+			this.skuList = this.skuListPopup
 		},
 		
 		methods: {

+ 4 - 4
packageGoods/components/purchase-popup/purchase-popup.vue

@@ -62,7 +62,7 @@
 				type: Array,
 				default: () => []
 			},
-			skuList: {
+			skuListPopup: {
 				type: Array,
 				default: () => []
 			},
@@ -78,13 +78,14 @@
 		data() {
 			return {
 				orderNum: 1,
-				payInfo: {}
+				payInfo: {},
+				skuList: []
 			};
 		},
 		
 		created() {
 			this.payInfo = this.popupInfo
-			console.log(this.popupInfo);
+			this.skuList = this.skuListPopup
 		},
 		
 		methods: {
@@ -97,7 +98,6 @@
 			},
 			
 			getSku(e, item, indexs) {
-				console.log(item);
 				this.$set(item, 'txt', `${item.name}:${e}`)
 				this.$set(item, 'actionIndex', indexs)
 				this.orderNum = 1

+ 2 - 2
packageGoods/goods/detail.vue

@@ -77,7 +77,7 @@
 			:detailInfo="info" 
 			:popup-info="payInfo" 
 			:sku-list-init="skuListInit" 
-			:sku-list="skuList" 
+			:sku-list-popup="skuList" 
 			@close="close"
 			@success="exchangeSuccess"
 			v-if="exchangePopupShow" 
@@ -89,7 +89,7 @@
 			:detailInfo="info" 
 			:popup-info="payInfo" 
 			:sku-list-init="skuListInit" 
-			:sku-list="skuList" 
+			:sku-list-popup="skuList" 
 			@close="close"
 			@success="purchaseSuccess"
 			v-if="purchasePopupShow"