地址导入错误修复

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