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则上上页