refactor: 替换多页面国际化文本为硬编码中文内容
移除项目内大部分$lang()国际化调用,替换为直接中文文本,统一前端展示文案
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
</view>
|
||||
<view class="group-wrap padding-top">
|
||||
<view class="goods-module-wrap">
|
||||
<text class="price-symbol ">{{ pointInfo.point }}{{ $lang('point.point') }}</text>
|
||||
<text class="price-symbol ">{{ pointInfo.point }}积分</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('point.stockLabel') }}:{{ pointInfo.stock }}{{
|
||||
<text class="color-tip" v-if="pointInfo.pointCoupon != 1">库存:{{ pointInfo.stock }}{{
|
||||
pointInfo.stock >= 0 ?
|
||||
pointInfo.unit : '' }}</text>
|
||||
<text class="color-tip" v-else>{{ $lang('point.stockLabel') }}:{{ $lang('point.unlimitedStock') }}{{ pointInfo.stock >= 0 ? pointInfo.unit : '' }}</text>
|
||||
<text class="color-tip" v-else>库存:无限{{ pointInfo.stock >= 0 ? pointInfo.unit : '' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="goods-module-wrap info">
|
||||
@@ -61,21 +61,21 @@
|
||||
<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('point.contains') }}{{ pointInfo.balance
|
||||
}}{{ $lang('common.yuan') }}</view>
|
||||
<view v-if="pointInfo.coupon_type == 'random'" class="color-tip">{{ $lang('point.noThresholdCoupon') }}</view>
|
||||
<view v-if="pointInfo.coupon_type == 'reward'" class="color-tip">{{ $lang('form.full') + pointInfo.at_least +
|
||||
$lang('common.yuan') + $lang('order.fullReduceDesc', { limit: pointInfo.at_least, type: '', money: pointInfo.money })
|
||||
<view v-if="pointInfo.balance && pointInfo.balance > 0" class="color-tip">内含{{ pointInfo.balance
|
||||
}}元</view>
|
||||
<view v-if="pointInfo.coupon_type == 'random'" class="color-tip">无门槛优惠券</view>
|
||||
<view v-if="pointInfo.coupon_type == 'reward'" class="color-tip">{{ '满' + pointInfo.at_least +
|
||||
'减' + pointInfo.money
|
||||
}}</view>
|
||||
<view v-if="pointInfo.coupon_type == 'discount'" class="color-tip">
|
||||
{{ $lang('form.full') }}{{ pointInfo.at_least }}{{ $lang('common.yuan') }}
|
||||
<text>{{ pointInfo.discount }}{{ $lang('common.discount') }}</text>
|
||||
满{{ pointInfo.at_least }}元
|
||||
<text>{{ pointInfo.discount }}折</text>
|
||||
</view>
|
||||
<view v-if="pointInfo.coupon_type == 'discount'" class="color-tip">{{ $lang('point.maxDiscount') }}{{
|
||||
pointInfo.discount_limit }}{{ $lang('common.yuan') }}</view>
|
||||
<view v-if="pointInfo.coupon_type == 'discount'" class="color-tip">最多优惠{{
|
||||
pointInfo.discount_limit }}元</view>
|
||||
<view class="time color-tip" v-if="pointInfo.coupon_type">
|
||||
{{ pointInfo.validity_type == 1 ? $lang('point.fromReceive') + pointInfo.fixed_term + $lang('point.daysValid') :
|
||||
$util.timeStampTurnTime(pointInfo.end_time) + $lang('point.expireAt') }}
|
||||
{{ pointInfo.validity_type == 1 ? '领取之日起' + pointInfo.fixed_term + '天内有效' :
|
||||
$util.timeStampTurnTime(pointInfo.end_time) + '到期' }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -88,7 +88,7 @@
|
||||
<view class="community-txt">{{ pointInfo.qr_data.community_describe }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="community-btn" @click="onCommunity()">{{ $lang('point.add') }}</view>
|
||||
<view class="community-btn" @click="onCommunity()">添加</view>
|
||||
</view>
|
||||
|
||||
<!-- 促销 -->
|
||||
@@ -96,7 +96,7 @@
|
||||
v-show="isCommunity">
|
||||
<view class="community-model-content" @click.stop>
|
||||
<view class="community-model-content-radius">
|
||||
<view>{{ $lang('point.add') }}{{ $lang('point.community') }}</view>
|
||||
<view>添加社群</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
|
||||
@@ -104,7 +104,7 @@
|
||||
: $util.img('public/uniapp/goods/detail_erweiImage.png')
|
||||
" mode="aspectFill" show-menu-by-longpress />
|
||||
</view>
|
||||
<view class="community-model-content-text">{{ $lang('point.longPressQrCode') }}</view>
|
||||
<view class="community-model-content-text">长按识别二维码,添加社群</view>
|
||||
</view>
|
||||
<view class="community-model-close" @click.stop="onCloseCommunity()"><text
|
||||
class="iconfont icon-close"></text>
|
||||
@@ -115,7 +115,7 @@
|
||||
<view class="newdetail margin-bottom">
|
||||
<!-- 已选规格 -->
|
||||
<view class="item selected-sku-spec" v-if="pointInfo.sku_spec_format" @click="exchange">
|
||||
<view class="label">{{ $lang('point.select') }}</view>
|
||||
<view class="label">选择</view>
|
||||
<view class="box">
|
||||
<text v-for="(item, index) in pointInfo.sku_spec_format" :key="index">{{ item.spec_name
|
||||
}}/{{
|
||||
@@ -126,7 +126,7 @@
|
||||
|
||||
<view class="item goods-attribute" @click="openAttributePopup()"
|
||||
v-if="pointInfo.goods_attr_format && pointInfo.goods_attr_format.length > 0">
|
||||
<view class="label">{{ $lang('point.attribute') }}</view>
|
||||
<view class="label">属性</view>
|
||||
<view class="box">
|
||||
<text v-for="(item, index) in pointInfo.goods_attr_format" :key="index"
|
||||
v-if="index < 2">{{
|
||||
@@ -141,7 +141,7 @@
|
||||
<uni-popup ref="attributePopup" type="bottom">
|
||||
<view class="goods-attribute-popup-layer popup-layer">
|
||||
<view class="head-wrap" @click="closeAttributePopup()">
|
||||
<text>{{ $lang('point.goodsAttribute') }}</text>
|
||||
<text>商品属性</text>
|
||||
<text class="iconfont icon-close"></text>
|
||||
</view>
|
||||
<scroll-view scroll-y class="goods-attribute-body">
|
||||
@@ -152,7 +152,7 @@
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="button-box"><button type="primary"
|
||||
@click="closeAttributePopup()">{{ $lang('point.confirm') }}</button></view>
|
||||
@click="closeAttributePopup()">确定</button></view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
</view>
|
||||
@@ -161,7 +161,7 @@
|
||||
<uni-popup ref="merchantsServicePopup" type="bottom">
|
||||
<view class="goods-merchants-service-popup-layer popup-layer">
|
||||
<view class="head-wrap" @click="closeMerchantsServicePopup()">
|
||||
<text>{{ $lang('point.goodsService') }}</text>
|
||||
<text>商品服务</text>
|
||||
<text class="iconfont icon-close"></text>
|
||||
</view>
|
||||
<scroll-view scroll-y>
|
||||
@@ -175,7 +175,7 @@
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="button-box"><button type="primary"
|
||||
@click="closeMerchantsServicePopup()">{{ $lang('point.confirm') }}</button></view>
|
||||
@click="closeMerchantsServicePopup()">确定</button></view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
</view>
|
||||
@@ -184,7 +184,7 @@
|
||||
<!-- 详情 -->
|
||||
<view class="goods-detail-tab">
|
||||
<view class="detail-tab">
|
||||
<view class="tab-item">{{ $lang('point.exchangeDetail') }}</view>
|
||||
<view class="tab-item">兑换详情</view>
|
||||
</view>
|
||||
|
||||
<view class="detail-content">
|
||||
@@ -192,7 +192,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('point.noExchangeDetail') }}</view>
|
||||
<view class="goods-details active" v-else>暂无兑换详情!</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -205,14 +205,14 @@
|
||||
</view>
|
||||
|
||||
<view class="detail-swap" @click="exchange()" :class="{ 'position-bottom': isIphoneX }" v-if="!isLogin"><button
|
||||
type="primary">{{ $lang('point.loginToExchange') }}</button></view>
|
||||
type="primary">登录之后方可兑换</button></view>
|
||||
<block v-else>
|
||||
<view class="detail-swap" :class="{ 'position-bottom': isIphoneX }" v-if="pointInfo.stock == 0"><button
|
||||
disabled>{{ $lang('point.insufficientStock') }}</button></view>
|
||||
disabled>库存不足</button></view>
|
||||
<view class="detail-swap" :class="{ 'position-bottom': isIphoneX }" v-else-if="enough"><button
|
||||
disabled>{{ $lang('point.insufficientPoint') }}</button></view>
|
||||
disabled>积分不足</button></view>
|
||||
<view class="detail-swap" @click="exchange()" :class="{ 'position-bottom': isIphoneX }" v-else><button
|
||||
type="primary" hover-class="none">{{ $lang('point.exchange') }}</button></view>
|
||||
type="primary" hover-class="none">兑换</button></view>
|
||||
</block>
|
||||
|
||||
<loading-cover ref="loadingCover"></loading-cover>
|
||||
@@ -293,7 +293,7 @@ export default {
|
||||
imageUrl = this.pointInfo.image;
|
||||
break;
|
||||
}
|
||||
title = this.$lang('point.exchangeWithPoints', { points: this.pointInfo.point }) + title;
|
||||
title = '仅需' + this.pointInfo.point + '积分即可兑换' + title;
|
||||
imageUrl = this.$util.img(imageUrl);
|
||||
var route = this.$util.getCurrentShareRoute(this.memberInfo ? this.memberInfo.member_id : 0);
|
||||
var path = route.path;
|
||||
@@ -322,7 +322,7 @@ export default {
|
||||
imageUrl = this.pointInfo.image;
|
||||
break;
|
||||
}
|
||||
title = this.$lang('point.exchangeWithPoints', { points: this.pointInfo.point }) + title;
|
||||
title = '仅需' + this.pointInfo.point + '积分即可兑换' + title;
|
||||
imageUrl = this.$util.img(imageUrl);
|
||||
var route = this.$util.getCurrentShareRoute(this.memberInfo ? this.memberInfo.member_id : 0);
|
||||
var query = route.query;
|
||||
|
||||
Reference in New Issue
Block a user