chore(多语言): 优化登录页面的中英文展示
This commit is contained in:
@@ -30,18 +30,14 @@ export default {
|
||||
if (routeParts[0] === 'pages_order') routeParts[0] = 'order';
|
||||
|
||||
if (routeParts[0] === 'pages_promotion') {
|
||||
if (routeParts[1] === 'point') routeParts = ['point', ...routeParts.slice(2)];
|
||||
if (routeParts[1] === 'fenxiao') routeParts = ['fenxiao', ...routeParts.slice(2)];
|
||||
if (routeParts[1] === 'merch') routeParts = ['merch', ...routeParts.slice(2)];
|
||||
const promotionModules = ['point', 'fenxiao', 'merch'];
|
||||
if (promotionModules.includes(routeParts[1])) {
|
||||
routeParts = [routeParts[1], ...routeParts.slice(2)];
|
||||
}
|
||||
}
|
||||
|
||||
if (routeParts[0] === 'pages_tool') {
|
||||
if (routeParts[1] === 'member') routeParts = ['member', ...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)];
|
||||
routeParts = [routeParts[1], ...routeParts.slice(2)];
|
||||
}
|
||||
// ---- 处理页面目录映射 <end>----
|
||||
|
||||
@@ -93,7 +89,8 @@ export default {
|
||||
}
|
||||
if (value == undefined || (value == 'title' && field == 'title')) value = ''; // field
|
||||
|
||||
console.log(`字段: ${field}, 值: ${value}`)
|
||||
// 多语言调试,注释后可以关闭控制台输出
|
||||
// console.log(`字段: ${field}, 值: ${value}`)
|
||||
return value;
|
||||
},
|
||||
/**
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
dynacodeData: {
|
||||
seconds: 120,
|
||||
timer: null,
|
||||
codeText: '获取动态码',
|
||||
codeText: this.$lang('getDynacode'),
|
||||
isSend: false
|
||||
},
|
||||
registerConfig: {
|
||||
@@ -468,7 +468,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<style scoped>
|
||||
<style lang="scss" scoped>
|
||||
/deep/ .reward-popup .uni-popup__wrapper-box {
|
||||
background: none !important;
|
||||
max-width: unset !important;
|
||||
|
||||
Reference in New Issue
Block a user