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.
@@ -321,7 +321,7 @@ Component({
321
321
  this.setData({
322
322
  goodsCount: this.data.count
323
323
  })
324
- this.countBlur();
324
+ this.countBlur(true);
325
325
  },
326
326
  overlimit(limitType) {
327
327
  if (limitType.detail === 'plus') {
@@ -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('cu_id',cu_id)
114
+ console.log('cu_id_first',cu_id)
107
115
  this.triggerEvent('dataChange', {
108
116
  name: "couponSelect",
109
117
  payParams: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xiaoe_mp_npm",
3
- "version": "0.5.44-test4",
3
+ "version": "0.5.44-test6",
4
4
  "description": "",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {
@@ -321,7 +321,7 @@ Component({
321
321
  this.setData({
322
322
  goodsCount: this.data.count
323
323
  })
324
- this.countBlur();
324
+ this.countBlur(true);
325
325
  },
326
326
  overlimit(limitType) {
327
327
  if (limitType.detail === 'plus') {
@@ -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('cu_id',cu_id)
114
+ console.log('cu_id_first',cu_id)
107
115
  this.triggerEvent('dataChange', {
108
116
  name: "couponSelect",
109
117
  payParams: {