refactor: 替换硬编码文本为多语言配置

替换了项目中所有硬编码的提示文案,将其统一迁移到多语言语言包中,包括授权、自定义页面、HTTP请求、分享、客服等模块的提示文本,提升项目的国际化可维护性
This commit is contained in:
2026-06-23 08:36:55 +08:00
parent 6c7f7d4837
commit 750ed2dac7
7 changed files with 123 additions and 53 deletions

View File

@@ -326,7 +326,7 @@ export default {
}
this.$util.showToast({
title: '未配置自定义页面数据'
title: this.$lang('diy.noCustomPageData')
});
this.diyData = {};
return;
@@ -560,7 +560,7 @@ export default {
if (res.code == 0 && res.data) {
this.currentPosition = res.data.formatted_addresses.recommend; // 结合知名地点形成的描述性地址,更具人性化特点
} else {
this.currentPosition = '未获取到定位';
this.currentPosition = this.$lang('diy.locationNotObtained');
}
}
});
@@ -572,7 +572,7 @@ export default {
this.nearestStore = this.defaultStoreInfo;
this.nearestStore.show_address = this.nearestStore.full_address.replace(/,/g, ' ') + ' ' + this.nearestStore.address;
}
if (this.currentPosition == '') this.currentPosition = '未获取到定位';
if (this.currentPosition == '') this.currentPosition = this.$lang('diy.locationNotObtained');
this.openChooseStorePopup();
}
},