jufubao-base 1.0.242-beta1 → 1.0.242-beta2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.242-beta1",
3
+ "version": "1.0.242-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -174,7 +174,8 @@
174
174
  userInfo: {},
175
175
  is_vip: 'N',
176
176
  isPreview: false,
177
- jwxSDK: null
177
+ jwxSDK: null,
178
+ refresh: true, //onshow是否刷新数据
178
179
  }
179
180
  },
180
181
  watch: {
@@ -458,6 +459,7 @@
458
459
  if (parseFloat(need_pay_price) > 0) {//补差
459
460
  this.handleThirdPay(pay_order_id, order_id);
460
461
  } else {//订单成功
462
+ this.refresh = false
461
463
  this.$xdUniHelper.redirectTo({
462
464
  url: this.successPath + `?order_id=${order_id}`
463
465
  })
@@ -693,6 +695,7 @@
693
695
  },
694
696
  })
695
697
  .then((res) => {
698
+ this.refresh = false;
696
699
  this.$xdUniHelper.redirectTo({
697
700
  url: this.successPath + `?order_id=${main_order_id}`
698
701
  });
@@ -761,7 +764,9 @@
761
764
  },
762
765
  onJfbShow(options) {
763
766
  console.log('event.onJfbShow', options)
764
- this.onJfbLoad(options);
767
+ if (this.refresh) {
768
+ this.onJfbLoad(options);
769
+ }
765
770
  },
766
771
  onJfbHide(options) {
767
772
  console.log('event.onJfbHide', options)
@@ -1045,6 +1045,7 @@ export default {
1045
1045
  custom_content_container_id: this.cid,
1046
1046
  is_show_jhd_code: Number(this.is_show),
1047
1047
  is_show_product: this.is_show_product === "Y" ? 1 : 0,
1048
+ version: 'v2'
1048
1049
  },
1049
1050
  })
1050
1051
  .then((res) => {
@@ -575,6 +575,7 @@ export default {
575
575
  is_show_product: this.is_show_product === "Y" ? 1 : 0,
576
576
  custom_content_page_id: this.pageAttr.page_id,
577
577
  custom_content_container_id: this.cid,
578
+ version: 'v2'
578
579
  },
579
580
  })
580
581
  .then((res) => {