From cb154cb3599b5163810adf38c40bd3941a6a16f9 Mon Sep 17 00:00:00 2001 From: yanyan Date: Tue, 19 Mar 2024 15:11:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9D=80=E6=89=B9=E9=87=8F=E5=88=A0?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subpkg/address/address.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/subpkg/address/address.vue b/subpkg/address/address.vue index b78782a..5484757 100644 --- a/subpkg/address/address.vue +++ b/subpkg/address/address.vue @@ -36,7 +36,7 @@ - + @@ -59,7 +59,8 @@ backgroundColor: '#fb1010' } }], - addressList: [] + addressList: [], + ids:"1" }; }, onLoad() { @@ -130,6 +131,14 @@ } = await uni.$http.post('/small/project/address/remove', item.guid) if (!res.success) return uni.$showMsg() }, + async deleteAll() { + this.addressList.forEach(x => this.ids = this.ids + ","+x.guid); + this.addressList = []; + const { + data: res + } = await uni.$http.post('/small/project/address/remove', this.ids) + if (!res.success) return uni.$showMsg() + }, back() { uni.navigateBack({ delta: 1, //返回层数,2则上上页