From 7a6d05bb58b556be630ab4c901568e8fb3dd1a3c Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Fri, 24 Jul 2026 14:07:24 +0800 Subject: [PATCH] 1 --- components/tab-bar/delivery.vue | 36 +- components/worker/delivery.vue | 2457 +++++++++++++++++++++++++++++++ components/worker/tab-bar.vue | 130 ++ 3 files changed, 2614 insertions(+), 9 deletions(-) create mode 100644 components/worker/delivery.vue create mode 100644 components/worker/tab-bar.vue diff --git a/components/tab-bar/delivery.vue b/components/tab-bar/delivery.vue index 490630e..e7fca63 100644 --- a/components/tab-bar/delivery.vue +++ b/components/tab-bar/delivery.vue @@ -296,7 +296,10 @@ handleStartDateChange(e) { const value = e.detail.value if (this.searchForm.endDate && value > this.searchForm.endDate) { - this.tui.toast('开始日期不能晚于结束日期') + uni.showToast({ + title: '开始日期不能晚于结束日期', + icon: 'none' + }) return } this.searchForm.startDate = value @@ -305,7 +308,10 @@ handleEndDateChange(e) { const value = e.detail.value if (this.searchForm.startDate && value < this.searchForm.startDate) { - this.tui.toast('结束日期不能早于开始日期') + uni.showToast({ + title: '结束日期不能早于开始日期', + icon: 'none' + }) return } this.searchForm.endDate = value @@ -429,7 +435,10 @@ that.totalPages = res.result.pages; // pages = 总页数 that.$forceUpdate(); } else { - that.tui.toast(res.message); + uni.showToast({ + title: res.message, + icon: 'none' + }) return; } uni.hideLoading(); @@ -437,14 +446,20 @@ }, batchMealServing() { if (!this.canShowBatchMealServingButton(this.groupOrderCheck)) { - this.tui.toast('当前订单不可出餐') + uni.showToast({ + title: '当前订单不可出餐', + icon: 'none' + }) return } const orderIdList = (Array.isArray(this.tuanzhangOrder) ? this.tuanzhangOrder : []) .map(item => this.getOrderId(item)) .filter(id => !!id) if (orderIdList.length == 0) { - this.tui.toast('未找到拼团订单') + uni.showToast({ + title: '未找到拼团订单', + icon: 'none' + }) return } let that = this @@ -453,19 +468,22 @@ content: '确定全部出餐吗?', success: function (res) { if (!res.confirm) return - that.tui.request('/mall/order/shopMakeTimeBatch', 'POST', { + that.NB.sendRequest("/mall/order/shopMakeTimeBatch", { orderIdList: orderIdList - }, false, false).then((res) => { + }, false, 'POST', 'application/x-www-form-urlencoded').then((res) => { if (res.code == 200) { that.$refs.pintuanPopup.close() that.searchForm.pageNum = 1 that.getList() } else { - that.tui.toast(res.message) + uni.showToast({ + title: res.message, + icon: 'none' + }) return } uni.hideLoading() - }).catch((res) => {}) + }) } }) }, diff --git a/components/worker/delivery.vue b/components/worker/delivery.vue new file mode 100644 index 0000000..c3ad910 --- /dev/null +++ b/components/worker/delivery.vue @@ -0,0 +1,2457 @@ + + + + + \ No newline at end of file diff --git a/components/worker/tab-bar.vue b/components/worker/tab-bar.vue new file mode 100644 index 0000000..d16c6e4 --- /dev/null +++ b/components/worker/tab-bar.vue @@ -0,0 +1,130 @@ + + + + + \ No newline at end of file