提交 f1cfd89d 编写于 作者: G gongfuxiang

地址导入错误修复

上级 004e09e2
...@@ -241,7 +241,8 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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'));
}, },
}); });
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册