xiaoe_mp_npm 0.5.44-test7 → 0.5.44-test8
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.
|
@@ -410,9 +410,23 @@ Component({
|
|
|
410
410
|
this.setData({
|
|
411
411
|
first: false
|
|
412
412
|
})
|
|
413
|
-
this.countBlur()
|
|
413
|
+
this.countBlur();
|
|
414
|
+
this.couponCheck();
|
|
414
415
|
})
|
|
415
416
|
},
|
|
417
|
+
couponCheck(){
|
|
418
|
+
this.triggerEvent("dataChange", {
|
|
419
|
+
name: "goodsInfo",
|
|
420
|
+
prePayParams: {
|
|
421
|
+
cu_id: this.data.couponList,
|
|
422
|
+
promo_code: this.data.usedPromoCode
|
|
423
|
+
},
|
|
424
|
+
payParams: {
|
|
425
|
+
cu_id: this.data.couponList,
|
|
426
|
+
promo_code: this.data.usedPromoCode
|
|
427
|
+
},
|
|
428
|
+
});
|
|
429
|
+
},
|
|
416
430
|
// init 是否初次触发
|
|
417
431
|
countBlur(init) {
|
|
418
432
|
console.log('init',init)
|
package/package.json
CHANGED
|
@@ -410,9 +410,23 @@ Component({
|
|
|
410
410
|
this.setData({
|
|
411
411
|
first: false
|
|
412
412
|
})
|
|
413
|
-
this.countBlur()
|
|
413
|
+
this.countBlur();
|
|
414
|
+
this.couponCheck();
|
|
414
415
|
})
|
|
415
416
|
},
|
|
417
|
+
couponCheck(){
|
|
418
|
+
this.triggerEvent("dataChange", {
|
|
419
|
+
name: "goodsInfo",
|
|
420
|
+
prePayParams: {
|
|
421
|
+
cu_id: this.data.couponList,
|
|
422
|
+
promo_code: this.data.usedPromoCode
|
|
423
|
+
},
|
|
424
|
+
payParams: {
|
|
425
|
+
cu_id: this.data.couponList,
|
|
426
|
+
promo_code: this.data.usedPromoCode
|
|
427
|
+
},
|
|
428
|
+
});
|
|
429
|
+
},
|
|
416
430
|
// init 是否初次触发
|
|
417
431
|
countBlur(init) {
|
|
418
432
|
console.log('init',init)
|