Browse Source

商品SKU

zhengjinyi 2 years ago
parent
commit
bca5b59676
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/main/resources/static/js/product/mixins/supportMixins.js

+ 6 - 2
src/main/resources/static/js/product/mixins/supportMixins.js

@@ -7,7 +7,8 @@ var supportMixins = function () {
                 skuIndex:0,
                 skuSupportingIndex:0,
                 isbtnDisable:false,
-                handldSku:{}
+                handldSku:{},
+                handlePros:{}
             }
         },
         mounted: function() {
@@ -29,8 +30,11 @@ var supportMixins = function () {
                 pros.isSkuPopup = false;
             },
             handleSupportingChoisSku(pros,sku,index){// 配套商品选择规格
-                this.handldSku = sku
+                this.handlePros = pros;
+                this.handldSku = sku;
                 this.skuSupportingIndex = index;
+                this.handlePros.price = sku.price
+                this.handlePros.originalPrice = sku.originalPrice
                 this.isbtnDisable = sku.stock === 0;
             },
             handleSupportingSubmit (type) {