xiaoe_mp_npm 1.1.13-test01 → 1.1.14-test01

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.
@@ -65,7 +65,7 @@ Component({
65
65
  show: newVal,
66
66
  refreshing: newVal
67
67
  });
68
- newVal && this.data.explainingGoods.resource_id && this.getExplainingGoodsInfo();
68
+ newVal && this.data.explainingGoods?.resource_id && this.getExplainingGoodsInfo();
69
69
  newVal && !this.data.isLottery && this.getPreferentialPriceSetting(); // 抽奖弹窗不调优惠券接口
70
70
  newVal && this.onLoad();
71
71
  if (!newVal) {
@@ -521,7 +521,7 @@ Component({
521
521
  this.setData({
522
522
  refreshing: true
523
523
  });
524
- this.data.explainingGoods.resource_id && this.getExplainingGoodsInfo();
524
+ this.data.explainingGoods?.resource_id && this.getExplainingGoodsInfo();
525
525
  this.getPreferentialPriceSetting();
526
526
  this.onLoad();
527
527
  }
@@ -555,7 +555,7 @@ Component({
555
555
  this.setData({
556
556
  refreshing: true
557
557
  });
558
- this.data.explainingGoods.resource_id && this.getExplainingGoodsInfo();
558
+ this.data.explainingGoods?.resource_id && this.getExplainingGoodsInfo();
559
559
  this.getPreferentialPriceSetting();
560
560
  this.onLoad();
561
561
  }
@@ -646,7 +646,7 @@ Component({
646
646
  setTimeout(() => {
647
647
  let params = {
648
648
  alive_id: this.data.aliveInfo.alive_id,
649
- resource_id: this.data.explainingGoods.resource_id,
649
+ resource_id: this.data.explainingGoods?.resource_id,
650
650
  app_id: this.properties.aliveInfo.app_id,
651
651
  user_id: this.properties.aliveInfo.user_id,
652
652
  page_size: 200,
@@ -670,7 +670,7 @@ Component({
670
670
  console.log('2222222222');
671
671
  let { data, code } = res.data;
672
672
  if (code === 0 && data && data.length > 0) {
673
- if (data[0] && data[0].resource_id === this.data.explainingGoods.resource_id) {
673
+ if (data[0] && data[0].resource_id === this.data.explainingGoods?.resource_id) {
674
674
  this.formatItem(data[0])
675
675
  this.setData({
676
676
  formExplainingGoods: data[0],
@@ -1000,7 +1000,7 @@ Component({
1000
1000
  this.setData({
1001
1001
  refreshing: true
1002
1002
  });
1003
- this.data.explainingGoods.resource_id && this.getExplainingGoodsInfo();
1003
+ this.data.explainingGoods?.resource_id && this.getExplainingGoodsInfo();
1004
1004
  this.getPreferentialPriceSetting();
1005
1005
  this.onLoad();
1006
1006
  } else if (newVal === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xiaoe_mp_npm",
3
- "version": "1.1.13-test01",
3
+ "version": "1.1.14-test01",
4
4
  "description": "",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {
@@ -65,7 +65,7 @@ Component({
65
65
  show: newVal,
66
66
  refreshing: newVal
67
67
  });
68
- newVal && this.data.explainingGoods.resource_id && this.getExplainingGoodsInfo();
68
+ newVal && this.data.explainingGoods?.resource_id && this.getExplainingGoodsInfo();
69
69
  newVal && !this.data.isLottery && this.getPreferentialPriceSetting(); // 抽奖弹窗不调优惠券接口
70
70
  newVal && this.onLoad();
71
71
  if (!newVal) {
@@ -521,7 +521,7 @@ Component({
521
521
  this.setData({
522
522
  refreshing: true
523
523
  });
524
- this.data.explainingGoods.resource_id && this.getExplainingGoodsInfo();
524
+ this.data.explainingGoods?.resource_id && this.getExplainingGoodsInfo();
525
525
  this.getPreferentialPriceSetting();
526
526
  this.onLoad();
527
527
  }
@@ -555,7 +555,7 @@ Component({
555
555
  this.setData({
556
556
  refreshing: true
557
557
  });
558
- this.data.explainingGoods.resource_id && this.getExplainingGoodsInfo();
558
+ this.data.explainingGoods?.resource_id && this.getExplainingGoodsInfo();
559
559
  this.getPreferentialPriceSetting();
560
560
  this.onLoad();
561
561
  }
@@ -646,7 +646,7 @@ Component({
646
646
  setTimeout(() => {
647
647
  let params = {
648
648
  alive_id: this.data.aliveInfo.alive_id,
649
- resource_id: this.data.explainingGoods.resource_id,
649
+ resource_id: this.data.explainingGoods?.resource_id,
650
650
  app_id: this.properties.aliveInfo.app_id,
651
651
  user_id: this.properties.aliveInfo.user_id,
652
652
  page_size: 200,
@@ -670,7 +670,7 @@ Component({
670
670
  console.log('2222222222');
671
671
  let { data, code } = res.data;
672
672
  if (code === 0 && data && data.length > 0) {
673
- if (data[0] && data[0].resource_id === this.data.explainingGoods.resource_id) {
673
+ if (data[0] && data[0].resource_id === this.data.explainingGoods?.resource_id) {
674
674
  this.formatItem(data[0])
675
675
  this.setData({
676
676
  formExplainingGoods: data[0],
@@ -1000,7 +1000,7 @@ Component({
1000
1000
  this.setData({
1001
1001
  refreshing: true
1002
1002
  });
1003
- this.data.explainingGoods.resource_id && this.getExplainingGoodsInfo();
1003
+ this.data.explainingGoods?.resource_id && this.getExplainingGoodsInfo();
1004
1004
  this.getPreferentialPriceSetting();
1005
1005
  this.onLoad();
1006
1006
  } else if (newVal === 0) {