地址导入错误修复

master
gongfuxiang 2024-01-22 17:45:24 +08:00
parent 004e09e283
commit f1cfd89dd5
1 changed files with 6 additions and 5 deletions

View File

@ -241,7 +241,8 @@
} }
// #endif // #endif
// //
var self = this;
uni.chooseAddress({ uni.chooseAddress({
success(res) { success(res) {
var data = { var data = {
@ -255,7 +256,7 @@
// //
uni.showLoading({ uni.showLoading({
title: this.$t('common.processing_in_text'), title: self.$t('common.processing_in_text'),
}); });
uni.request({ uni.request({
url: app.globalData.get_request_url('outsystemadd', 'useraddress'), url: app.globalData.get_request_url('outsystemadd', 'useraddress'),
@ -265,18 +266,18 @@
success: (res) => { success: (res) => {
uni.hideLoading(); uni.hideLoading();
if (res.data.code == 0) { if (res.data.code == 0) {
this.get_data_list(); self.get_data_list();
} else { } else {
if (app.globalData.is_login_check(res.data)) { if (app.globalData.is_login_check(res.data)) {
app.globalData.showToast(res.data.msg); app.globalData.showToast(res.data.msg);
} else { } else {
app.globalData.showToast(this.$t('common.sub_error_retry_tips')); app.globalData.showToast(self.$t('common.sub_error_retry_tips'));
} }
} }
}, },
fail: () => { fail: () => {
uni.hideLoading(); uni.hideLoading();
app.globalData.showToast(this.$t('common.internet_error_tips')); app.globalData.showToast(self.$t('common.internet_error_tips'));
}, },
}); });
}, },