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 class="no-connect-box" v-if="message.contentType == 'noline'">
|
||||
<view class="no-connect">客服不在线</view>
|
||||
<view class="no-connect">{{ $lang('chat.customerOffline') }}</view>
|
||||
</view>
|
||||
<view class="no-connect-box" v-if="message.contentType == 'online'">
|
||||
<view class="no-connect">客服在线</view>
|
||||
<view class="no-connect">{{ $lang('chat.customerOnline') }}</view>
|
||||
</view>
|
||||
<uni-popup ref="imgPopup" type="center">
|
||||
<view class="imagePop">
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
</view>
|
||||
<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>请输入商品名称</text>
|
||||
<text>{{ $lang('goods.searchGoods') }}</text>
|
||||
</view>
|
||||
<view :style="{ 'width': capsuleWidth }"></view>
|
||||
</view>
|
||||
@@ -36,9 +36,9 @@
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
<uni-popup type="bottom" ref="regionsRef">
|
||||
<view class="regions-picker-container">
|
||||
<view class="picker-header">
|
||||
<view class="picker-action cancel" @click="$refs.regionsRef.close()">取消</view>
|
||||
<view class="picker-action confirm" @click="confirmRegions">完成</view>
|
||||
<view class="picker-action cancel" @click="$refs.regionsRef.close()">{{ $lang('common.cancel') }}</view>
|
||||
<view class="picker-action confirm" @click="confirmRegions">{{ $lang('common.done') }}</view>
|
||||
</view>
|
||||
<picker-view :value="multiIndex" @change="pickerViewColumnChange" class="picker-view">
|
||||
<picker-view-column v-if="multiArray[0]">
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</scroll-view>
|
||||
<div class="appointed-day">
|
||||
<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>
|
||||
</uni-datetime-picker>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user