refactor(fenxiao,point): 替换页面硬编码文本为多语言配置
将分销和积分商城页面中的硬编码字符串全部替换为语言包调用,统一项目多语言适配,提升页面文本可维护性和国际化支持
This commit is contained in:
@@ -25,11 +25,11 @@
|
||||
<view class="info">
|
||||
<view class="apply-item">
|
||||
<view class="title">{{ $lang('fenxiao.inviter') }}</view>
|
||||
<text class="shuru">{{ sourceMemberInfo.fenxiao_name }}</text>
|
||||
<text class="shuru">{{ sourceMemberInfo.fenxiao_name || $lang('fenxiao.none') }}</text>
|
||||
</view>
|
||||
<view class="apply-item">
|
||||
<view class="title">{{ fenxiaoWords.fenxiao_name }}{{ $lang('fenxiao.name') }}</view>
|
||||
<input class="input" type="text" maxlength="30" :placeholder="'请输入' + fenxiaoWords.fenxiao_name + '名称'" v-model="formData.fenXiaoName" placeholder-class="pla-cla" />
|
||||
<input class="input" type="text" maxlength="30" :placeholder="$lang('fenxiao.inputFenxiaoName')" v-model="formData.fenXiaoName" placeholder-class="pla-cla" />
|
||||
</view>
|
||||
<view class="apply-item">
|
||||
<view class="title">{{ $lang('member.mobile') }}</view>
|
||||
@@ -114,7 +114,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="content-lists" v-if="isShow" @click="onOpen()">
|
||||
{{ isOpen ? '展开更多' : '收起' }}
|
||||
{{ isOpen ? $lang('fenxiao.expandMore') : $lang('fenxiao.collapse') }}
|
||||
<text class="iconfont icon-unfold" style="font-weight: bold;" v-if="isOpen"></text>
|
||||
<text class="iconfont icon-fold" v-else></text>
|
||||
</view>
|
||||
@@ -123,15 +123,15 @@
|
||||
</view>
|
||||
<view class="empty" v-else>
|
||||
<image :src="$util.img('public/uniapp/fenxiao/index/no-fenxiao.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
<text>您还不是分销商</text>
|
||||
<text>{{ $lang('fenxiao.notDistributor') }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="empty" v-else>
|
||||
<image :src="$util.img('public/uniapp/fenxiao/index/no-fenxiao.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
<text v-if="status == 1">您已提交{{ fenxiaoWords.fenxiao_name }}申请,等待平台审核</text>
|
||||
<text v-if="status == 1">{{ $lang('fenxiao.submittedWaitAudit', { fenxiao_name: fenxiaoWords.fenxiao_name }) }}</text>
|
||||
<block v-else-if="status == -1">
|
||||
<text>您提交的{{ fenxiaoWords.fenxiao_name }}申请,已被拒绝,请再接再厉</text>
|
||||
<view class="again-btn color-base-bg" @click="againApply">重新申请</view>
|
||||
<text>{{ $lang('fenxiao.applicationRejected', { fenxiao_name: fenxiaoWords.fenxiao_name }) }}</text>
|
||||
<view class="again-btn color-base-bg" @click="againApply">{{ $lang('fenxiao.reapply') }}</view>
|
||||
</block>
|
||||
</view>
|
||||
<view @touchmove.prevent v-if="fenXiaoAgreement.document">
|
||||
@@ -163,7 +163,7 @@
|
||||
isIphoneX: false,
|
||||
// 推荐人信息
|
||||
sourceMemberInfo: {
|
||||
fenxiao_name: '无'
|
||||
fenxiao_name: ''
|
||||
},
|
||||
formData: {
|
||||
fenXiaoName: '',
|
||||
@@ -191,7 +191,7 @@
|
||||
setTimeout( () => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: '商家未开启分销',
|
||||
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
@@ -275,7 +275,7 @@
|
||||
if (!this.fenXiaoValidata()) return;
|
||||
if (this.isAgreement && !this.isChecked) {
|
||||
this.$util.showToast({
|
||||
title: '请仔细阅读协议,并勾选'
|
||||
title: this.$lang('fenxiao.pleaseReadAgreement')
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -330,17 +330,17 @@
|
||||
let rule = [{
|
||||
name: 'fenXiaoName',
|
||||
checkType: 'required',
|
||||
errorMsg: '请输入' + this.fenxiaoWords.fenxiao_name + '名称'
|
||||
errorMsg: this.$lang('fenxiao.inputFenxiaoName')
|
||||
},
|
||||
{
|
||||
name: 'mobile',
|
||||
checkType: 'required',
|
||||
errorMsg: '请输入手机号'
|
||||
errorMsg: this.$lang('fenxiao.inputPhone')
|
||||
},
|
||||
{
|
||||
name: 'mobile',
|
||||
checkType: 'phoneno',
|
||||
errorMsg: '请输入正确的手机号'
|
||||
errorMsg: this.$lang('fenxiao.inputPhoneCorrect')
|
||||
}
|
||||
];
|
||||
var checkRes = validate.check(this.formData, rule);
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
item.money }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<ns-empty v-if="!accountList.length && showEmpty" text="暂无账单信息" :isIndex="false"></ns-empty>
|
||||
<ns-empty v-if="!accountList.length && showEmpty" :text="$lang('fenxiao.emptyBill')" :isIndex="false"></ns-empty>
|
||||
</block>
|
||||
<loading-cover ref="loadingCover"></loading-cover>
|
||||
</mescroll-uni>
|
||||
@@ -35,7 +35,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: '商家未开启分销',
|
||||
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<block v-if="teamList.length == 0 && emptyShow">
|
||||
<ns-empty text="暂无数据" :isIndex="false"></ns-empty>
|
||||
<ns-empty :text="$lang('fenxiao.emptyData')" :isIndex="false"></ns-empty>
|
||||
</block>
|
||||
</block>
|
||||
</mescroll-uni>
|
||||
@@ -54,7 +54,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: '商家未开启分销',
|
||||
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<view class="uni-scroll-view-content">
|
||||
<!-- #endif -->
|
||||
<view class="quick-nav-item" :class="{ selected: categoryId == 0 }"
|
||||
@click="changeCategory(0)">全部</view>
|
||||
@click="changeCategory(0)">{{ $lang('fenxiao.all') }}</view>
|
||||
<view class="quick-nav-item" v-for="item in categoryList" :key="item.category_id"
|
||||
:class="{ selected: categoryId == item.category_id }"
|
||||
@click="changeCategory(item.category_id)">
|
||||
@@ -39,24 +39,24 @@
|
||||
</view>
|
||||
<view class="goods-share" @click.stop="shareFn('goods', index)">
|
||||
<text class="icondiy icon-system-share"></text>
|
||||
<text class="txt" v-if="!is_fenxiao">分享</text>
|
||||
<text class="txt" v-else>赚{{ item.commission_money }}元</text>
|
||||
<text class="txt" v-if="!is_fenxiao">{{ $lang('fenxiao.share') }}</text>
|
||||
<text class="txt" v-else>{{ $lang('fenxiao.earn') }}{{ item.commission_money }}{{ $lang('common.yuan') }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="empty" v-if="goodsList.length == 0">
|
||||
<ns-empty :isIndex="false" text="暂无分销商品" textColor="#fff"></ns-empty>
|
||||
<ns-empty :isIndex="false" :text="$lang('fenxiao.emptyGoods')" textColor="#fff"></ns-empty>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</mescroll-uni>
|
||||
<view class="active-btn" v-if="goodsList.length">
|
||||
<!-- #ifdef MP -->
|
||||
<button class="share-btn" :plain="true" open-type="share">分享好友</button>
|
||||
<button class="share-btn" :plain="true" open-type="share">{{ $lang('fenxiao.shareFriend') }}</button>
|
||||
<text class="tag">|</text>
|
||||
<!-- #endif -->
|
||||
<text class="btn" @click="shareFn('fenxiao')">生成海报</text>
|
||||
<text class="btn" @click="shareFn('fenxiao')">{{ $lang('fenxiao.generatePoster') }}</text>
|
||||
</view>
|
||||
<loading-cover ref="loadingCover"></loading-cover>
|
||||
|
||||
@@ -64,13 +64,13 @@
|
||||
<view @touchmove.prevent.stop>
|
||||
<uni-popup ref="sharePopup" type="bottom" class="share-popup">
|
||||
<view>
|
||||
<view class="share-title">分享</view>
|
||||
<view class="share-title">{{ $lang('fenxiao.share') }}</view>
|
||||
<view class="share-content">
|
||||
<!-- #ifdef MP -->
|
||||
<view class="share-box">
|
||||
<button class="share-btn" :plain="true" open-type="share">
|
||||
<view class="iconfont icon-share-friend"></view>
|
||||
<text>分享给好友</text>
|
||||
<text>{{ $lang('fenxiao.shareToFriend') }}</text>
|
||||
</button>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
@@ -79,7 +79,7 @@
|
||||
<view class="share-box" v-if="goodsCircle">
|
||||
<button class="share-btn" :plain="true" @click="openBusinessView">
|
||||
<view class="iconfont icon-haowuquan"></view>
|
||||
<text>分享到好物圈</text>
|
||||
<text>{{ $lang('fenxiao.shareToGoodsCircle') }}</text>
|
||||
</button>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
@@ -87,19 +87,19 @@
|
||||
<view class="share-box" @click="openPosterPopup">
|
||||
<button class="share-btn" :plain="true">
|
||||
<view class="iconfont icon-pengyouquan"></view>
|
||||
<text>生成分享海报</text>
|
||||
<text>{{ $lang('fenxiao.generateSharePoster') }}</text>
|
||||
</button>
|
||||
</view>
|
||||
<!-- #ifdef H5 -->
|
||||
<view class="share-box" @click="copyUrl">
|
||||
<button class="share-btn" :plain="true">
|
||||
<view class="iconfont icon-fuzhilianjie"></view>
|
||||
<text>复制链接</text>
|
||||
<text>{{ $lang('fenxiao.copyLink') }}</text>
|
||||
</button>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
<view class="share-footer" @click="closeSharePopup"><text>取消分享</text></view>
|
||||
<view class="share-footer" @click="closeSharePopup"><text>{{ $lang('fenxiao.cancelShare') }}</text></view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
</view>
|
||||
@@ -112,10 +112,10 @@
|
||||
<image :src="$util.img(poster)" show-menu-by-longpress />
|
||||
</view>
|
||||
<!-- #ifdef MP || APP-PLUS -->
|
||||
<view class="save" @click="saveGoodsPoster()">保存图片</view>
|
||||
<view class="save" @click="saveGoodsPoster()">{{ $lang('fenxiao.saveImage') }}</view>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef H5 -->
|
||||
<view class="save">长按保存图片</view>
|
||||
<view class="save">{{ $lang('fenxiao.longPressSave') }}</view>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
<view class="close iconfont icon-close" @click="closePosterPopup()"></view>
|
||||
|
||||
@@ -17,15 +17,15 @@
|
||||
</view>
|
||||
<view class="level-rate">
|
||||
<view class="rate-item" v-if="config.level > 0">
|
||||
<view class="title">一级分佣比率</view>
|
||||
<view class="title">{{ $lang('fenxiao.firstCommissionRate') }}</view>
|
||||
<view class="rate">{{ item.one_rate }}<text class="percentage">%</text></view>
|
||||
</view>
|
||||
<view class="rate-item" v-if="config.level > 1">
|
||||
<view class="title">二级分佣比率</view>
|
||||
<view class="title">{{ $lang('fenxiao.secondCommissionRate') }}</view>
|
||||
<view class="rate">{{ item.two_rate }}<text class="percentage">%</text></view>
|
||||
</view>
|
||||
<view class="rate-item" v-if="config.level > 2">
|
||||
<view class="title">三级分佣比率</view>
|
||||
<view class="title">{{ $lang('fenxiao.thirdCommissionRate') }}</view>
|
||||
<view class="rate">{{ item.three_rate }}<text class="percentage">%</text></view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
<view class="level-condition" v-if="levelInfo">
|
||||
<view class="condition-title">
|
||||
<view class="title">快速升级技巧</view>
|
||||
<view class="title">{{ $lang('fenxiao.quickUpgradeTip') }}</view>
|
||||
<view class="rate price-font">
|
||||
<text class="complete">{{ levelInfo.complete > levelInfo.task_num ? levelInfo.task_num : levelInfo.complete }}</text>
|
||||
<text class="num">/{{ levelInfo.task_num }}</text>
|
||||
@@ -54,7 +54,7 @@
|
||||
<text class="iconfont icon-wenxiao" @click="openTips(item)"></text>
|
||||
</view>
|
||||
<view class="status" :class="{'complete': item.progress == 100}">
|
||||
{{ item.progress == 100 ? '已完成' : '未完成' }}</view>
|
||||
{{ item.progress == 100 ? $lang('fenxiao.completed') : $lang('fenxiao.incomplete') }}</view>
|
||||
</view>
|
||||
<view class="progress">
|
||||
<progress :percent="item.progress" activeColor="#E7B667" stroke-width="4" />
|
||||
@@ -73,12 +73,12 @@
|
||||
<uni-popup type="bottom" ref="tips">
|
||||
<view class="popup">
|
||||
<view class="popup-header">
|
||||
<text class="tit">提示</text>
|
||||
<text class="tit">{{ $lang('fenxiao.hint') }}</text>
|
||||
<text class="iconfont icon-close" @click="$refs.tips.close()"></text>
|
||||
</view>
|
||||
<view class="popup-body">
|
||||
<view>{{ tips }}</view>
|
||||
<view v-if="levelInfo">{{ levelInfo.upgrade_type == 1 ? '满足任意一条件即可升级' : '满足全部条件才能进行升级' }}</view>
|
||||
<view v-if="levelInfo">{{ levelInfo.upgrade_type == 1 ? $lang('fenxiao.upgradeConditionAny') : $lang('fenxiao.upgradeConditionAll') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
@@ -114,9 +114,9 @@
|
||||
|
||||
if (level.one_fenxiao_order_num > 0) {
|
||||
let task = {
|
||||
title: '下级消费',
|
||||
desc: '下级消费单数满' + level.one_fenxiao_order_num + '单',
|
||||
tips: '分销商自己购买和自己推荐的直属会员购买的订单次数达到'+ level.one_fenxiao_order_num + '单',
|
||||
title: this.$lang('fenxiao.subordinateConsume'),
|
||||
desc: this.$lang('fenxiao.subordinateConsumeOrderNum', { num: level.one_fenxiao_order_num }),
|
||||
tips: this.$lang('fenxiao.subordinateConsumeOrderNumTip', { num: level.one_fenxiao_order_num }),
|
||||
condition: level.one_fenxiao_order_num,
|
||||
value: this.fenxiaoInfo.one_fenxiao_order_num,
|
||||
progress: parseFloat(this.fenxiaoInfo.one_fenxiao_order_num) > parseFloat(level.one_fenxiao_order_num) ? 100 : (parseFloat(this.fenxiaoInfo.one_fenxiao_order_num) / parseFloat(level.one_fenxiao_order_num) * 100).toFixed(2)
|
||||
@@ -126,9 +126,9 @@
|
||||
}
|
||||
if (level.one_fenxiao_total_order > 0) {
|
||||
let task = {
|
||||
title: '下级消费',
|
||||
desc: '下级消费金额满' + this.moneyFormat(level.one_fenxiao_total_order) + '元',
|
||||
tips: '分销商自己购买和推荐的直属会员购买的订单的总额达到'+ this.moneyFormat(level.one_fenxiao_total_order) + '元',
|
||||
title: this.$lang('fenxiao.subordinateConsume'),
|
||||
desc: this.$lang('fenxiao.subordinateConsumeAmount', { amount: this.moneyFormat(level.one_fenxiao_total_order) }),
|
||||
tips: this.$lang('fenxiao.subordinateConsumeAmountTip', { amount: this.moneyFormat(level.one_fenxiao_total_order) }),
|
||||
condition: this.moneyFormat(level.one_fenxiao_total_order),
|
||||
value: this.fenxiaoInfo.one_fenxiao_total_order,
|
||||
progress: parseFloat(this.fenxiaoInfo.one_fenxiao_total_order) > parseFloat(level.one_fenxiao_total_order) ? 100 : (parseFloat(this.fenxiaoInfo.one_fenxiao_total_order) / parseFloat(level.one_fenxiao_total_order) * 100)
|
||||
@@ -139,9 +139,9 @@
|
||||
}
|
||||
if (level.one_fenxiao_order_money > 0) {
|
||||
let task = {
|
||||
title: '下级消费',
|
||||
desc: '下级消费产生佣金总额满' + this.moneyFormat(level.one_fenxiao_order_money) + '元',
|
||||
tips: '分销商自己购买和自己推荐的直属会员购买的订单佣金总额达到'+ this.moneyFormat(level.one_fenxiao_order_money) + '元',
|
||||
title: this.$lang('fenxiao.subordinateConsume'),
|
||||
desc: this.$lang('fenxiao.subordinateConsumeCommission', { amount: this.moneyFormat(level.one_fenxiao_order_money) }),
|
||||
tips: this.$lang('fenxiao.subordinateConsumeCommissionTip', { amount: this.moneyFormat(level.one_fenxiao_order_money) }),
|
||||
condition: this.moneyFormat(level.one_fenxiao_order_money),
|
||||
value: this.fenxiaoInfo.one_fenxiao_order_money,
|
||||
progress: parseFloat(this.fenxiaoInfo.one_fenxiao_order_money) > parseFloat(level.one_fenxiao_order_money) ? 100 : (parseFloat(this.fenxiaoInfo.one_fenxiao_order_money) / parseFloat(level.one_fenxiao_order_money) * 100)
|
||||
@@ -152,9 +152,9 @@
|
||||
}
|
||||
if (level.order_num > 0) {
|
||||
let task = {
|
||||
title: '自身消费',
|
||||
desc: '自身消费单数满' + level.order_num + '单',
|
||||
tips: '分销商自己购买的订单次数达到'+ level.order_num + '单',
|
||||
title: this.$lang('fenxiao.selfConsume'),
|
||||
desc: this.$lang('fenxiao.selfConsumeOrderNum', { num: level.order_num }),
|
||||
tips: this.$lang('fenxiao.selfConsumeOrderNumTip', { num: level.order_num }),
|
||||
condition: level.order_num,
|
||||
value: this.fenxiaoInfo.order_num,
|
||||
progress: parseFloat(this.fenxiaoInfo.order_num) > parseFloat(level.order_num) ? 100 : (parseFloat(this.fenxiaoInfo.order_num) / parseFloat(level.order_num) * 100).toFixed(2)
|
||||
@@ -164,9 +164,9 @@
|
||||
}
|
||||
if (level.order_money > 0) {
|
||||
let task = {
|
||||
title: '自身消费',
|
||||
desc: '自身消费金额满' + this.moneyFormat(level.order_money) + '元',
|
||||
tips: '分销商自己购买的订单总额满足'+ this.moneyFormat(level.order_money) + '元',
|
||||
title: this.$lang('fenxiao.selfConsume'),
|
||||
desc: this.$lang('fenxiao.selfConsumeAmount', { amount: this.moneyFormat(level.order_money) }),
|
||||
tips: this.$lang('fenxiao.selfConsumeAmountTip', { amount: this.moneyFormat(level.order_money) }),
|
||||
condition: this.moneyFormat(level.order_money),
|
||||
value: this.fenxiaoInfo.order_money,
|
||||
progress: parseFloat(this.fenxiaoInfo.order_money) > parseFloat(level.order_money) ? 100 : (parseFloat(this.fenxiaoInfo.order_money) / parseFloat(level.order_money) * 100).toFixed(2)
|
||||
@@ -176,9 +176,9 @@
|
||||
}
|
||||
if (level.one_child_num > 0) {
|
||||
let task = {
|
||||
title: '邀请好友',
|
||||
desc: '邀请好友人数达到' + level.one_child_num + '人',
|
||||
tips: '分销商的直属下级会员人数达到'+level.one_child_num+'人(包含已经申请成为分销商的)',
|
||||
title: this.$lang('fenxiao.inviteFriend'),
|
||||
desc: this.$lang('fenxiao.inviteFriendCount', { num: level.one_child_num }),
|
||||
tips: this.$lang('fenxiao.inviteFriendCountTip', { num: level.one_child_num }),
|
||||
condition: level.one_child_num,
|
||||
value: this.fenxiaoInfo.one_child_num,
|
||||
progress: parseFloat(this.fenxiaoInfo.one_child_num) > parseFloat(level.one_child_num) ? 100 : (parseFloat(this.fenxiaoInfo.one_child_num) / parseFloat(level.one_child_num) * 100).toFixed(2)
|
||||
@@ -188,9 +188,9 @@
|
||||
}
|
||||
if (level.one_child_fenxiao_num > 0) {
|
||||
let task = {
|
||||
title: '邀请好友',
|
||||
desc: '邀请好友成为分销商人数达到' + level.one_child_fenxiao_num + '人',
|
||||
tips: '分销商的直属下级分销商人数达到'+ level.one_child_fenxiao_num + '人',
|
||||
title: this.$lang('fenxiao.inviteFriend'),
|
||||
desc: this.$lang('fenxiao.inviteFenxiaoCount', { num: level.one_child_fenxiao_num }),
|
||||
tips: this.$lang('fenxiao.inviteFenxiaoCountTip', { num: level.one_child_fenxiao_num }),
|
||||
condition: level.one_child_fenxiao_num,
|
||||
value: this.fenxiaoInfo.one_child_fenxiao_num,
|
||||
progress: parseFloat(this.fenxiaoInfo.one_child_fenxiao_num) > parseFloat(level.one_child_fenxiao_num) ? 100 : (parseFloat(this.fenxiaoInfo.one_child_fenxiao_num) / parseFloat(level.one_child_fenxiao_num) * 100).toFixed(2)
|
||||
@@ -208,7 +208,7 @@
|
||||
setTimeout( () => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: '商家未开启分销',
|
||||
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<view class="flex-item input-wrap" @click.stop="search()" @tap.stop="search()">
|
||||
<input class="uni-input" maxlength="50" v-model="keyword" confirm-type="search" @confirm="search()"
|
||||
@click.stop="search()" @tap.stop="search()"
|
||||
:placeholder="isEnEnv ? 'Please enter product keywords' : '请输入商品关键词'" />
|
||||
:placeholder="$lang('point.searchKeyword')" />
|
||||
<text class="iconfont icon-sousuo3" @click.stop="search()" @tap.stop="search()"></text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -14,10 +14,10 @@
|
||||
<!-- 排序 -->
|
||||
<view class="sort-wrap">
|
||||
<view class="comprehensive-wrap" :class="{ 'color-base-text': order === '' }" @click="sortTabClick('')">
|
||||
<text :class="{ 'color-base-text': order === '' }">{{ isEnEnv ? 'Comprehensive' : '综合' }}</text>
|
||||
<text :class="{ 'color-base-text': order === '' }">{{ $lang('goods.comprehensive') }}</text>
|
||||
</view>
|
||||
<view class="price-wrap" @click="sortTabClick('point')">
|
||||
<text :class="{ 'color-base-text': order === 'point' }">{{ isEnEnv ? 'Points' : '积分' }}</text>
|
||||
<text :class="{ 'color-base-text': order === 'point' }">{{ $lang('point.point') }}</text>
|
||||
<view class="iconfont-wrap">
|
||||
<view class="iconfont icon-shangsanjiao-copy"
|
||||
:class="{ 'color-base-text': priceOrder === 'asc' && order === 'point' }"></view>
|
||||
@@ -26,7 +26,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="price-wrap" @click="sortTabClick('create_time')">
|
||||
<text :class="{ 'color-base-text': order === 'create_time' }">{{ isEnEnv ? 'New Arrival' : '上新时间'
|
||||
<text :class="{ 'color-base-text': order === 'create_time' }">{{ $lang('point.newArrivalTime')
|
||||
}}</text>
|
||||
<view class="iconfont-wrap">
|
||||
<view class="iconfont icon-shangsanjiao-copy"
|
||||
@@ -36,7 +36,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view :class="{ 'color-base-text': order === 'screen' }" class="screen-wrap">
|
||||
<text @click="sortTabClick('screen')">{{ isEnEnv ? 'Filter' : '筛选' }}</text>
|
||||
<text @click="sortTabClick('screen')">{{ $lang('goods.filter') }}</text>
|
||||
<view @click="sortTabClick('screen')" class="iconfont-wrap">
|
||||
<view class="iconfont icon-shaixuan color-tip"></view>
|
||||
</view>
|
||||
@@ -60,7 +60,7 @@
|
||||
<view class="lineheight-clear">
|
||||
<view class="discount-price">
|
||||
<text class="unit ">{{ item.point }}</text>
|
||||
<text class="unit font-size-tag">{{ isEnEnv ? 'Points' : '积分' }}</text>
|
||||
<text class="unit font-size-tag">{{ $lang('point.point') }}</text>
|
||||
<block v-if="item.price > 0 && item.pay_type > 0">
|
||||
<text class="unit font-size-tag">+</text>
|
||||
<text class="unit font-size-tag">{{ $lang('common.currencySymbol')
|
||||
@@ -73,7 +73,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="pro-info" v-if="item.stock_show">
|
||||
<view class="font-size-activity-tag color-tip">{{ isEnEnv ? 'Stock ' : '库存' }}{{
|
||||
<view class="font-size-activity-tag color-tip">{{ $lang('point.stockLabel') }}{{
|
||||
item.stock }}</view>
|
||||
<view class="sale font-size-activity-tag color-tip" @click="toDetail(item)">
|
||||
<!-- <button type="primary" size="mini">立即兑换</button> -->
|
||||
@@ -84,7 +84,7 @@
|
||||
</view>
|
||||
<view class="empty" v-if="goodsList.length == 0">
|
||||
<ns-empty :isIndex="false"
|
||||
:text="isEnEnv ? 'No point products available' : '暂无积分商品'"></ns-empty>
|
||||
:text="$lang('point.noPointGoods')"></ns-empty>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
@@ -92,26 +92,26 @@
|
||||
|
||||
<!-- 筛选弹出框 -->
|
||||
<uni-drawer :visible="showScreen" mode="right" @close="showScreen = false" class="screen-wrap">
|
||||
<view class="title color-tip">{{ isEnEnv ? 'Filter' : '筛选' }}</view>
|
||||
<view class="title color-tip">{{ $lang('goods.filter') }}</view>
|
||||
<scroll-view scroll-y>
|
||||
<!-- 价格筛选项 -->
|
||||
<view class="item-wrap">
|
||||
<view class="label"><text>{{ isEnEnv ? 'Point Range' : '积分区间' }}</text></view>
|
||||
<view class="label"><text>{{ $lang('point.pointRange') }}</text></view>
|
||||
<view class="price-wrap">
|
||||
<input class="uni-input" type="digit" v-model="minPoint"
|
||||
:placeholder="isEnEnv ? 'Min' : '最低'" />
|
||||
:placeholder="$lang('point.min')" />
|
||||
<view class="h-line"></view>
|
||||
<input class="uni-input" type="digit" v-model="maxPoint"
|
||||
:placeholder="isEnEnv ? 'Max' : '最高'" />
|
||||
:placeholder="$lang('point.max')" />
|
||||
</view>
|
||||
</view>
|
||||
<!-- 分类筛选项 -->
|
||||
<view class="category-list-wrap">
|
||||
<text class="first">{{ isEnEnv ? 'All Categories' : '全部分类' }}</text>
|
||||
<text class="first">{{ $lang('point.allCategories') }}</text>
|
||||
<view class="class-box">
|
||||
<view @click="selectedCategory('')" class="list-wrap"><text
|
||||
:class="{ selected: !categoryId, 'color-base-text': !categoryId }">{{ isEnEnv ? 'All' :
|
||||
'全部' }}</text></view>
|
||||
:class="{ selected: !categoryId, 'color-base-text': !categoryId }">{{ $lang('goods.all')
|
||||
}}</text></view>
|
||||
<view @click="selectedCategory(item.category_id)" v-for="(item, index) in categoryList"
|
||||
:key="index" class="list-wrap">
|
||||
<text
|
||||
@@ -122,8 +122,8 @@
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="footer" :class="{ 'safe-area': isIphoneX }">
|
||||
<button type="default" class="footer-box" @click="resetData">{{ isEnEnv ? 'Reset' : '重置' }}</button>
|
||||
<button type="primary" class="footer-box1" @click="screenData">{{ isEnEnv ? 'Confirm' : '确定' }}</button>
|
||||
<button type="default" class="footer-box" @click="resetData">{{ $lang('goods.reset') }}</button>
|
||||
<button type="primary" class="footer-box1" @click="screenData">{{ $lang('common.confirm') }}</button>
|
||||
</view>
|
||||
</uni-drawer>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user