feat: add and optimize multiple multilingual language packs
1. 新增拼团、砍价、分销、支付、地址、账户等多业务场景的中英文本地化文案 2. 替换项目中硬编码的文本为多语言调用,统一前端页面文案展示 3. 新增多个业务组件的国际化语言配置文件
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
<view class="order-detail-box">
|
||||
<view class="header">
|
||||
<view class="title">
|
||||
<text>共{{ orderData.num }}件商品</text>
|
||||
<text>{{ $lang('totalItems', { count: orderData.num }) }}</text>
|
||||
</view>
|
||||
<text class="color-base-text font-size-tag" v-if="orderData.is_refund == 1">已退款</text>
|
||||
<text class="color-base-text font-size-tag" v-else-if="orderData.is_settlement == 1">已结算</text>
|
||||
<text class="color-base-text font-size-tag" v-else>待结算</text>
|
||||
<text class="color-base-text font-size-tag" v-if="orderData.is_refund == 1">{{ $lang('statusRefunded') }}</text>
|
||||
<text class="color-base-text font-size-tag" v-else-if="orderData.is_settlement == 1">{{ $lang('statusSettled') }}</text>
|
||||
<text class="color-base-text font-size-tag" v-else>{{ $lang('statusPendingSettlement') }}</text>
|
||||
</view>
|
||||
<view class="detail-body">
|
||||
<view class="detail-body-box">
|
||||
@@ -18,7 +18,7 @@
|
||||
<view class="goods-sub-section margin-top">
|
||||
<view>
|
||||
<text class="goods-price">
|
||||
<text class="unit price-color">¥</text>
|
||||
<text class="unit price-color">{{ $lang('common.currencySymbol') }}</text>
|
||||
<text class="price-color font-size-toolbar" >{{ parseFloat(orderData.price).toFixed(2).split(".")[0] }}</text>
|
||||
<text class="unit price-color">.{{ parseFloat(orderData.price).toFixed(2).split(".")[1] }}</text>
|
||||
</text>
|
||||
@@ -37,29 +37,29 @@
|
||||
<view class="detail-footer">
|
||||
<text></text>
|
||||
<text>
|
||||
<text>合计:</text>
|
||||
<text class="price-color total">¥{{ orderData.real_goods_money }}</text>
|
||||
<text>{{ $lang('totalLabel') }}</text>
|
||||
<text class="price-color total">{{ $lang('common.currencySymbol') }}{{ orderData.real_goods_money }}</text>
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-detail-box commission">
|
||||
<view class="header">
|
||||
<view class="title color-base-bg-before"><text>返佣详情</text></view>
|
||||
<view class="title color-base-bg-before"><text>{{ $lang('commissionDetail') }}</text></view>
|
||||
<text class="color-base-text"> </text>
|
||||
</view>
|
||||
<view class="detail-content">
|
||||
<view class="order-info-item">
|
||||
<text class="tit">订单编号:</text>
|
||||
<text class="tit">{{ $lang('orderNo') }}</text>
|
||||
<text>{{ orderData.order_no }}</text>
|
||||
</view>
|
||||
<view class="order-info-item">
|
||||
<text class="tit">分佣层级:</text>
|
||||
<text>{{ orderData.commission_level }}级</text>
|
||||
<text class="tit">{{ $lang('commissionLevel') }}</text>
|
||||
<text>{{ $lang('levelText', { level: orderData.commission_level }) }}</text>
|
||||
</view>
|
||||
<view class="order-info-item">
|
||||
<text class="tit">返佣金额:</text>
|
||||
<text class="tit">{{ $lang('commissionAmount') }}</text>
|
||||
<text class="price-color font-size-toolbar">
|
||||
<text class="font-size-goods-tag">¥</text>
|
||||
<text class="font-size-goods-tag">{{ $lang('common.currencySymbol') }}</text>
|
||||
{{ parseFloat(orderData.commission).toFixed(2).split(".")[0] }}
|
||||
<text class="font-size-goods-tag">.{{ parseFloat(orderData.commission).toFixed(2).split(".")[1] }}</text>
|
||||
</text>
|
||||
@@ -100,7 +100,7 @@ export default {
|
||||
setTimeout( () => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: '商家未开启分销',
|
||||
title: this.$lang('merchantNotOpenFenxiao'),
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
@@ -133,7 +133,7 @@ export default {
|
||||
this.orderData = res.data;
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '未获取到订单信息!'
|
||||
title: this.$lang('orderInfoNotFound')
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo('/pages_promotion/fenxiao/order', {}, 'redirectTo');
|
||||
|
||||
Reference in New Issue
Block a user