feat: add and optimize multiple multilingual language packs
1. 新增拼团、砍价、分销、支付、地址、账户等多业务场景的中英文本地化文案 2. 替换项目中硬编码的文本为多语言调用,统一前端页面文案展示 3. 新增多个业务组件的国际化语言配置文件
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
</view>
|
||||
<image v-else class="left-img" :src="$util.img(value.titleStyle.leftImg)" mode="heightFix" show-menu-by-longpress></image>
|
||||
<view class="head-content" v-if="value.titleStyle.style == 'style-1'"
|
||||
:style="{ color: value.titleStyle.textColor }">低至0元免费拿</view>
|
||||
:style="{ color: value.titleStyle.textColor }">{{ $lang('components-diy.diyBargain.freeGet') }}</view>
|
||||
<view class="head-right"
|
||||
:style="{ fontSize: value.titleStyle.moreFontSize * 2 + 'rpx', color: value.titleStyle.moreColor }"
|
||||
@tap.stop="$util.redirectTo('/pages_promotion/bargain/list')">
|
||||
@@ -44,19 +44,19 @@
|
||||
:src="$util.img('public/uniapp/bargain/progress_bar_01.png')" show-menu-by-longpress/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="num" v-if="item.is_bargaining">
|
||||
已砍
|
||||
<text>¥{{ (item.price - item.curr_price).toFixed(2) }}</text>
|
||||
,仅差
|
||||
<text>¥{{ item.curr_price }}</text>
|
||||
</view>
|
||||
<view class="num" v-else>
|
||||
最低可砍至
|
||||
<text>¥{{ item.floor_price }}</text>
|
||||
</view>
|
||||
<view class="num" v-if="item.is_bargaining">
|
||||
{{ $lang('components-diy.diyBargain.bargained') }}
|
||||
<text>¥{{ (item.price - item.curr_price).toFixed(2) }}</text>
|
||||
{{ $lang('components-diy.diyBargain.onlyDiff') }}
|
||||
<text>¥{{ item.curr_price }}</text>
|
||||
</view>
|
||||
<view class="num" v-else>
|
||||
{{ $lang('components-diy.diyBargain.minBargainTo') }}
|
||||
<text>¥{{ item.floor_price }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="progress" v-if="value.style == 'style-3'">
|
||||
最低可砍至
|
||||
{{ $lang('components-diy.diyBargain.minBargainTo') }}
|
||||
<text class="num">¥{{ item.floor_price }}</text>
|
||||
</view>
|
||||
<view class="price-wrap">
|
||||
@@ -75,7 +75,7 @@
|
||||
color: value.btnStyle.theme == 'diy' ? value.btnStyle.textColor : '',
|
||||
borderRadius: value.btnStyle.aroundRadius * 2 + 'rpx'
|
||||
}">
|
||||
{{ item.is_bargaining ? '继续砍价' : value.btnStyle.text }}
|
||||
{{ item.is_bargaining ? $lang('components-diy.diyBargain.continueBargain') : value.btnStyle.text }}
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -96,7 +96,7 @@
|
||||
<view class="num"
|
||||
v-if="value.saleStyle.control && value.template == 'horizontal-slide' && value.style != 'style-2'"
|
||||
:style="{ color: value.theme == 'diy' ? value.saleStyle.color : '' }">
|
||||
已砍{{ item.sale_num }}件
|
||||
{{ $lang('components-diy.diyBargain.soldCount', { num: item.sale_num }) }}
|
||||
</view>
|
||||
</view>
|
||||
<view :class="['content', { 'multi-content': value.nameLineMode == 'multiple' }]"
|
||||
@@ -141,7 +141,7 @@
|
||||
<view class="num"
|
||||
v-if="value.saleStyle.control && value.template == 'horizontal-slide' && value.style != 'style-2'"
|
||||
:style="{ color: value.theme == 'diy' ? value.saleStyle.color : '' }">
|
||||
已砍{{ item.sale_num }}件
|
||||
{{ $lang('components-diy.diyBargain.soldCount', { num: item.sale_num }) }}
|
||||
</view>
|
||||
</view>
|
||||
<view :class="['content', { 'multi-content': value.nameLineMode == 'multiple' }]"
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
:style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '', borderColor: value.theme == 'diy' ? value.groupStyle.bgColor : '' }">
|
||||
<text class="iconfont icon-yonghu3"
|
||||
:style="{ backgroundColor: value.theme == 'diy' ? value.groupStyle.bgColor : '' }"></text>
|
||||
<text>{{ item.pintuan_num }}人团</text>
|
||||
<text>{{ $lang('components-diy.diyPinfan.peopleGroup', { num: item.pintuan_num }) }}</text>
|
||||
</view>
|
||||
<view v-if="value.saleStyle.control"
|
||||
:style="{ color: value.theme == 'diy' ? value.saleStyle.color : '', borderColor: value.theme == 'diy' ? value.saleStyle.color : '' }">
|
||||
<text>已拼{{ item.order_num }}件</text>
|
||||
<text>{{ $lang('components-diy.diyPinfan.soldCount', { num: item.order_num }) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="price-wrap">
|
||||
@@ -49,10 +49,9 @@
|
||||
borderRadius: value.btnStyle.aroundRadius * 2 + 'rpx'
|
||||
}">
|
||||
<text class="text">{{ value.btnStyle.text }}</text>
|
||||
<text class="fan" v-if="item.reward_type == 4">返{{ item.reward_type_num }}积分</text>
|
||||
<text class="fan" v-if="item.reward_type == 1 || item.reward_type == 2">返¥{{
|
||||
item.reward_type_num }}</text>
|
||||
<text class="fan" v-if="item.reward_type == 3">返优惠券</text>
|
||||
<text class="fan" v-if="item.reward_type == 4">{{ $lang('components-diy.diyPinfan.backPoints', { num: item.reward_type_num }) }}</text>
|
||||
<text class="fan" v-if="item.reward_type == 1 || item.reward_type == 2">{{ $lang('components-diy.diyPinfan.backCash', { num: item.reward_type_num }) }}</text>
|
||||
<text class="fan" v-if="item.reward_type == 3">{{ $lang('components-diy.diyPinfan.backCoupon') }}</text>
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -78,21 +77,21 @@
|
||||
<view v-if="value.groupStyle.control" class="num">
|
||||
<text class="content-tuan-box"
|
||||
:style="{ color: value.theme == 'diy' ? value.groupStyle.color : '', backgroundColor: value.theme == 'diy' ? value.groupStyle.bgColor : '' }">
|
||||
{{ item.pintuan_num }}人团
|
||||
{{ $lang('components-diy.diyPinfan.peopleGroup', { num: item.pintuan_num }) }}
|
||||
</text>
|
||||
<text class="content-tuan-price"
|
||||
:style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '' }"
|
||||
v-if="item.reward_type == 4">
|
||||
返{{ item.reward_type_num }}积分
|
||||
{{ $lang('components-diy.diyPinfan.backPoints', { num: item.reward_type_num }) }}
|
||||
</text>
|
||||
<text class="content-tuan-price"
|
||||
:style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '' }"
|
||||
v-if="item.reward_type == 1 || item.reward_type == 2">
|
||||
返¥{{ item.reward_type_num }}
|
||||
{{ $lang('components-diy.diyPinfan.backCash', { num: item.reward_type_num }) }}
|
||||
</text>
|
||||
<text class="content-tuan-price"
|
||||
:style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '' }"
|
||||
v-if="item.reward_type == 3">返优惠券</text>
|
||||
v-if="item.reward_type == 3">{{ $lang('components-diy.diyPinfan.backCoupon') }}</text>
|
||||
</view>
|
||||
<view class="price-wrap" v-if="value.priceStyle.mainControl">
|
||||
<text class="unit price-style small"
|
||||
@@ -129,22 +128,22 @@
|
||||
<view v-if="value.groupStyle.control" class="num">
|
||||
<text class="content-tuan-box"
|
||||
:style="{ color: value.theme == 'diy' ? value.groupStyle.color : '', backgroundColor: value.theme == 'diy' ? value.groupStyle.bgColor : '' }">
|
||||
{{ item.pintuan_num }}人团
|
||||
{{ $lang('components-diy.diyPinfan.peopleGroup', { num: item.pintuan_num }) }}
|
||||
</text>
|
||||
<text class="content-tuan-price"
|
||||
:style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '' }"
|
||||
v-if="item.reward_type == 4">
|
||||
返{{ item.reward_type_num }}积分
|
||||
{{ $lang('components-diy.diyPinfan.backPoints', { num: item.reward_type_num }) }}
|
||||
</text>
|
||||
<text class="content-tuan-price"
|
||||
:style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '' }"
|
||||
v-if="item.reward_type == 1 || item.reward_type == 2">
|
||||
返¥{{ item.reward_type_num }}
|
||||
{{ $lang('components-diy.diyPinfan.backCash', { num: item.reward_type_num }) }}
|
||||
</text>
|
||||
<text class="content-tuan-price"
|
||||
:style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '' }"
|
||||
v-if="item.reward_type == 3">
|
||||
返优惠券
|
||||
{{ $lang('components-diy.diyPinfan.backCoupon') }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="price-wrap" v-if="value.priceStyle.mainControl">
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</view>
|
||||
<view :style="{ color: value.titleStyle.textColor }">
|
||||
<text>{{ value.titleStyle.virtualNum || headData.pintuan_count }}</text>
|
||||
<text>{{ value.titleStyle.style == 'style-2' ? '人参与' : '人拼团成功' }}</text>
|
||||
<text>{{ value.titleStyle.style == 'style-2' ? $lang('components-diy.diyPintuan.peopleParticipating') : $lang('components-diy.diyPintuan.peopleGroupSuccess') }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="head-right"
|
||||
@@ -59,11 +59,11 @@
|
||||
}">
|
||||
<text class="iconfont icon-yonghu3"
|
||||
:style="{ backgroundColor: value.theme == 'diy' ? value.groupStyle.bgColorStart : '' }"></text>
|
||||
<text>{{ item.pintuan_num }}人团</text>
|
||||
<text>{{ $lang('components-diy.diyPintuan.peopleGroup', { num: item.pintuan_num }) }}</text>
|
||||
</view>
|
||||
<view v-if="value.saleStyle.control"
|
||||
:style="{ color: value.theme == 'diy' ? value.saleStyle.color : '', borderColor: value.theme == 'diy' ? value.saleStyle.color : '' }">
|
||||
<text>已拼{{ item.order_num }}件</text>
|
||||
<text>{{ $lang('components-diy.diyPintuan.soldCount', { num: item.order_num }) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
color: value.theme == 'diy' ? value.groupStyle.color : '',
|
||||
background: value.theme == 'diy' ? 'linear-gradient(to right,' + value.groupStyle.bgColorStart + ',' + value.groupStyle.bgColorEnd + ')' : ''
|
||||
}">
|
||||
{{ item.pintuan_num }}人团
|
||||
{{ $lang('components-diy.diyPintuan.peopleGroup', { num: item.pintuan_num }) }}
|
||||
</view>
|
||||
</view>
|
||||
<view :class="['content', { 'multi-content': value.nameLineMode == 'multiple' }]"
|
||||
@@ -148,10 +148,10 @@
|
||||
{{ '.' + item.pintuan_price.split('.')[1] }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="sale-action">去参团</view>
|
||||
<view class="sale-action">{{ $lang('components-diy.diyPintuan.joinGroup') }}</view>
|
||||
</view>
|
||||
|
||||
<view class="sale-num" v-if="value.style == 'style-2'">已拼{{ item.sale_num }}件</view>
|
||||
<view class="sale-num" v-if="value.style == 'style-2'">{{ $lang('components-diy.diyPintuan.soldCount', { num: item.sale_num }) }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
@@ -170,7 +170,7 @@
|
||||
color: value.theme == 'diy' ? value.groupStyle.color : '',
|
||||
background: value.theme == 'diy' ? 'linear-gradient(to right,' + value.groupStyle.bgColorStart + ',' + value.groupStyle.bgColorEnd + ')' : ''
|
||||
}">
|
||||
{{ item.pintuan_num }}人团
|
||||
{{ $lang('components-diy.diyPintuan.peopleGroup', { num: item.pintuan_num }) }}
|
||||
</view>
|
||||
</view>
|
||||
<view :class="['content', { 'multi-content': value.nameLineMode == 'multiple' }]"
|
||||
@@ -192,7 +192,7 @@
|
||||
{{ '.' + item.pintuan_price.split('.')[1] }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="sale-num" v-if="value.style == 'style-2'">已拼{{ item.sale_num }}件</view>
|
||||
<view class="sale-num" v-if="value.style == 'style-2'">{{ $lang('components-diy.diyPintuan.soldCount', { num: item.sale_num }) }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</swiper-item>
|
||||
|
||||
Reference in New Issue
Block a user