chore(多语言): 优化登录页面的中英文展示

This commit is contained in:
2025-12-29 11:23:32 +08:00
parent 9f25cb5336
commit 6b5a268955
2 changed files with 9 additions and 12 deletions

View File

@@ -30,18 +30,14 @@ export default {
if (routeParts[0] === 'pages_order') routeParts[0] = 'order'; if (routeParts[0] === 'pages_order') routeParts[0] = 'order';
if (routeParts[0] === 'pages_promotion') { if (routeParts[0] === 'pages_promotion') {
if (routeParts[1] === 'point') routeParts = ['point', ...routeParts.slice(2)]; const promotionModules = ['point', 'fenxiao', 'merch'];
if (routeParts[1] === 'fenxiao') routeParts = ['fenxiao', ...routeParts.slice(2)]; if (promotionModules.includes(routeParts[1])) {
if (routeParts[1] === 'merch') routeParts = ['merch', ...routeParts.slice(2)]; routeParts = [routeParts[1], ...routeParts.slice(2)];
}
} }
if (routeParts[0] === 'pages_tool') { if (routeParts[0] === 'pages_tool') {
if (routeParts[1] === 'member') routeParts = ['member', ...routeParts.slice(2)]; routeParts = [routeParts[1], ...routeParts.slice(2)];
if (routeParts[1] === 'order') routeParts = ['order', ...routeParts.slice(2)];
if (routeParts[1] === 'goods') routeParts = ['goods', ...routeParts.slice(2)];
if (routeParts[1] === 'help') routeParts = ['help', ...routeParts.slice(2)];
if (routeParts[1] === 'notice') routeParts = ['notice', ...routeParts.slice(2)];
if (routeParts[1] === 'article') routeParts = ['article', ...routeParts.slice(2)];
} }
// ---- 处理页面目录映射 <end>---- // ---- 处理页面目录映射 <end>----
@@ -93,7 +89,8 @@ export default {
} }
if (value == undefined || (value == 'title' && field == 'title')) value = ''; // field if (value == undefined || (value == 'title' && field == 'title')) value = ''; // field
console.log(`字段: ${field}, 值: ${value}`) // 多语言调试,注释后可以关闭控制台输出
// console.log(`字段: ${field}, 值: ${value}`)
return value; return value;
}, },
/** /**

View File

@@ -77,7 +77,7 @@
dynacodeData: { dynacodeData: {
seconds: 120, seconds: 120,
timer: null, timer: null,
codeText: '获取动态码', codeText: this.$lang('getDynacode'),
isSend: false isSend: false
}, },
registerConfig: { registerConfig: {
@@ -468,7 +468,7 @@
} }
</style> </style>
<style scoped> <style lang="scss" scoped>
/deep/ .reward-popup .uni-popup__wrapper-box { /deep/ .reward-popup .uni-popup__wrapper-box {
background: none !important; background: none !important;
max-width: unset !important; max-width: unset !important;