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

@@ -35,7 +35,7 @@
</view>
<view class="group-wrap padding-top">
<view class="goods-module-wrap">
<text class="price-symbol ">{{ pointInfo.point }}{{ $lang('detail.pointsSuffix') }}</text>
<text class="price-symbol ">{{ pointInfo.point }}{{ $lang('point.detail.pointsSuffix') }}</text>
<template v-if="pointInfo.exchange_price != '0.00' && pointInfo.pay_type > 0">
<text class="price-symbol ">+{{ $lang('common.currencySymbol') }}{{ pointInfo.exchange_price
}}</text>
@@ -48,10 +48,10 @@
<view class="follow-and-share"
v-if="pointInfo.stock_show == 1 || pointInfo.stock_show == undefined">
<text class="color-tip" v-if="pointInfo.pointCoupon != 1">{{ $lang('detail.stockLabel') }}{{ pointInfo.stock }}{{
<text class="color-tip" v-if="pointInfo.pointCoupon != 1">{{ $lang('point.detail.stockLabel') }}{{ pointInfo.stock }}{{
pointInfo.stock >= 0 ?
pointInfo.unit : '' }}</text>
<text class="color-tip" v-else>{{ $lang('detail.stockLabel') }}{{ $lang('detail.unlimitedStock') }}{{ pointInfo.stock >= 0 ? pointInfo.unit : '' }}</text>
<text class="color-tip" v-else>{{ $lang('point.detail.stockLabel') }}{{ $lang('point.detail.unlimitedStock') }}{{ pointInfo.stock >= 0 ? pointInfo.unit : '' }}</text>
</view>
</view>
<view class="goods-module-wrap info">
@@ -61,17 +61,17 @@
<text class="sku-name-wrap" v-else>{{ pointInfo.name }}</text>
</view>
<view class="coupon-desc">
<view v-if="pointInfo.balance && pointInfo.balance > 0" class="color-tip">{{ $lang('detail.containsBalance', { balance: pointInfo.balance }) }}</view>
<view v-if="pointInfo.coupon_type == 'random'" class="color-tip">{{ $lang('detail.noThresholdCoupon') }}</view>
<view v-if="pointInfo.coupon_type == 'reward'" class="color-tip">{{ $lang('detail.fullReduction', { atLeast: pointInfo.at_least, money: pointInfo.money }) }}</view>
<view v-if="pointInfo.balance && pointInfo.balance > 0" class="color-tip">{{ $lang('point.detail.containsBalance', { balance: pointInfo.balance }) }}</view>
<view v-if="pointInfo.coupon_type == 'random'" class="color-tip">{{ $lang('point.detail.noThresholdCoupon') }}</view>
<view v-if="pointInfo.coupon_type == 'reward'" class="color-tip">{{ $lang('point.detail.fullReduction', { atLeast: pointInfo.at_least, money: pointInfo.money }) }}</view>
<view v-if="pointInfo.coupon_type == 'discount'" class="color-tip">
{{ $lang('detail.fullAmount', { atLeast: pointInfo.at_least }) }}
<text>{{ pointInfo.discount }}{{ $lang('detail.discountSuffix') }}</text>
{{ $lang('point.detail.fullAmount', { atLeast: pointInfo.at_least }) }}
<text>{{ pointInfo.discount }}{{ $lang('point.detail.discountSuffix') }}</text>
</view>
<view v-if="pointInfo.coupon_type == 'discount'" class="color-tip">{{ $lang('detail.maxDiscount', { limit: pointInfo.discount_limit }) }}</view>
<view v-if="pointInfo.coupon_type == 'discount'" class="color-tip">{{ $lang('point.detail.maxDiscount', { limit: pointInfo.discount_limit }) }}</view>
<view class="time color-tip" v-if="pointInfo.coupon_type">
{{ pointInfo.validity_type == 1 ? $lang('detail.validFromReceive', { days: pointInfo.fixed_term }) :
$lang('detail.validUntil', { time: $util.timeStampTurnTime(pointInfo.end_time) }) }}
{{ pointInfo.validity_type == 1 ? $lang('point.detail.validFromReceive', { days: pointInfo.fixed_term }) :
$lang('point.detail.validUntil', { time: $util.timeStampTurnTime(pointInfo.end_time) }) }}
</view>
</view>
</view>
@@ -84,7 +84,7 @@
<view class="community-txt">{{ pointInfo.qr_data.community_describe }}</view>
</view>
</view>
<view class="community-btn" @click="onCommunity()">{{ $lang('detail.addCommunity') }}</view>
<view class="community-btn" @click="onCommunity()">{{ $lang('point.detail.addCommunity') }}</view>
</view>
<!-- 促销 -->
@@ -92,7 +92,7 @@
v-show="isCommunity">
<view class="community-model-content" @click.stop>
<view class="community-model-content-radius">
<view>{{ $lang('detail.addCommunityTitle') }}</view>
<view>{{ $lang('point.detail.addCommunityTitle') }}</view>
</view>
<view class="community-model-content-draw" v-if="pointInfo.qr_data && pointInfo.qr_data.qr_img">
<image :src="pointInfo.qr_data.qr_img != '' && pointInfo.qr_data.qr_state == 1
@@ -100,7 +100,7 @@
: $util.img('public/uniapp/goods/detail_erweiImage.png')
" mode="aspectFill" show-menu-by-longpress />
</view>
<view class="community-model-content-text">{{ $lang('detail.addCommunityTip') }}</view>
<view class="community-model-content-text">{{ $lang('point.detail.addCommunityTip') }}</view>
</view>
<view class="community-model-close" @click.stop="onCloseCommunity()"><text
class="iconfont icon-close"></text>
@@ -111,7 +111,7 @@
<view class="newdetail margin-bottom">
<!-- 已选规格 -->
<view class="item selected-sku-spec" v-if="pointInfo.sku_spec_format" @click="exchange">
<view class="label">{{ $lang('detail.selectSpec') }}</view>
<view class="label">{{ $lang('point.detail.selectSpec') }}</view>
<view class="box">
<text v-for="(item, index) in pointInfo.sku_spec_format" :key="index">{{ item.spec_name
}}/{{
@@ -122,7 +122,7 @@
<view class="item goods-attribute" @click="openAttributePopup()"
v-if="pointInfo.goods_attr_format && pointInfo.goods_attr_format.length > 0">
<view class="label">{{ $lang('detail.attribute') }}</view>
<view class="label">{{ $lang('point.detail.attribute') }}</view>
<view class="box">
<text v-for="(item, index) in pointInfo.goods_attr_format" :key="index"
v-if="index < 2">{{
@@ -137,7 +137,7 @@
<uni-popup ref="attributePopup" type="bottom">
<view class="goods-attribute-popup-layer popup-layer">
<view class="head-wrap" @click="closeAttributePopup()">
<text>{{ $lang('detail.goodsAttribute') }}</text>
<text>{{ $lang('point.detail.goodsAttribute') }}</text>
<text class="iconfont icon-close"></text>
</view>
<scroll-view scroll-y class="goods-attribute-body">
@@ -148,7 +148,7 @@
</view>
</scroll-view>
<view class="button-box"><button type="primary"
@click="closeAttributePopup()">{{ $lang('detail.confirm') }}</button></view>
@click="closeAttributePopup()">{{ $lang('point.detail.confirm') }}</button></view>
</view>
</uni-popup>
</view>
@@ -157,7 +157,7 @@
<uni-popup ref="merchantsServicePopup" type="bottom">
<view class="goods-merchants-service-popup-layer popup-layer">
<view class="head-wrap" @click="closeMerchantsServicePopup()">
<text>{{ $lang('detail.goodsService') }}</text>
<text>{{ $lang('point.detail.goodsService') }}</text>
<text class="iconfont icon-close"></text>
</view>
<scroll-view scroll-y>
@@ -171,7 +171,7 @@
</view>
</scroll-view>
<view class="button-box"><button type="primary"
@click="closeMerchantsServicePopup()">{{ $lang('detail.confirm') }}</button></view>
@click="closeMerchantsServicePopup()">{{ $lang('point.detail.confirm') }}</button></view>
</view>
</uni-popup>
</view>
@@ -180,7 +180,7 @@
<!-- 详情 -->
<view class="goods-detail-tab">
<view class="detail-tab">
<view class="tab-item">{{ $lang('detail.exchangeDetail') }}</view>
<view class="tab-item">{{ $lang('point.detail.exchangeDetail') }}</view>
</view>
<view class="detail-content">
@@ -188,7 +188,7 @@
<view class="goods-details" v-if="pointInfo.content"><rich-text
:nodes="pointInfo.content"></rich-text>
</view>
<view class="goods-details active" v-else>{{ $lang('detail.noExchangeDetail') }}</view>
<view class="goods-details active" v-else>{{ $lang('point.detail.noExchangeDetail') }}</view>
</view>
</view>
</view>
@@ -201,14 +201,14 @@
</view>
<view class="detail-swap" @click="exchange()" :class="{ 'position-bottom': isIphoneX }" v-if="!isLogin"><button
type="primary">{{ $lang('detail.loginToExchange') }}</button></view>
type="primary">{{ $lang('point.detail.loginToExchange') }}</button></view>
<block v-else>
<view class="detail-swap" :class="{ 'position-bottom': isIphoneX }" v-if="pointInfo.stock == 0"><button
disabled>{{ $lang('detail.insufficientStock') }}</button></view>
disabled>{{ $lang('point.detail.insufficientStock') }}</button></view>
<view class="detail-swap" :class="{ 'position-bottom': isIphoneX }" v-else-if="enough"><button
disabled>{{ $lang('detail.insufficientPoints') }}</button></view>
disabled>{{ $lang('point.detail.insufficientPoints') }}</button></view>
<view class="detail-swap" @click="exchange()" :class="{ 'position-bottom': isIphoneX }" v-else><button
type="primary" hover-class="none">{{ $lang('detail.exchange') }}</button></view>
type="primary" hover-class="none">{{ $lang('point.detail.exchange') }}</button></view>
</block>
<loading-cover ref="loadingCover"></loading-cover>
@@ -289,7 +289,7 @@ export default {
imageUrl = this.pointInfo.image;
break;
}
title = this.$lang('detail.shareTitle', { point: this.pointInfo.point, title: title });
title = this.$lang('point.detail.shareTitle', { point: this.pointInfo.point, title: title });
imageUrl = this.$util.img(imageUrl);
var route = this.$util.getCurrentShareRoute(this.memberInfo ? this.memberInfo.member_id : 0);
var path = route.path;
@@ -318,7 +318,7 @@ export default {
imageUrl = this.pointInfo.image;
break;
}
title = this.$lang('detail.shareTitle', { point: this.pointInfo.point, title: title });
title = this.$lang('point.detail.shareTitle', { point: this.pointInfo.point, title: title });
imageUrl = this.$util.img(imageUrl);
var route = this.$util.getCurrentShareRoute(this.memberInfo ? this.memberInfo.member_id : 0);
var query = route.query;
@@ -420,7 +420,7 @@ export default {
if (this.pointInfo.goods_spec_format) this.pointInfo.goods_spec_format = JSON.parse(this.pointInfo.goods_spec_format);
}
this.pointInfo.unit = this.pointInfo.unit || this.$lang('detail.unitPiece');
this.pointInfo.unit = this.pointInfo.unit || this.$lang('point.detail.unitPiece');
// 商品详情
if (this.pointInfo.content) this.pointInfo.content = htmlParser(this.pointInfo.content);
@@ -454,7 +454,7 @@ export default {
*/
refreshGoodsSkuDetail(pointInfo) {
Object.assign(this.pointInfo, pointInfo);
this.pointInfo.unit = this.pointInfo.unit || this.$lang('detail.unitPiece');
this.pointInfo.unit = this.pointInfo.unit || this.$lang('point.detail.unitPiece');
},
//服务
openMerchantsServicePopup() {