地址导入错误修复
parent
004e09e283
commit
f1cfd89dd5
|
|
@ -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'));
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue