From 8ad2c422c36b5f6ceef2dde11bd68c4e905403fe Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Wed, 29 Apr 2026 18:04:43 +0800 Subject: [PATCH] 1 --- package1/address/addressList.vue | 24 +++++++++++------------ package1/buyFood/buyFood.vue | 6 +++--- package1/group/groupBuyList.vue | 6 +++--- package1/group/groupBuySingle.vue | 12 ++++++------ package1/group/searchGroup.vue | 5 ++--- package1/group/shopEvaluate.vue | 4 ++-- package1/myCenter/addGoods.vue | 10 +++++----- package1/myCenter/addType.vue | 8 ++++---- package1/myCenter/dataStatistics.vue | 2 +- package1/myCenter/goodsList.vue | 24 +++++++++++------------ package1/myCenter/partTimeJobRegister.vue | 4 ++-- package1/order/orderDetail.vue | 2 +- package1/order/returnOrder.vue | 6 +++--- 13 files changed, 56 insertions(+), 57 deletions(-) diff --git a/package1/address/addressList.vue b/package1/address/addressList.vue index e578378..ca05143 100644 --- a/package1/address/addressList.vue +++ b/package1/address/addressList.vue @@ -189,27 +189,27 @@ this.addressForm.areaId = match.id; this.addressForm.areaName = match.title; } else { - return this.tui.toast('请搜索并选择有效的楼座'); + return this.tui.toast('请搜索并选择有效的楼座',1000); } } - if(!this.addressForm.areaId) return this.tui.toast('请搜索并选择楼座'); - if(!this.addressForm.floor) return this.tui.toast('请填写所在楼层'); - if(!/^-?\d+$/.test(this.addressForm.floor)) return this.tui.toast('楼层必须为整数'); - if(!this.addressForm.roomNum) return this.tui.toast('请填写详细地址门牌号'); - if(!this.addressForm.receiverName) return this.tui.toast('请填写收件人'); - if(!this.addressForm.receiverPhone) return this.tui.toast('请填写联系电话'); - if(!/^1[3-9]\d{9}$/.test(this.addressForm.receiverPhone)) return this.tui.toast('请输入有效的11位手机号码'); + if(!this.addressForm.areaId) return this.tui.toast('请搜索并选择楼座',1000); + if(!this.addressForm.floor) return this.tui.toast('请填写所在楼层',1000); + if(!/^-?\d+$/.test(this.addressForm.floor)) return this.tui.toast('楼层必须为整数',1000); + if(!this.addressForm.roomNum) return this.tui.toast('请填写详细地址门牌号',1000); + if(!this.addressForm.receiverName) return this.tui.toast('请填写收件人',1000); + if(!this.addressForm.receiverPhone) return this.tui.toast('请填写联系电话',1000); + if(!/^1[3-9]\d{9}$/.test(this.addressForm.receiverPhone)) return this.tui.toast('请输入有效的11位手机号码',1000); let url = this.addressForm.id ? "/app/userAddress/edit" : "/app/userAddress/save"; let that = this; this.addressForm.userId = uni.getStorageSync('id') that.tui.request(url, "POST", this.addressForm, false, true).then((res) => { if (res.code == 200) { - that.tui.toast("保存成功"); + that.tui.toast("保存成功",1000); that.$refs.addBookPopup.close(); that.getAddressList(); } else { - that.tui.toast(res.message); + that.tui.toast(res.message,1000); } }).catch(() => {}); }, @@ -222,10 +222,10 @@ if (res.confirm) { that.tui.request("/app/userAddress/delById", "POST", {id: id}, false, true).then((res) => { if (res.code == 200) { - that.tui.toast("删除成功"); + that.tui.toast("删除成功",1000); that.getAddressList(); } else { - that.tui.toast(res.message); + that.tui.toast(res.message,1000); } }).catch(() => {}); } diff --git a/package1/buyFood/buyFood.vue b/package1/buyFood/buyFood.vue index 96d6423..ec7c48a 100644 --- a/package1/buyFood/buyFood.vue +++ b/package1/buyFood/buyFood.vue @@ -752,7 +752,7 @@ wxPayment() { let that = this; if (!this.currentOrderId || !this.backendTotalAmount) { - that.tui.toast(this.currentOrderId + this.backendTotalAmount); + that.tui.toast(this.currentOrderId + this.backendTotalAmount,1000); return; } @@ -807,10 +807,10 @@ that.handlePaymentSuccess(); }, 1500); }).catch(e => { - that.tui.toast("请求失败"); + that.tui.toast("请求失败",1000); }); } else { - that.tui.toast(res.message); + that.tui.toast(res.message,1000); } } }) diff --git a/package1/group/groupBuyList.vue b/package1/group/groupBuyList.vue index 17f3fdc..88acf76 100644 --- a/package1/group/groupBuyList.vue +++ b/package1/group/groupBuyList.vue @@ -340,7 +340,7 @@ } } } else { - that.tui.toast(res.message) + that.tui.toast(res.message,1000) return } }).catch((res) => {}) @@ -358,7 +358,7 @@ } } } else { - that.tui.toast(res.message) + that.tui.toast(res.message,1000) return } }).catch((res) => {}) @@ -410,7 +410,7 @@ that.isArea = false that.$forceUpdate() } else { - that.tui.toast(res.message) + that.tui.toast(res.message,1000) return } uni.hideLoading() diff --git a/package1/group/groupBuySingle.vue b/package1/group/groupBuySingle.vue index d10aeb5..1614ef4 100644 --- a/package1/group/groupBuySingle.vue +++ b/package1/group/groupBuySingle.vue @@ -657,7 +657,7 @@ if (res.code == 200) { this.tuanzhangOrder = res.result; } else { - that.tui.toast(res.message) + that.tui.toast(res.message,1000) return } uni.hideLoading() @@ -817,7 +817,7 @@ that.pageNum = that.searchForm.pageNum; that.$forceUpdate(); } else { - that.tui.toast(res.message); + that.tui.toast(res.message,1000); return; } uni.hideLoading(); @@ -837,7 +837,7 @@ } that.$forceUpdate() } else { - that.tui.toast(res.message) + that.tui.toast(res.message,1000) return } uni.hideLoading() @@ -991,7 +991,7 @@ that.$forceUpdate(); } else { - that.tui.toast(res.message); + that.tui.toast(res.message,1000); return; } uni.hideLoading(); @@ -1470,7 +1470,7 @@ }); }, fail: function(err) { - that.tui.toast("支付失败或取消"); + that.tui.toast("支付失败或取消",1000); } }); } else { @@ -1484,7 +1484,7 @@ setTimeout(() => { that.$refs.joinSuccessPopup.open('bottom'); }, 1500); }); } else { - that.tui.toast(res.message); + that.tui.toast(res.message,1000); } } }) diff --git a/package1/group/searchGroup.vue b/package1/group/searchGroup.vue index bf2a73a..8ba8157 100644 --- a/package1/group/searchGroup.vue +++ b/package1/group/searchGroup.vue @@ -68,7 +68,6 @@ - @@ -261,7 +260,7 @@ console.log(that.shopArea) } } else { - that.tui.toast(res.message) + that.tui.toast(res.message,1000) return } }).catch((res) => {}) @@ -295,7 +294,7 @@ that.isArea = false that.$forceUpdate() } else { - that.tui.toast(res.message) + that.tui.toast(res.message,1000) return } uni.hideLoading() diff --git a/package1/group/shopEvaluate.vue b/package1/group/shopEvaluate.vue index d06cc6d..440941a 100644 --- a/package1/group/shopEvaluate.vue +++ b/package1/group/shopEvaluate.vue @@ -222,7 +222,7 @@ that.menuList[0].num = res.result.total } } else { - that.tui.toast(res.message) + that.tui.toast(res.message,1000) return } uni.hideLoading() @@ -252,7 +252,7 @@ this.back() }, 1000) } else { - that.tui.toast(res.message); + that.tui.toast(res.message,1000); } uni.hideLoading(); }).catch((res) => {}); diff --git a/package1/myCenter/addGoods.vue b/package1/myCenter/addGoods.vue index 5ea2237..50e5ab9 100644 --- a/package1/myCenter/addGoods.vue +++ b/package1/myCenter/addGoods.vue @@ -211,7 +211,7 @@ }, fail() { - this.tui.toast("您未授权,图片上传功能可能会出现错误") + this.tui.toast("您未授权,图片上传功能可能会出现错误",1000) } }) this.typeItem = JSON.parse(JSON.stringify(this.typeItem)) || '' @@ -250,7 +250,7 @@ this.formData.categoryId = res.result.categoryId this.edit(this.formData) } else { - this.tui.toast(res.message) + this.tui.toast(res.message,1000) } }).catch((res) => {}) } @@ -366,7 +366,7 @@ } } else { - this.tui.toast(res.message) + this.tui.toast(res.message,1000) } }).catch((res) => {}) }, @@ -388,7 +388,7 @@ this.tui.request("/app/product/save", "post", this.formData, false, false).then((res) => { if(res.code == 200){ - that.tui.toast("操作成功"); + that.tui.toast("操作成功",1000); uni.navigateBack() } }).catch(() => {}); @@ -400,7 +400,7 @@ this.formData.productPictures = [] this.tui.request("/app/product/edit", "post", this.formData, false, false).then((res) => { if(res.code == 200){ - that.tui.toast("操作成功"); + that.tui.toast("操作成功",1000); uni.navigateBack() } }).catch(() => {}); diff --git a/package1/myCenter/addType.vue b/package1/myCenter/addType.vue index 89fea63..6c9d41f 100644 --- a/package1/myCenter/addType.vue +++ b/package1/myCenter/addType.vue @@ -107,7 +107,7 @@ if (res.code == 200) { this.indexList = res.result; } else { - this.tui.toast(res.message) + this.tui.toast(res.message,1000) } }).catch(() => {}); }, @@ -151,7 +151,7 @@ } } if(that.typeText == ''){ - that.tui.toast("请输入分类名") + that.tui.toast("请输入分类名",1000) return } this.tui.request("/app/productCategory/save", "POST",{ @@ -161,13 +161,13 @@ shopId:uni.getStorageSync('shopId') }, false, true).then((res) => { if (res.code == 200) { - that.tui.toast("添加成功") + that.tui.toast("添加成功",1000) that.$refs.addTypeDialog.close() that.sortText = '' that.getGategoryList() } else { - that.tui.toast("添加失败") + that.tui.toast("添加失败",1000) } }).catch(() => {}); diff --git a/package1/myCenter/dataStatistics.vue b/package1/myCenter/dataStatistics.vue index 1b2bfcf..cfedc2b 100644 --- a/package1/myCenter/dataStatistics.vue +++ b/package1/myCenter/dataStatistics.vue @@ -146,7 +146,7 @@ if (res.code == 200) { this.shopInfo = res.result } else { - this.tui.toast(res.message) + this.tui.toast(res.message,1000) } }) diff --git a/package1/myCenter/goodsList.vue b/package1/myCenter/goodsList.vue index 6e95a81..5054d54 100644 --- a/package1/myCenter/goodsList.vue +++ b/package1/myCenter/goodsList.vue @@ -213,9 +213,9 @@ }else{ this.shopList1[index].isPush = value } - this.tui.toast('设置成功') + this.tui.toast('设置成功',1000) } else { - this.tui.toast(res.message) + this.tui.toast(res.message,1000) } }).catch((res) => {}) }, @@ -231,9 +231,9 @@ }, false, true).then((res) => { if (res.code == 200) { that.getShareList() - that.tui.toast('删除成功') + that.tui.toast('删除成功',1000) } else { - that.tui.toast(res.message) + that.tui.toast(res.message,1000) } }).catch((res) => {}) } @@ -251,9 +251,9 @@ }else{ this.shopList1[index].isMust = value } - this.tui.toast('设置成功') + this.tui.toast('设置成功',1000) } else { - this.tui.toast(res.message) + this.tui.toast(res.message,1000) } }).catch((res) => {}) }, @@ -268,9 +268,9 @@ }else{ this.shopList1[index].delFlag = value } - this.tui.toast('设置成功') + this.tui.toast('设置成功',1000) } else { - this.tui.toast(res.message) + this.tui.toast(res.message,1000) } }).catch((res) => {}) }else{ @@ -283,9 +283,9 @@ }else{ this.shopList1[index].delFlag = value } - this.tui.toast('设置成功') + this.tui.toast('设置成功',1000) } else { - this.tui.toast(res.message) + this.tui.toast(res.message,1000) } }).catch((res) => {}) } @@ -351,7 +351,7 @@ this.pages = res.result.pages } } else { - this.tui.toast(res.message) + this.tui.toast(res.message,1000) } }).catch((res) => {}) }, @@ -388,7 +388,7 @@ this.categoryId = this.indexList[0].id this.getShareList(); } else { - this.tui.toast(res.message) + this.tui.toast(res.message,1000) } }).catch((res) => {}) }, diff --git a/package1/myCenter/partTimeJobRegister.vue b/package1/myCenter/partTimeJobRegister.vue index b603f90..2611c85 100644 --- a/package1/myCenter/partTimeJobRegister.vue +++ b/package1/myCenter/partTimeJobRegister.vue @@ -267,7 +267,7 @@ that.$forceUpdate(); } } else { - that.tui.toast(res.message) + that.tui.toast(res.message,1000) return } }).catch((res) => {}) @@ -282,7 +282,7 @@ } } } else { - that.tui.toast(res.message) + that.tui.toast(res.message,1000) return } }).catch((res) => {}) diff --git a/package1/order/orderDetail.vue b/package1/order/orderDetail.vue index 976305f..9fe752f 100644 --- a/package1/order/orderDetail.vue +++ b/package1/order/orderDetail.vue @@ -954,7 +954,7 @@ this.$forceUpdate(); }, returnProducts(item){ - uni.navigateTo({ + uni.redirectTo({ url: '/package1/order/returnOrder?order=' + encodeURIComponent(JSON.stringify(item)) }); }, diff --git a/package1/order/returnOrder.vue b/package1/order/returnOrder.vue index 9c81303..c40320e 100644 --- a/package1/order/returnOrder.vue +++ b/package1/order/returnOrder.vue @@ -228,7 +228,7 @@ 只退商品 - + 退配送费 @@ -238,12 +238,12 @@ 全额退款(商家原因) - + 全额退款(配送员原因) - + 全额退款(商家+配送员原因)