|
@ -312,6 +312,8 @@ export default { |
|
|
isShoppingCart: false, |
|
|
isShoppingCart: false, |
|
|
isInDeliveryTime: true, |
|
|
isInDeliveryTime: true, |
|
|
|
|
|
|
|
|
|
|
|
firstInit: null, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
@ -321,6 +323,10 @@ export default { |
|
|
} |
|
|
} |
|
|
this.$store.commit("choseCoupon", ""); |
|
|
this.$store.commit("choseCoupon", ""); |
|
|
this.handleOrderGoods() |
|
|
this.handleOrderGoods() |
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
|
this.firstInit = true |
|
|
|
|
|
},2000) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
onShow() { |
|
|
onShow() { |
|
|
if (!this.isShoppingCart) { |
|
|
if (!this.isShoppingCart) { |
|
@ -328,6 +334,9 @@ export default { |
|
|
} |
|
|
} |
|
|
// 更新自提点 |
|
|
// 更新自提点 |
|
|
uni.$on("updateDataByConnect",this.getDataByConnect) |
|
|
uni.$on("updateDataByConnect",this.getDataByConnect) |
|
|
|
|
|
if (this.firstInit) { |
|
|
|
|
|
this.getDelivery() |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
onUnload(){ |
|
|
onUnload(){ |
|
|
uni.$off("updateDataByConnect",this.getDataByConnect) |
|
|
uni.$off("updateDataByConnect",this.getDataByConnect) |
|
|