|
|
|
@ -205,11 +205,11 @@ |
|
|
|
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(() => {}); |
|
|
|
} |
|
|
|
|