|
|
@ -861,6 +861,7 @@ |
|
|
this.getUserLocation(); |
|
|
this.getUserLocation(); |
|
|
// 建立WebSocket连接或定时请求获取配送员位置 |
|
|
// 建立WebSocket连接或定时请求获取配送员位置 |
|
|
this.getDeliveryLocation(); |
|
|
this.getDeliveryLocation(); |
|
|
|
|
|
this.getDelivery(); |
|
|
}, |
|
|
}, |
|
|
onShow() { |
|
|
onShow() { |
|
|
let that = this |
|
|
let that = this |
|
|
@ -896,6 +897,9 @@ |
|
|
this.checkTab(index); |
|
|
this.checkTab(index); |
|
|
// 400ms后解除锁(动画200ms,预留200ms缓冲) |
|
|
// 400ms后解除锁(动画200ms,预留200ms缓冲) |
|
|
setTimeout(() => { this.isSwitching = false; }, 400); |
|
|
setTimeout(() => { this.isSwitching = false; }, 400); |
|
|
|
|
|
}, |
|
|
|
|
|
getDelivery(){ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
checkTab(index) { |
|
|
checkTab(index) { |
|
|
for (let i = 0; i < this.menuList.length; i++) { |
|
|
for (let i = 0; i < this.menuList.length; i++) { |
|
|
|