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
|
@@ -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.
|
|
767
|
+
if (this.refresh) {
|
|
768
|
+
this.onJfbLoad(options);
|
|
769
|
+
}
|
|
765
770
|
},
|
|
766
771
|
onJfbHide(options) {
|
|
767
772
|
console.log('event.onJfbHide', options)
|