xiaoe_mp_npm 0.5.44-test3 → 0.5.44-test5
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.
|
@@ -24,13 +24,17 @@ Component({
|
|
|
24
24
|
originalPrice: data?.original_price,
|
|
25
25
|
goodsPrice: data?.goods_price
|
|
26
26
|
})
|
|
27
|
-
if(!this.data.setCoupon) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
27
|
+
// if(!this.data.setCoupon) {
|
|
28
|
+
// console.log('this.data.chooseCouponList',this.data.chooseCouponList)
|
|
29
|
+
// let chooseCouponList = this.changeCouponId(this.data.chooseCouponList)
|
|
30
|
+
// this.setPricingInfoFirst(chooseCouponList, this.data.usedPromoCode)
|
|
31
|
+
// this.setData({
|
|
32
|
+
// setCoupon: true
|
|
33
|
+
// })
|
|
34
|
+
// }
|
|
35
|
+
console.log('this.data.chooseCouponList',this.data.chooseCouponList)
|
|
36
|
+
let chooseCouponList = this.changeCouponId(this.data.chooseCouponList)
|
|
37
|
+
this.setPricingInfo(chooseCouponList, this.data.usedPromoCode);
|
|
34
38
|
}
|
|
35
39
|
},
|
|
36
40
|
},
|
|
@@ -103,7 +107,7 @@ Component({
|
|
|
103
107
|
})
|
|
104
108
|
},
|
|
105
109
|
setPricingInfoFirst(cu_id, promo_code) {
|
|
106
|
-
console.log('
|
|
110
|
+
console.log('cu_id_first',cu_id)
|
|
107
111
|
this.triggerEvent('dataChange', {
|
|
108
112
|
name: "couponSelect",
|
|
109
113
|
payParams: {
|
|
@@ -113,6 +117,7 @@ Component({
|
|
|
113
117
|
})
|
|
114
118
|
},
|
|
115
119
|
setPricingInfo(cu_id, promo_code) {
|
|
120
|
+
console.log('cu_id',cu_id)
|
|
116
121
|
this.triggerEvent('dataChange', {
|
|
117
122
|
name: "couponSelect",
|
|
118
123
|
payParams: {
|
package/package.json
CHANGED
package/src/coupon/index.js
CHANGED
|
@@ -24,13 +24,17 @@ Component({
|
|
|
24
24
|
originalPrice: data?.original_price,
|
|
25
25
|
goodsPrice: data?.goods_price
|
|
26
26
|
})
|
|
27
|
-
if(!this.data.setCoupon) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
27
|
+
// if(!this.data.setCoupon) {
|
|
28
|
+
// console.log('this.data.chooseCouponList',this.data.chooseCouponList)
|
|
29
|
+
// let chooseCouponList = this.changeCouponId(this.data.chooseCouponList)
|
|
30
|
+
// this.setPricingInfoFirst(chooseCouponList, this.data.usedPromoCode)
|
|
31
|
+
// this.setData({
|
|
32
|
+
// setCoupon: true
|
|
33
|
+
// })
|
|
34
|
+
// }
|
|
35
|
+
console.log('this.data.chooseCouponList',this.data.chooseCouponList)
|
|
36
|
+
let chooseCouponList = this.changeCouponId(this.data.chooseCouponList)
|
|
37
|
+
this.setPricingInfo(chooseCouponList, this.data.usedPromoCode);
|
|
34
38
|
}
|
|
35
39
|
},
|
|
36
40
|
},
|
|
@@ -103,7 +107,7 @@ Component({
|
|
|
103
107
|
})
|
|
104
108
|
},
|
|
105
109
|
setPricingInfoFirst(cu_id, promo_code) {
|
|
106
|
-
console.log('
|
|
110
|
+
console.log('cu_id_first',cu_id)
|
|
107
111
|
this.triggerEvent('dataChange', {
|
|
108
112
|
name: "couponSelect",
|
|
109
113
|
payParams: {
|
|
@@ -113,6 +117,7 @@ Component({
|
|
|
113
117
|
})
|
|
114
118
|
},
|
|
115
119
|
setPricingInfo(cu_id, promo_code) {
|
|
120
|
+
console.log('cu_id',cu_id)
|
|
116
121
|
this.triggerEvent('dataChange', {
|
|
117
122
|
name: "couponSelect",
|
|
118
123
|
payParams: {
|