tianhui
4 years ago
|
@@ -139,14 +139,18 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
|
|
+ if(this.orderId){
|
|
|
|
+ this.timer1 = setInterval(() => {
|
|
|
|
+ // uni.showLoading({
|
|
|
|
+ // title: '订单查询中'
|
|
|
|
+ // });
|
|
|
|
+ this.show = true
|
|
|
|
+ this.getOrderDetails(this.orderId)
|
|
|
|
+ }, 2000)
|
|
|
|
+ }else{
|
|
|
|
+ this.show = false
|
|
|
|
+ }
|
|
|
|
|
|
- this.timer1 = setInterval(() => {
|
|
|
|
- // uni.showLoading({
|
|
|
|
- // title: '订单查询中'
|
|
|
|
- // });
|
|
|
|
- this.show = true
|
|
|
|
- this.getOrderDetails(this.orderId)
|
|
|
|
- }, 2000)
|
|
|
|
},
|
|
},
|
|
onHide() {
|
|
onHide() {
|
|
if (this.timer) {
|
|
if (this.timer) {
|