tianyi 1 month ago
parent
commit
3af77fd77f
  1. 16
      components/tab-bar/delivery.vue
  2. 2
      components/tab-bar/myCenter.vue
  3. 2
      components/tab-bar/tab-bar.vue

16
components/tab-bar/delivery.vue

@ -453,7 +453,7 @@
that.totalPages = res.result.pages; // pages = that.totalPages = res.result.pages; // pages =
that.$forceUpdate(); that.$forceUpdate();
} else { } else {
that.tui.toast(res.message); that.tui.toast(res.message,1000);
return; return;
} }
uni.hideLoading(); uni.hideLoading();
@ -557,7 +557,7 @@
}, },
openPopup() { openPopup() {
if(this.isOnLine != 1){ if(this.isOnLine != 1){
this.tui.toast('请先上线后配置'); this.tui.toast('请先上线后配置',1000);
return; return;
} }
let that = this let that = this
@ -615,7 +615,7 @@
} */ } */
this.$refs.carPopup.open() this.$refs.carPopup.open()
} else { } else {
that.tui.toast(res.message) that.tui.toast(res.message,1000)
return return
} }
}).catch((res) => {}) }).catch((res) => {})
@ -635,12 +635,12 @@
let that = this let that = this
that.tui.request(url, "POST", {deliveryId:item.id,workerId:item.workerId}, false, true).then((res) => { that.tui.request(url, "POST", {deliveryId:item.id,workerId:item.workerId}, false, true).then((res) => {
if (res.code == 200) { if (res.code == 200) {
that.tui.toast(res.message); that.tui.toast(res.message,1000);
that.searchForm.pageNum = 1 that.searchForm.pageNum = 1
that.getDelivery() that.getDelivery()
that.$forceUpdate(); that.$forceUpdate();
} else { } else {
that.tui.toast(res.message); that.tui.toast(res.message,1000);
return; return;
} }
uni.hideLoading(); uni.hideLoading();
@ -687,9 +687,9 @@
worker.isOnLine = value; worker.isOnLine = value;
this.isOnLine = value this.isOnLine = value
uni.setStorageSync('worker', worker); uni.setStorageSync('worker', worker);
this.tui.toast(res.message) this.tui.toast(res.message,1000)
} else { } else {
this.tui.toast(res.message) this.tui.toast(res.message,1000)
} }
}) })
@ -706,7 +706,7 @@
if (res.code == 200) { if (res.code == 200) {
} else { } else {
this.tui.toast(res.message) this.tui.toast(res.message,1000)
} }
}) })

2
components/tab-bar/myCenter.vue

@ -98,7 +98,7 @@
url: url url: url
}) })
} else { } else {
that.tui.toast(res.message) that.tui.toast(res.message,1000)
return return
} }
uni.hideLoading() uni.hideLoading()

2
components/tab-bar/tab-bar.vue

@ -138,7 +138,7 @@
} }
that.$forceUpdate(); that.$forceUpdate();
} else { } else {
that.tui.toast(res.message); that.tui.toast(res.message,1000);
return; return;
} }
uni.hideLoading(); uni.hideLoading();

Loading…
Cancel
Save