diff --git a/components/tab-bar/delivery.vue b/components/tab-bar/delivery.vue index 2c27fad..c488363 100644 --- a/components/tab-bar/delivery.vue +++ b/components/tab-bar/delivery.vue @@ -453,7 +453,7 @@ that.totalPages = res.result.pages; // pages = 总页数 that.$forceUpdate(); } else { - that.tui.toast(res.message); + that.tui.toast(res.message,1000); return; } uni.hideLoading(); @@ -557,7 +557,7 @@ }, openPopup() { if(this.isOnLine != 1){ - this.tui.toast('请先上线后配置'); + this.tui.toast('请先上线后配置',1000); return; } let that = this @@ -615,7 +615,7 @@ } */ this.$refs.carPopup.open() } else { - that.tui.toast(res.message) + that.tui.toast(res.message,1000) return } }).catch((res) => {}) @@ -635,12 +635,12 @@ let that = this that.tui.request(url, "POST", {deliveryId:item.id,workerId:item.workerId}, false, true).then((res) => { if (res.code == 200) { - that.tui.toast(res.message); + that.tui.toast(res.message,1000); that.searchForm.pageNum = 1 that.getDelivery() that.$forceUpdate(); } else { - that.tui.toast(res.message); + that.tui.toast(res.message,1000); return; } uni.hideLoading(); @@ -687,9 +687,9 @@ worker.isOnLine = value; this.isOnLine = value uni.setStorageSync('worker', worker); - this.tui.toast(res.message) + this.tui.toast(res.message,1000) } else { - this.tui.toast(res.message) + this.tui.toast(res.message,1000) } }) @@ -706,7 +706,7 @@ if (res.code == 200) { } else { - this.tui.toast(res.message) + this.tui.toast(res.message,1000) } }) diff --git a/components/tab-bar/myCenter.vue b/components/tab-bar/myCenter.vue index 1a06e44..f28c320 100644 --- a/components/tab-bar/myCenter.vue +++ b/components/tab-bar/myCenter.vue @@ -98,7 +98,7 @@ url: url }) } else { - that.tui.toast(res.message) + that.tui.toast(res.message,1000) return } uni.hideLoading() diff --git a/components/tab-bar/tab-bar.vue b/components/tab-bar/tab-bar.vue index 6c3e1bf..de09540 100644 --- a/components/tab-bar/tab-bar.vue +++ b/components/tab-bar/tab-bar.vue @@ -138,7 +138,7 @@ } that.$forceUpdate(); } else { - that.tui.toast(res.message); + that.tui.toast(res.message,1000); return; } uni.hideLoading();