fix: 修复多组件内语言包文件名路径不一致问题

将所有组件内引用的语言包路径从驼峰式改为短横线命名格式,保持代码中引用与实际语言包文件命名统一
This commit is contained in:
2026-07-03 10:45:34 +08:00
parent 1e0a06850a
commit f05eebad43
11 changed files with 114 additions and 114 deletions

View File

@@ -12,7 +12,7 @@
</view>
<image v-else class="left-img" :src="$util.img(value.titleStyle.leftImg)" mode="heightFix" show-menu-by-longpress></image>
<view class="head-content" v-if="value.titleStyle.style == 'style-1'"
:style="{ color: value.titleStyle.textColor }">{{ $lang('components-diy.diyBargain.freeGet') }}</view>
:style="{ color: value.titleStyle.textColor }">{{ $lang('components-diy.diy-bargain.freeGet') }}</view>
<view class="head-right"
:style="{ fontSize: value.titleStyle.moreFontSize * 2 + 'rpx', color: value.titleStyle.moreColor }"
@tap.stop="$util.redirectTo('/pages_promotion/bargain/list')">
@@ -44,19 +44,19 @@
:src="$util.img('public/uniapp/bargain/progress_bar_01.png')" show-menu-by-longpress/>
</view>
</view>
<view class="num" v-if="item.is_bargaining">
{{ $lang('components-diy.diyBargain.bargained') }}
<text>¥{{ (item.price - item.curr_price).toFixed(2) }}</text>
{{ $lang('components-diy.diyBargain.onlyDiff') }}
<text>¥{{ item.curr_price }}</text>
</view>
<view class="num" v-else>
{{ $lang('components-diy.diyBargain.minBargainTo') }}
<text>¥{{ item.floor_price }}</text>
</view>
<view class="num" v-if="item.is_bargaining">
{{ $lang('components-diy.diy-bargain.bargained') }}
<text>¥{{ (item.price - item.curr_price).toFixed(2) }}</text>
{{ $lang('components-diy.diy-bargain.onlyDiff') }}
<text>¥{{ item.curr_price }}</text>
</view>
<view class="num" v-else>
{{ $lang('components-diy.diy-bargain.minBargainTo') }}
<text>¥{{ item.floor_price }}</text>
</view>
</view>
<view class="progress" v-if="value.style == 'style-3'">
{{ $lang('components-diy.diyBargain.minBargainTo') }}
{{ $lang('components-diy.diy-bargain.minBargainTo') }}
<text class="num">¥{{ item.floor_price }}</text>
</view>
<view class="price-wrap">
@@ -75,7 +75,7 @@
color: value.btnStyle.theme == 'diy' ? value.btnStyle.textColor : '',
borderRadius: value.btnStyle.aroundRadius * 2 + 'rpx'
}">
{{ item.is_bargaining ? $lang('components-diy.diyBargain.continueBargain') : value.btnStyle.text }}
{{ item.is_bargaining ? $lang('components-diy.diy-bargain.continueBargain') : value.btnStyle.text }}
</button>
</view>
</view>
@@ -96,7 +96,7 @@
<view class="num"
v-if="value.saleStyle.control && value.template == 'horizontal-slide' && value.style != 'style-2'"
:style="{ color: value.theme == 'diy' ? value.saleStyle.color : '' }">
{{ $lang('components-diy.diyBargain.soldCount', { num: item.sale_num }) }}
{{ $lang('components-diy.diy-bargain.soldCount', { num: item.sale_num }) }}
</view>
</view>
<view :class="['content', { 'multi-content': value.nameLineMode == 'multiple' }]"
@@ -141,7 +141,7 @@
<view class="num"
v-if="value.saleStyle.control && value.template == 'horizontal-slide' && value.style != 'style-2'"
:style="{ color: value.theme == 'diy' ? value.saleStyle.color : '' }">
{{ $lang('components-diy.diyBargain.soldCount', { num: item.sale_num }) }}
{{ $lang('components-diy.diy-bargain.soldCount', { num: item.sale_num }) }}
</view>
</view>
<view :class="['content', { 'multi-content': value.nameLineMode == 'multiple' }]"

View File

@@ -44,7 +44,7 @@
:class="{ 'screen-category-4': value.template == 4 }" :scroll-with-animation="true"
:scroll-into-view="scrollIntoView">
<view class="item" id="category-2--1" :class="{ selected: categoryId == -1 }"
@tap.stop="selectCategory(-1)">{{ $lang('components-diy.diyCategoryItem.all') }}</view>
@tap.stop="selectCategory(-1)">{{ $lang('components-diy.diy-category-item.all') }}</view>
<view class="item" :id="'category-2-' + oneIndex"
:class="{ selected: categoryId == oneIndex }" @tap.stop="selectCategory(oneIndex)"
v-for="(one, oneIndex) in category.child_list" :key="oneIndex">
@@ -57,7 +57,7 @@
<view class="screen-category-popup" @tap.stop="$refs.screenCategoryPopup.close()">
<scroll-view scroll-y="true" class="screen-category"
:class="{ 'screen-category-4': value.template == 4 }">
<view class="title">{{ $lang('components-diy.diyCategoryItem.all') }}</view>
<view class="title">{{ $lang('components-diy.diy-category-item.all') }}</view>
<view class="item" :class="{ selected: categoryId == oneIndex }"
@tap.stop="selectCategory(oneIndex)" v-for="(one, oneIndex) in category.child_list"
:key="oneIndex">
@@ -119,7 +119,7 @@
</view>
<view class="ai-chat-btn-wrap" v-if="item.isinformation == 1">
<view class="ai-chat-btn" @tap.stop="sendToAIChat(item)">
{{ $lang('components-diy.diyCategoryItem.consultNow') }}
{{ $lang('components-diy.diy-category-item.consultNow') }}
</view>
</view>
@@ -213,18 +213,18 @@
</view>
<view class="ai-chat-btn-wrap" v-if="item.isinformation == 1">
<view class="ai-chat-btn" @tap.stop="sendToAIChat(item)">
{{ $lang('components-diy.diyCategoryItem.consultNow') }}
{{ $lang('components-diy.diy-category-item.consultNow') }}
</view>
</view>
<view class="right-wrap" v-if="value.template == 2">
<block v-if="item.is_virtual">
<view class="color-base-bg select-sku" @tap.stop="toDetail(item)">{{ $lang('components-diy.diyCategoryItem.buyNow') }}</view>
<view class="color-base-bg select-sku" @tap.stop="toDetail(item)">{{ $lang('components-diy.diy-category-item.buyNow') }}</view>
</block>
<block v-else>
<view v-if="item.goods_spec_format" class="color-base-bg select-sku"
@tap.stop="selectSku(item)">
<text>{{ $lang('components-diy.diyCategoryItem.selectSpecs') }}</text>
<text>{{ $lang('components-diy.diy-category-item.selectSpecs') }}</text>
<text class="num-tag" v-if="item.num">{{ item.num }}</text>
</view>
<block v-else>
@@ -250,7 +250,7 @@
</block>
</view>
<view class="right-wrap" v-if="value.template == 3">
<view class="color-base-bg select-sku" @tap.stop="toDetail(item)">{{ $lang('components-diy.diyCategoryItem.buyNow') }}</view>
<view class="color-base-bg select-sku" @tap.stop="toDetail(item)">{{ $lang('components-diy.diy-category-item.buyNow') }}</view>
</view>
</view>
</view>
@@ -517,15 +517,15 @@ export default {
if (_num > parseInt(data.stock)) {
this.$util.showToast({
title: this.$lang('components-diy.diyCategoryItem.insufficientStock')
title: this.$lang('components-diy.diy-category-item.insufficientStock')
});
return;
}
if (data.is_limit && data.max_buy && _num > parseInt(data.max_buy)) {
this.$util.showToast({
title: this.$lang('components-diy.diyCategoryItem.purchaseLimit', {
title: this.$lang('components-diy.diy-category-item.purchaseLimit', {
maxBuy: data.max_buy,
unit: data.unit || this.$lang('components-diy.diyCategoryItem.pieceUnit')
unit: data.unit || this.$lang('components-diy.diy-category-item.pieceUnit')
})
});
return;

View File

@@ -26,16 +26,16 @@
</view>
<view class="coupon-num" :style="{ color: value.moneyColor }" v-else>
<text class="coupon-size">{{ item.discount | moneyConduct }}</text>
<text class="font-size-tag coupon-sign">{{ $lang('components-diy.diyCoupon.discount') }}</text>
<text class="font-size-tag coupon-sign">{{ $lang('components-diy.diy-coupon.discount') }}</text>
</view>
<view class="coupon-type font-size-tag" :style="{ color: value.limitColor }">
{{ item.at_least > 0 ? $lang('components-diy.diyCoupon.minSpendAvailable', { amount: Number(item.at_least) }) : $lang('components-diy.diyCoupon.noThresholdCoupon') }}
{{ item.at_least > 0 ? $lang('components-diy.diy-coupon.minSpendAvailable', { amount: Number(item.at_least) }) : $lang('components-diy.diy-coupon.noThresholdCoupon') }}
</view>
</view>
<view class="coupon-get" :style="couponBtnStyle" v-if="item.useState == 0">
{{ value.btnStyle.text }}
</view>
<view class="coupon-get" :style="couponBtnStyle" v-if="parseInt(item.useState)">{{ $lang('components-diy.diyCoupon.goUse') }}</view>
<view class="coupon-get" :style="couponBtnStyle" v-if="parseInt(item.useState)">{{ $lang('components-diy.diy-coupon.goUse') }}</view>
</view>
</swiper-item>
@@ -61,16 +61,16 @@
</view>
<view class="coupon-num" :style="{ color: value.moneyColor }" v-else>
<text class="coupon-size">{{ item.discount | moneyConduct }}</text>
<text class="font-size-tag coupon-sign">{{ $lang('components-diy.diyCoupon.discount') }}</text>
<text class="font-size-tag coupon-sign">{{ $lang('components-diy.diy-coupon.discount') }}</text>
</view>
<view class="coupon-type font-size-tag" :style="{ color: value.limitColor }">
{{ item.at_least > 0 ? $lang('components-diy.diyCoupon.minSpendAvailable', { amount: Number(item.at_least) }) : $lang('components-diy.diyCoupon.noThresholdCoupon') }}
{{ item.at_least > 0 ? $lang('components-diy.diy-coupon.minSpendAvailable', { amount: Number(item.at_least) }) : $lang('components-diy.diy-coupon.noThresholdCoupon') }}
</view>
</view>
<view class="coupon-get" :style="couponBtnStyle" v-if="item.useState == 0">
{{ value.btnStyle.text || $lang('components-diy.diyCoupon.claim') }}
{{ value.btnStyle.text || $lang('components-diy.diy-coupon.claim') }}
</view>
<view class="coupon-get use" :style="couponBtnStyle" v-if="parseInt(item.useState)">{{ $lang('components-diy.diyCoupon.goUse') }}
<view class="coupon-get use" :style="couponBtnStyle" v-if="parseInt(item.useState)">{{ $lang('components-diy.diy-coupon.goUse') }}
</view>
</view>
</swiper-item>
@@ -95,19 +95,19 @@
</view>
<view class="coupon-num" :style="{ color: value.moneyColor }" v-else>
<text class="coupon-size">{{ item.discount | moneyConduct }}</text>
<text class="font-size-tag coupon-sign">{{ $lang('components-diy.diyCoupon.discount') }}</text>
<text class="font-size-tag coupon-sign">{{ $lang('components-diy.diy-coupon.discount') }}</text>
</view>
<view class="coupon-type font-size-tag">
<text :style="{ color: value.limitColor }">{{ item.at_least > 0 ? $lang('components-diy.diyCoupon.minSpendAvailable', { amount: Number(item.at_least) }) : $lang('components-diy.diyCoupon.noThresholdCoupon') }}</text>
<view class="item-text" v-if="item.goods_type == 1">{{ $lang('components-diy.diyCoupon.allProductsAvailable') }}</view>
<view class="item-text" v-else-if="item.goods_type == 2">{{ $lang('components-diy.diyCoupon.specifiedProductsAvailable') }}</view>
<view class="item-text" v-else-if="item.goods_type == 3">{{ $lang('components-diy.diyCoupon.specifiedProductsUnavailable') }}</view>
<text :style="{ color: value.limitColor }">{{ item.at_least > 0 ? $lang('components-diy.diy-coupon.minSpendAvailable', { amount: Number(item.at_least) }) : $lang('components-diy.diy-coupon.noThresholdCoupon') }}</text>
<view class="item-text" v-if="item.goods_type == 1">{{ $lang('components-diy.diy-coupon.allProductsAvailable') }}</view>
<view class="item-text" v-else-if="item.goods_type == 2">{{ $lang('components-diy.diy-coupon.specifiedProductsAvailable') }}</view>
<view class="item-text" v-else-if="item.goods_type == 3">{{ $lang('components-diy.diy-coupon.specifiedProductsUnavailable') }}</view>
</view>
<view class="coupon-get" :style="couponBtnStyle" v-if="item.useState == 0">
{{ value.btnStyle.text || $lang('components-diy.diyCoupon.claim') }}
{{ value.btnStyle.text || $lang('components-diy.diy-coupon.claim') }}
</view>
<view class="coupon-get" :style="couponBtnStyle" v-if="parseInt(item.useState)">{{ $lang('components-diy.diyCoupon.goUse') }}</view>
<view class="coupon-get" :style="couponBtnStyle" v-if="parseInt(item.useState)">{{ $lang('components-diy.diy-coupon.goUse') }}</view>
</view>
</swiper-item>
</swiper>
@@ -132,16 +132,16 @@
</view>
<view class="coupon-num" :style="{ color: value.moneyColor }" v-else>
<text class="coupon-size">{{ item.discount | moneyConduct }}</text>
<text class="font-size-tag coupon-sign">{{ $lang('components-diy.diyCoupon.discount') }}</text>
<text class="font-size-tag coupon-sign">{{ $lang('components-diy.diy-coupon.discount') }}</text>
</view>
<view class="coupon-type font-size-tag" :style="{ color: value.limitColor }">
{{ item.at_least > 0 ? $lang('components-diy.diyCoupon.minSpendAvailable', { amount: Number(item.at_least) }) : $lang('components-diy.diyCoupon.noThresholdCoupon') }}
{{ item.at_least > 0 ? $lang('components-diy.diy-coupon.minSpendAvailable', { amount: Number(item.at_least) }) : $lang('components-diy.diy-coupon.noThresholdCoupon') }}
</view>
</view>
<view class="coupon-get" :style="couponBtnStyle" v-if="item.useState == 0">
{{ value.btnStyle.text || $lang('components-diy.diyCoupon.useNow') }}
{{ value.btnStyle.text || $lang('components-diy.diy-coupon.useNow') }}
</view>
<view class="coupon-get" :style="couponBtnStyle" v-if="parseInt(item.useState)">{{ $lang('components-diy.diyCoupon.goUse') }}</view>
<view class="coupon-get" :style="couponBtnStyle" v-if="parseInt(item.useState)">{{ $lang('components-diy.diy-coupon.goUse') }}</view>
</view>
</swiper-item>
</swiper>
@@ -159,11 +159,11 @@
<view class="coupon-num" v-if="item.discount == '0.00'"
:style="{ color: value.moneyColor }">
<text class="coupon-size">{{ item.money | moneyConduct }}</text>
<text class="font-size-tag coupon-sign">{{ $lang('components-diy.diyCoupon.yuan') }}</text>
<text class="font-size-tag coupon-sign">{{ $lang('components-diy.diy-coupon.yuan') }}</text>
</view>
<view class="coupon-num" v-else :style="{ color: value.moneyColor }">
<text class="coupon-size">{{ item.discount | moneyConduct }}</text>
<text class="font-size-tag coupon-sign">{{ $lang('components-diy.diyCoupon.discount') }}</text>
<text class="font-size-tag coupon-sign">{{ $lang('components-diy.diy-coupon.discount') }}</text>
</view>
</view>
<view class="coupon-line"></view>
@@ -172,14 +172,14 @@
<view class="coupon-name" :style="{ color: value.nameColor }">{{
item.coupon_name }}</view>
<text class="coupon-least" :style="{ color: value.limitColor }"
v-if="item.at_least > 0">{{ $lang('components-diy.diyCoupon.minSpendAvailable', { amount: Number(item.at_least) }) }}</text>
v-if="item.at_least > 0">{{ $lang('components-diy.diy-coupon.minSpendAvailable', { amount: Number(item.at_least) }) }}</text>
<text class="coupon-least" :style="{ color: value.limitColor }"
v-else>{{ $lang('components-diy.diyCoupon.noThresholdCoupon') }}</text>
v-else>{{ $lang('components-diy.diy-coupon.noThresholdCoupon') }}</text>
</view>
<view class="coupon-get" :style="couponBtnStyle" v-if="item.useState == 0">{{
value.btnStyle.text || $lang('components-diy.diyCoupon.claimNow') }}</view>
value.btnStyle.text || $lang('components-diy.diy-coupon.claimNow') }}</view>
<view class="coupon-get" :style="couponBtnStyle" v-if="parseInt(item.useState)">
{{ $lang('components-diy.diyCoupon.goUse') }}</view>
{{ $lang('components-diy.diy-coupon.goUse') }}</view>
</view>
</view>
</view>
@@ -203,9 +203,9 @@
<view class="price-wrap">
<text class="price" :style="{ color: value.moneyColor }">{{ (item.discount == '0.00'
? item.money : item.discount) | moneyConduct }}</text>
<text class="unit">{{ item.discount == '0.00' ? $lang('components-diy.diyCoupon.yuan') : $lang('components-diy.diyCoupon.discount') }}</text>
<text class="unit">{{ item.discount == '0.00' ? $lang('components-diy.diy-coupon.yuan') : $lang('components-diy.diy-coupon.discount') }}</text>
</view>
<text class="text">{{ $lang('components-diy.diyCoupon.coupon') }}</text>
<text class="text">{{ $lang('components-diy.diy-coupon.coupon') }}</text>
</view>
<text class="btn" v-if="item.useState == 0" :style="{
color: value.btnStyle.textColor,
@@ -221,11 +221,11 @@
borderTopLeftRadius: value.btnStyle.aroundRadius * 2 + 'rpx',
borderBottomLeftRadius: value.btnStyle.aroundRadius * 2 + 'rpx'
}">
<text class="btn-content">{{ $lang('components-diy.diyCoupon.goUse') }}</text>
<text class="btn-content">{{ $lang('components-diy.diy-coupon.goUse') }}</text>
</text>
<text class="limit" :style="{ color: value.limitColor }"
v-if="parseFloat(item.at_least) > 0">{{ $lang('components-diy.diyCoupon.minSpendUse', { amount: item.at_least | moneyConduct }) }}</text>
<text class="limit" :style="{ color: value.limitColor }" v-else>{{ $lang('components-diy.diyCoupon.noThresholdUse') }}</text>
v-if="parseFloat(item.at_least) > 0">{{ $lang('components-diy.diy-coupon.minSpendUse', { amount: item.at_least | moneyConduct }) }}</text>
<text class="limit" :style="{ color: value.limitColor }" v-else>{{ $lang('components-diy.diy-coupon.noThresholdUse') }}</text>
</view>
<div v-if="computedCouponList.length <= 2" @tap.stop="$util.redirectTo('/pages_goods/category')"
@@ -237,9 +237,9 @@
}">
<div class="coupon-content" :style="{ color: value.moneyColor }">
<span class="price">+</span>
<span class="text">{{ $lang('components-diy.diyCoupon.noCoupons') }}</span>
<span class="text">{{ $lang('components-diy.diy-coupon.noCoupons') }}</span>
</div>
<span class="limit" :style="{ color: value.limitColor }">{{ $lang('components-diy.diyCoupon.goBrowse') }}</span>
<span class="limit" :style="{ color: value.limitColor }">{{ $lang('components-diy.diy-coupon.goBrowse') }}</span>
</div>
</swiper-item>
</swiper>
@@ -256,24 +256,24 @@
<view class="coupon-num" v-if="item.discount == '0.00'"
:style="{ color: value.moneyColor }">
<text class="coupon-size">{{ item.money | moneyConduct }}</text>
<text class="font-size-tag coupon-sign">{{ $lang('components-diy.diyCoupon.yuan') }}</text>
<text class="font-size-tag coupon-sign">{{ $lang('components-diy.diy-coupon.yuan') }}</text>
</view>
<view class="coupon-num" v-else :style="{ color: value.moneyColor }">
<text class="coupon-size">{{ item.discount | moneyConduct }}</text>
<text class="font-size-tag coupon-sign">{{ $lang('components-diy.diyCoupon.discount') }}</text>
<text class="font-size-tag coupon-sign">{{ $lang('components-diy.diy-coupon.discount') }}</text>
</view>
</view>
<view class="coupon-type">
<text class="coupon-name" :style="{ color: value.limitColor }"
v-if="item.at_least > 0">{{ $lang('components-diy.diyCoupon.minSpendAvailable', { amount: Number(item.at_least) }) }}</text>
<text class="coupon-name" :style="{ color: value.limitColor }" v-else>{{ $lang('components-diy.diyCoupon.noThresholdCoupon') }}</text>
<view class="coupon-least" :style="{ color: value.limitColor }">{{ $lang('components-diy.diyCoupon.validUntil', { date: $util.timeStampTurnTime(item.end_time, 'yearmonthday') }) }}</view>
v-if="item.at_least > 0">{{ $lang('components-diy.diy-coupon.minSpendAvailable', { amount: Number(item.at_least) }) }}</text>
<text class="coupon-name" :style="{ color: value.limitColor }" v-else>{{ $lang('components-diy.diy-coupon.noThresholdCoupon') }}</text>
<view class="coupon-least" :style="{ color: value.limitColor }">{{ $lang('components-diy.diy-coupon.validUntil', { date: $util.timeStampTurnTime(item.end_time, 'yearmonthday') }) }}</view>
</view>
<view class="coupon-line"></view>
<view class="coupon-get" :style="couponBtnStyle" v-if="item.useState == 0">
{{ value.btnStyle.text || $lang('components-diy.diyCoupon.claimNow') }}
{{ value.btnStyle.text || $lang('components-diy.diy-coupon.claimNow') }}
</view>
<view class="coupon-get" :style="couponBtnStyle" v-if="parseInt(item.useState)">{{ $lang('components-diy.diyCoupon.goUse') }}
<view class="coupon-get" :style="couponBtnStyle" v-if="parseInt(item.useState)">{{ $lang('components-diy.diy-coupon.goUse') }}
</view>
</view>
</view>
@@ -402,7 +402,7 @@ export default {
couponTap(item, index) {
if (item.count == item.lead_count) {
this.$util.showToast({
title: this.$lang('components-diy.diyCoupon.couponSoldOut')
title: this.$lang('components-diy.diy-coupon.couponSoldOut')
});
return;
}
@@ -425,7 +425,7 @@ export default {
var data = res.data;
let msg = res.message;
if (res.code == 0) {
msg = this.$lang('components-diy.diyCoupon.claimSuccess');
msg = this.$lang('components-diy.diy-coupon.claimSuccess');
if (res.data.is_exist == 1) {
for (let i = 0; i < that.couponList.length; i++) {
if (that.couponList[i].coupon_type_id == item.coupon_type_id) {

View File

@@ -20,7 +20,7 @@
<view class="discount-price">
<view class="price-wrap" v-if="value.priceStyle.mainControl">
<text class="unit price-style small"
:style="{ color: value.theme == 'diy' ? value.priceStyle.mainColor : '' }">{{ $lang('components-diy.diyFenxiaoGoodsList.earnPrefix') }}</text>
:style="{ color: value.theme == 'diy' ? value.priceStyle.mainColor : '' }">{{ $lang('components-diy.diy-fenxiao-goods-list.earnPrefix') }}</text>
<text class="price price-style large"
:style="{ color: value.theme == 'diy' ? value.priceStyle.mainColor : '' }">{{
item.commission_money.split('.')[0] }}</text>
@@ -33,14 +33,14 @@
color: value.btnStyle.theme == 'diy' ? value.btnStyle.textColor : '',
borderRadius: value.btnStyle.aroundRadius * 2 + 'rpx'
}" @tap.stop="followGoods(item, index)">
{{ $lang('components-diy.diyFenxiaoGoodsList.follow') }}
{{ $lang('components-diy.diy-fenxiao-goods-list.follow') }}
</view>
<view class="sale-btn" v-if="value.btnStyle.control && item.is_collect == 1" :style="{
background: value.btnStyle.theme == 'diy' ? 'linear-gradient(to right,' + value.btnStyle.bgColorStart + ',' + value.btnStyle.bgColorEnd + ')' : '',
color: value.btnStyle.theme == 'diy' ? value.btnStyle.textColor : '',
borderRadius: value.btnStyle.aroundRadius * 2 + 'rpx'
}" @tap.stop="delFollowTip(item, index)">
{{ $lang('components-diy.diyFenxiaoGoodsList.unfollow') }}
{{ $lang('components-diy.diy-fenxiao-goods-list.unfollow') }}
</view>
</view>
<view class="delete-price" v-if="value.priceStyle.lineControl"
@@ -138,7 +138,7 @@ export default {
},
success: res => {
if (res.code >= 0) {
this.$util.showToast({ title: this.$lang('components-diy.diyFenxiaoGoodsList.followSuccess') });
this.$util.showToast({ title: this.$lang('components-diy.diy-fenxiao-goods-list.followSuccess') });
this.list[index].is_collect = 1;
this.list[index].collect_id = res.data;
}
@@ -149,8 +149,8 @@ export default {
//取消关注
delFollowTip(e, index) {
uni.showModal({
title: this.$lang('components-diy.diyFenxiaoGoodsList.tip'),
content: this.$lang('components-diy.diyFenxiaoGoodsList.confirmUnfollow'),
title: this.$lang('components-diy.diy-fenxiao-goods-list.tip'),
content: this.$lang('components-diy.diy-fenxiao-goods-list.confirmUnfollow'),
success: res => {
if (res.confirm) {
this.delFollow(e.collect_id, index);
@@ -167,7 +167,7 @@ export default {
success: res => {
let msg = '';
if (res.code == 0) {
msg = this.$lang('components-diy.diyFenxiaoGoodsList.cancelSuccess');
msg = this.$lang('components-diy.diy-fenxiao-goods-list.cancelSuccess');
} else {
msg = res.message;
}

View File

@@ -60,7 +60,7 @@
</view>
<view class="sale" v-if="goodsValue.saleStyle.control"
:style="{ color: goodsValue.theme == 'diy' ? goodsValue.saleStyle.color : '' }">
{{ $lang('components-diy.diyGoodsList.soldCount', { count: item.sale_num, unit: item.unit || $lang('components-diy.diyGoodsList.soldUnit') }) }}
{{ $lang('components-diy.diy-goods-list.soldCount', { count: item.sale_num, unit: item.unit || $lang('components-diy.diy-goods-list.soldUnit') }) }}
</view>
</view>
@@ -168,7 +168,7 @@
</view>
<view class="sale" v-if="goodsValue.saleStyle.control"
:style="{ color: goodsValue.theme == 'diy' ? goodsValue.saleStyle.color : '' }">
{{ $lang('components-diy.diyGoodsList.soldCount', { count: item.sale_num, unit: item.unit || $lang('components-diy.diyGoodsList.soldUnit') }) }}
{{ $lang('components-diy.diy-goods-list.soldCount', { count: item.sale_num, unit: item.unit || $lang('components-diy.diy-goods-list.soldUnit') }) }}
</view>
</view>
</view>
@@ -238,7 +238,7 @@
</view>
<view class="sale" v-if="goodsValue.saleStyle.control"
:style="{ color: goodsValue.theme == 'diy' ? goodsValue.saleStyle.color : '' }">
{{ $lang('components-diy.diyGoodsList.soldCount', { count: dataItem.sale_num, unit: dataItem.unit || $lang('components-diy.diyGoodsList.soldUnit') }) }}
{{ $lang('components-diy.diy-goods-list.soldCount', { count: dataItem.sale_num, unit: dataItem.unit || $lang('components-diy.diy-goods-list.soldUnit') }) }}
</view>
</view>
</view>

View File

@@ -42,11 +42,11 @@
<uni-popup ref="noticePopup" type="center">
<view class="notice-popup">
<view class="head-wrap" @tap.stop="closeNoticePopup">
<text>{{ $lang('components-diy.diyNotice.notice') }}</text>
<text>{{ $lang('components-diy.diy-notice.notice') }}</text>
<text class="iconfont icon-close"></text>
</view>
<view class="content-wrap">{{ notice }}</view>
<button type="primary" @tap.stop="closeNoticePopup">{{ $lang('components-diy.diyNotice.gotIt') }}</button>
<button type="primary" @tap.stop="closeNoticePopup">{{ $lang('components-diy.diy-notice.gotIt') }}</button>
</view>
</uni-popup>
</view>

View File

@@ -3,23 +3,23 @@
<view class="payment-qrocde-box">
<view class="qrocde-left">
<view class="qrocde-desc">
<text>{{ $lang('components-diy.diyPaymentQrcode.description') }}</text>
<text>{{ $lang('components-diy.diy-payment-qrcode.description') }}</text>
<!-- <text class="iconfont icon-shuaxin"></text> -->
</view>
<view class="qrocde-action">
<button type="primary" @tap.stop="toLink">
<text class="iconfont icon-fukuanma"></text>
<text class="action-name">{{ $lang('components-diy.diyPaymentQrcode.paymentCode') }}</text>
<text class="action-name">{{ $lang('components-diy.diy-payment-qrcode.paymentCode') }}</text>
</button>
<button type="primary" @tap.stop="openPaymentPopup">
<text class="iconfont icon-saomafu"></text>
<text class="action-name">{{ $lang('components-diy.diyPaymentQrcode.scanToPay') }}</text>
<text class="action-name">{{ $lang('components-diy.diy-payment-qrcode.scanToPay') }}</text>
</button>
</view>
</view>
<view class="qrocde-right">
<text class="iconfont icon-zhifu"></text>
<text class="name">{{ $lang('components-diy.diyPaymentQrcode.storePayment') }}</text>
<text class="name">{{ $lang('components-diy.diy-payment-qrcode.storePayment') }}</text>
</view>
</view>
@@ -27,11 +27,11 @@
<uni-popup ref="paymentPopup" type="center">
<view class="payment-popup">
<view class="head-wrap" @tap.stop="closePaymentPopup">
<text>{{ $lang('components-diy.diyPaymentQrcode.popupTipTitle') }}</text>
<text>{{ $lang('components-diy.diy-payment-qrcode.popupTipTitle') }}</text>
<text class="iconfont icon-close"></text>
</view>
<view class="content-wrap">{{ $lang('components-diy.diyPaymentQrcode.scanToPayTip') }}</view>
<button type="primary" @tap.stop="closePaymentPopup">{{ $lang('components-diy.diyPaymentQrcode.gotIt') }}</button>
<view class="content-wrap">{{ $lang('components-diy.diy-payment-qrcode.scanToPayTip') }}</view>
<button type="primary" @tap.stop="closePaymentPopup">{{ $lang('components-diy.diy-payment-qrcode.gotIt') }}</button>
</view>
</uni-popup>
</view>

View File

@@ -21,11 +21,11 @@
:style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '', borderColor: value.theme == 'diy' ? value.groupStyle.bgColor : '' }">
<text class="iconfont icon-yonghu3"
:style="{ backgroundColor: value.theme == 'diy' ? value.groupStyle.bgColor : '' }"></text>
<text>{{ $lang('components-diy.diyPinfan.peopleGroup', { num: item.pintuan_num }) }}</text>
<text>{{ $lang('components-diy.diy-pinfan.peopleGroup', { num: item.pintuan_num }) }}</text>
</view>
<view v-if="value.saleStyle.control"
:style="{ color: value.theme == 'diy' ? value.saleStyle.color : '', borderColor: value.theme == 'diy' ? value.saleStyle.color : '' }">
<text>{{ $lang('components-diy.diyPinfan.soldCount', { num: item.order_num }) }}</text>
<text>{{ $lang('components-diy.diy-pinfan.soldCount', { num: item.order_num }) }}</text>
</view>
</view>
<view class="price-wrap">
@@ -49,9 +49,9 @@
borderRadius: value.btnStyle.aroundRadius * 2 + 'rpx'
}">
<text class="text">{{ value.btnStyle.text }}</text>
<text class="fan" v-if="item.reward_type == 4">{{ $lang('components-diy.diyPinfan.backPoints', { num: item.reward_type_num }) }}</text>
<text class="fan" v-if="item.reward_type == 1 || item.reward_type == 2">{{ $lang('components-diy.diyPinfan.backCash', { num: item.reward_type_num }) }}</text>
<text class="fan" v-if="item.reward_type == 3">{{ $lang('components-diy.diyPinfan.backCoupon') }}</text>
<text class="fan" v-if="item.reward_type == 4">{{ $lang('components-diy.diy-pinfan.backPoints', { num: item.reward_type_num }) }}</text>
<text class="fan" v-if="item.reward_type == 1 || item.reward_type == 2">{{ $lang('components-diy.diy-pinfan.backCash', { num: item.reward_type_num }) }}</text>
<text class="fan" v-if="item.reward_type == 3">{{ $lang('components-diy.diy-pinfan.backCoupon') }}</text>
</button>
</view>
</view>
@@ -77,21 +77,21 @@
<view v-if="value.groupStyle.control" class="num">
<text class="content-tuan-box"
:style="{ color: value.theme == 'diy' ? value.groupStyle.color : '', backgroundColor: value.theme == 'diy' ? value.groupStyle.bgColor : '' }">
{{ $lang('components-diy.diyPinfan.peopleGroup', { num: item.pintuan_num }) }}
{{ $lang('components-diy.diy-pinfan.peopleGroup', { num: item.pintuan_num }) }}
</text>
<text class="content-tuan-price"
:style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '' }"
v-if="item.reward_type == 4">
{{ $lang('components-diy.diyPinfan.backPoints', { num: item.reward_type_num }) }}
{{ $lang('components-diy.diy-pinfan.backPoints', { num: item.reward_type_num }) }}
</text>
<text class="content-tuan-price"
:style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '' }"
v-if="item.reward_type == 1 || item.reward_type == 2">
{{ $lang('components-diy.diyPinfan.backCash', { num: item.reward_type_num }) }}
{{ $lang('components-diy.diy-pinfan.backCash', { num: item.reward_type_num }) }}
</text>
<text class="content-tuan-price"
:style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '' }"
v-if="item.reward_type == 3">{{ $lang('components-diy.diyPinfan.backCoupon') }}</text>
v-if="item.reward_type == 3">{{ $lang('components-diy.diy-pinfan.backCoupon') }}</text>
</view>
<view class="price-wrap" v-if="value.priceStyle.mainControl">
<text class="unit price-style small"
@@ -128,22 +128,22 @@
<view v-if="value.groupStyle.control" class="num">
<text class="content-tuan-box"
:style="{ color: value.theme == 'diy' ? value.groupStyle.color : '', backgroundColor: value.theme == 'diy' ? value.groupStyle.bgColor : '' }">
{{ $lang('components-diy.diyPinfan.peopleGroup', { num: item.pintuan_num }) }}
{{ $lang('components-diy.diy-pinfan.peopleGroup', { num: item.pintuan_num }) }}
</text>
<text class="content-tuan-price"
:style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '' }"
v-if="item.reward_type == 4">
{{ $lang('components-diy.diyPinfan.backPoints', { num: item.reward_type_num }) }}
{{ $lang('components-diy.diy-pinfan.backPoints', { num: item.reward_type_num }) }}
</text>
<text class="content-tuan-price"
:style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '' }"
v-if="item.reward_type == 1 || item.reward_type == 2">
{{ $lang('components-diy.diyPinfan.backCash', { num: item.reward_type_num }) }}
{{ $lang('components-diy.diy-pinfan.backCash', { num: item.reward_type_num }) }}
</text>
<text class="content-tuan-price"
:style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '' }"
v-if="item.reward_type == 3">
{{ $lang('components-diy.diyPinfan.backCoupon') }}
{{ $lang('components-diy.diy-pinfan.backCoupon') }}
</text>
</view>
<view class="price-wrap" v-if="value.priceStyle.mainControl">

View File

@@ -26,7 +26,7 @@
</view>
<view :style="{ color: value.titleStyle.textColor }">
<text>{{ value.titleStyle.virtualNum || headData.pintuan_count }}</text>
<text>{{ value.titleStyle.style == 'style-2' ? $lang('components-diy.diyPintuan.peopleParticipating') : $lang('components-diy.diyPintuan.peopleGroupSuccess') }}</text>
<text>{{ value.titleStyle.style == 'style-2' ? $lang('components-diy.diy-pintuan.peopleParticipating') : $lang('components-diy.diy-pintuan.peopleGroupSuccess') }}</text>
</view>
</view>
<view class="head-right"
@@ -59,11 +59,11 @@
}">
<text class="iconfont icon-yonghu3"
:style="{ backgroundColor: value.theme == 'diy' ? value.groupStyle.bgColorStart : '' }"></text>
<text>{{ $lang('components-diy.diyPintuan.peopleGroup', { num: item.pintuan_num }) }}</text>
<text>{{ $lang('components-diy.diy-pintuan.peopleGroup', { num: item.pintuan_num }) }}</text>
</view>
<view v-if="value.saleStyle.control"
:style="{ color: value.theme == 'diy' ? value.saleStyle.color : '', borderColor: value.theme == 'diy' ? value.saleStyle.color : '' }">
<text>{{ $lang('components-diy.diyPintuan.soldCount', { num: item.order_num }) }}</text>
<text>{{ $lang('components-diy.diy-pintuan.soldCount', { num: item.order_num }) }}</text>
</view>
</view>
@@ -110,7 +110,7 @@
color: value.theme == 'diy' ? value.groupStyle.color : '',
background: value.theme == 'diy' ? 'linear-gradient(to right,' + value.groupStyle.bgColorStart + ',' + value.groupStyle.bgColorEnd + ')' : ''
}">
{{ $lang('components-diy.diyPintuan.peopleGroup', { num: item.pintuan_num }) }}
{{ $lang('components-diy.diy-pintuan.peopleGroup', { num: item.pintuan_num }) }}
</view>
</view>
<view :class="['content', { 'multi-content': value.nameLineMode == 'multiple' }]"
@@ -148,10 +148,10 @@
{{ '.' + item.pintuan_price.split('.')[1] }}
</text>
</view>
<view class="sale-action">{{ $lang('components-diy.diyPintuan.joinGroup') }}</view>
<view class="sale-action">{{ $lang('components-diy.diy-pintuan.joinGroup') }}</view>
</view>
<view class="sale-num" v-if="value.style == 'style-2'">{{ $lang('components-diy.diyPintuan.soldCount', { num: item.sale_num }) }}</view>
<view class="sale-num" v-if="value.style == 'style-2'">{{ $lang('components-diy.diy-pintuan.soldCount', { num: item.sale_num }) }}</view>
</view>
</view>
</scroll-view>
@@ -170,7 +170,7 @@
color: value.theme == 'diy' ? value.groupStyle.color : '',
background: value.theme == 'diy' ? 'linear-gradient(to right,' + value.groupStyle.bgColorStart + ',' + value.groupStyle.bgColorEnd + ')' : ''
}">
{{ $lang('components-diy.diyPintuan.peopleGroup', { num: item.pintuan_num }) }}
{{ $lang('components-diy.diy-pintuan.peopleGroup', { num: item.pintuan_num }) }}
</view>
</view>
<view :class="['content', { 'multi-content': value.nameLineMode == 'multiple' }]"
@@ -192,7 +192,7 @@
{{ '.' + item.pintuan_price.split('.')[1] }}
</text>
</view>
<view class="sale-num" v-if="value.style == 'style-2'">{{ $lang('components-diy.diyPintuan.soldCount', { num: item.sale_num }) }}</view>
<view class="sale-num" v-if="value.style == 'style-2'">{{ $lang('components-diy.diy-pintuan.soldCount', { num: item.sale_num }) }}</view>
</view>
</view>
</swiper-item>

View File

@@ -13,10 +13,10 @@
</view>
<image v-else class="title-img" :src="$util.img(value.titleStyle.leftImg)" mode="heightFix" show-menu-by-longpress/>
<text v-if="value.titleStyle.style == 'style-2' && isFuture"
:style="{ color: value.titleStyle.textColor }" class="seckill-style-name">{{ $lang('components-diy.diySeckill.countdownStart') }}</text>
:style="{ color: value.titleStyle.textColor }" class="seckill-style-name">{{ $lang('components-diy.diy-seckill.countdownStart') }}</text>
<view class="time" :style="{ background: value.titleStyle.timeBgColor }">
<text :style="{ color: value.titleStyle.textColor }" class="seckill-title-name text">{{ isFuture ?
$lang('components-diy.diySeckill.countdownStart') : $lang('components-diy.diySeckill.countdownEnd') }}</text>
$lang('components-diy.diy-seckill.countdownStart') : $lang('components-diy.diy-seckill.countdownEnd') }}</text>
<text v-if="value.titleStyle.timeImageUrl"
:class="['seckill-title-name icon', value.titleStyle.timeImageUrl]"></text>
<text class="hour number" :style="titleTimeStyle">{{ seckillH ? seckillH : '00' }}</text>
@@ -62,7 +62,7 @@
</view>
<view class="num"
:style="{ color: value.theme == 'diy' ? value.saleStyle.color : '', borderColor: value.theme == 'diy' ? value.saleStyle.color : '' }">
{{ $lang('components-diy.diySeckill.soldPercent', { percent: item.goods_stock + item.sale_num ? ((item.sale_num / (item.goods_stock +
{{ $lang('components-diy.diy-seckill.soldPercent', { percent: item.goods_stock + item.sale_num ? ((item.sale_num / (item.goods_stock +
item.sale_num)) * 100).toFixed(2) : '0.00' }) }}
</view>
</view>
@@ -87,7 +87,7 @@
</view>
<view class="price-font" v-else>
<text
:style="{ color: value.theme == 'diy' ? value.priceStyle.lineColor : '' }">{{ $lang('components-diy.diySeckill.originalPrice') }}</text>
:style="{ color: value.theme == 'diy' ? value.priceStyle.lineColor : '' }">{{ $lang('components-diy.diy-seckill.originalPrice') }}</text>
<text :style="{ color: value.theme == 'diy' ? value.priceStyle.lineColor : '' }"
class="original-price">¥{{ item.price }}</text>
</view>
@@ -97,7 +97,7 @@
color: value.btnStyle.theme == 'diy' ? value.btnStyle.textColor : '',
borderRadius: value.btnStyle.aroundRadius * 2 + 'rpx'
}">
{{ isFuture ? $lang('components-diy.diySeckill.comingSoon') : value.btnStyle.text }}
{{ isFuture ? $lang('components-diy.diy-seckill.comingSoon') : value.btnStyle.text }}
</button>
</view>
</view>
@@ -140,7 +140,7 @@
color: value.btnStyle.theme == 'diy' ? value.btnStyle.textColor : '',
borderRadius: value.btnStyle.aroundRadius * 2 + 'rpx'
}">
{{ isFuture ? $lang('components-diy.diySeckill.comingSoon') : value.btnStyle.text }}
{{ isFuture ? $lang('components-diy.diy-seckill.comingSoon') : value.btnStyle.text }}
</button>
</view>
</view>
@@ -502,7 +502,7 @@ export default {
toDetail(id) {
if (this.isFuture) {
this.$util.showToast({
title: this.$lang('components-diy.diySeckill.seckillComingSoonTip')
title: this.$lang('components-diy.diy-seckill.seckillComingSoonTip')
});
return false;
}

View File

@@ -143,7 +143,7 @@ export default {
});
video.addEventListener('error', (e) => {
console.error(this.$lang('components-diy.diyVideo.h5PreloadFailed') + ':', e);
console.error(this.$lang('components-diy.diy-video.h5PreloadFailed') + ':', e);
});
// 触发加载
@@ -184,7 +184,7 @@ export default {
// 视频错误事件
onVideoError(event) {
console.error(this.$lang('components-diy.diyVideo.videoLoadFailed') + ':', event);
console.error(this.$lang('components-diy.diy-video.videoLoadFailed') + ':', event);
},
async handlerClick(videoUrl) {