From 0906febc4a8776b6fb65edb5bb3691a0c94b22ad Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Thu, 16 Jul 2026 14:16:48 +0800 Subject: [PATCH] 1 --- pages/goods/gategory.vue | 20 ++++++++-- pages/goods/gategoryLow.vue | 12 +++++- pages/goods/goodsList.vue | 36 ++++++++++++++---- pages/login/login.vue | 10 ++++- pages/myCenter/businessInfo.vue | 5 ++- pages/myCenter/shopDetail.vue | 10 ++++- pages/shop/addType.vue | 20 ++++++++-- pages/shop/afterService.vue | 35 ++++++++++++++---- pages/shop/dataStatistics.vue | 5 ++- pages/shop/goodsList.vue | 55 ++++++++++++++++++++++------ pages/shop/orderDetail.vue | 5 ++- pages/shop/selfDeliveryOrderList.vue | 20 ++++++++-- pages/shop/shopEvaluate.vue | 5 ++- pages/shop/shopOrderList.vue | 10 ++++- 14 files changed, 199 insertions(+), 49 deletions(-) diff --git a/pages/goods/gategory.vue b/pages/goods/gategory.vue index b173f8d..baefb71 100644 --- a/pages/goods/gategory.vue +++ b/pages/goods/gategory.vue @@ -278,7 +278,10 @@ if (res.code == 200) { this.indexList = res.result; } else { - this.tui.toast(res.message) + uni.showToast({ + title: res.message, + icon: 'none' + }) } }) }, @@ -365,7 +368,10 @@ } } if(e == ''){ - that.tui.toast("请输入分类名") + uni.showToast({ + title: "请输入分类名", + icon: 'none' + }) return } //application/x-www-form-urlencoded @@ -375,13 +381,19 @@ productAttributeOfAddVos:that.multipleList }, false, 'POST', 'application/json').then(data => { if (res.code == 200) { - that.tui.toast("添加成功") + uni.showToast({ + title: "添加成功", + icon: 'none' + }) that.$refs.addTypeDialog.close() that.sortText = '' that.getGategoryList() } else { - that.tui.toast("添加失败") + uni.showToast({ + title: "添加失败", + icon: 'none' + }) } }) for(var i=0;i { if (res.code == 200) { - that.tui.toast("下架成功") + uni.showToast({ + title: "下架成功", + icon: 'none' + }) } else { - that.tui.toast(res.message) + uni.showToast({ + title: res.message, + icon: 'none' + }) } that.categoryId = data.categoryId that.getShareList() @@ -334,9 +350,15 @@ id: data.id }, false, 'POST', 'application/json').then(res => { if (res.code == 200) { - that.tui.toast("上架成功") + uni.showToast({ + title: "上架成功", + icon: 'none' + }) } else { - that.tui.toast(res.message) + uni.showToast({ + title: res.message, + icon: 'none' + }) } that.categoryId = data.categoryId that.getShareList() diff --git a/pages/login/login.vue b/pages/login/login.vue index 3447097..f445205 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -309,7 +309,10 @@ .captchaId } else { - this.tui.toast(res.message) + uni.showToast({ + title: res.message, + icon: 'none' + }) } }) }, @@ -346,7 +349,10 @@ }, 200) uni.showToast('登录成功', 2000, true) } else { - that.tui.toast(res.message) + uni.showToast({ + title: res.message, + icon: 'none' + }) return } }).catch((res) => {}) diff --git a/pages/myCenter/businessInfo.vue b/pages/myCenter/businessInfo.vue index 5ef6bd9..800a189 100644 --- a/pages/myCenter/businessInfo.vue +++ b/pages/myCenter/businessInfo.vue @@ -139,7 +139,10 @@ submit(){ const error = this.validateForm() if (error) { - this.tui.toast(error) + uni.showToast({ + title: error, + icon: 'none' + }) return } const payload = { diff --git a/pages/myCenter/shopDetail.vue b/pages/myCenter/shopDetail.vue index 4a22ee6..dfa3cc0 100644 --- a/pages/myCenter/shopDetail.vue +++ b/pages/myCenter/shopDetail.vue @@ -126,7 +126,10 @@ this.applyShop(this.normalizeShopResult(res.result)) } else { this.applyShop(this.getCachedShop()) - if (res.message) this.tui.toast(res.message) + uni.showToast({ + title: res.message, + icon: 'none' + }) } }) }, @@ -258,7 +261,10 @@ submit() { const error = this.validateShop() if (error) { - this.tui.toast(error) + uni.showToast({ + title: error, + icon: 'none' + }) return } const shopId = this.getShopId() diff --git a/pages/shop/addType.vue b/pages/shop/addType.vue index e0a98bd..a427de2 100644 --- a/pages/shop/addType.vue +++ b/pages/shop/addType.vue @@ -106,7 +106,10 @@ if (res.code == 200) { this.indexList = res.result; } else { - this.tui.toast(res.message) + uni.showToast({ + title: res.message, + icon: 'none' + }) } }).catch(() => {}); }, @@ -157,7 +160,10 @@ } } if(that.typeText == ''){ - that.tui.toast("请输入分类名") + uni.showToast({ + title: "请输入分类名", + icon: 'none' + }) return } @@ -170,13 +176,19 @@ shopId:uni.getStorageSync('shopId') }, false, 'POST', 'application/x-www-form-urlencoded').then((res) => { if (res.code == 200) { - that.tui.toast("添加成功") + uni.showToast({ + title: "添加成功", + icon: 'none' + }) that.$refs.addTypeDialog.close() that.sortText = '' that.getGategoryList() } else { - that.tui.toast("添加失败") + uni.showToast({ + title: "添加失败", + icon: 'none' + }) } }).catch(() => {}); diff --git a/pages/shop/afterService.vue b/pages/shop/afterService.vue index db2694b..1bb7980 100644 --- a/pages/shop/afterService.vue +++ b/pages/shop/afterService.vue @@ -339,7 +339,10 @@ this.tuanzhangOrder = res.result; this.$refs.pintuanPopup.open('center') } else { - that.tui.toast(res.message); + uni.showToast({ + title: res.message, + icon: 'none' + }) return; } uni.hideLoading(); @@ -370,7 +373,10 @@ const orderId = item && item.mallOrder ? item.mallOrder.id : item && item.orderId; if (!orderId) { - this.tui.toast('订单信息不存在'); + uni.showToast({ + title: '订单信息不存在', + icon: 'none' + }) return; } uni.navigateTo({ @@ -405,7 +411,10 @@ that.loadStatus = that.mode == 'record' && that.searchCountForm.pageNum < that.totalPages ? 'more' : 'nomore'; that.$forceUpdate(); } else { - that.tui.toast(res.message); + uni.showToast({ + title: res.message, + icon: 'none' + }) return; } uni.hideLoading(); @@ -473,7 +482,10 @@ confirmReject() { const reason = (this.rejectReason || '').trim(); if (reason === '') { - this.tui.toast('请输入拒绝原因'); + uni.showToast({ + title: '请输入拒绝原因', + icon: 'none' + }) return; } const item = this.rejectItem; @@ -519,14 +531,23 @@ const successMessage = messageList[0] || '操作成功'; return this.getReturnCount().then(() => { this.resetSubmitState(); - this.tui.toast(successMessage, 2000, true); + uni.showToast({ + title: successMessage, + icon: 'none' + }) }).catch(() => { this.resetSubmitState(); - this.tui.toast(successMessage, 2000, true); + uni.showToast({ + title: successMessage, + icon: 'none' + }) }); }).catch((message) => { this.resetSubmitState(); - this.tui.toast(this.getRequestErrorMessage(message), 2000); + uni.showToast({ + title: this.getRequestErrorMessage(message), + icon: 'none' + }) }); } } diff --git a/pages/shop/dataStatistics.vue b/pages/shop/dataStatistics.vue index 9b1b030..02db222 100644 --- a/pages/shop/dataStatistics.vue +++ b/pages/shop/dataStatistics.vue @@ -145,7 +145,10 @@ if (res.code == 200) { this.shopInfo = res.result } else { - this.tui.toast(res.message) + uni.showToast({ + title: res.message, + icon: 'none' + }) } }) diff --git a/pages/shop/goodsList.vue b/pages/shop/goodsList.vue index a37f3b5..73bf0e4 100644 --- a/pages/shop/goodsList.vue +++ b/pages/shop/goodsList.vue @@ -239,9 +239,15 @@ }else{ this.shopList1[index].isPush = value } - this.tui.toast('设置成功') + uni.showToast({ + title: '设置成功', + icon: 'none' + }) } else { - this.tui.toast(res.message) + uni.showToast({ + title: res.message, + icon: 'none' + }) } }).catch((res) => {}) }, @@ -258,9 +264,15 @@ }, false, 'POST', 'application/x-www-form-urlencoded').then((res) => { if (res.code == 200) { that.getShareList() - that.tui.toast('删除成功') + uni.showToast({ + title: '删除成功', + icon: 'none' + }) } else { - that.tui.toast(res.message) + uni.showToast({ + title: res.message, + icon: 'none' + }) } }).catch((res) => {}) } @@ -279,9 +291,15 @@ }else{ this.shopList1[index].isMust = value } - this.tui.toast('设置成功') + uni.showToast({ + title: '设置成功', + icon: 'none' + }) } else { - this.tui.toast(res.message) + uni.showToast({ + title: res.message, + icon: 'none' + }) } }).catch((res) => {}) }, @@ -298,9 +316,15 @@ }else{ this.shopList1[index].delFlag = value } - this.tui.toast('设置成功') + uni.showToast({ + title: '设置成功', + icon: 'none' + }) } else { - this.tui.toast(res.message) + uni.showToast({ + title: res.message, + icon: 'none' + }) } }).catch((res) => {}) }else{ @@ -315,9 +339,15 @@ }else{ this.shopList1[index].delFlag = value } - this.tui.toast('设置成功') + uni.showToast({ + title: '设置成功', + icon: 'none' + }) } else { - this.tui.toast(res.message) + uni.showToast({ + title: res.message, + icon: 'none' + }) } }).catch((res) => {}) } @@ -389,7 +419,10 @@ this.pages = res.result.pages } } else { - this.tui.toast(res.message) + uni.showToast({ + title: res.message, + icon: 'none' + }) } }).catch((res) => {}) }, diff --git a/pages/shop/orderDetail.vue b/pages/shop/orderDetail.vue index 84fa3ce..3c47696 100644 --- a/pages/shop/orderDetail.vue +++ b/pages/shop/orderDetail.vue @@ -856,7 +856,10 @@ callPlatformService() { let regionId = this.getCurrentRegionId(); if (!regionId) { - this.tui.toast("请选择校区"); + uni.showToast({ + title: "请选择校区", + icon: 'none' + }) return; } let that = this; diff --git a/pages/shop/selfDeliveryOrderList.vue b/pages/shop/selfDeliveryOrderList.vue index e223d4b..7454602 100644 --- a/pages/shop/selfDeliveryOrderList.vue +++ b/pages/shop/selfDeliveryOrderList.vue @@ -171,7 +171,10 @@ getList() { if (!this.searchForm.workerId) { this.loadStatus = 'nomore'; - this.tui.toast('店铺未绑定自配送配送员'); + uni.showToast({ + title: '店铺未绑定自配送配送员', + icon: 'none' + }) return; } this.tui.request('/mall/delivery/pageShopDelivery', 'POST', this.searchForm, false, false).then((res) => { @@ -181,7 +184,10 @@ this.totalPages = res.result.pages || 1; this.loadStatus = this.searchForm.pageNum >= this.totalPages ? 'nomore' : 'more'; } else { - this.tui.toast(res.message); + uni.showToast({ + title: res.message, + icon: 'none' + }) } }); }, @@ -211,9 +217,15 @@ } else { this.list.splice(index, 1); } - this.tui.toast(res.message || '操作成功'); + uni.showToast({ + title: res.message || '操作成功', + icon: 'none' + }) } else { - this.tui.toast(res.message); + uni.showToast({ + title: res.message, + icon: 'none' + }) } }); }, diff --git a/pages/shop/shopEvaluate.vue b/pages/shop/shopEvaluate.vue index 3cd4625..69a5300 100644 --- a/pages/shop/shopEvaluate.vue +++ b/pages/shop/shopEvaluate.vue @@ -224,7 +224,10 @@ that.menuList[0].num = res.result.total } } else { - that.tui.toast(res.message,1000) + uni.showToast({ + title: res.message, + icon: 'none' + }) return } uni.hideLoading() diff --git a/pages/shop/shopOrderList.vue b/pages/shop/shopOrderList.vue index 6406459..d157c37 100644 --- a/pages/shop/shopOrderList.vue +++ b/pages/shop/shopOrderList.vue @@ -194,7 +194,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(); @@ -220,7 +223,10 @@ if (res.code == 200) { that.getList() } else { - that.tui.toast(res.message); + uni.showToast({ + title: res.message, + icon: 'none' + }) return; } uni.hideLoading();