feat: add and optimize multiple multilingual language packs
1. 新增拼团、砍价、分销、支付、地址、账户等多业务场景的中英文本地化文案 2. 替换项目中硬编码的文本为多语言调用,统一前端页面文案展示 3. 新增多个业务组件的国际化语言配置文件
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
<view class="container" :style="themeColor">
|
||||
<view class="bank-account-wrap" @click="goAccount()">
|
||||
<view class="tx-wrap" v-if="bankAccountInfo.withdraw_type && !isBalance">
|
||||
<text class="tx-to">提现到</text>
|
||||
<view class="tx-bank" v-if="bankAccountInfo.withdraw_type == 'wechatpay'">微信默认钱包</view>
|
||||
<text class="tx-to">{{ $lang('withdrawTo') }}</text>
|
||||
<view class="tx-bank" v-if="bankAccountInfo.withdraw_type == 'wechatpay'">{{ $lang('wechatDefaultWallet') }}</view>
|
||||
<view class="tx-bank" v-else>{{ bankAccountInfo.bank_account }} </view>
|
||||
<view class="tx-img" v-if="bankAccountInfo.withdraw_type == 'alipay'">
|
||||
<image :src="$util.img('public/uniapp/member/apply_withdrawal/alipay.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
@@ -16,10 +16,10 @@
|
||||
</image>
|
||||
</view>
|
||||
</view>
|
||||
<text class="tx-to" v-else-if="!isBalance">请添加提现账户</text>
|
||||
<text class="tx-to" v-else-if="!isBalance">{{ $lang('pleaseAddWithdrawAccount') }}</text>
|
||||
<view class="tx-wrap" v-else="isBalance">
|
||||
<text class="tx-to">提现到</text>
|
||||
<view class="tx-bank">余额</view>
|
||||
<text class="tx-to">{{ $lang('withdrawTo') }}</text>
|
||||
<view class="tx-bank">{{ $lang('balance') }}</view>
|
||||
<view class="tx-img">
|
||||
<image :src="$util.img('public/uniapp/member/apply_withdrawal/tixian.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
</view>
|
||||
@@ -28,7 +28,7 @@
|
||||
</view>
|
||||
<view class="empty-box"></view>
|
||||
<view class="withdraw-wrap">
|
||||
<view class="withdraw-wrap-title">提现金额:</view>
|
||||
<view class="withdraw-wrap-title">{{ $lang('withdrawAmountLabel') }}</view>
|
||||
<view class="money-wrap">
|
||||
<text class="unit">{{ $lang('common.currencySymbol') }}</text>
|
||||
<input type="digit" class="withdraw-money" v-model="withdrawMoney" />
|
||||
@@ -38,14 +38,14 @@
|
||||
</view>
|
||||
<view class="bottom">
|
||||
<view>
|
||||
<text class="color-tip">可提现金额:{{ $lang('common.currencySymbol') }}{{ withdrawInfo.account | moneyFormat }}</text>
|
||||
<text class="all-tx color-base-text" @click="allTx">全部提现</text>
|
||||
<text class="color-tip">{{ $lang('withdrawableAmountLabel') }}{{ $lang('common.currencySymbol') }}{{ withdrawInfo.account | moneyFormat }}</text>
|
||||
<text class="all-tx color-base-text" @click="allTx">{{ $lang('withdrawAll') }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="desc">
|
||||
<text v-if="withdrawConfigInfo.withdraw > 0">最小提现金额为{{ $lang('common.currencySymbol') }}{{ withdrawConfigInfo.withdraw | moneyFormat }},</text>
|
||||
<text v-if="withdrawConfigInfo.max > 0">最大提现金额为{{ $lang('common.currencySymbol') }}{{ (withdrawConfigInfo.max > withdrawInfo.account ? withdrawInfo.account : withdrawConfigInfo.max) | moneyFormat }},</text>
|
||||
<text>手续费为{{ withdrawConfigInfo.withdraw_rate + '%' }}</text>
|
||||
<text v-if="withdrawConfigInfo.withdraw > 0">{{ $lang('minWithdrawAmountTip', { symbol: $lang('common.currencySymbol'), min: withdrawConfigInfo.withdraw | moneyFormat }) }}</text>
|
||||
<text v-if="withdrawConfigInfo.max > 0">{{ $lang('maxWithdrawAmountTip', { symbol: $lang('common.currencySymbol'), max: (withdrawConfigInfo.max > withdrawInfo.account ? withdrawInfo.account : withdrawConfigInfo.max) | moneyFormat }) }}</text>
|
||||
<text>{{ $lang('serviceFeeTip', { rate: withdrawConfigInfo.withdraw_rate + '%' }) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
<view class="grace-page-footer page-btm" style="z-index: 999999; background: rgb(255, 255, 255); padding-bottom: 0px;" @click="withdraw">
|
||||
<view data-v-800ec5da="" class="collectionBorder">
|
||||
<button data-v-800ec5da="" class="renren-btn do false middle">提现</button>
|
||||
<button data-v-800ec5da="" class="renren-btn do false middle">{{ $lang('withdrawBtn') }}</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
verify() {
|
||||
if (this.withdrawMoney == '' || this.withdrawMoney < 0 || isNaN(parseFloat(this.withdrawMoney))) {
|
||||
this.$util.showToast({
|
||||
title: '请输入提现金额'
|
||||
title: this.$lang('pleaseEnterWithdrawAmount')
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -186,14 +186,14 @@
|
||||
}
|
||||
if (parseFloat(this.withdrawMoney) > 0 && (parseFloat(this.withdrawMoney) > parseFloat(money))) {
|
||||
this.$util.showToast({
|
||||
title: '提现金额超出可提现金额'
|
||||
title: this.$lang('withdrawAmountExceeds')
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (parseFloat(this.withdrawMoney) > 0 && (parseFloat(this.withdrawMoney) < parseFloat(this
|
||||
.withdrawConfigInfo.withdraw))) {
|
||||
this.$util.showToast({
|
||||
title: '提现金额小于最低提现金额'
|
||||
title: this.$lang('withdrawAmountBelowMin')
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -202,7 +202,7 @@
|
||||
withdraw() {
|
||||
if (!this.bankAccountInfo.withdraw_type && !this.isBalance) {
|
||||
this.$util.showToast({
|
||||
title: '请先添加提现方式'
|
||||
title: this.$lang('pleaseAddWithdrawMethod')
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -235,7 +235,7 @@
|
||||
success: res => {
|
||||
if (res.code >= 0) {
|
||||
this.$util.showToast({
|
||||
title: '提现申请成功'
|
||||
title: this.$lang('withdrawApplySuccess')
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo('/pages_promotion/fenxiao/withdraw_list', {},
|
||||
@@ -270,7 +270,7 @@
|
||||
success: res => {
|
||||
if (res.code >= 0) {
|
||||
this.$util.showToast({
|
||||
title: '提现申请成功'
|
||||
title: this.$lang('withdrawApplySuccess')
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo('/pages_promotion/fenxiao/withdraw_list', {},
|
||||
|
||||
Reference in New Issue
Block a user