i18n: 替换硬编码文本为多语言配置
替换了多个组件中的硬编码文字,新增完善多语言翻译词条,包括通用、聊天、预约日期、门店等模块的翻译内容
This commit is contained in:
@@ -57,10 +57,10 @@
|
|||||||
<view v-else-if="message.contentType == 'order'"><ns-chat-order :isCanSend="false" :orderId="message.order_id"></ns-chat-order></view>
|
<view v-else-if="message.contentType == 'order'"><ns-chat-order :isCanSend="false" :orderId="message.order_id"></ns-chat-order></view>
|
||||||
|
|
||||||
<view class="no-connect-box" v-if="message.contentType == 'noline'">
|
<view class="no-connect-box" v-if="message.contentType == 'noline'">
|
||||||
<view class="no-connect">客服不在线</view>
|
<view class="no-connect">{{ $lang('chat.customerOffline') }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="no-connect-box" v-if="message.contentType == 'online'">
|
<view class="no-connect-box" v-if="message.contentType == 'online'">
|
||||||
<view class="no-connect">客服在线</view>
|
<view class="no-connect">{{ $lang('chat.customerOnline') }}</view>
|
||||||
</view>
|
</view>
|
||||||
<uni-popup ref="imgPopup" type="center">
|
<uni-popup ref="imgPopup" type="center">
|
||||||
<view class="imagePop">
|
<view class="imagePop">
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="search" @click="$util.redirectTo('/pages_tool/goods/search')" :style="{ height: menuButtonInfo.height - 2 + 'px', lineHeight: menuButtonInfo.height - 2 + 'px' }">
|
<view class="search" @click="$util.redirectTo('/pages_tool/goods/search')" :style="{ height: menuButtonInfo.height - 2 + 'px', lineHeight: menuButtonInfo.height - 2 + 'px' }">
|
||||||
<text class="iconfont icon-sousuo3"></text>
|
<text class="iconfont icon-sousuo3"></text>
|
||||||
<text>请输入商品名称</text>
|
<text>{{ $lang('goods.searchGoods') }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view :style="{ 'width': capsuleWidth }"></view>
|
<view :style="{ 'width': capsuleWidth }"></view>
|
||||||
</view>
|
</view>
|
||||||
@@ -36,9 +36,9 @@
|
|||||||
<view v-if="data.navStyle == 4" class="content-wrap" :class="{ 'have-back': isBack && isBackShow }" @click="chooseOtherStore()">
|
<view v-if="data.navStyle == 4" class="content-wrap" :class="{ 'have-back': isBack && isBackShow }" @click="chooseOtherStore()">
|
||||||
<text class="iconfont icon-dizhi" :style="{ color: data.textNavColor }"></text>
|
<text class="iconfont icon-dizhi" :style="{ color: data.textNavColor }"></text>
|
||||||
<view v-if="globalStoreInfo && globalStoreInfo.store_id" class="title-wrap" :style="{ color: data.textNavColor }">{{ globalStoreInfo.store_name }}</view>
|
<view v-if="globalStoreInfo && globalStoreInfo.store_id" class="title-wrap" :style="{ color: data.textNavColor }">{{ globalStoreInfo.store_name }}</view>
|
||||||
<view v-else class="title-wrap" :style="{ color: data.textNavColor }">定位中...</view>
|
<view v-else class="title-wrap" :style="{ color: data.textNavColor }">{{ $lang('store.locating') }}</view>
|
||||||
<text class="iconfont icon-right" :style="{ color: data.textNavColor }"></text>
|
<text class="iconfont icon-right" :style="{ color: data.textNavColor }"></text>
|
||||||
<view class="nearby-store-name" :style="{ color: data.textNavColor }">附近门店</view>
|
<view class="nearby-store-name" :style="{ color: data.textNavColor }">{{ $lang('store.nearbyStore') }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
<uni-popup type="bottom" ref="regionsRef">
|
<uni-popup type="bottom" ref="regionsRef">
|
||||||
<view class="regions-picker-container">
|
<view class="regions-picker-container">
|
||||||
<view class="picker-header">
|
<view class="picker-header">
|
||||||
<view class="picker-action cancel" @click="$refs.regionsRef.close()">取消</view>
|
<view class="picker-action cancel" @click="$refs.regionsRef.close()">{{ $lang('common.cancel') }}</view>
|
||||||
<view class="picker-action confirm" @click="confirmRegions">完成</view>
|
<view class="picker-action confirm" @click="confirmRegions">{{ $lang('common.done') }}</view>
|
||||||
</view>
|
</view>
|
||||||
<picker-view :value="multiIndex" @change="pickerViewColumnChange" class="picker-view">
|
<picker-view :value="multiIndex" @change="pickerViewColumnChange" class="picker-view">
|
||||||
<picker-view-column v-if="multiArray[0]">
|
<picker-view-column v-if="multiArray[0]">
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
</scroll-view>
|
</scroll-view>
|
||||||
<div class="appointed-day">
|
<div class="appointed-day">
|
||||||
<uni-datetime-picker type="date" :start="pickerStartDay" :end="pickerEndDay" @change="change">
|
<uni-datetime-picker type="date" :start="pickerStartDay" :end="pickerEndDay" @change="change">
|
||||||
<text class="day-box">指定日期</text>
|
<text class="day-box">{{ $lang('yuyueDate.appointedDate') }}</text>
|
||||||
<text class="iconfont iconyoujiantou"></text>
|
<text class="iconfont iconyoujiantou"></text>
|
||||||
</uni-datetime-picker>
|
</uni-datetime-picker>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ export const lang = {
|
|||||||
loading: "加载中...",
|
loading: "加载中...",
|
||||||
upload: "上传",
|
upload: "上传",
|
||||||
iknow: "我知道了",
|
iknow: "我知道了",
|
||||||
|
tip: "提示",
|
||||||
|
skip: "跳过",
|
||||||
},
|
},
|
||||||
|
|
||||||
//客服
|
//客服
|
||||||
@@ -343,6 +345,26 @@ export const lang = {
|
|||||||
cardDeduct: "次卡抵扣",
|
cardDeduct: "次卡抵扣",
|
||||||
orderSummary: "订单概况",
|
orderSummary: "订单概况",
|
||||||
noOrderInfo: "未获取到订单信息!",
|
noOrderInfo: "未获取到订单信息!",
|
||||||
|
pointCount: "{count}积分",
|
||||||
|
usePoint: "使用积分",
|
||||||
|
shippingFee: "运费",
|
||||||
|
close: "关闭",
|
||||||
|
pay: "支付",
|
||||||
|
contactCustomerService: "联系客服",
|
||||||
|
myCardPack: "我的卡包",
|
||||||
|
view: "查看",
|
||||||
|
verifyRemaining: "剩余{remaining}次/共{total}次",
|
||||||
|
goodsAmount: "商品金额",
|
||||||
|
memberCard: "会员卡",
|
||||||
|
taxFee: "税费",
|
||||||
|
invoiceDeliveryFee: "发票邮寄费",
|
||||||
|
orderAdjust: "订单调整",
|
||||||
|
discount: "优惠",
|
||||||
|
coupon: "优惠券",
|
||||||
|
useBalance: "使用余额",
|
||||||
|
pointDeduct: "积分抵扣",
|
||||||
|
evaluate: "评价",
|
||||||
|
additionalReview: "追评",
|
||||||
},
|
},
|
||||||
|
|
||||||
// 物流
|
// 物流
|
||||||
@@ -406,6 +428,26 @@ export const lang = {
|
|||||||
confirmDeleteHistory: "确认删除该条历史记录?",
|
confirmDeleteHistory: "确认删除该条历史记录?",
|
||||||
searchContentNotEmpty: "搜索内容不能为空哦",
|
searchContentNotEmpty: "搜索内容不能为空哦",
|
||||||
goodsNotExist: "您查看的商品不存在,可能已下架或被删除",
|
goodsNotExist: "您查看的商品不存在,可能已下架或被删除",
|
||||||
|
originalPrice: "原价",
|
||||||
|
maxDeduct: "最多可抵¥{amount}",
|
||||||
|
validity: "有效期",
|
||||||
|
validityFromReceive: "领取之日起{days}天内有效",
|
||||||
|
validityLong: "长期有效",
|
||||||
|
callOnMobile: "可在手机端拨打 {phone}",
|
||||||
|
copyToClipboard: "复制到剪切板",
|
||||||
|
notConfigured: "未配置",
|
||||||
|
},
|
||||||
|
|
||||||
|
// 营销活动
|
||||||
|
promotion: {
|
||||||
|
limitedTimeDiscount: "限时折扣",
|
||||||
|
groupbuy: "团购",
|
||||||
|
pintuan: "拼团",
|
||||||
|
seckill: "秒杀",
|
||||||
|
topicActivity: "专题活动",
|
||||||
|
bargain: "砍价",
|
||||||
|
pinfan: "拼团返利",
|
||||||
|
participating: "当前商品正在参加{name}",
|
||||||
},
|
},
|
||||||
|
|
||||||
// 登录
|
// 登录
|
||||||
@@ -978,6 +1020,7 @@ export const lang = {
|
|||||||
insufficientBalance: "余额不足",
|
insufficientBalance: "余额不足",
|
||||||
payTimeout: "支付超时",
|
payTimeout: "支付超时",
|
||||||
payRepeat: "请勿重复支付",
|
payRepeat: "请勿重复支付",
|
||||||
|
errorReason: "失败原因: ",
|
||||||
},
|
},
|
||||||
|
|
||||||
// 收银台/支付页面
|
// 收银台/支付页面
|
||||||
@@ -1267,6 +1310,136 @@ export const lang = {
|
|||||||
downloadFail: "下载失败",
|
downloadFail: "下载失败",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 聊天
|
||||||
|
chat: {
|
||||||
|
customerOffline: "客服不在线",
|
||||||
|
customerOnline: "客服在线",
|
||||||
|
},
|
||||||
|
|
||||||
|
// 预约时间
|
||||||
|
yuyueDate: {
|
||||||
|
appointedDate: "指定日期",
|
||||||
|
},
|
||||||
|
|
||||||
|
// 企业微信
|
||||||
|
wxwork: {
|
||||||
|
jumpSuccess: "跳转成功",
|
||||||
|
},
|
||||||
|
|
||||||
|
// 隐私协议
|
||||||
|
privacy: {
|
||||||
|
noAgreementTip: "未同意隐私协议,无法使用相关功能",
|
||||||
|
},
|
||||||
|
|
||||||
|
// 优惠券组件
|
||||||
|
coupon: {
|
||||||
|
discountSuffix: "折",
|
||||||
|
thresholdAvailable: "满{amount}元可用",
|
||||||
|
noThreshold: "无门槛优惠券",
|
||||||
|
goUse: "去使用",
|
||||||
|
allGoodsAvailable: "所有商品可用",
|
||||||
|
designatedGoodsAvailable: "指定商品可用",
|
||||||
|
designatedGoodsUnavailable: "指定商品不可用",
|
||||||
|
currencyUnit: "元",
|
||||||
|
claimNow: "立即领取",
|
||||||
|
thresholdUse: "满{amount}元使用",
|
||||||
|
noThresholdUse: "无门槛使用",
|
||||||
|
noCoupon: "暂无优惠券",
|
||||||
|
goBrowse: "去逛逛",
|
||||||
|
coupon: "优惠券",
|
||||||
|
},
|
||||||
|
|
||||||
|
// 拼团组件
|
||||||
|
pintuan: {
|
||||||
|
participate: "人参与",
|
||||||
|
groupSuccess: "人拼团成功",
|
||||||
|
group: "人团",
|
||||||
|
soldCount: "已拼{count}件",
|
||||||
|
joinGroup: "去参团",
|
||||||
|
},
|
||||||
|
|
||||||
|
// 拼返组件
|
||||||
|
pinfan: {
|
||||||
|
group: "人团",
|
||||||
|
soldCount: "已拼{count}件",
|
||||||
|
rewardPoint: "返{count}积分",
|
||||||
|
rewardCash: "返¥{amount}",
|
||||||
|
rewardCoupon: "返优惠券",
|
||||||
|
},
|
||||||
|
|
||||||
|
// 分类组件
|
||||||
|
category: {
|
||||||
|
expand: "展开",
|
||||||
|
clickToCollapse: "点击收起",
|
||||||
|
reachedBottom: "已经到底了~",
|
||||||
|
noCategory: "暂时没有分类哦!",
|
||||||
|
},
|
||||||
|
|
||||||
|
// 文章组件
|
||||||
|
article: {
|
||||||
|
viewMore: "查看更多",
|
||||||
|
noRelatedArticles: "暂无相关文章",
|
||||||
|
},
|
||||||
|
|
||||||
|
// 商品列表页
|
||||||
|
goodsList: {
|
||||||
|
filter: "筛选",
|
||||||
|
freeShipping: "是否包邮",
|
||||||
|
priceRange: "价格区间(元)",
|
||||||
|
brand: "品牌",
|
||||||
|
allCategory: "全部分类",
|
||||||
|
all: "全部",
|
||||||
|
reset: "重置",
|
||||||
|
confirm: "确定",
|
||||||
|
},
|
||||||
|
|
||||||
|
// 购物车
|
||||||
|
cart: {
|
||||||
|
coupon: "优惠券",
|
||||||
|
couponDesc: "领取优惠券可减",
|
||||||
|
click: "点击",
|
||||||
|
view: "查看",
|
||||||
|
invalidGoodsCount: "失效商品{count}件",
|
||||||
|
clear: "清空",
|
||||||
|
invalid: "已失效",
|
||||||
|
},
|
||||||
|
|
||||||
|
// 秒杀组件
|
||||||
|
seckill: {
|
||||||
|
timeToStart: "距离开始",
|
||||||
|
timeToEnd: "距离结束",
|
||||||
|
originalPrice: "原价",
|
||||||
|
},
|
||||||
|
|
||||||
|
// DIY文本组件
|
||||||
|
diyText: {
|
||||||
|
zone: "专区",
|
||||||
|
},
|
||||||
|
|
||||||
|
// 会员信息组件
|
||||||
|
memberInfo: {
|
||||||
|
superMember: "超级会员",
|
||||||
|
viewPrivilege: "查看特权",
|
||||||
|
memberMoreBenefit: "会员可享更多权益",
|
||||||
|
openMoreBenefit: "开通可享更多权益",
|
||||||
|
openNow: "立即开通",
|
||||||
|
viewMoreBenefit: "查看更多权益",
|
||||||
|
balance: "余额",
|
||||||
|
recharge: "余额充值",
|
||||||
|
getNicknameAvatar: "获取您的昵称、头像",
|
||||||
|
getAvatarTip: "获取用户头像、昵称完善个人资料,主要用于向用户提供具有辨识度的用户中心界面",
|
||||||
|
avatar: "头像",
|
||||||
|
nickname: "昵称",
|
||||||
|
},
|
||||||
|
|
||||||
|
// 门店
|
||||||
|
store: {
|
||||||
|
locating: "定位中...",
|
||||||
|
nearbyStore: "附近门店",
|
||||||
|
switch: "切换",
|
||||||
|
getCurrentLocation: "获取当前位置...",
|
||||||
|
},
|
||||||
|
|
||||||
// 视频
|
// 视频
|
||||||
video: {
|
video: {
|
||||||
videoNotFound: "视频地址不存在",
|
videoNotFound: "视频地址不存在",
|
||||||
|
|||||||
Reference in New Issue
Block a user