feat: 新增多语言文案与组件国际化适配
本次提交完成了大量多语言相关的新增与优化工作: 1. 新增充值、案例、会员资产、订单等页面的中文/英文翻译文案 2. 新增企业微信客服、时间选择、支付弹窗等组件的多语言包 3. 优化工具函数与自定义页面的多语言适配,替换硬编码提示文案 4. 新增会员等级规则、积分商品、退款管理等页面的国际化支持 5. 修复企业微信JS-SDK的错误提示文案硬编码问题
This commit is contained in:
@@ -9,24 +9,24 @@
|
||||
</view> -->
|
||||
|
||||
<view class="recharge-box">
|
||||
<view class="recharge-box-title">充值金额
|
||||
<view @click="toOrderList"><text class="color-base-text" style="color:#1db03b !important">充值记录</text></view>
|
||||
<view class="recharge-box-title">{{ $lang('rechargeAmount') }}
|
||||
<view @click="toOrderList"><text class="color-base-text" style="color:#1db03b !important">{{ $lang('rechargeRecords') }}</text></view>
|
||||
</view>
|
||||
<view class="box-content">
|
||||
|
||||
<view class="money">
|
||||
<text class="label">¥</text>
|
||||
<view class="input-box">
|
||||
<input class="reg-input" v-model="payMoney" placeholder="请输入充值金额" placeholder-style="font-size:32rpx;color:#969696;font-weight:500"></input>
|
||||
<input class="reg-input" v-model="payMoney" :placeholder="$lang('placeholderEnterAmount')" placeholder-style="font-size:32rpx;color:#969696;font-weight:500"></input>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view v-if="list.length" class="content-item" v-for="(item, index) in list" :key="index" @click="itemClick(index, item.recharge_id, item.buy_price)" :class="isIndex == index ? 'active' : ''">
|
||||
<view class="price1 ">
|
||||
<text class="price-font">{{ parseFloat(item.face_value).toFixed(0) }}</text>
|
||||
<text>元</text>
|
||||
<text>{{ $lang('yuan') }}</text>
|
||||
</view>
|
||||
<view class="price2">售价 {{ item.buy_price }} 元</view>
|
||||
<view class="price2">{{ $lang('salePrice', { price: item.buy_price }) }}</view>
|
||||
</view>
|
||||
|
||||
<!-- <view class="content-item" @click="openRecharge()">
|
||||
@@ -62,12 +62,12 @@
|
||||
</view> -->
|
||||
<uni-popup ref="rechargePopup" type="bottom">
|
||||
<view class="rechargeList">
|
||||
<view class="tip">请输入充值金额</view>
|
||||
<view class="tip">{{ $lang('pleaseEnterAmount') }}</view>
|
||||
<view class="input color-tip">
|
||||
{{keywordsInfo.price?keywordsInfo.price:'金额'}}<text class="color-base-text">元</text>
|
||||
{{keywordsInfo.price?keywordsInfo.price:$lang('amount')}}<text class="color-base-text">{{ $lang('yuan') }}</text>
|
||||
</view>
|
||||
<view class="input color-tip">
|
||||
<text class="color-base-text" v-if="payMoney > 0">售价{{payMoney}}元</text>
|
||||
<text class="color-base-text" v-if="payMoney > 0">{{ $lang('salePrice', { price: payMoney }) }}</text>
|
||||
</view>
|
||||
<view class="keywords">
|
||||
<view class="keywords-left">
|
||||
@@ -86,7 +86,7 @@
|
||||
</view>
|
||||
<view class="keywords-right">
|
||||
<view @click="delPrice"><text class="iconfont icon-close"></text></view>
|
||||
<view class="color-base-bg" @click="keywordsPayment()">确认充值</view>
|
||||
<view class="color-base-bg" @click="keywordsPayment()">{{ $lang('confirmRecharge') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -94,7 +94,7 @@
|
||||
<!-- 选择支付方式弹窗 -->
|
||||
<ns-payment ref="choosePaymentPopup" :payMoney="payMoney" @confirm="toPay"></ns-payment>
|
||||
<view style="background: #fff;width: 100%;position: fixed;bottom: 0rpx;">
|
||||
<button class="add-account" type="primary" @click="submitPayment" >充值</button>
|
||||
<button class="add-account" type="primary" @click="submitPayment" >{{ $lang('recharge') }}</button>
|
||||
</view>
|
||||
|
||||
<!-- <button class="add-account" type="primary" :disabled="recharge_id > 0 ? false : true" @click="openChoosePayment">充值</button> -->
|
||||
@@ -176,7 +176,7 @@
|
||||
this.openChoosePayment()
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: "请输入充值金额"
|
||||
title: this.$lang('pleaseEnterAmount')
|
||||
})
|
||||
}
|
||||
|
||||
@@ -273,7 +273,7 @@
|
||||
});
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '请选择套餐'
|
||||
title: this.$lang('pleaseSelectPackage')
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user