Commit 9b385000 authored by Smile's avatar Smile Committed by wux

app地址修改无法返回问题修改

parent f4e11231
...@@ -119,15 +119,25 @@ export default { ...@@ -119,15 +119,25 @@ export default {
this.$refs.form.validate().then(async (res) => { this.$refs.form.validate().then(async (res) => {
if (res) { if (res) {
try { try {
const { code } = await this.$request.post( await this.$request.post(
"/app-api/member/user-address/update", "/app-api/member/user-address/update",
this.form this.form
); ).then(res => {
if (code == 0) { if (res.code == 0) {
this.$route.params.addressId = "00000"; this.$route.params.addressId = "00000";
uni.$emit("refreshPreviousPage", "show"); uni.showModal({
uni.navigateBack(); title: null,
} content:this.$lang.lang.notices.operation,
showCancel: false,
success: function (res) {
if (res.confirm) {
uni.$emit("refreshPreviousPage", "show");
uni.navigateBack();
}
}
})
}
});
} catch (err) {} } catch (err) {}
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment