refactor: replace hardcoded text with language package entries
Replace all inline hardcoded Chinese strings in multiple Vue pages with corresponding language package keys, to unify text management and support multi-language switching.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<view class="image" :class="fenXiaoAgreement.agreement.img ? '' : 'color-base-bg'">
|
||||
<image v-if="fenXiaoAgreement.agreement.img" class="apply-adv" :src="$util.img(fenXiaoAgreement.agreement.img)" mode="widthFix" style="width: 100%;" show-menu-by-longpress/>
|
||||
<view class="bg ns-gradient-otherpages-fenxiao-apply-apply-bg" v-else>
|
||||
<view class="bg-title"><text>请填写申请信息</text></view>
|
||||
<view class="bg-title"><text>{{ $lang('fenxiao.fillApplyInfo') }}</text></view>
|
||||
<view class="bg-img">
|
||||
<image :src="$util.img('public/uniapp/fenxiao/apply/edit.png')" mode="scaleToFill" show-menu-by-longpress></image>
|
||||
</view>
|
||||
@@ -24,44 +24,44 @@
|
||||
<view class="app-info">
|
||||
<view class="info">
|
||||
<view class="apply-item">
|
||||
<view class="title">邀请人</view>
|
||||
<view class="title">{{ $lang('fenxiao.inviter') }}</view>
|
||||
<text class="shuru">{{ sourceMemberInfo.fenxiao_name }}</text>
|
||||
</view>
|
||||
<view class="apply-item">
|
||||
<view class="title">{{ fenxiaoWords.fenxiao_name }}名称</view>
|
||||
<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" />
|
||||
</view>
|
||||
<view class="apply-item">
|
||||
<view class="title">手机号</view>
|
||||
<input class="input" type="number" placeholder="请输入手机号" maxlength="11" v-model="formData.mobile" placeholder-class="pla-cla" />
|
||||
<view class="title">{{ $lang('member.mobile') }}</view>
|
||||
<input class="input" type="number" :placeholder="$lang('form.inputMobile')" maxlength="11" v-model="formData.mobile" placeholder-class="pla-cla" />
|
||||
</view>
|
||||
<view class="apply-xy" v-if="isAgreement" @click="ckeckedRuler()">
|
||||
<view class="iconfont" :class="isChecked ? 'icon-yuan_checked color-base-text' : 'icon-yuan_checkbox'">
|
||||
</view>
|
||||
我已阅读并了解
|
||||
<text class="color-base-text" @click.stop="openPopup">【{{ fenxiaoWords.fenxiao_name }}申请协议】</text>
|
||||
{{ $lang('fenxiao.readAndAgree') }}
|
||||
<text class="color-base-text" @click.stop="openPopup">【{{ fenxiaoWords.fenxiao_name }}{{ $lang('fenxiao.applyAgreement') }}】</text>
|
||||
</view>
|
||||
<view class="apply-btn">
|
||||
<button @click="applyFenXiao" class="color-base-bg">申请成为{{ fenxiaoWords.fenxiao_name }}</button>
|
||||
<button @click="applyFenXiao" class="color-base-bg">{{ $lang('fenxiao.applyToBecome') }}{{ fenxiaoWords.fenxiao_name }}</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="apply-message-wrap" v-if="fenxiaoConfig.fenxiao_condition == 2 || fenxiaoConfig.fenxiao_condition == 3">
|
||||
<view class="apply-message">
|
||||
<view class="apply-message-title color-base-bg-before">分销商申请条件</view>
|
||||
<view class="apply-message-title color-base-bg-before">{{ $lang('fenxiao.applyCondition') }}</view>
|
||||
<text class="apply-message-info font-size-goods-tag" v-if="fenxiaoConfig.fenxiao_condition == 2">
|
||||
申请成为{{ fenxiaoWords.fenxiao_name }},需要您的消费次数需要达到{{ fenxiaoConfig.consume_count }}次
|
||||
{{ $lang('fenxiao.applyFenxiao') }},{{ $lang('fenxiao.consumeCountTip') }}{{ fenxiaoConfig.consume_count }}{{ $lang('fenxiao.times') }}
|
||||
</text>
|
||||
<text class="apply-message-info font-size-goods-tag" v-if="fenxiaoConfig.fenxiao_condition == 3">
|
||||
申请成为{{ fenxiaoWords.fenxiao_name }},需要您的消费金额需要达到{{ fenxiaoConfig.consume_money }}元
|
||||
{{ $lang('fenxiao.applyFenxiao') }},{{ $lang('fenxiao.consumeMoneyTip') }}{{ fenxiaoConfig.consume_money }}{{ $lang('fenxiao.yuan') }}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="app-info-list" v-if="fenxiaoConfig.fenxiao_condition == 4">
|
||||
<view class="apply-message">
|
||||
<view class="apply-message-title color-base-bg-before">分销商申请条件</view>
|
||||
<text class="apply-message-info font-size-goods-tag">申请成为{{ fenxiaoWords.fenxiao_name }},需要购买以下指定商品(任选其一)</text>
|
||||
<view class="apply-message-title color-base-bg-before">{{ $lang('fenxiao.applyCondition') }}</view>
|
||||
<text class="apply-message-info font-size-goods-tag">{{ $lang('fenxiao.applyFenxiao') }},{{ $lang('fenxiao.buyDesignatedGoods') }}</text>
|
||||
</view>
|
||||
<view class="goods-list" v-for="(item, index) in goodsList" :key="index" @click="toDetail(item)">
|
||||
<view class="goods-img">
|
||||
@@ -79,7 +79,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>
|
||||
@@ -89,16 +89,16 @@
|
||||
<view class="empty" v-else-if="basicsConfig.is_apply == 0" style="margin-top:40rpx;">
|
||||
<block v-if="fenxiaoConfig.fenxiao_condition == 2 || fenxiaoConfig.fenxiao_condition == 3">
|
||||
<image :src="$util.img('public/uniapp/fenxiao/index/no-fenxiao.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
<text v-if="fenxiaoConfig.fenxiao_condition == 2">申请成为{{ fenxiaoWords.fenxiao_name }},需要您的消费次数需要达到{{ fenxiaoConfig.consume_count }}次</text>
|
||||
<text v-if="fenxiaoConfig.fenxiao_condition == 2">{{ $lang('fenxiao.applyFenxiao') }},{{ $lang('fenxiao.consumeCountTip') }}{{ fenxiaoConfig.consume_count }}{{ $lang('fenxiao.times') }}</text>
|
||||
<text v-if="fenxiaoConfig.fenxiao_condition == 3">
|
||||
申请成为{{ fenxiaoWords.fenxiao_name }},需要您的消费金额需要达到{{ fenxiaoConfig.consume_money | moneyFormat }}元
|
||||
{{ $lang('fenxiao.applyFenxiao') }},{{ $lang('fenxiao.consumeMoneyTip') }}{{ fenxiaoConfig.consume_money | moneyFormat }}{{ $lang('fenxiao.yuan') }}
|
||||
</text>
|
||||
</block>
|
||||
<view class="apply-wrap" v-if="fenxiaoConfig.fenxiao_condition == 4">
|
||||
<view class="app-info-list">
|
||||
<view class="apply-message">
|
||||
<view class="apply-message-title color-base-bg-before">成为分销商的条件</view>
|
||||
<text class="apply-message-info font-size-goods-tag">成为{{ fenxiaoWords.fenxiao_name }},需要购买以下指定商品(任选其一)</text>
|
||||
<view class="apply-message-title color-base-bg-before">{{ $lang('fenxiao.becomeFenxiaoCondition') }}</view>
|
||||
<text class="apply-message-info font-size-goods-tag">{{ $lang('fenxiao.becomeFenxiao') }},{{ $lang('fenxiao.buyDesignatedGoods') }}</text>
|
||||
</view>
|
||||
<view class="goods-list" v-for="(item, index) in goodsList" :key="index" @click="toDetail(item)">
|
||||
<view class="goods-img">
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
:src="$util.img('public/uniapp/fenxiao/index/commissionFission-level.png')"
|
||||
alt="" class="level-icon">{{ info.level_name }}</p>
|
||||
</view>
|
||||
<view class="recommend">上级代理商:{{ info.parent_name ? info.parent_name : '总店' }}</view>
|
||||
<view class="recommend">已邀请成功:{{ teamNum.num }}人<text class="iconfont icon-right"
|
||||
<view class="recommend">{{ $lang('fenxiao.parentAgent') }}:{{ info.parent_name ? info.parent_name : $lang('fenxiao.mainStore') }}</view>
|
||||
<view class="recommend">{{ $lang('fenxiao.invitedSuccess') }}:{{ teamNum.num }}人<text class="iconfont icon-right"
|
||||
style="font-size: 24rpx;"></text></view>
|
||||
</view>
|
||||
<!-- <view class="promote-rules font-size-tag" @click="$util.redirectTo('/pages_promotion/fenxiao/promote')">
|
||||
@@ -43,7 +43,7 @@
|
||||
<view class="font-size-sub">可{{ fenxiaoWords.withdraw }}(元)</view>
|
||||
<view class="withdrawal-record"
|
||||
@click="$util.redirectTo('/pages_promotion/fenxiao/withdraw_list')">
|
||||
提现明细
|
||||
{{ $lang('fenxiao.withdrawalDetail') }}
|
||||
<text class="iconfont icon-right"></text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -61,18 +61,18 @@
|
||||
</view> -->
|
||||
<view class="allmoney-all-wrap"
|
||||
@click="$util.redirectTo('/pages_promotion/fenxiao/withdraw_list')">
|
||||
<view class="title">提现中(元)<text class="iconfont icon-right"
|
||||
<view class="title">{{ $lang('fenxiao.withdrawing') }}(元)<text class="iconfont icon-right"
|
||||
style="font-size: 24rpx;"></text></view>
|
||||
<view class="money price-font">{{ info.account_withdraw_apply | moneyFormat }}</view>
|
||||
</view>
|
||||
<view class="allmoney-all-wrap"
|
||||
@click="$util.redirectTo('/pages_promotion/fenxiao/order', { type: 1 })">
|
||||
<view class="title">待入账(元)<text class="iconfont icon-right"
|
||||
<view class="title">{{ $lang('fenxiao.pendingEntry') }}(元)<text class="iconfont icon-right"
|
||||
style="font-size: 24rpx;"></text></view>
|
||||
<view class="money price-font">{{ info.in_progress_money | moneyFormat }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="withdraw-btn" @click="$util.redirectTo('/pages_promotion/fenxiao/withdraw_apply')">提现
|
||||
<view class="withdraw-btn" @click="$util.redirectTo('/pages_promotion/fenxiao/withdraw_apply')">{{ $lang('fenxiao.withdraw') }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -90,8 +90,8 @@
|
||||
</image>
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="title">我的粉丝</view>
|
||||
<view class="desc">邀请的用户</view>
|
||||
<view class="title">{{ $lang('fenxiao.myFans') }}</view>
|
||||
<view class="desc">{{ $lang('fenxiao.invitedUsers') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="menu-item" @click="$util.redirectTo('/pages_promotion/fenxiao/withdraw_list')">
|
||||
@@ -101,7 +101,7 @@
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="title">{{ fenxiaoWords.withdraw }}明细</view>
|
||||
<view class="desc">累计{{ fenxiaoWords.account }}¥{{ info.total_commission | moneyFormat }}
|
||||
<view class="desc">{{ $lang('fenxiao.totalCommission') }}¥{{ info.total_commission | moneyFormat }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -111,8 +111,8 @@
|
||||
</image>
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="title">{{ fenxiaoWords.concept + '订单' }}</view>
|
||||
<view class="desc">{{ fenxiaoWords.concept + '订单' }}明细</view>
|
||||
<view class="title">{{ fenxiaoWords.concept + $lang('fenxiao.order') }}</view>
|
||||
<view class="desc">{{ fenxiaoWords.concept + $lang('fenxiao.order') }}{{ $lang('fenxiao.detail') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -121,8 +121,8 @@
|
||||
<image :src="$util.img('public/uniapp/fenxiao/index/friend.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="title">我的邀请码</view>
|
||||
<view class="desc">邀好友赚好礼</view>
|
||||
<view class="title">{{ $lang('fenxiao.myInviteCode') }}</view>
|
||||
<view class="desc">{{ $lang('fenxiao.inviteFriendsEarn') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="menu-item" @click="$util.redirectTo('/pages_promotion/fenxiao/promote')">
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</uni-grid-item>
|
||||
</uni-grid>
|
||||
</view>
|
||||
<view v-if="brandList.length == 0"><ns-empty text="暂无更多品牌,去首页看看吧"></ns-empty></view>
|
||||
<view v-if="brandList.length == 0"><ns-empty :text="$lang('brand.noMoreBrand')"></ns-empty></view>
|
||||
</block>
|
||||
</mescroll-uni>
|
||||
<loading-cover ref="loadingCover"></loading-cover>
|
||||
@@ -76,7 +76,7 @@ export default {
|
||||
}
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
var title = '你想要的大牌都在这里';
|
||||
var title = this.$lang('brand.shareTitle');
|
||||
var path = '/pages_tool/goods/brand';
|
||||
return {
|
||||
title: title,
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<view class="cf-container color-line-border">
|
||||
<view class="tab">
|
||||
<view @click="changeSort(1)"><text
|
||||
:class="sort == 1 ? 'color-base-text active color-base-border-bottom' : ''">全部</text></view>
|
||||
:class="sort == 1 ? 'color-base-text active color-base-border-bottom' : ''">{{ $lang('coupon.all') }}</text></view>
|
||||
<view @click="changeSort(2, 'reward')"><text
|
||||
:class="sort == 2 ? 'color-base-text active color-base-border-bottom' : ''">满减券</text></view>
|
||||
:class="sort == 2 ? 'color-base-text active color-base-border-bottom' : ''">{{ $lang('coupon.rewardCoupon') }}</text></view>
|
||||
<view @click="changeSort(3, 'discount')"><text
|
||||
:class="sort == 3 ? 'color-base-text active color-base-border-bottom' : ''">折扣券</text></view>
|
||||
:class="sort == 3 ? 'color-base-text active color-base-border-bottom' : ''">{{ $lang('coupon.discountCoupon') }}</text></view>
|
||||
<!-- <view @click="changeSort(4, 'no_threshold')"><text :class="sort == 4 ? 'color-base-text active color-base-border-bottom' : ''">无门槛券</text></view> -->
|
||||
</view>
|
||||
</view>
|
||||
@@ -29,22 +29,22 @@
|
||||
<view class="use_price price-font" v-else-if="item.type == 'discount'"
|
||||
:class="{ disabled: item.useState == 2 }">
|
||||
{{ parseFloat(item.discount) }}
|
||||
<text>折</text>
|
||||
<text>{{ $lang('coupon.discountSuffix') }}</text>
|
||||
</view>
|
||||
<view class="use_condition font-size-tag" v-if="item.at_least > 0"
|
||||
:class="{ disabled: item.useState == 2 }">满{{ item.at_least }}元可用</view>
|
||||
:class="{ disabled: item.useState == 2 }">{{ $lang('coupon.availableOver', { amount: item.at_least }) }}</view>
|
||||
<view class="use_condition font-size-tag" v-else
|
||||
:class="{ disabled: item.useState == 2 }">无门槛优惠券</view>
|
||||
:class="{ disabled: item.useState == 2 }">{{ $lang('coupon.noThresholdCoupon') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-info">
|
||||
<view class="use_title">
|
||||
<view class="title">{{ item.coupon_name }}</view>
|
||||
<view class="max_price" v-if="item.goods_type == 2 || item.goods_type == 3"
|
||||
:class="{ disabled: item.useState == 2 }">指定商品</view>
|
||||
<view class="max_price" v-else :class="{ disabled: item.useState == 2 }">全场商品</view>
|
||||
:class="{ disabled: item.useState == 2 }">{{ $lang('coupon.designatedGoods') }}</view>
|
||||
<view class="max_price" v-else :class="{ disabled: item.useState == 2 }">{{ $lang('coupon.allGoods') }}</view>
|
||||
<view class="max_price" v-if="item.discount_limit != '0.00'">
|
||||
(最大优惠{{ item.discount_limit }}元)
|
||||
({{ $lang('coupon.maxDiscount', { amount: item.discount_limit }) }})
|
||||
</view>
|
||||
<view class="max_price" :class="{ disabled: item.useState == 2 }">{{
|
||||
item.use_channel_name }}</view>
|
||||
@@ -53,21 +53,21 @@
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="use_time" v-if="item.validity_type == 0">
|
||||
有效期:{{ $util.timeStampTurnTime(item.end_time) }}</view>
|
||||
{{ $lang('coupon.validUntil') }}:{{ $util.timeStampTurnTime(item.end_time) }}</view>
|
||||
<view class="use_time" v-else-if="item.validity_type == 1">
|
||||
有效期:领取之日起{{ item.fixed_term }}日内有效</view>
|
||||
<view class="use_time" v-else>有效期:长期有效</view>
|
||||
{{ $lang('coupon.validDays') }}:{{ $lang('coupon.validWithinDays', { days: item.fixed_term }) }}</view>
|
||||
<view class="use_time" v-else>{{ $lang('coupon.validUntil') }}:{{ $lang('coupon.permanentValid') }}</view>
|
||||
</view>
|
||||
<view class="item-btn">
|
||||
<view v-if="item.useState == 0" @click.stop="receiveCoupon(item, index)">领取</view>
|
||||
<view v-if="item.useState == 1" @click.stop="toGoodsList(item, index)">去使用</view>
|
||||
<view v-if="item.receivedType == 'out'" class="disabled">已抢光</view>
|
||||
<view v-if="item.receivedType == 'expire'" class="disabled">已过期</view>
|
||||
<view v-if="item.receivedType == 'limit'" class="disabled">已达上限</view>
|
||||
<view v-if="item.useState == 0" @click.stop="receiveCoupon(item, index)">{{ $lang('coupon.receive') }}</view>
|
||||
<view v-if="item.useState == 1" @click.stop="toGoodsList(item, index)">{{ $lang('coupon.goUse') }}</view>
|
||||
<view v-if="item.receivedType == 'out'" class="disabled">{{ $lang('coupon.soldOut') }}</view>
|
||||
<view v-if="item.receivedType == 'expire'" class="disabled">{{ $lang('coupon.expired') }}</view>
|
||||
<view v-if="item.receivedType == 'limit'" class="disabled">{{ $lang('coupon.limitReached') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="list.length == 0"><ns-empty text="暂无可领取的优惠券" :isIndex="false"></ns-empty></view>
|
||||
<view v-if="list.length == 0"><ns-empty :text="$lang('coupon.noAvailableCoupon')" :isIndex="false"></ns-empty></view>
|
||||
</block>
|
||||
</mescroll-uni>
|
||||
<loading-cover ref="loadingCover"></loading-cover>
|
||||
@@ -99,7 +99,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.coupon) {
|
||||
this.$util.showToast({
|
||||
title: '商家未开启优惠券',
|
||||
title: this.$lang('coupon.notEnabled'),
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
@@ -173,7 +173,7 @@ export default {
|
||||
},
|
||||
success: res => {
|
||||
this.couponBtnSwitch = false;
|
||||
let msg = '领取成功,快去使用吧';
|
||||
let msg = this.$lang('coupon.receiveSuccess');
|
||||
let list = this.list;
|
||||
if (res.code < 0) msg = res.message;
|
||||
|
||||
|
||||
@@ -7,24 +7,24 @@
|
||||
<view class="get-coupon">
|
||||
<text class="coupon-name">{{ info.coupon_name }}</text>
|
||||
<view class="color-base-text coupon-price" v-if="info.type == 'reward'">¥{{ info.money }}</view>
|
||||
<view class="color-base-text coupon-price" v-else-if="info.type == 'discount'">{{ info.discount }}折</view>
|
||||
<text v-if="info.at_least > 0" class="color-tip">满{{ info.at_least }}元使用</text>
|
||||
<text v-else class="color-tip">无门槛优惠券</text>
|
||||
<view v-if="info.validity_type == 0" class="color-tip">有效期至 {{ $util.timeStampTurnTime(info.end_time) }}</view>
|
||||
<view v-else-if="info.validity_type == 1" class="color-tip">领取之日起{{ info.fixed_term }}天内有效</view>
|
||||
<view v-else class="color-tip">长期有效</view>
|
||||
<view class="color-base-text coupon-price" v-else-if="info.type == 'discount'">{{ info.discount }}{{ $lang('coupon.discountSuffix') }}</view>
|
||||
<text v-if="info.at_least > 0" class="color-tip">{{ $lang('coupon.useOver', { amount: info.at_least }) }}</text>
|
||||
<text v-else class="color-tip">{{ $lang('coupon.noThresholdCoupon') }}</text>
|
||||
<view v-if="info.validity_type == 0" class="color-tip">{{ $lang('coupon.validUntil') }} {{ $util.timeStampTurnTime(info.end_time) }}</view>
|
||||
<view v-else-if="info.validity_type == 1" class="color-tip">{{ $lang('coupon.validWithinDays', { days: info.fixed_term }) }}</view>
|
||||
<view v-else class="color-tip">{{ $lang('coupon.permanentValid') }}</view>
|
||||
<!-- 适用场景: -->
|
||||
<view class="color-tip truncate" v-if="info.use_channel!='all'">{{ info.use_channel_name }}</view>
|
||||
<!-- 适用门店: -->
|
||||
<view v-if="info.use_channel!='online' &&info.use_store!='all'" class="color-tip">
|
||||
<view class="w-460 truncate">适用门店:{{ info.use_store_name}}</view>
|
||||
<view class="w-460 truncate">{{ $lang('coupon.applyStore') }}:{{ info.use_store_name}}</view>
|
||||
</view>
|
||||
<view class="get-span" @click="receiveGoodsCoupon(info.coupon_type_id)">
|
||||
<button type="primary" v-if="isCanReceive">{{ button }}</button>
|
||||
<button type="primary" disabled v-if="!isCanReceive">{{ button }}</button>
|
||||
</view>
|
||||
|
||||
<view class="color-tip font-size-goods-tag tips">注:扫描二维码或点击右上角进行分享</view>
|
||||
<view class="color-tip font-size-goods-tag tips">{{ $lang('coupon.scanShareTip') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<loading-cover ref="loadingCover"></loading-cover>
|
||||
@@ -42,7 +42,7 @@
|
||||
info: {},
|
||||
couponTypeId: 0,
|
||||
path: '',
|
||||
button: '领取',
|
||||
button: this.$lang('coupon.receive'),
|
||||
uid: 0,
|
||||
couponBtnSwitch: false, //获取优惠券防止重复提交
|
||||
receivedNum: 0,
|
||||
@@ -53,7 +53,7 @@
|
||||
setTimeout( () => {
|
||||
if (!this.addonIsExist.coupon) {
|
||||
this.$util.showToast({
|
||||
title: '商家未开启优惠券',
|
||||
title: this.$lang('coupon.notEnabled'),
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
@@ -152,7 +152,7 @@
|
||||
let msg = res.message;
|
||||
this.receivedType = data.type;
|
||||
if (res.code == 0) {
|
||||
msg = '领取成功';
|
||||
msg = this.$lang('coupon.receiveSuccess');
|
||||
this.receivedNum += 1;
|
||||
}
|
||||
this.buttonRefresh();
|
||||
@@ -181,18 +181,18 @@
|
||||
});
|
||||
},
|
||||
buttonRefresh() {
|
||||
this.button = '领取';
|
||||
this.button = this.$lang('coupon.receive');
|
||||
if (this.info.count <= this.info.lead_count || this.receivedType == 'out') {
|
||||
this.button = '来迟了该优惠券已被领取完了!';
|
||||
this.button = this.$lang('coupon.soldOutTip');
|
||||
}
|
||||
if (this.info.status == 2 || this.receivedType == 'expire') {
|
||||
this.button = '该优惠券活动已结束!';
|
||||
this.button = this.$lang('coupon.endedTip');
|
||||
}
|
||||
if (this.info.status == 3) {
|
||||
this.button = '该优惠券活动已关闭';
|
||||
this.button = this.$lang('coupon.closedTip');
|
||||
}
|
||||
if (this.receivedType == 'limit'){
|
||||
this.button = '该优惠券领取已达到上限!';
|
||||
this.button = this.$lang('coupon.limitTip');
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -204,14 +204,14 @@
|
||||
|
||||
var title = '';
|
||||
if (this.info.type == 'reward') {
|
||||
title = '恭喜您获得一张' + this.info.money + '元的优惠券';
|
||||
title = this.$lang('coupon.shareRewardTitle', { money: this.info.money });
|
||||
} else if (this.info.type == 'discount') {
|
||||
title = '恭喜您获得一张' + this.info.discount + '折优惠券';
|
||||
title = this.$lang('coupon.shareDiscountTitle', { discount: this.info.discount });
|
||||
}
|
||||
if (this.info.at_least > 0) {
|
||||
var desc = `满${this.info.at_least}元可用`;
|
||||
var desc = this.$lang('coupon.availableOver', { amount: this.info.at_least });
|
||||
} else {
|
||||
var desc = `无门槛优惠券`;
|
||||
var desc = this.$lang('coupon.noThresholdCoupon');
|
||||
}
|
||||
this.$util.setPublicShare({
|
||||
title: title,
|
||||
@@ -239,14 +239,14 @@
|
||||
onShareAppMessage(res) {
|
||||
var title = '';
|
||||
if (this.info.type == 'reward') {
|
||||
title = '恭喜您获得一张' + this.info.money + '元的优惠券';
|
||||
title = this.$lang('coupon.shareRewardTitle', { money: this.info.money });
|
||||
} else if (this.info.type == 'discount') {
|
||||
title = '恭喜您获得一张' + this.info.discount + '折优惠券';
|
||||
title = this.$lang('coupon.shareDiscountTitle', { discount: this.info.discount });
|
||||
}
|
||||
if (this.info.at_least > 0) {
|
||||
title += `,满${this.info.at_least}元可用`;
|
||||
title += this.$lang('coupon.shareAvailableOver', { amount: this.info.at_least });
|
||||
} else {
|
||||
title += `,无门槛优惠券`;
|
||||
title += this.$lang('coupon.shareNoThreshold');
|
||||
}
|
||||
var path = '/pages_tool/goods/coupon_receive?coupon_type_id=' + this.couponTypeId;
|
||||
if (this.memberInfo && this.memberInfo.member_id) path += '&source_member=' + this.memberInfo.member_id;
|
||||
|
||||
@@ -44,12 +44,12 @@
|
||||
</scroll-view>
|
||||
|
||||
<view v-if="item.explain_first != ''" class="time shop-reply-box">
|
||||
<view class="shop-reply">商家回复:</view>
|
||||
<view class="shop-reply">{{ $lang('evaluate.sellerReply') }}</view>
|
||||
<view class="cont">{{ item.explain_first }}</view>
|
||||
</view>
|
||||
|
||||
<template v-if="item.again_content != '' && item.again_is_audit == 1">
|
||||
<view class="review-evaluation color-base-text">追加评价</view>
|
||||
<view class="review-evaluation color-base-text">{{ $lang('evaluate.addEvaluate') }}</view>
|
||||
<view class="cont">{{ item.again_content }}</view>
|
||||
<scroll-view scroll-x="true">
|
||||
<view class="evaluate-img" v-if="item.again_images.length > 0">
|
||||
@@ -66,7 +66,7 @@
|
||||
</view>
|
||||
</template>
|
||||
</view>
|
||||
<view v-if="list.length == 0"><ns-empty text="暂无商品评价"></ns-empty></view>
|
||||
<view v-if="list.length == 0"><ns-empty :text="$lang('evaluate.noGoodsEvaluate')"></ns-empty></view>
|
||||
</block>
|
||||
</mescroll-uni>
|
||||
<loading-cover ref="loadingCover"></loading-cover>
|
||||
@@ -79,7 +79,7 @@ export default {
|
||||
return {
|
||||
goodsId: 0,
|
||||
list: [],
|
||||
evaluateList: [{ name: '全部', value: 0, count: 0 }, { name: '好评', value: 1, count: 0 }, { name: '中评', value: 2, count: 0 }, { name: '差评', value: 3, count: 0 }],
|
||||
evaluateList: [{ name: this.$lang('evaluate.all'), value: 0, count: 0 }, { name: this.$lang('evaluate.goodReview'), value: 1, count: 0 }, { name: this.$lang('evaluate.mediumReview'), value: 2, count: 0 }, { name: this.$lang('evaluate.badReview'), value: 3, count: 0 }],
|
||||
evaluateTab: 0,
|
||||
mescroll_type: {}
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<view class="page" :style="themeColor">
|
||||
<view class="closeBox">
|
||||
<image :src="$util.img('public/uniapp/goods/not_exist.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
<text class="close-title">您查看的商品不存在,可能已下架或被删除</text>
|
||||
<text class="close-title">{{ $lang('goods.goodsNotExist') }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<view class="history" v-if="historyList.length">
|
||||
<view class="history-box">
|
||||
<view class="history-top">
|
||||
<view class="title">历史搜索</view>
|
||||
<view class="title">{{ $lang('goods.historySearch') }}</view>
|
||||
<view class="icon iconfont icon-icon7" @click="deleteHistoryList"></view>
|
||||
</view>
|
||||
<view class="history-bottom " id="history-list" :style="{ maxHeight: !isAllHistory ? '100%' : '168rpx' }">
|
||||
@@ -30,7 +30,7 @@
|
||||
<view class="history" v-if="hotList.length">
|
||||
<view class="history-box">
|
||||
<view class="history-top">
|
||||
<view class="title">热门搜索</view>
|
||||
<view class="title">{{ $lang('goods.hotSearch') }}</view>
|
||||
</view>
|
||||
<view class="history-bottom">
|
||||
<view class="history-li" v-for="(item, index) in hotList" :key="index" @click="otherSearch(item)" @longtap="deleteItem(item)">
|
||||
@@ -82,8 +82,8 @@
|
||||
//删除所有历史记录
|
||||
deleteHistoryList() {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确认删除全部历史记录?',
|
||||
title: this.$lang('form.tip'),
|
||||
content: this.$lang('goods.confirmDeleteAllHistory'),
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
uni.setStorageSync('search', []);
|
||||
@@ -95,8 +95,8 @@
|
||||
//删除历史记录的某一项
|
||||
deleteItem(e) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确认删除该条历史记录?',
|
||||
title: this.$lang('form.tip'),
|
||||
content: this.$lang('goods.confirmDeleteHistory'),
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
let array = uni.getStorageSync('search');
|
||||
@@ -162,7 +162,7 @@
|
||||
} else {
|
||||
if (this.searchWords == '') {
|
||||
this.$util.showToast({
|
||||
title: '搜索内容不能为空哦'
|
||||
title: this.$lang('goods.searchContentNotEmpty')
|
||||
});
|
||||
} else {
|
||||
this.$util.redirectTo('/pages_goods/list', {
|
||||
|
||||
@@ -3,20 +3,20 @@
|
||||
<view class="iconfont icon-close" @click="navigateBack()"></view>
|
||||
<view class="header-wrap">
|
||||
<block v-if="stepShow == 0">
|
||||
<view class="title">请输入手机号</view>
|
||||
<view><text class="color-tip">请确认您的账号已绑定此手机号</text></view>
|
||||
<view class="title">{{ $lang('find.inputMobile') }}</view>
|
||||
<view><text class="color-tip">{{ $lang('find.confirmMobileBound') }}</text></view>
|
||||
</block>
|
||||
|
||||
<block v-if="stepShow == 1">
|
||||
<view class="title">请输入验证码</view>
|
||||
<view class="title">{{ $lang('find.inputCaptcha') }}</view>
|
||||
<view>
|
||||
<text class="color-tip">已将验证码发送至手机号:{{ formData.mobile }}</text>
|
||||
<text class="color-tip">{{ $lang('find.captchaSentTo') }}{{ formData.mobile }}</text>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<block v-if="stepShow == 2">
|
||||
<view class="title">请设置新的密码</view>
|
||||
<view><text class="color-tip">建议您的新密码以简单好记为标准</text></view>
|
||||
<view class="title">{{ $lang('find.setNewPassword') }}</view>
|
||||
<view><text class="color-tip">{{ $lang('find.newPasswordTip') }}</text></view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="find-form">
|
||||
@@ -97,7 +97,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
findMode: 'mobile',
|
||||
codeText: '重新获取',
|
||||
codeText: this.$lang('find.reget'),
|
||||
seconds: 120,
|
||||
timer: null,
|
||||
formData: {
|
||||
@@ -143,7 +143,7 @@ export default {
|
||||
{
|
||||
name: 'mobile',
|
||||
checkType: 'phoneno',
|
||||
errorMsg: '请输入正确的手机号'
|
||||
errorMsg: this.$lang('find.mobileFormatError')
|
||||
},
|
||||
{
|
||||
name: 'captcha',
|
||||
@@ -166,7 +166,7 @@ export default {
|
||||
});
|
||||
if (res.code == 0) {
|
||||
this.$util.showToast({
|
||||
title: '该手机号未注册'
|
||||
title: this.$lang('find.mobileNotRegistered')
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -185,7 +185,7 @@ export default {
|
||||
{
|
||||
name: 'password',
|
||||
checkType: 'required',
|
||||
errorMsg: '请输入密码'
|
||||
errorMsg: this.$lang('find.inputPassword')
|
||||
}
|
||||
];
|
||||
if (regConfig.pwd_len > 0) {
|
||||
@@ -193,27 +193,27 @@ export default {
|
||||
name: 'password',
|
||||
checkType: 'lengthMin',
|
||||
checkRule: regConfig.pwd_len,
|
||||
errorMsg: '密码长度不能小于' + regConfig.pwd_len + '位'
|
||||
errorMsg: this.$lang('find.passwordLengthError') + regConfig.pwd_len + this.$lang('find.passwordLengthErrorSuffix')
|
||||
});
|
||||
}
|
||||
if (regConfig.pwd_complexity != '') {
|
||||
let passwordErrorMsg = '密码需包含',
|
||||
let passwordErrorMsg = this.$lang('find.passwordNeedContain'),
|
||||
reg = '';
|
||||
if (regConfig.pwd_complexity.indexOf('number') != -1) {
|
||||
reg += '(?=.*?[0-9])';
|
||||
passwordErrorMsg += '数字';
|
||||
passwordErrorMsg += this.$lang('find.digit');
|
||||
}
|
||||
if (regConfig.pwd_complexity.indexOf('letter') != -1) {
|
||||
reg += '(?=.*?[a-z])';
|
||||
passwordErrorMsg += '、小写字母';
|
||||
passwordErrorMsg += this.$lang('find.lowercaseLetter');
|
||||
}
|
||||
if (regConfig.pwd_complexity.indexOf('upper_case') != -1) {
|
||||
reg += '(?=.*?[A-Z])';
|
||||
passwordErrorMsg += '、大写字母';
|
||||
passwordErrorMsg += this.$lang('find.uppercaseLetter');
|
||||
}
|
||||
if (regConfig.pwd_complexity.indexOf('symbol') != -1) {
|
||||
reg += '(?=.*?[#?!@$%^&*-])';
|
||||
passwordErrorMsg += '、特殊字符';
|
||||
passwordErrorMsg += this.$lang('find.specialChar');
|
||||
}
|
||||
rule.push({
|
||||
name: 'password',
|
||||
@@ -227,7 +227,7 @@ export default {
|
||||
if (checkRes) {
|
||||
if (this.formData.password != this.formData.rePassword) {
|
||||
this.$util.showToast({
|
||||
title: '两次密码不一致'
|
||||
title: this.$lang('find.passwordNotMatch')
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -283,7 +283,7 @@ export default {
|
||||
if (this.seconds == 120 && this.timer == null) {
|
||||
this.timer = setInterval(() => {
|
||||
this.seconds--;
|
||||
this.codeText = '重新获取(' + this.seconds + 's)';
|
||||
this.codeText = this.$lang('find.regetWithTime').replace('{seconds}', this.seconds);
|
||||
}, 1000);
|
||||
}
|
||||
uni.setStorageSync('forgot_password_token', data.key);
|
||||
@@ -351,7 +351,7 @@ export default {
|
||||
seconds(value) {
|
||||
if (value == 0) {
|
||||
this.seconds = 120;
|
||||
this.codeText = '重新获取';
|
||||
this.codeText = this.$lang('find.reget');
|
||||
this.isSend = false;
|
||||
clearInterval(this.timer);
|
||||
}
|
||||
|
||||
@@ -223,11 +223,11 @@ export default {
|
||||
if (res.code == 0) {
|
||||
if (!this.formData.id) {
|
||||
this.$util.showToast({
|
||||
title: '添加成功'
|
||||
title: this.$lang('member.addSuccess')
|
||||
});
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '修改成功'
|
||||
title: this.$lang('member.editSuccess')
|
||||
});
|
||||
}
|
||||
if (this.back != '') {
|
||||
|
||||
@@ -197,7 +197,7 @@
|
||||
this.addressValue += res.data.district_id != undefined ? '-' + res.data.district_id : '';
|
||||
} else {
|
||||
this.showToast({
|
||||
title: '数据有误'
|
||||
title: this.$lang('member.dataError')
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -230,15 +230,15 @@
|
||||
var statu = res.authSetting;
|
||||
if (!statu['scope.userLocation']) {
|
||||
uni.showModal({
|
||||
title: '是否授权当前位置',
|
||||
content: '需要获取您的地理位置,请确认授权,否则地图功能将无法使用',
|
||||
title: this.$lang('member.authLocationTitle'),
|
||||
content: this.$lang('member.authLocationContent'),
|
||||
success(tip) {
|
||||
if (tip.confirm) {
|
||||
uni.openSetting({
|
||||
success: function (data) {
|
||||
if (data.authSetting['scope.userLocation'] === true) {
|
||||
this.$util.showToast({
|
||||
title: '授权成功'
|
||||
title: this.$lang('member.authSuccess')
|
||||
});
|
||||
//授权成功之后,再调用chooseLocation选择地方
|
||||
setTimeout(function () {
|
||||
@@ -256,7 +256,7 @@
|
||||
});
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '授权失败'
|
||||
title: this.$lang('member.authFailed')
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
this.withdrawInfo = res.data;
|
||||
if (this.withdrawInfo.config.is_use == 0) {
|
||||
this.$util.showToast({
|
||||
title: '未开启提现'
|
||||
title: this.$lang('member.withdrawNotEnabled')
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo(this.$util.MEMBER_PAGE_URL);
|
||||
@@ -136,19 +136,19 @@
|
||||
verify() {
|
||||
if (this.withdrawMoney == '' || this.withdrawMoney == 0 || isNaN(parseFloat(this.withdrawMoney))) {
|
||||
this.$util.showToast({
|
||||
title: '请输入提现金额'
|
||||
title: this.$lang('member.inputWithdrawAmount')
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (parseFloat(this.withdrawMoney) > parseFloat(this.withdrawInfo.member_info.balance_money)) {
|
||||
this.$util.showToast({
|
||||
title: '提现金额超出可提现金额'
|
||||
title: this.$lang('member.amountExceedsBalance')
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (parseFloat(this.withdrawMoney) < parseFloat(this.withdrawInfo.config.min)) {
|
||||
this.$util.showToast({
|
||||
title: '提现金额小于最低提现金额'
|
||||
title: this.$lang('member.amountBelowMinimum')
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -157,7 +157,7 @@
|
||||
withdraw() {
|
||||
if (!this.bankAccountInfo.withdraw_type) {
|
||||
this.$util.showToast({
|
||||
title: '请先添加提现方式'
|
||||
title: this.$lang('member.addWithdrawMethodFirst')
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -188,7 +188,7 @@
|
||||
success: res => {
|
||||
if (res.code >= 0) {
|
||||
this.$util.showToast({
|
||||
title: '提现申请成功'
|
||||
title: this.$lang('member.withdrawApplySuccess')
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo(
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
<view class="align-center agreement-btn-select">
|
||||
<text v-if="isSelect" class="iconfont icon-dui color-base-text" @click="changeSelect"></text>
|
||||
<text v-else class="iconfont icon-yuan_checkbox" @click="changeSelect"></text>
|
||||
<text class="agreement-text" @click="changeSelect">勾选即表示您已阅读并同意本协议</text>
|
||||
<text class="agreement-text" @click="changeSelect">{{ $lang('cancel.agreeTip') }}</text>
|
||||
</view>
|
||||
<button class="btn color-base-bg" @click="next">下一步</button>
|
||||
<button class="btn color-base-bg" @click="next">{{ $lang('cancel.nextStep') }}</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -60,7 +60,7 @@ export default {
|
||||
this.$util.redirectTo('/pages_tool/member/assets');
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '请先勾选同意协议'
|
||||
title: this.$lang('cancel.agreeCheckTip')
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<view class="member-desc">
|
||||
<view class="font-size-toolbar">{{ memberInfo.nickname }}</view>
|
||||
<view class="font-size-tag expire-time" v-if="memberInfo.level_expire_time > 0">
|
||||
有效期至:{{ $util.timeStampTurnTime(memberInfo.level_expire_time, true) }}</view>
|
||||
{{ $lang('level.expireTime') }}:{{ $util.timeStampTurnTime(memberInfo.level_expire_time, true) }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -21,14 +21,14 @@
|
||||
<image :src="$util.img('public/uniapp/level/card-bg.png')"></image>
|
||||
<view class="info">
|
||||
<view class="level-detail">{{ levelInfo.level_name }}</view>
|
||||
<view class="growr-name">{{ levelInfo.level_name }}可享受消费折扣和</view>
|
||||
<view class="growr-value">会员大礼包等权益</view>
|
||||
<view class="growr-name">{{ levelInfo.level_name }}{{ $lang('card.canEnjoy') }}</view>
|
||||
<view class="growr-value">{{ $lang('card.memberGiftEtc') }}</view>
|
||||
<view class="growth-rules font-size-tag" @click="openExplainPopup"
|
||||
v-if="levelInfo.remark != ''">
|
||||
<text class="iconfont icon-wenhao font-size-tag"></text>
|
||||
</view>
|
||||
<button type="default" class="renew-btn"
|
||||
@click="$util.redirectTo('/pages_tool/member/card_buy')">立即续费</button>
|
||||
@click="$util.redirectTo('/pages_tool/member/card_buy')">{{ $lang('card.renewNow') }}</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -39,7 +39,7 @@
|
||||
<view class="line-box">
|
||||
<view class="line right"></view>
|
||||
</view>
|
||||
<view class="card-content-title">会员权益</view>
|
||||
<view class="card-content-title">{{ $lang('level.memberBenefits') }}</view>
|
||||
<view class="line-box">
|
||||
<view class="line"></view>
|
||||
</view>
|
||||
@@ -49,18 +49,18 @@
|
||||
<view class="card-privilege-item" v-if="levelInfo.is_free_shipping">
|
||||
<view class="card-privilege-icon"><text class="iconfont icon-tedianquanchangbaoyou"></text>
|
||||
</view>
|
||||
<view class="card-privilege-name">全场包邮</view>
|
||||
<view class="card-privilege-text">享受商品包邮服务</view>
|
||||
<view class="card-privilege-name">{{ $lang('level.freeShipping') }}</view>
|
||||
<view class="card-privilege-text">{{ $lang('level.freeShippingDesc') }}</view>
|
||||
</view>
|
||||
<view class="card-privilege-item" v-if="levelInfo.consume_discount < 100">
|
||||
<view class="card-privilege-icon"><text class="iconfont icon-zhekou"></text></view>
|
||||
<view class="card-privilege-name">消费折扣</view>
|
||||
<view class="card-privilege-text">部分商品下单可享{{ levelInfo.consume_discount / 10 }}折优惠</view>
|
||||
<view class="card-privilege-name">{{ $lang('level.consumeDiscount') }}</view>
|
||||
<view class="card-privilege-text">{{ $lang('level.consumeDiscountDesc') }}{{ levelInfo.consume_discount / 10 }}{{ $lang('level.discount') }}</view>
|
||||
</view>
|
||||
<view class="card-privilege-item" v-if="levelInfo.point_feedback > 0">
|
||||
<view class="card-privilege-icon"><text class="iconfont icon-jifen2 f32"></text></view>
|
||||
<view class="card-privilege-name">积分回馈</view>
|
||||
<view class="card-privilege-text">下单享{{ parseFloat(levelInfo.point_feedback) }}倍积分回馈</view>
|
||||
<view class="card-privilege-name">{{ $lang('level.pointReward') }}</view>
|
||||
<view class="card-privilege-text">{{ $lang('level.pointRewardDesc') }}{{ parseFloat(levelInfo.point_feedback) }}{{ $lang('level.pointMultiplier') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
<view class="line-box">
|
||||
<view class="line right"></view>
|
||||
</view>
|
||||
<view class="card-content-title">开卡礼包</view>
|
||||
<view class="card-content-title">{{ $lang('level.openCardGift') }}</view>
|
||||
<view class="line-box">
|
||||
<view class="line"></view>
|
||||
</view>
|
||||
@@ -78,18 +78,18 @@
|
||||
<view class="card-privilege-list">
|
||||
<view class="card-privilege-item" v-if="levelInfo.send_point > 0">
|
||||
<view class="card-privilege-icon"><text class="iconfont icon-jifen3"></text></view>
|
||||
<view class="card-privilege-name">积分礼包</view>
|
||||
<view class="card-privilege-text">赠送{{ levelInfo.send_point }}积分</view>
|
||||
<view class="card-privilege-name">{{ $lang('level.pointGift') }}</view>
|
||||
<view class="card-privilege-text">{{ $lang('level.giftPoint') }}{{ levelInfo.send_point }}{{ $lang('level.point') }}</view>
|
||||
</view>
|
||||
<view class="card-privilege-item" v-if="levelInfo.send_balance > 0">
|
||||
<view class="card-privilege-icon"><text class="iconfont icon-hongbao"></text></view>
|
||||
<view class="card-privilege-name">红包礼包</view>
|
||||
<view class="card-privilege-text">赠送{{ parseFloat(levelInfo.send_balance) }}元红包</view>
|
||||
<view class="card-privilege-name">{{ $lang('level.redPacketGift') }}</view>
|
||||
<view class="card-privilege-text">{{ $lang('level.giftBalance') }}{{ parseFloat(levelInfo.send_balance) }}{{ $lang('level.redPacket') }}</view>
|
||||
</view>
|
||||
<view class="card-privilege-item" v-if="levelInfo.send_coupon != ''">
|
||||
<view class="card-privilege-icon"><text class="iconfont icon-youhuiquan1"></text></view>
|
||||
<view class="card-privilege-name">优惠券礼包</view>
|
||||
<view class="card-privilege-text">赠送{{ levelInfo.send_coupon.split(',').length }}张优惠券</view>
|
||||
<view class="card-privilege-name">{{ $lang('level.couponGift') }}</view>
|
||||
<view class="card-privilege-text">{{ $lang('level.giftCoupon') }}{{ levelInfo.send_coupon.split(',').length }}{{ $lang('level.coupon') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -101,13 +101,13 @@
|
||||
<uni-popup ref="explainPopup" type="bottom">
|
||||
<view class="tips-layer">
|
||||
<view class="head" @click="closeExplainPopup()">
|
||||
<view class="title">会员卡说明</view>
|
||||
<view class="title">{{ $lang('card.cardDesc') }}</view>
|
||||
<text class="iconfont icon-close"></text>
|
||||
</view>
|
||||
<view class="body">
|
||||
<view class="detail margin-bottom">
|
||||
<block v-if="levelInfo.remark != ''">
|
||||
<view class="tip">会员卡说明</view>
|
||||
<view class="tip">{{ $lang('card.cardDesc') }}</view>
|
||||
<view class="font-size-base">{{ levelInfo.remark }}</view>
|
||||
</block>
|
||||
</view>
|
||||
@@ -171,11 +171,11 @@ export default {
|
||||
// 如果后台没配置,用默认值
|
||||
this.mpShareData = {
|
||||
appMessage: {
|
||||
title: '专属会员权益,快来体验',
|
||||
title: this.$lang('card.shareTitle'),
|
||||
path: '/pages_tool/member/card'
|
||||
},
|
||||
timeLine: {
|
||||
title: '专属会员权益,快来体验',
|
||||
title: this.$lang('card.shareTitle'),
|
||||
query: '/pages_tool/member/card'
|
||||
}
|
||||
};
|
||||
|
||||
@@ -134,7 +134,7 @@ export default {
|
||||
deleteFootprint() {
|
||||
if (this.idArr.length == 0) {
|
||||
this.$util.showToast({
|
||||
title: '请选择要删除的数据!'
|
||||
title: this.$lang('member.selectDeleteData')
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -7,17 +7,17 @@
|
||||
|
||||
<view class="desc" @click="openRulePopup" v-if="info.remark != ''">
|
||||
<text class="iconfont icon-bangzhu"></text>
|
||||
活动说明
|
||||
{{ $lang('invite.activityRule') }}
|
||||
</view>
|
||||
<image class="font" :src="$util.img('public/uniapp/member/invite/top_font.png')" mode="widthFix" show-menu-by-longpress />
|
||||
<view class="time">
|
||||
活动时间:{{ $util.timeStampTurnTime(info.start_time, 1) }}至{{ $util.timeStampTurnTime(info.end_time, 1) }}
|
||||
{{ $lang('invite.activityTime') }}:{{ $util.timeStampTurnTime(info.start_time, 1) }}{{ $lang('invite.to') }}{{ $util.timeStampTurnTime(info.end_time, 1) }}
|
||||
</view>
|
||||
|
||||
<view class="btn" :style="{ 'background-image': 'url(' + $util.img('public/uniapp/member/invite/top_btn.png') + ')' }" @click="openSharePopup">立即邀请</view>
|
||||
<view class="btn" :style="{ 'background-image': 'url(' + $util.img('public/uniapp/member/invite/top_btn.png') + ')' }" @click="openSharePopup">{{ $lang('invite.inviteNow') }}</view>
|
||||
</view>
|
||||
<view class="content invite-list">
|
||||
<view class="title">我的好友</view>
|
||||
<view class="title">{{ $lang('invite.myFriends') }}</view>
|
||||
<block v-if="inviteList.length > 0">
|
||||
<view class="invitelist_block">
|
||||
<view class="invitelist">
|
||||
@@ -33,32 +33,32 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="prize color-base-text font-size-activity-tag">
|
||||
<block v-if="item.balance > 0">{{ item.balance }}元现金红包</block>
|
||||
<block v-if="item.balance > 0">{{ item.balance }}{{ $lang('invite.cashRedPacket') }}</block>
|
||||
<block v-if="(item.point > 0 || item.coupon_num) && item.balance > 0">+</block>
|
||||
<block v-if="item.point > 0">{{ parseInt(item.point) }}积分</block>
|
||||
<block v-if="item.point > 0">{{ parseInt(item.point) }}{{ $lang('invite.point') }}</block>
|
||||
<block v-if="item.point > 0 && item.balance > 0 && item.coupon_num > 0">+
|
||||
</block>
|
||||
<block v-if="item.coupon_num > 0">{{ item.coupon_num }}张优惠券</block>
|
||||
<block v-if="item.coupon_num > 0">{{ item.coupon_num }}{{ $lang('invite.couponCount') }}</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="more_invite color-tip font-size-tag " @click="moreList" v-if="isClick && total_num > page">
|
||||
查看更多
|
||||
{{ $lang('invite.viewMore') }}
|
||||
<text class="iconfont icon-iconangledown"></text>
|
||||
</view>
|
||||
<view class="more_invite color-tip font-size-tag " @click="moreList" v-if="!isClick && inviteList.length > 5 && total_num <= page">没有更多数据了</view>
|
||||
<view class="more_invite color-tip font-size-tag " @click="moreList" v-if="!isClick && inviteList.length > 5 && total_num <= page">{{ $lang('invite.noMoreData') }}</view>
|
||||
</view>
|
||||
</block>
|
||||
<block v-else>
|
||||
<view class="empty">
|
||||
<view class="tip">您还没有邀请到新朋友哦</view>
|
||||
<view class="tip">邀请好友,赚取好礼。赶紧去试试吧~</view>
|
||||
<view class="tip">{{ $lang('invite.noInviteTip') }}</view>
|
||||
<view class="tip">{{ $lang('invite.noInviteSub') }}</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view class="title">邀请好友奖励</view>
|
||||
<view class="title">{{ $lang('invite.inviteReward') }}</view>
|
||||
<view class="invite_active">
|
||||
<view class="list">
|
||||
<view class="item" v-if="$util.inArray('balance', info.type) != -1">
|
||||
@@ -68,7 +68,7 @@
|
||||
<text class="font-size-base">{{ $lang('common.currencySymbol') }}</text>
|
||||
<text>{{ info.balance }}</text>
|
||||
</view>
|
||||
<view class="type">现金红包</view>
|
||||
<view class="type">{{ $lang('invite.cashRedPacket') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
<view class="price">
|
||||
<text>{{ parseInt(info.point) }}</text>
|
||||
</view>
|
||||
<view class="type">积分</view>
|
||||
<view class="type">{{ $lang('invite.point') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -88,49 +88,49 @@
|
||||
<view class="desc">
|
||||
<view class="price">
|
||||
<text>{{ info.coupon.split(',').length }}</text>
|
||||
张
|
||||
{{ $lang('invite.couponUnit') }}
|
||||
</view>
|
||||
<view class="type">优惠券</view>
|
||||
<view class="type">{{ $lang('invite.coupon') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="desc">
|
||||
<view class="title_desc color-tip">分享给好友,让好友通过你的分享链接进入并注册登录,可获得以下奖励:</view>
|
||||
<view class="title_desc color-tip">{{ $lang('invite.shareDesc') }}</view>
|
||||
<view class="desc_list">
|
||||
<view class="" v-if="$util.inArray('balance', info.type) != -1">
|
||||
<text>●</text>
|
||||
可得{{ info.balance }}元红包奖励
|
||||
{{ $lang('invite.getBalanceReward', { amount: info.balance }) }}
|
||||
</view>
|
||||
<view class="" v-if="$util.inArray('point', info.type) != -1">
|
||||
<text>●</text>
|
||||
可得{{ info.point }}积分
|
||||
{{ $lang('invite.getPointReward', { point: info.point }) }}
|
||||
</view>
|
||||
<view class="" v-if="$util.inArray('coupon', info.type) != -1">
|
||||
<text>●</text>
|
||||
可得{{ info.coupon.split(',').length }}张优惠券
|
||||
{{ $lang('invite.getCouponReward', { count: info.coupon.split(',').length }) }}
|
||||
</view>
|
||||
|
||||
<view class="" v-if="info.max_fetch == 0">
|
||||
<text>●</text>
|
||||
可得奖励不受限制
|
||||
{{ $lang('invite.noLimit') }}
|
||||
</view>
|
||||
<view class="" v-else>
|
||||
<text>●</text>
|
||||
奖励上限为{{ info.max_fetch }}人
|
||||
{{ $lang('invite.limitDesc', { max: info.max_fetch }) }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view class="title">如何邀请好友</view>
|
||||
<view class="title">{{ $lang('invite.howToInvite') }}</view>
|
||||
<view class="invite_active">
|
||||
<view class="step">
|
||||
<view>
|
||||
<view class="img">
|
||||
<image :src="$util.img('public/uniapp/member/invite/fenxiang.png')" mode="aspectFit" show-menu-by-longpress />
|
||||
</view>
|
||||
<view class="text">分享链接给好友</view>
|
||||
<view class="text">{{ $lang('invite.shareLink') }}</view>
|
||||
</view>
|
||||
<view>
|
||||
<image :src="$util.img('public/uniapp/member/invite/jiantou.png')" class="jiantou" show-menu-by-longpress ></image>
|
||||
@@ -139,7 +139,7 @@
|
||||
<view class="img">
|
||||
<image :src="$util.img('public/uniapp/member/invite/shouji.png')" mode="aspectFit" show-menu-by-longpress />
|
||||
</view>
|
||||
<view class="text">好友进入</view>
|
||||
<view class="text">{{ $lang('invite.friendEnter') }}</view>
|
||||
</view>
|
||||
<view>
|
||||
<image :src="$util.img('public/uniapp/member/invite/jiantou.png')" class="jiantou" show-menu-by-longpress ></image>
|
||||
@@ -148,7 +148,7 @@
|
||||
<view class="img">
|
||||
<image :src="$util.img('public/uniapp/member/invite/hongbao.png')" mode="aspectFit" show-menu-by-longpress />
|
||||
</view>
|
||||
<view class="text">好友注册成功获得奖励</view>
|
||||
<view class="text">{{ $lang('invite.friendRegister') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -163,10 +163,10 @@
|
||||
<image :src="$util.img(poster)" mode="widthFix" show-menu-by-longpress />
|
||||
</view>
|
||||
<!-- #ifdef MP || APP-PLUS -->
|
||||
<view class="save" @click="savePoster()">保存图片</view>
|
||||
<view class="save" @click="savePoster()">{{ $lang('invite.savePoster') }}</view>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef H5 -->
|
||||
<view class="save">长按保存图片</view>
|
||||
<view class="save">{{ $lang('invite.longPressSave') }}</view>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
<view class="close iconfont icon-close" @click="closePosterPopup()"></view>
|
||||
@@ -179,32 +179,32 @@
|
||||
<view @touchmove.prevent.stop>
|
||||
<uni-popup ref="sharePopup" type="bottom" class="share-popup">
|
||||
<view>
|
||||
<view class="share-title">分享</view>
|
||||
<view class="share-title">{{ $lang('invite.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('invite.shareToFriend') }}</text>
|
||||
</button>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<view class="share-box" @click="openPosterPopup">
|
||||
<button class="share-btn" :plain="true">
|
||||
<view class="iconfont icon-pengyouquan"></view>
|
||||
<text>生成分享海报</text>
|
||||
<text>{{ $lang('invite.generatePoster') }}</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('invite.copyLink') }}</text>
|
||||
</button>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
<view class="share-footer" @click="closeSharePopup"><text>取消分享</text></view>
|
||||
<view class="share-footer" @click="closeSharePopup"><text>{{ $lang('invite.cancelShare') }}</text></view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
</view>
|
||||
@@ -214,7 +214,7 @@
|
||||
<uni-popup ref="rulePopup" type="bottom">
|
||||
<view class="tips-layer">
|
||||
<view class="head" @click="closeRulePopup()">
|
||||
<view class="title">活动说明</view>
|
||||
<view class="title">{{ $lang('invite.activityRule') }}</view>
|
||||
<text class="iconfont icon-close"></text>
|
||||
</view>
|
||||
<view class="body">
|
||||
@@ -224,7 +224,7 @@
|
||||
</uni-popup>
|
||||
</view>
|
||||
</view>
|
||||
<ns-empty v-else text="暂无相关数据"></ns-empty>
|
||||
<ns-empty v-else :text="$lang('invite.noData')"></ns-empty>
|
||||
<ns-login ref="login"></ns-login>
|
||||
<loading-cover ref="loadingCover"></loading-cover>
|
||||
</view>
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
<uni-popup ref="couponPopup" type="bottom">
|
||||
<view class="coupon-popup-box">
|
||||
<view class="coupon-popup-title" @click="closeCoupon">
|
||||
优惠券
|
||||
{{ $lang('member.coupon') }}
|
||||
<text class="iconfont icon-close"></text>
|
||||
</view>
|
||||
<scroll-view class="coupon-popup-content" scroll-y>
|
||||
@@ -152,11 +152,11 @@
|
||||
</view>
|
||||
<view class="coupon-price" v-if="item.type == 'reward'">
|
||||
<text>{{ item.money }}</text>
|
||||
元
|
||||
{{ $lang('member.currencyUnit') }}
|
||||
</view>
|
||||
<view class="coupon-price" v-if="item.type == 'discount'">
|
||||
<text>{{ $util.numberFixed(item.discount, 1) }}</text>
|
||||
折
|
||||
{{ $lang('member.discountUnit') }}
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
@@ -267,7 +267,7 @@
|
||||
},
|
||||
getBannerDetail(index) {
|
||||
uni.showLoading({
|
||||
title: '将前往详情页面',
|
||||
title: this.$lang('member.goingToDetail'),
|
||||
duration: 2000,
|
||||
mask: true
|
||||
});
|
||||
|
||||
@@ -131,12 +131,12 @@ export default {
|
||||
}
|
||||
if (this.payTypeList.length == 0 && this.payInfo.pay_money > 0) {
|
||||
this.$util.showToast({
|
||||
title: '请选择支付方式!'
|
||||
title: this.$lang('pay.selectPayMethod')
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.showLoading({
|
||||
title: '支付中...',
|
||||
title: this.$lang('pay.paying'),
|
||||
mask: true
|
||||
});
|
||||
this.pay();
|
||||
@@ -265,9 +265,9 @@ export default {
|
||||
fail: res => {
|
||||
this.flag = false;
|
||||
if (res.errMsg == 'requestPayment:fail cancel') {
|
||||
this.$util.showToast({ title: '您已取消支付' });
|
||||
this.$util.showToast({ title: this.$lang('pay.cancelPay') });
|
||||
} else {
|
||||
uni.showModal({ content: '支付失败,失败原因: ' + res.errMsg, showCancel: false });
|
||||
uni.showModal({ content: this.$lang('pay.payFail') + res.errMsg, showCancel: false });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '未获取到支付信息!'
|
||||
title: this.$lang('pay.noPayInfo')
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL, {}, 'reLaunch');
|
||||
|
||||
Reference in New Issue
Block a user