From ea5d6b14c3dc9160a7912aec39fe7a3f2003b095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=81=B0=E7=81=B0?= Date: Fri, 16 Sep 2022 00:47:49 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E5=94=AE?= =?UTF-8?q?=E5=90=8E=E6=8F=90=E9=86=92=E8=B0=83=E6=95=B4=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=EF=BC=8C=E5=B0=86toast=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E4=B8=BA=E5=8F=AF=E5=85=B3=E9=97=AD=E7=9A=84alert=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/member/afterSales/submit/submit.vue | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/CoreCms.Net.Uni-App/CoreShopProfessional-UniApp/pages/member/afterSales/submit/submit.vue b/CoreCms.Net.Uni-App/CoreShopProfessional-UniApp/pages/member/afterSales/submit/submit.vue index 9badef20..0f545039 100644 --- a/CoreCms.Net.Uni-App/CoreShopProfessional-UniApp/pages/member/afterSales/submit/submit.vue +++ b/CoreCms.Net.Uni-App/CoreShopProfessional-UniApp/pages/member/afterSales/submit/submit.vue @@ -11,12 +11,16 @@ + + + + + 请选择退货商品和数量 -
@@ -185,7 +189,11 @@ submitStatus: false, checkedItems: [],//当前选中的商品 isFlag: true, - costFreight: 0//运费 + costFreight: 0,//运费 + showAlert: false, + alertTitle: '提醒', + alertDescription: '', + alertClosable: true } }, computed: { @@ -341,10 +349,10 @@ nums = this.items[j].returnNums //this.itemIds = this.itemIds.concat({ id: k, nums: nums }); this.itemIds.forEach((item, index, arr) => { - if (item.id==k) { + if (item.id == k) { item.nums = nums; } - // console.log(index + ":" + item) + // console.log(index + ":" + item) }) } else { this.$u.toast("您填写的数量不对!") @@ -402,7 +410,9 @@ } }) } else { - _that.$u.toast(res.msg); + _that.showAlert = true; + _that.alertDescription = res.msg; + //_that.$u.toast(res.msg); } }); },