feat: add and optimize multiple multilingual language packs
1. 新增拼团、砍价、分销、支付、地址、账户等多业务场景的中英文本地化文案 2. 替换项目中硬编码的文本为多语言调用,统一前端页面文案展示 3. 新增多个业务组件的国际化语言配置文件
This commit is contained in:
@@ -8,10 +8,10 @@
|
||||
<view class="birthday-title-desc" v-if="birthday.blessing_content">
|
||||
{{ birthday.blessing_content }}
|
||||
</view>
|
||||
<view class="birthday-title-desc" v-else>感谢您一直以来的支持,在您生日到来之际,特为您送上最真诚的祝福!</view>
|
||||
<view class="birthday-title-desc" v-else>{{ $lang('components.nsBirthdayGift.defaultBlessing') }}</view>
|
||||
<view class="birthday-title-hint">
|
||||
<image :src="$util.img('public/uniapp/birthday_gift/birthday_gift_left.png')" mode="" class="birthday-img-all" show-menu-by-longpress/>
|
||||
<view class="font-size-toolbar">生日贺礼</view>
|
||||
<view class="font-size-toolbar">{{ $lang('components.nsBirthdayGift.birthdayGift') }}</view>
|
||||
<image :src="$util.img('public/uniapp/birthday_gift/birthday_gift_right.png')" mode="" class="birthday-img-all" show-menu-by-longpress/>
|
||||
</view>
|
||||
<scroll-view scroll-y="true" class="register-box">
|
||||
@@ -20,31 +20,31 @@
|
||||
<view class="info">
|
||||
<text class="num">
|
||||
{{ parseFloat(birthday.point) }}
|
||||
<text class="type">积分</text>
|
||||
<text class="type">{{ $lang('components.nsBirthdayGift.points') }}</text>
|
||||
</text>
|
||||
<view class="desc">用于下单时抵现或兑换商品等</view>
|
||||
<view class="desc">{{ $lang('components.nsBirthdayGift.pointDesc') }}</view>
|
||||
</view>
|
||||
<view class="tip" @click="closeRewardPopup('1')">立即查看</view>
|
||||
<view class="tip" @click="closeRewardPopup('1')">{{ $lang('components.nsBirthdayGift.viewNow') }}</view>
|
||||
</view>
|
||||
<view class="content" v-if="birthday.balance_type == 0 && birthday.balance > 0">
|
||||
<view class="info">
|
||||
<text class="num">
|
||||
{{ parseFloat(birthday.balance) }}
|
||||
<text class="type">元红包</text>
|
||||
<text class="type">{{ $lang('components.nsBirthdayGift.yuanRedPacket') }}</text>
|
||||
</text>
|
||||
<view class="desc">不可提现红包</view>
|
||||
<view class="desc">{{ $lang('components.nsBirthdayGift.nonWithdrawable') }}</view>
|
||||
</view>
|
||||
<view class="tip" @click="closeRewardPopup('2')">立即查看</view>
|
||||
<view class="tip" @click="closeRewardPopup('2')">{{ $lang('components.nsBirthdayGift.viewNow') }}</view>
|
||||
</view>
|
||||
<view class="content" v-if="birthday.balance_type == 1 && birthday.balance_money > 0">
|
||||
<view class="info">
|
||||
<text class="num">
|
||||
{{ parseFloat(birthday.balance_money) }}
|
||||
<text class="type">元红包</text>
|
||||
<text class="type">{{ $lang('components.nsBirthdayGift.yuanRedPacket') }}</text>
|
||||
</text>
|
||||
<view class="desc">可提现红包</view>
|
||||
<view class="desc">{{ $lang('components.nsBirthdayGift.withdrawable') }}</view>
|
||||
</view>
|
||||
<view class="tip" @click="closeRewardPopup('2')">立即查看</view>
|
||||
<view class="tip" @click="closeRewardPopup('2')">{{ $lang('components.nsBirthdayGift.viewNow') }}</view>
|
||||
</view>
|
||||
|
||||
<block v-if="birthday.coupon_list.length > 0">
|
||||
@@ -54,18 +54,18 @@
|
||||
<block v-if="item.type == 'reward'">
|
||||
<text class="num">
|
||||
{{ parseFloat(item.money) }}
|
||||
<text class="type">元优惠劵</text>
|
||||
<text class="type">{{ $lang('components.nsBirthdayGift.yuanCoupon') }}</text>
|
||||
</text>
|
||||
</block>
|
||||
<block v-else-if="item.type == 'discount'">
|
||||
<text class="num">
|
||||
{{ item.discount }}
|
||||
<text class="type">折</text>
|
||||
<text class="type">{{ $lang('components.nsBirthdayGift.discount') }}</text>
|
||||
</text>
|
||||
</block>
|
||||
<view class="desc">用于下单时抵现或兑换商品等</view>
|
||||
<view class="desc">{{ $lang('components.nsBirthdayGift.couponDesc') }}</view>
|
||||
</view>
|
||||
<view class="tip" @click="closeRewardPopup('3')">立即查看</view>
|
||||
<view class="tip" @click="closeRewardPopup('3')">{{ $lang('components.nsBirthdayGift.viewNow') }}</view>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
|
||||
@@ -11,38 +11,38 @@
|
||||
</view>
|
||||
<view class="content-title-name" v-if="memberInfo">Dear {{ memberInfo.nickname }}</view>
|
||||
<view class="content-title-hint" v-if="newgift.remark">{{ newgift.remark }}</view>
|
||||
<view class="content-title-hint" v-else>感谢您一直以来的支持,为回馈会员,商城{{ newgift.activity_name ? newgift.activity_name : 'xx' }}节日,为您提供以下福利</view>
|
||||
<view class="content-title-hint" v-else>{{ $lang('components.nsNewGift.thankYouHint', { activityName: newgift.activity_name || 'xx' }) }}</view>
|
||||
<scroll-view scroll-y="true" class="register-box">
|
||||
<view :class="introduction > 38 ? 'reward-content' : 'reward-content-two'">
|
||||
<view class="content" v-if="newgift.award_list.point > 0">
|
||||
<view class="info">
|
||||
<text class="num">
|
||||
{{ newgift.award_list.point }}
|
||||
<text class="type">积分</text>
|
||||
<text class="type">{{ $lang('components.nsNewGift.points') }}</text>
|
||||
</text>
|
||||
<view class="desc">用于参与活动购买商品时抵扣</view>
|
||||
<view class="desc">{{ $lang('components.nsNewGift.pointDesc') }}</view>
|
||||
</view>
|
||||
<view class="tip" @click="closeRewardPopup('1')">立即查看</view>
|
||||
<view class="tip" @click="closeRewardPopup('1')">{{ $lang('components.nsNewGift.viewNow') }}</view>
|
||||
</view>
|
||||
<view class="content" v-if="newgift.award_list.balance_type == 0 && newgift.award_list.balance > 0">
|
||||
<view class="info">
|
||||
<text class="num">
|
||||
{{ newgift.award_list.balance | int }}
|
||||
<text class="type">元红包</text>
|
||||
<text class="type">{{ $lang('components.nsNewGift.yuanRedPacket') }}</text>
|
||||
</text>
|
||||
<view class="desc">不可提现红包</view>
|
||||
<view class="desc">{{ $lang('components.nsNewGift.nonWithdrawableDesc') }}</view>
|
||||
</view>
|
||||
<view class="tip" @click="closeRewardPopup('2')">立即查看</view>
|
||||
<view class="tip" @click="closeRewardPopup('2')">{{ $lang('components.nsNewGift.viewNow') }}</view>
|
||||
</view>
|
||||
<view class="content" v-if="newgift.award_list.balance_type == 1 && newgift.award_list.balance_money > 0">
|
||||
<view class="info">
|
||||
<text class="num">
|
||||
{{ newgift.award_list.balance_money | int }}
|
||||
<text class="type">元红包</text>
|
||||
<text class="type">{{ $lang('components.nsNewGift.yuanRedPacket') }}</text>
|
||||
</text>
|
||||
<view class="desc">可提现红包</view>
|
||||
<view class="desc">{{ $lang('components.nsNewGift.withdrawableDesc') }}</view>
|
||||
</view>
|
||||
<view class="tip" @click="closeRewardPopup('2')">立即查看</view>
|
||||
<view class="tip" @click="closeRewardPopup('2')">{{ $lang('components.nsNewGift.viewNow') }}</view>
|
||||
</view>
|
||||
<block v-if="newgift.award_list.coupon_list.length > 0">
|
||||
<block v-for="(item, index) in newgift.award_list.coupon_list" :key="index">
|
||||
@@ -50,15 +50,15 @@
|
||||
<view class="info">
|
||||
<text v-if="item.type == 'reward'" class="num">
|
||||
{{ parseFloat(item.money) }}
|
||||
<text class="type">元优惠劵</text>
|
||||
<text class="type">{{ $lang('components.nsNewGift.yuanCoupon') }}</text>
|
||||
</text>
|
||||
<text v-else-if="item.type == 'discount'" class="num">
|
||||
{{ item.discount | int }}
|
||||
<text class="type">折</text>
|
||||
<text class="type">{{ $lang('components.nsNewGift.discount') }}</text>
|
||||
</text>
|
||||
<view class="desc">用于下单时抵现或兑换商品等</view>
|
||||
<view class="desc">{{ $lang('components.nsNewGift.couponDesc') }}</view>
|
||||
</view>
|
||||
<view class="tip" @click="closeRewardPopup('3')">立即查看</view>
|
||||
<view class="tip" @click="closeRewardPopup('3')">{{ $lang('components.nsNewGift.viewNow') }}</view>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
v-if="type == 'fenxiao' && payList && payList.balance">
|
||||
<view class="item-top">
|
||||
<view class="item-left">
|
||||
<view class="title-text">提现到余额</view>
|
||||
<view class="title-text">{{ $lang('withdrawToBalance') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -22,19 +22,19 @@
|
||||
</view>
|
||||
<view class="content-bottom">
|
||||
<block v-if="item.withdraw_type == 'alipay'">
|
||||
提现账号:{{ item.bank_account }}
|
||||
{{ $lang('withdrawalAccountLabel', { account: item.bank_account }) }}
|
||||
</block>
|
||||
<block v-if="item.withdraw_type == 'bank'">
|
||||
银行名称 :{{ item.branch_bank_name }}
|
||||
{{ $lang('bankNameLabel', { bankName: item.branch_bank_name }) }}
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-btn" @click.stop="editAccount('edit', item.id)">修改</view>
|
||||
<view class="item-btn" @click.stop="editAccount('edit', item.id)">{{ $lang('update') }}</view>
|
||||
</view>
|
||||
|
||||
<view class="item-bottom">
|
||||
<view class="account-default" @click="setDefault(item.id, item.is_default)">
|
||||
<text class="default">设为默认账户</text>
|
||||
<text class="default">{{ $lang('setAsDefault') }}</text>
|
||||
<switch v-if="item.is_default == 1" checked disabled style="transform:scale(0.7)"
|
||||
:color="themeStyle.main_color" />
|
||||
<switch v-else style="transform:scale(0.7)" :color="themeStyle.main_color" />
|
||||
@@ -52,7 +52,7 @@
|
||||
v-if="dataList.length <= 0 && (type != 'fenxiao' || (type == 'fenxiao' && payList && !payList.balance))"
|
||||
class="empty-box">
|
||||
<image :src="$util.img('public/uniapp/member/account/empty.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
<view class="tips">暂无账户信息,请添加</view>
|
||||
<view class="tips">{{ $lang('emptyTip') }}</view>
|
||||
<button type="primary" class="add-account" @click="editAccount('add')">{{ $lang('newAddAccount')
|
||||
}}</button>
|
||||
</view>
|
||||
@@ -103,8 +103,8 @@ export default {
|
||||
},
|
||||
deleteAccount(id) {
|
||||
uni.showModal({
|
||||
title: '操作提示',
|
||||
content: '确定要删除该账户吗?',
|
||||
title: this.$lang('operationTip'),
|
||||
content: this.$lang('confirmDeleteAccount'),
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
this.$api.sendRequest({
|
||||
@@ -115,12 +115,12 @@ export default {
|
||||
success: result => {
|
||||
if (result.code == 0) {
|
||||
this.$util.showToast({
|
||||
title: '删除成功'
|
||||
title: this.$lang('deleteSuccess')
|
||||
});
|
||||
this.$refs.mescroll.refresh();
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '删除失败'
|
||||
title: this.$lang('deleteFailed')
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -181,9 +181,9 @@ export default {
|
||||
this.dataList = this.dataList.concat(newArr); //追加新数据
|
||||
|
||||
let withdrawType = {
|
||||
bank: '银行',
|
||||
alipay: '支付宝',
|
||||
wechatpay: '微信'
|
||||
bank: this.$lang('withdrawTypeBank'),
|
||||
alipay: this.$lang('withdrawTypeAlipay'),
|
||||
wechatpay: this.$lang('withdrawTypeWechat')
|
||||
};
|
||||
|
||||
this.dataList.forEach(item => {
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
|
||||
<view class="address-item-bottom">
|
||||
<view class="address-default" @click="setDefault(item.id, item.is_default)">
|
||||
<text class="default" v-if="localType == 2 && item.local_data">设为默认地址</text>
|
||||
<text class="default" v-else>设为默认地址</text>
|
||||
<text class="default" v-if="localType == 2 && item.local_data">{{ $lang('setAsDefault') }}</text>
|
||||
<text class="default" v-else>{{ $lang('setAsDefault') }}</text>
|
||||
<switch v-if="item.is_default == 1" checked disabled style="transform:scale(0.7)"
|
||||
:color="themeStyle.main_color" />
|
||||
<switch v-else style="transform:scale(0.7)" :color="themeStyle.main_color" />
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
<view v-if="addressList.length == 0 && showEmpty" class="empty-box">
|
||||
<image :src="$util.img('public/uniapp/member/address/empty.png')" mode="widthFix" show-menu-by-longpress/>
|
||||
<view class="tips">暂无收货地址,请添加</view>
|
||||
<view class="tips">{{ $lang('emptyTip') }}</view>
|
||||
|
||||
<button type="primary" class="add-address" @click="addAddress('add')">{{ $lang('newAddAddress')
|
||||
}}</button>
|
||||
@@ -192,13 +192,13 @@ export default {
|
||||
/* 删除地址信息 */
|
||||
deleteAddress(id, is_default) {
|
||||
uni.showModal({
|
||||
title: '操作提示',
|
||||
content: '确定要删除该地址吗?',
|
||||
title: this.$lang('operationTip'),
|
||||
content: this.$lang('confirmDelete'),
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
if (is_default == 1) {
|
||||
this.$util.showToast({
|
||||
title: '默认地址,不能删除'
|
||||
title: this.$lang('cannotDeleteDefault')
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -210,11 +210,11 @@ export default {
|
||||
success: res => {
|
||||
if (res.code == 0) {
|
||||
this.$util.showToast({
|
||||
title: '删除成功'
|
||||
title: this.$lang('deleteSuccess')
|
||||
});
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '删除失败'
|
||||
title: this.$lang('deleteFail')
|
||||
});
|
||||
}
|
||||
this.$refs.mescroll.refresh();
|
||||
@@ -244,7 +244,7 @@ export default {
|
||||
this.addressList = [];
|
||||
this.$refs.mescroll.refresh();
|
||||
this.$util.showToast({
|
||||
title: '修改默认地址成功'
|
||||
title: this.$lang('setDefaultSuccess')
|
||||
});
|
||||
}
|
||||
} else {
|
||||
@@ -290,7 +290,7 @@ export default {
|
||||
});
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: res.errMsg == 'openAddress:function not implement' ? 'PC端微信不支持一键获取地址' : res.errMsg
|
||||
title: res.errMsg == 'openAddress:function not implement' ? this.$lang('pcWechatNotSupportGetAddress') : res.errMsg
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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">
|
||||
<text class="tx-to">提现到</text>
|
||||
<view class="tx-bank" v-if="bankAccountInfo.withdraw_type == 'wechatpay'">微信默认钱包</view>
|
||||
<text class="tx-to">{{ $lang('member.applyWithdrawal.withdrawTo') }}</text>
|
||||
<view class="tx-bank" v-if="bankAccountInfo.withdraw_type == 'wechatpay'">{{ $lang('member.applyWithdrawal.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,12 +16,12 @@
|
||||
</image>
|
||||
</view>
|
||||
</view>
|
||||
<text class="tx-to" v-else>请添加提现方式</text>
|
||||
<text class="tx-to" v-else>{{ $lang('member.applyWithdrawal.pleaseAddWithdrawMethod') }}</text>
|
||||
<view class="iconfont icon-right"></view>
|
||||
</view>
|
||||
<view class="empty-box"></view>
|
||||
<view class="withdraw-wrap">
|
||||
<view class="withdraw-wrap-title">提现金额</view>
|
||||
<view class="withdraw-wrap-title">{{ $lang('member.applyWithdrawal.withdrawAmount') }}</view>
|
||||
<view class="money-wrap">
|
||||
<text class="unit">{{ $lang('common.currencySymbol') }}</text>
|
||||
<input type="digit" class="withdraw-money" v-model="withdrawMoney" />
|
||||
@@ -31,22 +31,21 @@
|
||||
</view>
|
||||
<view class="bootom">
|
||||
<view>
|
||||
<text class="color-tip">可提现余额:{{ $lang('common.currencySymbol') }}{{ withdrawInfo.member_info.balance_money | moneyFormat }}</text>
|
||||
<text class="all-tx color-base-text" @click="allTx">全部提现</text>
|
||||
<text class="color-tip">{{ $lang('member.applyWithdrawal.withdrawableBalance') }}{{ $lang('common.currencySymbol') }}{{ withdrawInfo.member_info.balance_money | moneyFormat }}</text>
|
||||
<text class="all-tx color-base-text" @click="allTx">{{ $lang('member.applyWithdrawal.withdrawAll') }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="desc">
|
||||
<text>最小提现金额为{{ $lang('common.currencySymbol') }}{{ withdrawInfo.config.min | moneyFormat }}</text>
|
||||
<text>,手续费为{{ withdrawInfo.config.rate + '%' }}</text>
|
||||
<text>{{ $lang('member.applyWithdrawal.minWithdrawAndFeeTip', { min: $lang('common.currencySymbol') + (withdrawInfo.config.min | moneyFormat), rate: withdrawInfo.config.rate + '%' }) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="btn color-base-border ns-gradient-otherpages-member-widthdrawal-withdrawal" :class="{ disabled: withdrawMoney == '' || withdrawMoney == 0 }" @click="withdraw">
|
||||
提现
|
||||
{{ $lang('member.applyWithdrawal.withdraw') }}
|
||||
</view>
|
||||
|
||||
<view class="recoend" @click="toWithdrawal">
|
||||
<view class="recoend-con">提现记录</view>
|
||||
<view class="recoend-con">{{ $lang('member.applyWithdrawal.withdrawalRecords') }}</view>
|
||||
</view>
|
||||
<loading-cover ref="loadingCover"></loading-cover>
|
||||
</view>
|
||||
@@ -106,7 +105,7 @@
|
||||
this.withdrawInfo = res.data;
|
||||
if (this.withdrawInfo.config.is_use == 0) {
|
||||
this.$util.showToast({
|
||||
title: '未开启提现'
|
||||
title: this.$lang('member.applyWithdrawal.withdrawalNotEnabled')
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo(this.$util.MEMBER_PAGE_URL);
|
||||
@@ -136,19 +135,19 @@
|
||||
verify() {
|
||||
if (this.withdrawMoney == '' || this.withdrawMoney == 0 || isNaN(parseFloat(this.withdrawMoney))) {
|
||||
this.$util.showToast({
|
||||
title: '请输入提现金额'
|
||||
title: this.$lang('member.applyWithdrawal.pleaseEnterWithdrawAmount')
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (parseFloat(this.withdrawMoney) > parseFloat(this.withdrawInfo.member_info.balance_money)) {
|
||||
this.$util.showToast({
|
||||
title: '提现金额超出可提现金额'
|
||||
title: this.$lang('member.applyWithdrawal.withdrawAmountExceedsBalance')
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (parseFloat(this.withdrawMoney) < parseFloat(this.withdrawInfo.config.min)) {
|
||||
this.$util.showToast({
|
||||
title: '提现金额小于最低提现金额'
|
||||
title: this.$lang('member.applyWithdrawal.withdrawAmountBelowMinimum')
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -157,7 +156,7 @@
|
||||
withdraw() {
|
||||
if (!this.bankAccountInfo.withdraw_type) {
|
||||
this.$util.showToast({
|
||||
title: '请先添加提现方式'
|
||||
title: this.$lang('member.applyWithdrawal.pleaseAddWithdrawMethodFirst')
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -188,7 +187,7 @@
|
||||
success: res => {
|
||||
if (res.code >= 0) {
|
||||
this.$util.showToast({
|
||||
title: '提现申请成功'
|
||||
title: this.$lang('member.applyWithdrawal.withdrawApplySuccess')
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo(
|
||||
@@ -224,7 +223,7 @@
|
||||
success: res => {
|
||||
if (res.code >= 0) {
|
||||
this.$util.showToast({
|
||||
title: '提现申请成功'
|
||||
title: this.$lang('member.applyWithdrawal.withdrawApplySuccess')
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo('/pages_tool/member/withdrawal', {},
|
||||
|
||||
@@ -37,13 +37,13 @@
|
||||
<text>{{ $util.timeStampTurnTime(item.create_time) }}</text>
|
||||
</view>
|
||||
<view class="balances-num">
|
||||
<text :class="item.account_data > 0 ? 'color-base-text' : ''">{{ item.account_data > 0 ?
|
||||
'+' + item.account_data : item.account_data }}元</text>
|
||||
<text :class="item.account_data > 0 ? 'color-base-text' : ''">{{ (item.account_data > 0 ?
|
||||
'+' + item.account_data : item.account_data) + $lang('yuan') }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<block v-else><ns-empty :isIndex="false" text="暂无余额明细"></ns-empty></block>
|
||||
<block v-else><ns-empty :isIndex="false" :text="$lang('emptyTips')"></ns-empty></block>
|
||||
<!-- 无明细列表 -->
|
||||
</block>
|
||||
</mescroll-uni>
|
||||
@@ -62,13 +62,13 @@ export default {
|
||||
return {
|
||||
dataList: [],
|
||||
statusList: [{
|
||||
name: '全部',
|
||||
name: this.$lang('filterAll'),
|
||||
id: '0'
|
||||
}, {
|
||||
name: '收入',
|
||||
name: this.$lang('filterIncome'),
|
||||
id: '1'
|
||||
}, {
|
||||
name: '支出',
|
||||
name: this.$lang('filterExpense'),
|
||||
id: '2'
|
||||
}],
|
||||
scrollInto: '',
|
||||
@@ -79,7 +79,7 @@ export default {
|
||||
date: ''
|
||||
},
|
||||
balanceType: [{
|
||||
label: '全部',
|
||||
label: this.$lang('filterAll'),
|
||||
value: '0'
|
||||
}], //积分类型
|
||||
balanceIndex: 0,
|
||||
@@ -104,7 +104,7 @@ export default {
|
||||
bindDateChange: function (e) {
|
||||
var temp = e.target.value;
|
||||
var tempArr = temp.split('-');
|
||||
this.date = tempArr[0] + '年' + tempArr[1] + '月';
|
||||
this.date = this.$lang('dateFormatYM', { year: tempArr[0], month: tempArr[1] });
|
||||
this.searchType.date = e.target.value;
|
||||
this.$refs.mescroll.refresh();
|
||||
},
|
||||
@@ -121,7 +121,7 @@ export default {
|
||||
}
|
||||
month = month > 9 ? month : '0' + month;
|
||||
day = day > 9 ? day : '0' + day;
|
||||
return `${year}年${month}月`;
|
||||
return this.$lang('dateFormatYM', { year, month });
|
||||
},
|
||||
bindPickerChange(e) {
|
||||
this.balanceIndex = e.detail.value;
|
||||
@@ -135,7 +135,7 @@ export default {
|
||||
success: res => {
|
||||
let balanceType = Object.assign(res.balance, res.balance_money),
|
||||
typeArr = [{
|
||||
label: '全部',
|
||||
label: this.$lang('filterAll'),
|
||||
value: '0'
|
||||
}];
|
||||
for (var index in balanceType) {
|
||||
|
||||
@@ -5,16 +5,16 @@
|
||||
<view class="cancelstatus-box">
|
||||
<view class="cancelstatus-box-sort color-base-bg">1</view>
|
||||
<view class="cancelstatus-box-con">
|
||||
<view class="cancelstatus-box-name">提交申请</view>
|
||||
<view class="cancelstatus-box-info">您已提交申请,请耐心等待~</view>
|
||||
<view class="cancelstatus-box-name">{{ $lang('member.cancelStatus.step1Name') }}</view>
|
||||
<view class="cancelstatus-box-info">{{ $lang('member.cancelStatus.step1Desc') }}</view>
|
||||
</view>
|
||||
<view class="cancelstatus-box-line color-base-bg"></view>
|
||||
</view>
|
||||
<view class="cancelstatus-box">
|
||||
<view class="cancelstatus-box-sort color-base-bg">2</view>
|
||||
<view class="cancelstatus-box-con">
|
||||
<view class="cancelstatus-box-name">等待审核</view>
|
||||
<view class="cancelstatus-box-info">等待审核中,审核通过后您的账号将直接被删除</view>
|
||||
<view class="cancelstatus-box-name">{{ $lang('member.cancelStatus.step2Name') }}</view>
|
||||
<view class="cancelstatus-box-info">{{ $lang('member.cancelStatus.step2Desc') }}</view>
|
||||
</view>
|
||||
<view class="cancelstatus-box-line color-base-bg" :class="{ 'opacity-4': state == 0 }"></view>
|
||||
</view>
|
||||
@@ -23,14 +23,14 @@
|
||||
3
|
||||
</view>
|
||||
<view class="cancelstatus-box-con">
|
||||
<view class="cancelstatus-box-name">审核通过,注销完成</view>
|
||||
<view class="cancelstatus-box-info">您已成功注销账号,期待下一次与您相遇</view>
|
||||
<view class="cancelstatus-box-name">{{ $lang('member.cancelStatus.step3Name') }}</view>
|
||||
<view class="cancelstatus-box-info">{{ $lang('member.cancelStatus.step3Desc') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cancelstatus-btn" v-if="state == 0">
|
||||
<button type="primary" @click="back">返回</button>
|
||||
<button class="color-base-bg" @click="revoke">撤销申请</button>
|
||||
<button type="primary" @click="back">{{ $lang('member.cancelStatus.back') }}</button>
|
||||
<button class="color-base-bg" @click="revoke">{{ $lang('member.cancelStatus.revokeApplication') }}</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -81,8 +81,8 @@
|
||||
},
|
||||
revoke() {
|
||||
uni.showModal({
|
||||
title: '风险提示',
|
||||
content: '确定要撤销申请吗?',
|
||||
title: this.$lang('member.cancelStatus.riskTip'),
|
||||
content: this.$lang('member.cancelStatus.revokeConfirm'),
|
||||
confirmColor: '#000000',
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
|
||||
@@ -15,32 +15,32 @@
|
||||
|
||||
<view class="refund-form">
|
||||
<view class="item-wrap" @click="openPopup('refundReasonPopup')">
|
||||
<view class="label">退款原因:</view>
|
||||
<view class="label">{{ $lang('order.refundBatch.form.refundReason') }}</view>
|
||||
<view class="cont reason">
|
||||
<text class="color-tip" v-if="!refund_reason.length">请选择</text>
|
||||
<text class="color-tip" v-if="!refund_reason.length">{{ $lang('order.refundBatch.form.pleaseSelect') }}</text>
|
||||
<text class="color-tip" v-else>{{ refund_reason }}</text>
|
||||
</view>
|
||||
<text class="iconfont icon-right"></text>
|
||||
</view>
|
||||
<view class="item-wrap">
|
||||
<view class="label">退款方式:</view>
|
||||
<view class="cont color-base-text" v-if="refund_type == 1">退款无需退货</view>
|
||||
<view class="cont color-base-text" v-else>退货退款</view>
|
||||
<view class="label">{{ $lang('order.refundBatch.form.refundType') }}</view>
|
||||
<view class="cont color-base-text" v-if="refund_type == 1">{{ $lang('order.refundBatch.form.refundOnly') }}</view>
|
||||
<view class="cont color-base-text" v-else>{{ $lang('order.refundBatch.form.returnRefund') }}</view>
|
||||
</view>
|
||||
<view class="item-wrap">
|
||||
<view class="label">退款金额:</view>
|
||||
<view class="label">{{ $lang('order.refundBatch.form.refundAmount') }}</view>
|
||||
<view class="cont color-base-text">{{ $lang('common.currencySymbol') }}{{ refund_data.refund_money }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="refund-form">
|
||||
<view class="item-wrap"><view class="label active">退款说明</view></view>
|
||||
<view class="item-wrap"><view class="label active">{{ $lang('order.refundBatch.form.refundRemark') }}</view></view>
|
||||
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<textarea
|
||||
v-if="!showText"
|
||||
class="newText"
|
||||
placeholder="请输入退款说明(选填)"
|
||||
:placeholder="$lang('order.refundBatch.form.remarkPlaceholder')"
|
||||
placeholder-class="color-tip font-size-tag"
|
||||
:auto-height="true"
|
||||
v-model="refund_remark"
|
||||
@@ -49,7 +49,7 @@
|
||||
<!-- #ifdef H5 -->
|
||||
<textarea
|
||||
class="newText"
|
||||
placeholder="请输入退款说明(选填)"
|
||||
:placeholder="$lang('order.refundBatch.form.remarkPlaceholder')"
|
||||
@blur="textBlur()"
|
||||
placeholder-class="color-tip font-size-tag"
|
||||
:auto-height="true"
|
||||
@@ -68,7 +68,7 @@
|
||||
<uni-popup ref="refundReasonPopup" type="bottom" @change="change()">
|
||||
<view class="refund-reason-popup popup">
|
||||
<view class="popup-header">
|
||||
<view><text class="tit">退款原因</text></view>
|
||||
<view><text class="tit">{{ $lang('order.refundBatch.reasonPopup.title') }}</text></view>
|
||||
<view class="align-right" @click="closePopup('refundReasonPopup')"><text class="iconfont icon-close"></text></view>
|
||||
</view>
|
||||
<view class="popup-body">
|
||||
@@ -82,7 +82,7 @@
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="popup-footer" :class="{ 'bottom-safe-area': isIphoneX }">
|
||||
<view class="confirm-btn color-base-bg" @click="closePopup('refundReasonPopup')">确定</view>
|
||||
<view class="confirm-btn color-base-bg" @click="closePopup('refundReasonPopup')">{{ $lang('order.refundBatch.reasonPopup.confirm') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
@@ -164,7 +164,7 @@ export default {
|
||||
this.refund_data = res.data;
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
} else {
|
||||
this.$util.showToast({ title: '未获取到该订单项退款信息' });
|
||||
this.$util.showToast({ title: this.$lang('order.refundBatch.toast.noRefundInfo') });
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo('/pages_order/list');
|
||||
}, 1000);
|
||||
@@ -241,7 +241,7 @@ export default {
|
||||
},
|
||||
verify() {
|
||||
if (this.refund_reason == '') {
|
||||
this.$util.showToast({ title: '请选择退款原因' });
|
||||
this.$util.showToast({ title: this.$lang('order.refundBatch.validate.pleaseSelectRefundReason') });
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -13,18 +13,18 @@
|
||||
<view class="payment-item" v-for="(item, index) in payTypeList" :key="index" @click="payIndex = index">
|
||||
<view>
|
||||
<text class="iconfont" :class="item.icon"></text>
|
||||
<text class="name">{{ item.name }}</text>
|
||||
<text class="name">{{ $lang('pay.cashier.' + item.type) }}</text>
|
||||
</view>
|
||||
<text class="iconfont" :class="payIndex == index ? 'icon-yuan_checked color-base-text' : 'icon-checkboxblank'"></text>
|
||||
</view>
|
||||
</view>
|
||||
<button type="primary" @click="confirm">确认支付</button>
|
||||
<button type="primary" @click="confirm">{{ $lang('pay.cashier.confirmPay') }}</button>
|
||||
</block>
|
||||
<view v-else class="empty">店铺尚未配置支付方式!</view>
|
||||
<view v-else class="empty">{{ $lang('pay.cashier.noPayMethodConfigured') }}</view>
|
||||
</block>
|
||||
<ns-empty text="该支付单据已支付" :is-index="true" v-else></ns-empty>
|
||||
<ns-empty :text="$lang('pay.cashier.orderAlreadyPaid')" :is-index="true" v-else></ns-empty>
|
||||
</block>
|
||||
<ns-empty text="未获取到支付信息" :is-index="true" v-else></ns-empty>
|
||||
<ns-empty :text="$lang('pay.cashier.noPayInfo')" :is-index="true" v-else></ns-empty>
|
||||
<ns-login ref="login"></ns-login>
|
||||
</view>
|
||||
</template>
|
||||
@@ -131,12 +131,12 @@ export default {
|
||||
}
|
||||
if (this.payTypeList.length == 0 && this.payInfo.pay_money > 0) {
|
||||
this.$util.showToast({
|
||||
title: '请选择支付方式!'
|
||||
title: this.$lang('pay.cashier.pleaseSelectPayMethod')
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.showLoading({
|
||||
title: '支付中...',
|
||||
title: this.$lang('pay.cashier.paying'),
|
||||
mask: true
|
||||
});
|
||||
this.pay();
|
||||
@@ -265,9 +265,9 @@ export default {
|
||||
fail: res => {
|
||||
this.flag = false;
|
||||
if (res.errMsg == 'requestPayment:fail cancel') {
|
||||
this.$util.showToast({ title: '您已取消支付' });
|
||||
this.$util.showToast({ title: this.$lang('pay.cashier.paymentCancelled') });
|
||||
} else {
|
||||
uni.showModal({ content: '支付失败,失败原因: ' + res.errMsg, showCancel: false });
|
||||
uni.showModal({ content: this.$lang('pay.cashier.paymentFailed', { reason: res.errMsg }), showCancel: false });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<view class="result-box">
|
||||
<template v-if="payInfo.pay_status">
|
||||
<image :src="$util.img('public/uniapp/pay/pay_success.png')" mode="widthFix" lazy-load="true" class="result-image" show-menu-by-longpress/>
|
||||
<view class="msg success">{{ $lang('paymentSuccess') }}</view>
|
||||
<view class="msg success">{{ $lang('pay.result.paymentSuccess') }}</view>
|
||||
<view class="pay-amount">
|
||||
<text class="unit price-style small">{{ $lang('common.currencySymbol') }}</text>
|
||||
<text class="price-style large">{{ parseFloat(payInfo.pay_money).toFixed(2).split(".")[0] }}</text>
|
||||
@@ -13,43 +13,43 @@
|
||||
</template>
|
||||
<template v-else>
|
||||
<image :src="$util.img('public/uniapp/pay/pay_fail.png')" mode="widthFix" class="result-image" show-menu-by-longpress/>
|
||||
<view class="msg fail">{{ $lang('paymentFail') }}</view>
|
||||
<view class="msg fail">{{ $lang('pay.result.paymentFail') }}</view>
|
||||
</template>
|
||||
|
||||
<view class="consume-box" v-if="addonIsExist.memberconsume && consumeStatus == 1 && payInfo.pay_status">
|
||||
<view class="consume-head">
|
||||
<view class="consume-head-text">恭喜您获得</view>
|
||||
<view class="consume-head-text">{{ $lang('pay.result.congratulations') }}</view>
|
||||
</view>
|
||||
<view class="consume-list">
|
||||
<view class="consume-item" v-if="consumeInfo.point_num > 0">
|
||||
<image :src="$util.img('public/uniapp/pay/point.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
<view class="consume-value color-base-text">{{ consumeInfo.point_num }}</view>
|
||||
<view class="consume-type">积分</view>
|
||||
<view class="consume-type">{{ $lang('pay.result.points') }}</view>
|
||||
</view>
|
||||
<view class="consume-item" v-if="consumeInfo.growth_num > 0">
|
||||
<image :src="$util.img('public/uniapp/pay/growth.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
<view class="consume-value color-base-text">{{ consumeInfo.growth_num }}</view>
|
||||
<view class="consume-type">成长值</view>
|
||||
<view class="consume-type">{{ $lang('pay.result.growthValue') }}</view>
|
||||
</view>
|
||||
<view class="consume-item" v-if="consumeInfo.coupon_list.length > 0">
|
||||
<image :src="$util.img('public/uniapp/pay/coupon.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
<view class="consume-value color-base-text">{{ consumeInfo.coupon_list.length }}</view>
|
||||
<view class="consume-type">张优惠券</view>
|
||||
<view class="consume-type">{{ $lang('pay.result.couponsCount', { count: consumeInfo.coupon_list.length }) }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="action">
|
||||
<template v-if="storeToken">
|
||||
<view v-if="paySource == 'recharge'" class="btn" @click="toRecharge()">充值记录</view>
|
||||
<view v-else-if="paySource == 'membercard'" class="btn" @click="toCard()">会员卡</view>
|
||||
<view v-else-if="paySource == 'presale'" class="btn" @click="toPresaleOrder()">查看订单</view>
|
||||
<view v-else-if="paySource == 'giftcard'" class="btn" @click="toOrder()">查看订单</view>
|
||||
<view v-else-if="paySource == 'pointexchange'" class="btn" @click="toExchangeOrder()">查看订单
|
||||
<view v-if="paySource == 'recharge'" class="btn" @click="toRecharge()">{{ $lang('pay.result.rechargeRecords') }}</view>
|
||||
<view v-else-if="paySource == 'membercard'" class="btn" @click="toCard()">{{ $lang('pay.result.memberCard') }}</view>
|
||||
<view v-else-if="paySource == 'presale'" class="btn" @click="toPresaleOrder()">{{ $lang('pay.result.viewOrder') }}</view>
|
||||
<view v-else-if="paySource == 'giftcard'" class="btn" @click="toOrder()">{{ $lang('pay.result.viewOrder') }}</view>
|
||||
<view v-else-if="paySource == 'pointexchange'" class="btn" @click="toExchangeOrder()">{{ $lang('pay.result.viewOrder') }}
|
||||
</view>
|
||||
<view v-else class="btn" @click="toOrderDetail(payInfo.order_id)">查看订单</view>
|
||||
<view v-else class="btn" @click="toOrderDetail(payInfo.order_id)">{{ $lang('pay.result.viewOrder') }}</view>
|
||||
</template>
|
||||
<view class="btn go-home" @click="goHome()">{{ $lang('goHome') }}</view>
|
||||
<view class="btn go-home" @click="goHome()">{{ $lang('pay.result.goHome') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '未获取到支付信息!'
|
||||
title: this.$lang('pay.result.noPayInfo')
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL, {}, 'reLaunch');
|
||||
|
||||
Reference in New Issue
Block a user