refactor(http,lang): 重构请求逻辑并新增多语言错误提示

1.  新增网络相关错误的多语言翻译配置
2.  重写http请求层,添加自动重试机制与错误分类提示
3.  优化鸿蒙平台下的组件渲染兼容性与数据更新逻辑
4.  调整部分页面的模板结构与请求配置
This commit is contained in:
2026-07-13 15:45:15 +08:00
parent cb9234bdac
commit 30cda71749
8 changed files with 234 additions and 157 deletions

View File

@@ -231,6 +231,7 @@ export default {
}
this.$api.sendRequest({
url: '/api/pay/pay',
noRetry: true,
data: {
out_trade_no: this.payInfo.out_trade_no,
pay_type: payType.type,
@@ -350,6 +351,7 @@ export default {
if (!payType) return;
this.$api.sendRequest({
url: '/api/pay/pay',
noRetry: true,
data: {
out_trade_no: this.payInfo.out_trade_no,
pay_type: payType.type,