fix: 修复多页面语言包key路径错误问题

统一修正所有页面中调用语言包时的路径命名,将短横线/下划线格式调整为正确的嵌套路径格式,确保语言文本可以正常加载
This commit is contained in:
2026-07-03 17:02:43 +08:00
parent a27e3518da
commit 92e8823566
11 changed files with 129 additions and 129 deletions

View File

@@ -12,24 +12,24 @@
<!-- PDF 文件预览 -->
<view v-if="fileType === 'pdf'" class="file-viewer">
<web-view v-if="fileUrl" :src="fileUrl"></web-view>
<view v-else class="error-message">{{ $lang('filePreview.fileUrlNotExist') }}</view>
<view v-else class="error-message">{{ $lang('file-preview.file-preview.fileUrlNotExist') }}</view>
</view>
<!-- Word 文件预览 -->
<view v-else-if="fileType === 'word'" class="file-viewer">
<web-view v-if="fileUrl" :src="fileUrl"></web-view>
<view v-else class="error-message">{{ $lang('filePreview.fileUrlNotExist') }}</view>
<view v-else class="error-message">{{ $lang('file-preview.file-preview.fileUrlNotExist') }}</view>
</view>
<!-- 视频文件预览 -->
<view v-else-if="fileType === 'video'" class="video-viewer">
<video v-if="fileUrl" :src="fileUrl" controls autoplay class="video-player"></video>
<view v-else class="error-message">{{ $lang('filePreview.videoUrlNotExist') }}</view>
<view v-else class="error-message">{{ $lang('file-preview.file-preview.videoUrlNotExist') }}</view>
</view>
<!-- 其他文件类型 -->
<view v-else class="file-viewer">
<view class="error-message">{{ $lang('filePreview.unsupportedFileType') }}</view>
<view class="error-message">{{ $lang('file-preview.file-preview.unsupportedFileType') }}</view>
</view>
</view>
</view>

View File

@@ -2,7 +2,7 @@
<view class="page" :style="themeColor">
<view class="closeBox">
<image :src="$util.img('public/uniapp/goods/not_exist.png')" mode="widthFix" show-menu-by-longpress></image>
<text class="close-title">{{ $lang('goods.notExist.message') }}</text>
<text class="close-title">{{ $lang('goods.not_exist.notExist.message') }}</text>
</view>
</view>
</template>

View File

@@ -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">{{ $lang('member.applyWithdrawal.withdrawTo') }}</text>
<view class="tx-bank" v-if="bankAccountInfo.withdraw_type == 'wechatpay'">{{ $lang('member.applyWithdrawal.wechatDefaultWallet') }}</view>
<text class="tx-to">{{ $lang('member.apply_withdrawal.withdrawTo') }}</text>
<view class="tx-bank" v-if="bankAccountInfo.withdraw_type == 'wechatpay'">{{ $lang('member.apply_withdrawal.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>{{ $lang('member.applyWithdrawal.pleaseAddWithdrawMethod') }}</text>
<text class="tx-to" v-else>{{ $lang('member.apply_withdrawal.pleaseAddWithdrawMethod') }}</text>
<view class="iconfont icon-right"></view>
</view>
<view class="empty-box"></view>
<view class="withdraw-wrap">
<view class="withdraw-wrap-title">{{ $lang('member.applyWithdrawal.withdrawAmount') }}</view>
<view class="withdraw-wrap-title">{{ $lang('member.apply_withdrawal.withdrawAmount') }}</view>
<view class="money-wrap">
<text class="unit">{{ $lang('common.currencySymbol') }}</text>
<input type="digit" class="withdraw-money" v-model="withdrawMoney" />
@@ -31,21 +31,21 @@
</view>
<view class="bootom">
<view>
<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>
<text class="color-tip">{{ $lang('member.apply_withdrawal.withdrawableBalance') }}{{ $lang('common.currencySymbol') }}{{ withdrawInfo.member_info.balance_money | moneyFormat }}</text>
<text class="all-tx color-base-text" @click="allTx">{{ $lang('member.apply_withdrawal.withdrawAll') }}</text>
</view>
</view>
<view class="desc">
<text>{{ $lang('member.applyWithdrawal.minWithdrawAndFeeTip', { min: $lang('common.currencySymbol') + (withdrawInfo.config.min | moneyFormat), rate: withdrawInfo.config.rate + '%' }) }}</text>
<text>{{ $lang('member.apply_withdrawal.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') }}
{{ $lang('member.apply_withdrawal.withdraw') }}
</view>
<view class="recoend" @click="toWithdrawal">
<view class="recoend-con">{{ $lang('member.applyWithdrawal.withdrawalRecords') }}</view>
<view class="recoend-con">{{ $lang('member.apply_withdrawal.withdrawalRecords') }}</view>
</view>
<loading-cover ref="loadingCover"></loading-cover>
</view>
@@ -105,7 +105,7 @@
this.withdrawInfo = res.data;
if (this.withdrawInfo.config.is_use == 0) {
this.$util.showToast({
title: this.$lang('member.applyWithdrawal.withdrawalNotEnabled')
title: this.$lang('member.apply_withdrawal.withdrawalNotEnabled')
});
setTimeout(() => {
this.$util.redirectTo(this.$util.MEMBER_PAGE_URL);
@@ -135,19 +135,19 @@
verify() {
if (this.withdrawMoney == '' || this.withdrawMoney == 0 || isNaN(parseFloat(this.withdrawMoney))) {
this.$util.showToast({
title: this.$lang('member.applyWithdrawal.pleaseEnterWithdrawAmount')
title: this.$lang('member.apply_withdrawal.pleaseEnterWithdrawAmount')
});
return false;
}
if (parseFloat(this.withdrawMoney) > parseFloat(this.withdrawInfo.member_info.balance_money)) {
this.$util.showToast({
title: this.$lang('member.applyWithdrawal.withdrawAmountExceedsBalance')
title: this.$lang('member.apply_withdrawal.withdrawAmountExceedsBalance')
});
return false;
}
if (parseFloat(this.withdrawMoney) < parseFloat(this.withdrawInfo.config.min)) {
this.$util.showToast({
title: this.$lang('member.applyWithdrawal.withdrawAmountBelowMinimum')
title: this.$lang('member.apply_withdrawal.withdrawAmountBelowMinimum')
});
return false;
}
@@ -156,7 +156,7 @@
withdraw() {
if (!this.bankAccountInfo.withdraw_type) {
this.$util.showToast({
title: this.$lang('member.applyWithdrawal.pleaseAddWithdrawMethodFirst')
title: this.$lang('member.apply_withdrawal.pleaseAddWithdrawMethodFirst')
});
return;
}
@@ -187,7 +187,7 @@
success: res => {
if (res.code >= 0) {
this.$util.showToast({
title: this.$lang('member.applyWithdrawal.withdrawApplySuccess')
title: this.$lang('member.apply_withdrawal.withdrawApplySuccess')
});
setTimeout(() => {
this.$util.redirectTo(
@@ -223,7 +223,7 @@
success: res => {
if (res.code >= 0) {
this.$util.showToast({
title: this.$lang('member.applyWithdrawal.withdrawApplySuccess')
title: this.$lang('member.apply_withdrawal.withdrawApplySuccess')
});
setTimeout(() => {
this.$util.redirectTo('/pages_tool/member/withdrawal', {},

View File

@@ -11,16 +11,16 @@
<view class="opection-box">
<block v-if="newImg == ''">
<!-- #ifdef MP-ALIPAY -->
<button type="primary" @click="uploadFace()">{{$lang('member.modifyFace.clickToUpload')}}</button>
<button type="primary" @click="uploadFace()">{{$lang('member.modify_face.clickToUpload')}}</button>
<!-- #endif -->
<!-- #ifndef MP-ALIPAY -->
<button type="primary" @click="chooseImage()">{{$lang('member.modifyFace.clickToUpload')}}</button>
<button type="primary" @click="chooseImage()">{{$lang('member.modify_face.clickToUpload')}}</button>
<!-- #endif -->
</block>
<block v-else>
<view class="opec">
<button size="mini" class="mini" type="primary" @click="save()">{{$lang('member.modifyFace.confirmSave')}}</button>
<button size="mini" class="mini" type="primary" @click="chooseImage()">{{$lang('member.modifyFace.reupload')}}</button>
<button size="mini" class="mini" type="primary" @click="save()">{{$lang('member.modify_face.confirmSave')}}</button>
<button size="mini" class="mini" type="primary" @click="chooseImage()">{{$lang('member.modify_face.reupload')}}</button>
</view>
</block>
</view>
@@ -92,7 +92,7 @@ export default {
},
fail: () => {
this.$util.showToast({
title: this.$lang('member.modifyFace.uploadFailed')
title: this.$lang('member.modify_face.uploadFailed')
});
}
});
@@ -114,7 +114,7 @@ export default {
this.memberInfo.headimg = this.imgurl;
this.$store.commit('setMemberInfo', this.memberInfo);
this.$util.showToast({
title: this.$lang('member.modifyFace.modifySuccess')
title: this.$lang('member.modify_face.modifySuccess')
});
setTimeout(() => {
this.$util.redirectTo('/pages_tool/member/info', {}, 'redirectTo');

View File

@@ -7,43 +7,43 @@
<!-- 状态0待审核1.待转账2已转账 -1拒绝' -->
<view class="item">
<view class="line-wrap">
<text class="label">{{ $lang('member.withdrawalDetail.currentStatus') }}</text>
<text class="label">{{ $lang('member.withdrawal_detail.currentStatus') }}</text>
<text class="value">{{ detail.status_name }}</text>
</view>
<view class="line-wrap">
<text class="label">{{ $lang('member.withdrawalDetail.transactionNo') }}</text>
<text class="label">{{ $lang('member.withdrawal_detail.transactionNo') }}</text>
<text class="value">{{ detail.withdraw_no }}</text>
</view>
<view class="line-wrap">
<text class="label">{{ $lang('member.withdrawalDetail.serviceFee') }}</text>
<text class="label">{{ $lang('member.withdrawal_detail.serviceFee') }}</text>
<text class="value">¥{{ detail.service_money }}</text>
</view>
<view class="line-wrap">
<text class="label">{{ $lang('member.withdrawalDetail.applyTime') }}</text>
<text class="label">{{ $lang('member.withdrawal_detail.applyTime') }}</text>
<text class="value">{{ $util.timeStampTurnTime(detail.apply_time) }}</text>
</view>
<view class="line-wrap" v-if="detail.status">
<text class="label">{{ $lang('member.withdrawalDetail.auditTime') }}</text>
<text class="label">{{ $lang('member.withdrawal_detail.auditTime') }}</text>
<text class="value">{{ $util.timeStampTurnTime(detail.audit_time) }}</text>
</view>
<view class="line-wrap" v-if="detail.bank_name">
<text class="label">{{ $lang('member.withdrawalDetail.bankName') }}</text>
<text class="label">{{ $lang('member.withdrawal_detail.bankName') }}</text>
<text class="value">{{ detail.bank_name }}</text>
</view>
<view class="line-wrap">
<text class="label">{{ $lang('member.withdrawalDetail.receivingAccount') }}</text>
<text class="label">{{ $lang('member.withdrawal_detail.receivingAccount') }}</text>
<text class="value">{{ detail.account_number }}</text>
</view>
<view class="line-wrap" v-if="detail.status == -1 && detail.refuse_reason">
<text class="label">{{ $lang('member.withdrawalDetail.refuseReason') }}</text>
<text class="label">{{ $lang('member.withdrawal_detail.refuseReason') }}</text>
<text class="value">{{ detail.refuse_reason }}</text>
</view>
<view class="line-wrap" v-if="detail.status == 2">
<text class="label">{{ $lang('member.withdrawalDetail.transferTypeName') }}</text>
<text class="label">{{ $lang('member.withdrawal_detail.transferTypeName') }}</text>
<text class="value">{{ detail.transfer_type_name }}</text>
</view>
<view class="line-wrap" v-if="detail.status == 2">
<text class="label">{{ $lang('member.withdrawalDetail.transferTime') }}</text>
<text class="label">{{ $lang('member.withdrawal_detail.transferTime') }}</text>
<text class="value">{{ $util.timeStampTurnTime(detail.payment_time) }}</text>
</view>
</view>

View File

@@ -15,32 +15,32 @@
<view class="refund-form">
<view class="item-wrap" @click="openPopup('refundReasonPopup')">
<view class="label">{{ $lang('order.refundBatch.form.refundReason') }}</view>
<view class="label">{{ $lang('order.refund_batch.form.refundReason') }}</view>
<view class="cont reason">
<text class="color-tip" v-if="!refund_reason.length">{{ $lang('order.refundBatch.form.pleaseSelect') }}</text>
<text class="color-tip" v-if="!refund_reason.length">{{ $lang('order.refund_batch.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">{{ $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 class="label">{{ $lang('order.refund_batch.form.refundType') }}</view>
<view class="cont color-base-text" v-if="refund_type == 1">{{ $lang('order.refund_batch.form.refundOnly') }}</view>
<view class="cont color-base-text" v-else>{{ $lang('order.refund_batch.form.returnRefund') }}</view>
</view>
<view class="item-wrap">
<view class="label">{{ $lang('order.refundBatch.form.refundAmount') }}</view>
<view class="label">{{ $lang('order.refund_batch.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">{{ $lang('order.refundBatch.form.refundRemark') }}</view></view>
<view class="item-wrap"><view class="label active">{{ $lang('order.refund_batch.form.refundRemark') }}</view></view>
<!-- #ifdef MP-WEIXIN -->
<textarea
v-if="!showText"
class="newText"
:placeholder="$lang('order.refundBatch.form.remarkPlaceholder')"
:placeholder="$lang('order.refund_batch.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="$lang('order.refundBatch.form.remarkPlaceholder')"
:placeholder="$lang('order.refund_batch.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">{{ $lang('order.refundBatch.reasonPopup.title') }}</text></view>
<view><text class="tit">{{ $lang('order.refund_batch.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')">{{ $lang('order.refundBatch.reasonPopup.confirm') }}</view>
<view class="confirm-btn color-base-bg" @click="closePopup('refundReasonPopup')">{{ $lang('order.refund_batch.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.$lang('order.refundBatch.toast.noRefundInfo') });
this.$util.showToast({ title: this.$lang('order.refund_batch.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.$lang('order.refundBatch.validate.pleaseSelectRefundReason') });
this.$util.showToast({ title: this.$lang('order.refund_batch.validate.pleaseSelectRefundReason') });
return false;
}
return true;