xiaoe_mp_npm 0.5.44-test4 → 0.5.44-test6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -25,6 +25,7 @@ Component({
|
|
|
25
25
|
goodsPrice: data?.goods_price
|
|
26
26
|
})
|
|
27
27
|
if(!this.data.setCoupon) {
|
|
28
|
+
console.log('this.data.chooseCouponList',this.data.chooseCouponList)
|
|
28
29
|
let chooseCouponList = this.changeCouponId(this.data.chooseCouponList)
|
|
29
30
|
this.setPricingInfoFirst(chooseCouponList, this.data.usedPromoCode)
|
|
30
31
|
this.setData({
|
|
@@ -33,6 +34,13 @@ Component({
|
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
},
|
|
37
|
+
'usedPromoCode, couponList': function(new1,new2) {
|
|
38
|
+
console.log('new1,new2',new1,new2)
|
|
39
|
+
if(new1 || new2){
|
|
40
|
+
let chooseCouponList = this.changeCouponId(this.data.couponList)
|
|
41
|
+
this.setPricingInfo(chooseCouponList, this.data.usedPromoCode)
|
|
42
|
+
}
|
|
43
|
+
},
|
|
36
44
|
},
|
|
37
45
|
/**
|
|
38
46
|
* 组件的属性列表
|
|
@@ -103,7 +111,7 @@ Component({
|
|
|
103
111
|
})
|
|
104
112
|
},
|
|
105
113
|
setPricingInfoFirst(cu_id, promo_code) {
|
|
106
|
-
console.log('
|
|
114
|
+
console.log('cu_id_first',cu_id)
|
|
107
115
|
this.triggerEvent('dataChange', {
|
|
108
116
|
name: "couponSelect",
|
|
109
117
|
payParams: {
|
package/package.json
CHANGED
package/src/coupon/index.js
CHANGED
|
@@ -25,6 +25,7 @@ Component({
|
|
|
25
25
|
goodsPrice: data?.goods_price
|
|
26
26
|
})
|
|
27
27
|
if(!this.data.setCoupon) {
|
|
28
|
+
console.log('this.data.chooseCouponList',this.data.chooseCouponList)
|
|
28
29
|
let chooseCouponList = this.changeCouponId(this.data.chooseCouponList)
|
|
29
30
|
this.setPricingInfoFirst(chooseCouponList, this.data.usedPromoCode)
|
|
30
31
|
this.setData({
|
|
@@ -33,6 +34,13 @@ Component({
|
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
},
|
|
37
|
+
'usedPromoCode, couponList': function(new1,new2) {
|
|
38
|
+
console.log('new1,new2',new1,new2)
|
|
39
|
+
if(new1 || new2){
|
|
40
|
+
let chooseCouponList = this.changeCouponId(this.data.couponList)
|
|
41
|
+
this.setPricingInfo(chooseCouponList, this.data.usedPromoCode)
|
|
42
|
+
}
|
|
43
|
+
},
|
|
36
44
|
},
|
|
37
45
|
/**
|
|
38
46
|
* 组件的属性列表
|
|
@@ -103,7 +111,7 @@ Component({
|
|
|
103
111
|
})
|
|
104
112
|
},
|
|
105
113
|
setPricingInfoFirst(cu_id, promo_code) {
|
|
106
|
-
console.log('
|
|
114
|
+
console.log('cu_id_first',cu_id)
|
|
107
115
|
this.triggerEvent('dataChange', {
|
|
108
116
|
name: "couponSelect",
|
|
109
117
|
payParams: {
|