refactor: 统一项目内国际化key的命名空间格式
本次提交对全项目的国际化调用进行了规范化重构:
1. 为中文/英文语言包新增了avatar和gender的别名映射,兼容旧有headImg/sex写法
2. 修正了lang.js中的注释路径错误
3. 将所有页面和组件内的$lang调用从短路径改为带业务模块前缀的完整命名空间路径,例如将$lang('title')改为$lang('article.list.title')
4. 优化了i18n-lazy.js的注释说明,补充了正确的key命名格式示例
5. 统一了分销、订单、会员等模块的国际化key层级,确保所有语言调用路径一致
This commit is contained in:
@@ -7,43 +7,43 @@
|
||||
<!-- 状态0待审核1.待转账2已转账 -1拒绝' -->
|
||||
<view class="item">
|
||||
<view class="line-wrap">
|
||||
<text class="label">{{ $lang('withdrawalDetail.currentStatus') }}</text>
|
||||
<text class="label">{{ $lang('fenxiao.withdrawal_detail.currentStatus') }}</text>
|
||||
<text class="value">{{ detail.status_name }}</text>
|
||||
</view>
|
||||
<view class="line-wrap">
|
||||
<text class="label">{{ $lang('withdrawalDetail.transactionNo') }}</text>
|
||||
<text class="label">{{ $lang('fenxiao.withdrawal_detail.transactionNo') }}</text>
|
||||
<text class="value">{{ detail.withdraw_no }}</text>
|
||||
</view>
|
||||
<view class="line-wrap">
|
||||
<text class="label">{{ $lang('withdrawalDetail.serviceFee') }}</text>
|
||||
<text class="label">{{ $lang('fenxiao.withdrawal_detail.serviceFee') }}</text>
|
||||
<text class="value">¥{{ detail.withdraw_rate_money }}</text>
|
||||
</view>
|
||||
<view class="line-wrap">
|
||||
<text class="label">{{ $lang('withdrawalDetail.applyTime') }}</text>
|
||||
<text class="label">{{ $lang('fenxiao.withdrawal_detail.applyTime') }}</text>
|
||||
<text class="value">{{ $util.timeStampTurnTime(detail.create_time) }}</text>
|
||||
</view>
|
||||
<view class="line-wrap" v-if="detail.status">
|
||||
<text class="label">{{ $lang('withdrawalDetail.auditTime') }}</text>
|
||||
<text class="label">{{ $lang('fenxiao.withdrawal_detail.auditTime') }}</text>
|
||||
<text class="value">{{ $util.timeStampTurnTime(detail.audit_time) }}</text>
|
||||
</view>
|
||||
<view class="line-wrap" v-if="detail.bank_name">
|
||||
<text class="label">{{ $lang('withdrawalDetail.bankName') }}</text>
|
||||
<text class="label">{{ $lang('fenxiao.withdrawal_detail.bankName') }}</text>
|
||||
<text class="value">{{ detail.bank_name }}</text>
|
||||
</view>
|
||||
<view class="line-wrap" v-if="detail.account_number">
|
||||
<text class="label">{{ $lang('withdrawalDetail.receivingAccount') }}</text>
|
||||
<text class="label">{{ $lang('fenxiao.withdrawal_detail.receivingAccount') }}</text>
|
||||
<text class="value">{{ detail.account_number }}</text>
|
||||
</view>
|
||||
<view class="line-wrap" v-if="detail.status == -1 && detail.refuse_reason">
|
||||
<text class="label">{{ $lang('withdrawalDetail.refuseReason') }}</text>
|
||||
<text class="label">{{ $lang('fenxiao.withdrawal_detail.refuseReason') }}</text>
|
||||
<text class="value">{{ detail.refuse_reason }}</text>
|
||||
</view>
|
||||
<view class="line-wrap" v-if="detail.status == 3">
|
||||
<text class="label">{{ $lang('withdrawalDetail.transferTypeName') }}</text>
|
||||
<text class="label">{{ $lang('fenxiao.withdrawal_detail.transferTypeName') }}</text>
|
||||
<text class="value">{{ detail.transfer_name }}</text>
|
||||
</view>
|
||||
<view class="line-wrap" v-if="detail.status == 3">
|
||||
<text class="label">{{ $lang('withdrawalDetail.transferTime') }}</text>
|
||||
<text class="label">{{ $lang('fenxiao.withdrawal_detail.transferTime') }}</text>
|
||||
<text class="value">{{ $util.timeStampTurnTime(detail.payment_time) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user