|
@@ -372,18 +372,26 @@ export default {
|
|
|
// 刷新门店信息
|
|
// 刷新门店信息
|
|
|
await this.getShopAddressInfo();
|
|
await this.getShopAddressInfo();
|
|
|
} else {
|
|
} else {
|
|
|
- uni.showToast({
|
|
|
|
|
- title: result.message || '更新失败',
|
|
|
|
|
- icon: 'none'
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ console.log(result);
|
|
|
|
|
+ if(result.msg && result.msg.includes('content.address_info.house is empty')){
|
|
|
|
|
+ this.$msg('门店的门牌号未填写')
|
|
|
|
|
+ } else {
|
|
|
|
|
+ console.log(result.msg);
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: '更新失败',
|
|
|
|
|
+ icon: 'none'
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
console.error('更新门店地址失败:', error);
|
|
console.error('更新门店地址失败:', error);
|
|
|
- uni.showToast({
|
|
|
|
|
- title: '更新失败,请重试',
|
|
|
|
|
- icon: 'none'
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ if(error.msg && error.msg.includes('content.address_info.house is empty')){
|
|
|
|
|
+ this.$msg('门店的门牌号未填写')
|
|
|
|
|
+ } else {
|
|
|
|
|
+ console.log(error.msg);
|
|
|
|
|
+ this.$msg('更新失败')
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|