|
|
@ -83,6 +83,7 @@ export default { |
|
|
|
longitude: addressDetail.longitude |
|
|
|
} |
|
|
|
|
|
|
|
console.log(addressDetail.id,"addressDetail.id") |
|
|
|
if (addressDetail.id) { |
|
|
|
data.id = addressDetail.id |
|
|
|
} |
|
|
@ -122,13 +123,14 @@ export default { |
|
|
|
|
|
|
|
//删除地址 |
|
|
|
deleteAddress(id) { |
|
|
|
console.log("==========") |
|
|
|
let self = this |
|
|
|
uni.showModal({ |
|
|
|
title: '删除地址', |
|
|
|
content: '确认删除此地址?删除后数据不可恢复', |
|
|
|
success(e) { |
|
|
|
if(e.confirm){ |
|
|
|
self.$api('addressDelete', { |
|
|
|
self.$api('deleteAddress', { |
|
|
|
id |
|
|
|
}, res => { |
|
|
|
if (res.code == 200) { |
|
|
|