Browse Source

单品促销-优惠价活动,前端标签展示逻辑优化

yuwenjun1997 2 years ago
parent
commit
0aae4d97e3
2 changed files with 4 additions and 2 deletions
  1. 1 1
      pages/goods/components/cm-unit-popup.vue
  2. 3 1
      pages/goods/mixins/proMixins.js

+ 1 - 1
pages/goods/components/cm-unit-popup.vue

@@ -270,7 +270,7 @@ export default {
 			this.isBtnDisable = sku.stock === 0
 			this.ladderPriceList = sku.ladderPriceList
 			this.isShowLadder = sku.ladderPriceList ? true : false
-			this.$emit('skuClick', sku)
+			this.$emit('skuClick', sku) 
 		},
 		showLaddePopup() {
 			// 点击显示阶梯价

+ 3 - 1
pages/goods/mixins/proMixins.js

@@ -1,4 +1,4 @@
-import Vue from 'vue'
+import Vue, { callWithAsyncErrorHandling } from 'vue'
 import { productTagStyle } from '@/plugins/mp-html/config.js'
 const proMixins = {
     data() {
@@ -42,9 +42,11 @@ const proMixins = {
 		    }
         },
         handleSkuClick(sku) {  //sku修改选择
+            console.log(sku)
             this.addParams.skuId = sku.skuId
             this.skuProduct.originalPrice = sku.originalPrice
             this.skuProduct.price = sku.price
+            this.skuProduct.svipPriceTag = sku.svipPriceTag
         },
         handleBuyConfirm(data) {
             // 监听确定选择规格