Fix:5125 【商城小程序】订单列表状态未同步刷新
This commit is contained in:
@@ -633,6 +633,7 @@ export default {
|
||||
computed: mapGetters(["userInfo"]),
|
||||
onShow() {
|
||||
const _this = this
|
||||
const needRefreshOrderList = uni.getStorageSync('needRefreshMyOrderList')
|
||||
const chooseAddress = uni.getStorageSync('updateOrderAddress') || {}
|
||||
const addressId = chooseAddress.id || ''
|
||||
// 监听到选择收货地址
|
||||
@@ -668,6 +669,9 @@ export default {
|
||||
_this._orderId = ''
|
||||
}
|
||||
})
|
||||
} else if (needRefreshOrderList) {
|
||||
uni.removeStorageSync('needRefreshMyOrderList')
|
||||
this.changeType()
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
@@ -691,6 +691,9 @@ export default {
|
||||
this.getDetail();
|
||||
}
|
||||
},
|
||||
onUnload() {
|
||||
uni.setStorageSync('needRefreshMyOrderList', 1)
|
||||
},
|
||||
// inject: ["app"],
|
||||
mounted: function () {
|
||||
this.id = this.$yroute.query.id;
|
||||
|
||||
@@ -252,6 +252,7 @@ export default {
|
||||
this.getSojoumOrderDetail();
|
||||
},
|
||||
onUnload() {
|
||||
uni.setStorageSync('needRefreshMyOrderList', 1)
|
||||
this.stopExperienceCouponPolling();
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user