refactor: 替换多页面国际化文本为硬编码中文内容
移除项目内大部分$lang()国际化调用,替换为直接中文文本,统一前端展示文案
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>{{ $lang('fenxiao.fillApplyInfo') }}</text></view>
|
||||
<view class="bg-title"><text>请填写申请信息</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">{{ $lang('fenxiao.inviter') }}</view>
|
||||
<text class="shuru">{{ sourceMemberInfo.fenxiao_name || $lang('fenxiao.none') }}</text>
|
||||
<view class="title">邀请人</view>
|
||||
<text class="shuru">{{ sourceMemberInfo.fenxiao_name }}</text>
|
||||
</view>
|
||||
<view class="apply-item">
|
||||
<view class="title">{{ fenxiaoWords.fenxiao_name }}{{ $lang('fenxiao.name') }}</view>
|
||||
<input class="input" type="text" maxlength="30" :placeholder="$lang('fenxiao.inputFenxiaoName')" v-model="formData.fenXiaoName" placeholder-class="pla-cla" />
|
||||
<view class="title">{{ fenxiaoWords.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">{{ $lang('member.mobile') }}</view>
|
||||
<input class="input" type="number" :placeholder="$lang('form.inputMobile')" maxlength="11" v-model="formData.mobile" placeholder-class="pla-cla" />
|
||||
<view class="title">手机号</view>
|
||||
<input class="input" type="number" placeholder="请输入手机号" 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>
|
||||
{{ $lang('fenxiao.readAndAgree') }}
|
||||
<text class="color-base-text" @click.stop="openPopup">【{{ fenxiaoWords.fenxiao_name }}{{ $lang('fenxiao.applyAgreement') }}】</text>
|
||||
我已阅读并了解
|
||||
<text class="color-base-text" @click.stop="openPopup">【{{ fenxiaoWords.fenxiao_name }}申请协议】</text>
|
||||
</view>
|
||||
<view class="apply-btn">
|
||||
<button @click="applyFenXiao" class="color-base-bg">{{ $lang('fenxiao.applyToBecome') }}{{ fenxiaoWords.fenxiao_name }}</button>
|
||||
<button @click="applyFenXiao" class="color-base-bg">申请成为{{ 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">{{ $lang('fenxiao.applyCondition') }}</view>
|
||||
<view class="apply-message-title color-base-bg-before">分销商申请条件</view>
|
||||
<text class="apply-message-info font-size-goods-tag" v-if="fenxiaoConfig.fenxiao_condition == 2">
|
||||
{{ $lang('fenxiao.applyFenxiao') }},{{ $lang('fenxiao.consumeCountTip') }}{{ fenxiaoConfig.consume_count }}{{ $lang('fenxiao.times') }}
|
||||
申请成为{{ fenxiaoWords.fenxiao_name }},需要您的消费次数需要达到{{ fenxiaoConfig.consume_count }}次
|
||||
</text>
|
||||
<text class="apply-message-info font-size-goods-tag" v-if="fenxiaoConfig.fenxiao_condition == 3">
|
||||
{{ $lang('fenxiao.applyFenxiao') }},{{ $lang('fenxiao.consumeMoneyTip') }}{{ fenxiaoConfig.consume_money }}{{ $lang('fenxiao.yuan') }}
|
||||
申请成为{{ fenxiaoWords.fenxiao_name }},需要您的消费金额需要达到{{ fenxiaoConfig.consume_money }}元
|
||||
</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">{{ $lang('fenxiao.applyCondition') }}</view>
|
||||
<text class="apply-message-info font-size-goods-tag">{{ $lang('fenxiao.applyFenxiao') }},{{ $lang('fenxiao.buyDesignatedGoods') }}</text>
|
||||
<view class="apply-message-title color-base-bg-before">分销商申请条件</view>
|
||||
<text class="apply-message-info font-size-goods-tag">申请成为{{ fenxiaoWords.fenxiao_name }},需要购买以下指定商品(任选其一)</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 ? $lang('fenxiao.expandMore') : $lang('fenxiao.collapse') }}
|
||||
{{ isOpen ? '展开更多' : '收起' }}
|
||||
<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">{{ $lang('fenxiao.applyFenxiao') }},{{ $lang('fenxiao.consumeCountTip') }}{{ fenxiaoConfig.consume_count }}{{ $lang('fenxiao.times') }}</text>
|
||||
<text v-if="fenxiaoConfig.fenxiao_condition == 2">申请成为{{ fenxiaoWords.fenxiao_name }},需要您的消费次数需要达到{{ fenxiaoConfig.consume_count }}次</text>
|
||||
<text v-if="fenxiaoConfig.fenxiao_condition == 3">
|
||||
{{ $lang('fenxiao.applyFenxiao') }},{{ $lang('fenxiao.consumeMoneyTip') }}{{ fenxiaoConfig.consume_money | moneyFormat }}{{ $lang('fenxiao.yuan') }}
|
||||
申请成为{{ fenxiaoWords.fenxiao_name }},需要您的消费金额需要达到{{ fenxiaoConfig.consume_money | moneyFormat }}元
|
||||
</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">{{ $lang('fenxiao.becomeFenxiaoCondition') }}</view>
|
||||
<text class="apply-message-info font-size-goods-tag">{{ $lang('fenxiao.becomeFenxiao') }},{{ $lang('fenxiao.buyDesignatedGoods') }}</text>
|
||||
<view class="apply-message-title color-base-bg-before">成为分销商的条件</view>
|
||||
<text class="apply-message-info font-size-goods-tag">成为{{ fenxiaoWords.fenxiao_name }},需要购买以下指定商品(任选其一)</text>
|
||||
</view>
|
||||
<view class="goods-list" v-for="(item, index) in goodsList" :key="index" @click="toDetail(item)">
|
||||
<view class="goods-img">
|
||||
@@ -114,7 +114,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="content-lists" v-if="isShow" @click="onOpen()">
|
||||
{{ isOpen ? $lang('fenxiao.expandMore') : $lang('fenxiao.collapse') }}
|
||||
{{ isOpen ? '展开更多' : '收起' }}
|
||||
<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>{{ $lang('fenxiao.notDistributor') }}</text>
|
||||
<text>您还不是分销商</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">{{ $lang('fenxiao.submittedWaitAudit', { fenxiao_name: fenxiaoWords.fenxiao_name }) }}</text>
|
||||
<text v-if="status == 1">您已提交{{ fenxiaoWords.fenxiao_name }}申请,等待平台审核</text>
|
||||
<block v-else-if="status == -1">
|
||||
<text>{{ $lang('fenxiao.applicationRejected', { fenxiao_name: fenxiaoWords.fenxiao_name }) }}</text>
|
||||
<view class="again-btn color-base-bg" @click="againApply">{{ $lang('fenxiao.reapply') }}</view>
|
||||
<text>您提交的{{ fenxiaoWords.fenxiao_name }}申请,已被拒绝,请再接再厉</text>
|
||||
<view class="again-btn color-base-bg" @click="againApply">重新申请</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: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
title: '商家未开启分销',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
@@ -207,7 +207,7 @@
|
||||
async onShow() {
|
||||
this.isIphoneX = this.$util.uniappIsIPhoneX();
|
||||
|
||||
if (this.fenxiaoWords && this.fenxiaoWords.fenxiao_name) this.$langConfig.title(this.fenxiaoWords.fenxiao_name + this.$lang('fenxiao.apply'));
|
||||
if (this.fenxiaoWords && this.fenxiaoWords.fenxiao_name) this.$langConfig.title(this.fenxiaoWords.fenxiao_name + '申请');
|
||||
|
||||
if (this.storeToken) {
|
||||
this.applyStatus();
|
||||
@@ -275,7 +275,7 @@
|
||||
if (!this.fenXiaoValidata()) return;
|
||||
if (this.isAgreement && !this.isChecked) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.pleaseReadAgreement')
|
||||
title: '请仔细阅读协议,并勾选'
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -330,17 +330,17 @@
|
||||
let rule = [{
|
||||
name: 'fenXiaoName',
|
||||
checkType: 'required',
|
||||
errorMsg: this.$lang('fenxiao.inputFenxiaoName')
|
||||
errorMsg: '请输入' + this.fenxiaoWords.fenxiao_name + '名称'
|
||||
},
|
||||
{
|
||||
name: 'mobile',
|
||||
checkType: 'required',
|
||||
errorMsg: this.$lang('fenxiao.inputPhone')
|
||||
errorMsg: '请输入手机号'
|
||||
},
|
||||
{
|
||||
name: 'mobile',
|
||||
checkType: 'phoneno',
|
||||
errorMsg: this.$lang('fenxiao.inputPhoneCorrect')
|
||||
errorMsg: '请输入正确的手机号'
|
||||
}
|
||||
];
|
||||
var checkRes = validate.check(this.formData, rule);
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<image v-else :src="$util.img('public/uniapp/fenxiao/bill/withdraw.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
<view class="balances-info">
|
||||
<text>{{ item.type_name }}</text>
|
||||
<text>{{ $lang('fenxiao.orderNo') }}: {{ item.account_no }}</text>
|
||||
<text>账单编号: {{ item.account_no }}</text>
|
||||
<text>{{ $util.timeStampTurnTime(item.create_time) }}</text>
|
||||
</view>
|
||||
<view class="balances-num">
|
||||
@@ -16,7 +16,7 @@
|
||||
item.money }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<ns-empty v-if="!accountList.length && showEmpty" :text="$lang('fenxiao.emptyBill')" :isIndex="false"></ns-empty>
|
||||
<ns-empty v-if="!accountList.length && showEmpty" text="暂无账单信息" :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: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
title: '商家未开启分销',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<view :style="themeColor">
|
||||
<mescroll-uni ref="mescroll" @getData="getData" top="0" class="member-point" :size="8" v-if="storeToken">
|
||||
<block slot="list">
|
||||
@@ -16,20 +16,20 @@
|
||||
<view v-if="item.level_name" class="title color-base-border color-base-text">{{
|
||||
item.level_name }}</view>
|
||||
</view>
|
||||
<view class="color-tip font-size-goods-tag">{{ $lang('fenxiao.joinTime') }}:{{
|
||||
<view class="color-tip font-size-goods-tag">加入时间:{{
|
||||
$util.timeStampTurnTime(item.bind_fenxiao_time).substring(0, 10) }}</view>
|
||||
</view>
|
||||
<view class="consume-info">
|
||||
<view><text>{{ item.one_child_fenxiao_num + item.one_child_num }}</text> {{ $lang('fenxiao.people') }}</view>
|
||||
<view><text>{{ item.order_num }}</text> {{ $lang('fenxiao.orders') }}</view>
|
||||
<view><text>{{ item.order_money | moneyFormat }}</text> {{ $lang('fenxiao.yuan') }}</view>
|
||||
<view><text>{{ item.one_child_fenxiao_num + item.one_child_num }}</text> 人</view>
|
||||
<view><text>{{ item.order_num }}</text> 单</view>
|
||||
<view><text>{{ item.order_money | moneyFormat }}</text> 元</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<block v-if="teamList.length == 0 && emptyShow">
|
||||
<ns-empty :text="$lang('fenxiao.emptyData')" :isIndex="false"></ns-empty>
|
||||
<ns-empty text="暂无数据" :isIndex="false"></ns-empty>
|
||||
</block>
|
||||
</block>
|
||||
</mescroll-uni>
|
||||
@@ -54,7 +54,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
title: '商家未开启分销',
|
||||
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)">{{ $lang('fenxiao.all') }}</view>
|
||||
@click="changeCategory(0)">全部</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">{{ $lang('fenxiao.share') }}</text>
|
||||
<text class="txt" v-else>{{ $lang('fenxiao.earn') }}{{ item.commission_money }}{{ $lang('common.yuan') }}</text>
|
||||
<text class="txt" v-if="!is_fenxiao">分享</text>
|
||||
<text class="txt" v-else>赚{{ item.commission_money }}元</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="empty" v-if="goodsList.length == 0">
|
||||
<ns-empty :isIndex="false" :text="$lang('fenxiao.emptyGoods')" textColor="#fff"></ns-empty>
|
||||
<ns-empty :isIndex="false" text="暂无分销商品" 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">{{ $lang('fenxiao.shareFriend') }}</button>
|
||||
<button class="share-btn" :plain="true" open-type="share">分享好友</button>
|
||||
<text class="tag">|</text>
|
||||
<!-- #endif -->
|
||||
<text class="btn" @click="shareFn('fenxiao')">{{ $lang('fenxiao.generatePoster') }}</text>
|
||||
<text class="btn" @click="shareFn('fenxiao')">生成海报</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">{{ $lang('fenxiao.share') }}</view>
|
||||
<view class="share-title">分享</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>{{ $lang('fenxiao.shareToFriend') }}</text>
|
||||
<text>分享给好友</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>{{ $lang('fenxiao.shareToGoodsCircle') }}</text>
|
||||
<text>分享到好物圈</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>{{ $lang('fenxiao.generateSharePoster') }}</text>
|
||||
<text>生成分享海报</text>
|
||||
</button>
|
||||
</view>
|
||||
<!-- #ifdef H5 -->
|
||||
<view class="share-box" @click="copyUrl">
|
||||
<button class="share-btn" :plain="true">
|
||||
<view class="iconfont icon-fuzhilianjie"></view>
|
||||
<text>{{ $lang('fenxiao.copyLink') }}</text>
|
||||
<text>复制链接</text>
|
||||
</button>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
<view class="share-footer" @click="closeSharePopup"><text>{{ $lang('fenxiao.cancelShare') }}</text></view>
|
||||
<view class="share-footer" @click="closeSharePopup"><text>取消分享</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()">{{ $lang('fenxiao.saveImage') }}</view>
|
||||
<view class="save" @click="saveGoodsPoster()">保存图片</view>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef H5 -->
|
||||
<view class="save">{{ $lang('fenxiao.longPressSave') }}</view>
|
||||
<view class="save">长按保存图片</view>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
<view class="close iconfont icon-close" @click="closePosterPopup()"></view>
|
||||
|
||||
@@ -18,32 +18,32 @@
|
||||
:src="$util.img('public/uniapp/fenxiao/index/commissionFission-level.png')"
|
||||
alt="" class="level-icon">{{ info.level_name }}</p>
|
||||
</view>
|
||||
<view class="recommend">{{ $lang('fenxiao.parentAgent') }}:{{ info.parent_name ? info.parent_name : $lang('fenxiao.mainStore') }}</view>
|
||||
<view class="recommend">{{ $lang('fenxiao.invitedSuccess') }}:{{ teamNum.num }}{{ $lang('fenxiao.people') }}<text class="iconfont icon-right"
|
||||
<view class="recommend">上级代理商:{{ info.parent_name ? info.parent_name : '总店' }}</view>
|
||||
<view class="recommend">已邀请成功:{{ 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')">
|
||||
<text class="iconfont icon-wenhao font-size-tag"></text>
|
||||
{{ $lang('fenxiao.promoteRule') }}
|
||||
推广规则
|
||||
</view> -->
|
||||
</view>
|
||||
<!-- <view class="fenxiao-level-wrap" v-if="levelList.length">
|
||||
<image :src="$util.img('public/uniapp/fenxiao/index/level_icon.png')" mode="widthFix" class="level-icon"/>
|
||||
<view class="level-wrap" @click="$util.redirectTo('/pages_promotion/fenxiao/level')">
|
||||
<view class="title">{{ info.level_num > 0 ? info.level_name : '{{ $lang('fenxiao.levelNotUnlock') }}' }}</view>
|
||||
<view class="desc">{{ $lang('fenxiao.placeOrder') }}、{{ $lang('fenxiao.inviteFriendUpgrade') }}</view>
|
||||
<view class="title">{{ info.level_num > 0 ? info.level_name : '等级未解锁' }}</view>
|
||||
<view class="desc">下单、邀请好友均可提升等级</view>
|
||||
</view>
|
||||
<view class="btn" @click="$refs.taskPopup.open()" v-if="info.condition.last_level">{{ $lang('fenxiao.doTask') }}</view>
|
||||
<view class="btn" @click="$refs.taskPopup.open()" v-if="info.condition.last_level">做任务</view>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
<view class="fenxiao-index-allmoney">
|
||||
<view class="allmoney-top-money">
|
||||
<view class="allmoney-top">
|
||||
<view class="font-size-sub">{{ $lang('fenxiao.can') }}{{ fenxiaoWords.withdraw }}({{ $lang('fenxiao.yuan') }})</view>
|
||||
<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>
|
||||
@@ -52,27 +52,27 @@
|
||||
|
||||
<view class="allmoney-bottom">
|
||||
<!-- <view class="allmoney-all-wrap" @click="$util.redirectTo('/pages_promotion/fenxiao/bill')">
|
||||
<view class="title">{{ $lang('fenxiao.total') }}{{ fenxiaoWords.account }}</view>
|
||||
<view class="title">总{{ fenxiaoWords.account }}</view>
|
||||
<view class="money price-font">{{ info.total_commission | moneyFormat }}</view>
|
||||
</view>
|
||||
<view class="allmoney-all-wrap" @click="$util.redirectTo('/pages_promotion/fenxiao/withdraw_list')">
|
||||
<view class="title">{{ $lang('fenxiao.withdrawnAmount') }}{{ fenxiaoWords.account }}</view>
|
||||
<view class="title">已提现{{ fenxiaoWords.account }}</view>
|
||||
<view class="money price-font">{{ info.account_withdraw | moneyFormat }}</view>
|
||||
</view> -->
|
||||
<view class="allmoney-all-wrap"
|
||||
@click="$util.redirectTo('/pages_promotion/fenxiao/withdraw_list')">
|
||||
<view class="title">{{ $lang('fenxiao.withdrawing') }}({{ $lang('fenxiao.yuan') }})<text class="iconfont icon-right"
|
||||
<view class="title">提现中(元)<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">{{ $lang('fenxiao.pendingEntry') }}({{ $lang('fenxiao.yuan') }})<text class="iconfont icon-right"
|
||||
<view class="title">待入账(元)<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')">{{ $lang('fenxiao.withdraw') }}
|
||||
<view class="withdraw-btn" @click="$util.redirectTo('/pages_promotion/fenxiao/withdraw_apply')">提现
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
style="width: 100%;border-radius:24rpx" show-menu-by-longpress/>
|
||||
</view>
|
||||
|
||||
<!-- {{ $lang('fenxiao.functionList') }} -->
|
||||
<!-- 功能列表 -->
|
||||
<view class="fenxiao-menu-list">
|
||||
<view class="menu-item" @click="$util.redirectTo('/pages_promotion/fenxiao/team')">
|
||||
<view class="icon-wrap">
|
||||
@@ -90,8 +90,8 @@
|
||||
</image>
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="title">{{ $lang('fenxiao.myFans') }}</view>
|
||||
<view class="desc">{{ $lang('fenxiao.invitedUsers') }}</view>
|
||||
<view class="title">我的粉丝</view>
|
||||
<view class="desc">邀请的用户</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="menu-item" @click="$util.redirectTo('/pages_promotion/fenxiao/withdraw_list')">
|
||||
@@ -100,8 +100,8 @@
|
||||
</image>
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="title">{{ fenxiaoWords.withdraw }}{{ $lang('fenxiao.detail') }}</view>
|
||||
<view class="desc">{{ $lang('fenxiao.totalCommission') }}¥{{ info.total_commission | moneyFormat }}
|
||||
<view class="title">{{ fenxiaoWords.withdraw }}明细</view>
|
||||
<view class="desc">累计{{ fenxiaoWords.account }}¥{{ info.total_commission | moneyFormat }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -111,8 +111,8 @@
|
||||
</image>
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="title">{{ fenxiaoWords.concept + $lang('fenxiao.order') }}</view>
|
||||
<view class="desc">{{ fenxiaoWords.concept + $lang('fenxiao.order') }}{{ $lang('fenxiao.detail') }}</view>
|
||||
<view class="title">{{ fenxiaoWords.concept + '订单' }}</view>
|
||||
<view class="desc">{{ fenxiaoWords.concept + '订单' }}明细</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">{{ $lang('fenxiao.myInviteCode') }}</view>
|
||||
<view class="desc">{{ $lang('fenxiao.inviteFriendsEarn') }}</view>
|
||||
<view class="title">我的邀请码</view>
|
||||
<view class="desc">邀好友赚好礼</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="menu-item" @click="$util.redirectTo('/pages_promotion/fenxiao/promote')">
|
||||
@@ -130,8 +130,8 @@
|
||||
<image :src="$util.img('public/uniapp/fenxiao/index/code.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="title">{{ $lang('fenxiao.inviteFriends') }}</view>
|
||||
<view class="desc">{{ $lang('fenxiao.inviteFriendsGift') }}</view>
|
||||
<view class="title">邀请好友</view>
|
||||
<view class="desc">邀好友赚好礼</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- <view class="menu-item" @click="$util.redirectTo('/pages_promotion/fenxiao/bill')">
|
||||
@@ -139,8 +139,8 @@
|
||||
<image :src="$util.img('public/uniapp/fenxiao/index/bill.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="title">{{ $lang('fenxiao.billReport') }}</view>
|
||||
<view class="desc">{{ $lang('fenxiao.accountChange') }}</view>
|
||||
<view class="title">账单报表</view>
|
||||
<view class="desc">{{ fenxiaoWords.account }}变更明细</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="menu-item" @click="$util.redirectTo('/pages_promotion/fenxiao/goods_list', { templateId: templateId })">
|
||||
@@ -148,8 +148,8 @@
|
||||
<image :src="$util.img('public/uniapp/fenxiao/index/market.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="title">{{ fenxiaoWords.concept }}{{ $lang('fenxiao.goods') }}</view>
|
||||
<view class="desc">{{ fenxiaoWords.concept }}{{ $lang('fenxiao.goods') }}</view>
|
||||
<view class="title">{{ fenxiaoWords.concept }}商品</view>
|
||||
<view class="desc">{{ fenxiaoWords.concept }}商品</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- <view class="menu-item" @click="$util.redirectTo('/pages_promotion/fenxiao/ranking_list', { type: 'profit' })">
|
||||
@@ -158,8 +158,8 @@
|
||||
</image>
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="title">{{ fenxiaoWords.account }}{{ $lang('fenxiao.ranking') }}</view>
|
||||
<view class="desc">{{ $lang('fenxiao.yourRank', { rank: profitRanking }) }}</view>
|
||||
<view class="title">{{ fenxiaoWords.account }}排行</view>
|
||||
<view class="desc">您的排名为第{{ profitRanking }}位</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- <view class="menu-item" @click="$util.redirectTo('/pages_promotion/fenxiao/ranking_list', { type: 'invited_num' })">
|
||||
@@ -168,8 +168,8 @@
|
||||
</image>
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="title">{{ $lang('fenxiao.promoteRankTitle') }}</view>
|
||||
<view class="desc">{{ $lang('fenxiao.yourRank', { rank: invitedNumRanking }) }}</view>
|
||||
<view class="title">推广人排行</view>
|
||||
<view class="desc">您的排名为{{ invitedNumRanking }}位</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- <view class="menu-item" @click="$util.redirectTo('/pages_promotion/fenxiao/level')" v-if="levelList.length">
|
||||
@@ -177,8 +177,8 @@
|
||||
<image :src="$util.img('public/uniapp/fenxiao/index/team_reward.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="title">{{ $lang('fenxiao.levelDesc') }}</view>
|
||||
<view class="desc">{{ fenxiaoWords.concept }}{{ $lang('fenxiao.levelDesc') }}</view>
|
||||
<view class="title">等级说明</view>
|
||||
<view class="desc">{{ fenxiaoWords.concept }}等级说明</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
@@ -190,8 +190,8 @@
|
||||
<image :src="$util.img('public/uniapp/fenxiao/index/down-line.png')" mode="aspectFill" show-menu-by-longpress></image>
|
||||
</view>
|
||||
<view class="all-money-tit-wrap">
|
||||
<text class="all-money-tit">{{ $lang('fenxiao.myFans') }}</text>
|
||||
<text class="all-money-num">{{ teamNum.num }}{{ $lang('fenxiao.people') }}</text>
|
||||
<text class="all-money-tit">我的粉丝</text>
|
||||
<text class="all-money-num">{{ teamNum.num }}人</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -202,7 +202,7 @@
|
||||
</view>
|
||||
<view class="all-money-tit-wrap">
|
||||
<text class="all-money-tit">{{ fenxiaoWords.fenxiao_name }}</text>
|
||||
<text class="all-money-num">{{ teamNum.fenxiao_num }}{{ $lang('fenxiao.people') }}</text>
|
||||
<text class="all-money-num">{{ teamNum.fenxiao_num }}人</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -211,8 +211,8 @@
|
||||
<ns-copyright></ns-copyright>
|
||||
<view class="empty" v-if="!info.fenxiao_id > 0 && showEmpty">
|
||||
<image :src="$util.img('public/uniapp/fenxiao/index/no-fenxiao.png')" mode="widthFix" show-menu-by-longpress></image>
|
||||
<text>{{ $lang('fenxiao.notFenxiao', { fenxiao_name: fenxiaoWords.fenxiao_name }) }},{{ $lang('fenxiao.applyNow') }}</text>
|
||||
<view @click="$util.redirectTo('/pages_promotion/fenxiao/apply')" class="color-base-bg">{{ $lang('fenxiao.joinNow') }}</view>
|
||||
<text>您还不是{{ fenxiaoWords.fenxiao_name }},请先提交申请</text>
|
||||
<view @click="$util.redirectTo('/pages_promotion/fenxiao/apply')" class="color-base-bg">立即加入</view>
|
||||
</view>
|
||||
<loading-cover ref="loadingCover"></loading-cover>
|
||||
<ns-login ref="login"></ns-login>
|
||||
@@ -220,7 +220,7 @@
|
||||
<uni-popup ref="taskPopup" type="bottom">
|
||||
<view class="task-popup popup-layer" v-if="levelInfo">
|
||||
<view class="head-wrap">
|
||||
<text>{{ $lang('fenxiao.quickUpgradeTip') }}</text>
|
||||
<text>快速升级技巧</text>
|
||||
<text class="iconfont icon-close" @click="$refs.taskPopup.close()"></text>
|
||||
</view>
|
||||
<view class="body-wrap">
|
||||
@@ -228,7 +228,7 @@
|
||||
<text class="subordinate-consumption">
|
||||
{{ item.title }}
|
||||
<text class="iconfont icon-wenhao" @click="openTips(item)"></text>
|
||||
<text class="incomplete">{{ item.progress == 100 ? $lang('fenxiao.completed') : $lang('fenxiao.incomplete') }}</text>
|
||||
<text class="incomplete">{{ item.progress == 100 ? '已完成' : '未完成' }}</text>
|
||||
</text>
|
||||
<view class="circle">
|
||||
<progress :percent="item.progress" activeColor="#E7B667" stroke-width="4" />
|
||||
@@ -236,7 +236,7 @@
|
||||
<text class="zero">{{ item.value }}</text>
|
||||
<text>/{{ item.condition }}</text>
|
||||
<text class="to-complete-box" @click="$util.redirectTo('/pages_promotion/fenxiao/promote')">
|
||||
<text class="to-complete">{{ item.progress == 100 ? $lang('fenxiao.completed') : $lang('fenxiao.toComplete') }}</text>
|
||||
<text class="to-complete">{{ item.progress == 100 ? '已完成' : '去完成' }}</text>
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -246,12 +246,12 @@
|
||||
<uni-popup type="bottom" ref="tips">
|
||||
<view class="popup">
|
||||
<view class="popup-header">
|
||||
<text class="tit">{{ $lang('fenxiao.hint') }}</text>
|
||||
<text class="tit">提示</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 ? $lang('fenxiao.upgradeConditionAny') : $lang('fenxiao.upgradeConditionAll') }}</view>
|
||||
<view v-if="levelInfo">{{ levelInfo.upgrade_type == 1 ? '满足任意一条件即可升级' : '满足全部条件才能进行升级' }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
@@ -290,7 +290,7 @@ export default {
|
||||
},
|
||||
mixins: [fenxiaoWords],
|
||||
onShow() {
|
||||
if (this.fenxiaoWords && this.fenxiaoWords.concept) this.$langConfig.title(this.fenxiaoWords.concept + this.$lang('fenxiao.center'));
|
||||
if (this.fenxiaoWords && this.fenxiaoWords.concept) this.$langConfig.title(this.fenxiaoWords.concept + '中心');
|
||||
|
||||
if (this.storeToken) {
|
||||
this.checkFenxiaoIsStart();
|
||||
@@ -307,7 +307,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
title: '商家未开启分销',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
@@ -348,7 +348,7 @@ export default {
|
||||
this.getFenxiaoDetail();
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
title: '商家未开启分销',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
@@ -368,7 +368,7 @@ export default {
|
||||
if (res.data) {
|
||||
if (res.data.status == -1) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.fenxiaoFrozen')
|
||||
title: '当前分销商已冻结'
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo(this.$util.MEMBER_PAGE_URL);
|
||||
@@ -480,9 +480,9 @@ export default {
|
||||
|
||||
if (level.one_fenxiao_order_num > 0) {
|
||||
let task = {
|
||||
title: this.$lang('fenxiao.subordinateConsume'),
|
||||
desc: this.$lang('fenxiao.subordinateConsumeCount') + level.one_fenxiao_order_num + this.$lang('fenxiao.orders'),
|
||||
tips: this.$lang('fenxiao.subordinateConsumeCountTip'),
|
||||
title: '下级消费',
|
||||
desc: '下级消费单数满' + level.one_fenxiao_order_num + '单',
|
||||
tips: '分销商自己购买和自己推荐的直属会员购买的订单次数',
|
||||
condition: level.one_fenxiao_order_num,
|
||||
value: this.info.one_fenxiao_order_num,
|
||||
progress: parseFloat(this.info.one_fenxiao_order_num) > parseFloat(level.one_fenxiao_order_num) ?
|
||||
@@ -494,9 +494,9 @@ export default {
|
||||
}
|
||||
if (level.one_fenxiao_total_order > 0) {
|
||||
let task = {
|
||||
title: this.$lang('fenxiao.subordinateConsume'),
|
||||
desc: this.$lang('fenxiao.subordinateConsumeMoney') + this.moneyFormat(level.one_fenxiao_total_order) + this.$lang('fenxiao.yuan'),
|
||||
tips: this.$lang('fenxiao.subordinateConsumeMoneyTip'),
|
||||
title: '下级消费',
|
||||
desc: '下级消费金额满' + this.moneyFormat(level.one_fenxiao_total_order) + '元',
|
||||
tips: '分销商自己购买和推荐的直属会员购买的订单的总额',
|
||||
condition: this.moneyFormat(level.one_fenxiao_total_order),
|
||||
value: this.info.one_fenxiao_total_order,
|
||||
progress: parseFloat(this.info.one_fenxiao_total_order) > parseFloat(level.one_fenxiao_total_order) ?
|
||||
@@ -508,10 +508,10 @@ export default {
|
||||
}
|
||||
if (level.one_fenxiao_order_money > 0) {
|
||||
let task = {
|
||||
title: this.$lang('fenxiao.subordinateConsume'),
|
||||
desc: this.$lang('fenxiao.subordinateConsumeCommission', { account: this.fenxiaoWords.account }) + this.moneyFormat(level
|
||||
.one_fenxiao_order_money) + this.$lang('fenxiao.yuan'),
|
||||
tips: this.$lang('fenxiao.subordinateConsumeCommissionTip', { account: this.fenxiaoWords.account }),
|
||||
title: '下级消费',
|
||||
desc: '下级消费产生' + this.fenxiaoWords.account + '总额满' + this.moneyFormat(level
|
||||
.one_fenxiao_order_money) + '元',
|
||||
tips: '分销商自己购买和自己推荐的直属会员购买的订单' + this.fenxiaoWords.account + '总额',
|
||||
condition: this.moneyFormat(level.one_fenxiao_order_money),
|
||||
value: this.info.one_fenxiao_order_money,
|
||||
progress: parseFloat(this.info.one_fenxiao_order_money) > parseFloat(level.one_fenxiao_order_money) ?
|
||||
@@ -523,9 +523,9 @@ export default {
|
||||
}
|
||||
if (level.order_num > 0) {
|
||||
let task = {
|
||||
title: this.$lang('fenxiao.selfConsume'),
|
||||
desc: this.$lang('fenxiao.selfConsumeCount') + level.order_num + this.$lang('fenxiao.orders'),
|
||||
tips: this.$lang('fenxiao.selfConsumeCountTip'),
|
||||
title: '自身消费',
|
||||
desc: '自身消费单数满' + level.order_num + '单',
|
||||
tips: '分销商自己购买的订单次数',
|
||||
condition: level.order_num,
|
||||
value: this.info.order_num,
|
||||
progress: parseFloat(this.info.order_num) > parseFloat(level.order_num) ? 100 : ((parseFloat(this.info.order_num) / parseFloat(level.order_num)) * 100).toFixed(2)
|
||||
@@ -535,9 +535,9 @@ export default {
|
||||
}
|
||||
if (level.order_money > 0) {
|
||||
let task = {
|
||||
title: this.$lang('fenxiao.selfConsume'),
|
||||
desc: this.$lang('fenxiao.selfConsumeMoney') + this.moneyFormat(level.order_money) + this.$lang('fenxiao.yuan'),
|
||||
tips: this.$lang('fenxiao.selfConsumeMoneyTip'),
|
||||
title: '自身消费',
|
||||
desc: '自身消费金额满' + this.moneyFormat(level.order_money) + '元',
|
||||
tips: '分销商自己购买的订单总额',
|
||||
condition: this.moneyFormat(level.order_money),
|
||||
value: this.info.order_money,
|
||||
progress: parseFloat(this.info.order_money) > parseFloat(level.order_money) ?
|
||||
@@ -549,9 +549,9 @@ export default {
|
||||
}
|
||||
if (level.one_child_num > 0) {
|
||||
let task = {
|
||||
title: this.$lang('fenxiao.inviteFriend'),
|
||||
desc: this.$lang('fenxiao.inviteFriendCount') + level.one_child_num + this.$lang('fenxiao.people'),
|
||||
tips: this.$lang('fenxiao.inviteFriendTip'),
|
||||
title: '邀请好友',
|
||||
desc: '邀请好友人数达到' + level.one_child_num + '人',
|
||||
tips: '分销商的直属下级会员人数(包含已经申请成为分销商的)',
|
||||
condition: level.one_child_num,
|
||||
value: this.info.one_child_num,
|
||||
progress: parseFloat(this.info.one_child_num) > parseFloat(level.one_child_num) ?
|
||||
@@ -563,9 +563,9 @@ export default {
|
||||
}
|
||||
if (level.one_child_fenxiao_num > 0) {
|
||||
let task = {
|
||||
title: this.$lang('fenxiao.inviteFriend'),
|
||||
desc: this.$lang('fenxiao.inviteFenxiaoCount') + level.one_child_fenxiao_num + this.$lang('fenxiao.people'),
|
||||
tips: this.$lang('fenxiao.inviteFenxiaoTip'),
|
||||
title: '邀请好友',
|
||||
desc: '邀请好友成为分销商人数达到' + level.one_child_fenxiao_num + '人',
|
||||
tips: '分销商的直属下级分销商人数',
|
||||
condition: level.one_child_fenxiao_num,
|
||||
value: this.info.one_child_fenxiao_num,
|
||||
progress: parseFloat(this.info.one_child_fenxiao_num) > parseFloat(level.one_child_fenxiao_num) ?
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<view class="container" :style="themeColor">
|
||||
<view class="level-top">
|
||||
<image :src="$util.img('public/uniapp/level/level-top-bg.png')"></image>
|
||||
@@ -17,15 +17,15 @@
|
||||
</view>
|
||||
<view class="level-rate">
|
||||
<view class="rate-item" v-if="config.level > 0">
|
||||
<view class="title">{{ $lang('fenxiao.firstCommissionRate') }}</view>
|
||||
<view class="title">一级分佣比率</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">{{ $lang('fenxiao.secondCommissionRate') }}</view>
|
||||
<view class="title">二级分佣比率</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">{{ $lang('fenxiao.thirdCommissionRate') }}</view>
|
||||
<view class="title">三级分佣比率</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">{{ $lang('fenxiao.quickUpgradeTip') }}</view>
|
||||
<view class="title">快速升级技巧</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 ? $lang('fenxiao.completed') : $lang('fenxiao.incomplete') }}</view>
|
||||
{{ item.progress == 100 ? '已完成' : '未完成' }}</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">{{ $lang('fenxiao.hint') }}</text>
|
||||
<text class="tit">提示</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 ? $lang('fenxiao.upgradeConditionAny') : $lang('fenxiao.upgradeConditionAll') }}</view>
|
||||
<view v-if="levelInfo">{{ levelInfo.upgrade_type == 1 ? '满足任意一条件即可升级' : '满足全部条件才能进行升级' }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
@@ -114,9 +114,9 @@
|
||||
|
||||
if (level.one_fenxiao_order_num > 0) {
|
||||
let task = {
|
||||
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 }),
|
||||
title: '下级消费',
|
||||
desc: '下级消费单数满' + level.one_fenxiao_order_num + '单',
|
||||
tips: '分销商自己购买和自己推荐的直属会员购买的订单次数达到'+ 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: 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) }),
|
||||
title: '下级消费',
|
||||
desc: '下级消费金额满' + this.moneyFormat(level.one_fenxiao_total_order) + '元',
|
||||
tips: '分销商自己购买和推荐的直属会员购买的订单的总额达到'+ 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: 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) }),
|
||||
title: '下级消费',
|
||||
desc: '下级消费产生佣金总额满' + this.moneyFormat(level.one_fenxiao_order_money) + '元',
|
||||
tips: '分销商自己购买和自己推荐的直属会员购买的订单佣金总额达到'+ 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: this.$lang('fenxiao.selfConsume'),
|
||||
desc: this.$lang('fenxiao.selfConsumeOrderNum', { num: level.order_num }),
|
||||
tips: this.$lang('fenxiao.selfConsumeOrderNumTip', { num: level.order_num }),
|
||||
title: '自身消费',
|
||||
desc: '自身消费单数满' + level.order_num + '单',
|
||||
tips: '分销商自己购买的订单次数达到'+ 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: 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) }),
|
||||
title: '自身消费',
|
||||
desc: '自身消费金额满' + this.moneyFormat(level.order_money) + '元',
|
||||
tips: '分销商自己购买的订单总额满足'+ 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: this.$lang('fenxiao.inviteFriend'),
|
||||
desc: this.$lang('fenxiao.inviteFriendCount', { num: level.one_child_num }),
|
||||
tips: this.$lang('fenxiao.inviteFriendCountTip', { num: level.one_child_num }),
|
||||
title: '邀请好友',
|
||||
desc: '邀请好友人数达到' + level.one_child_num + '人',
|
||||
tips: '分销商的直属下级会员人数达到'+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: 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 }),
|
||||
title: '邀请好友',
|
||||
desc: '邀请好友成为分销商人数达到' + level.one_child_fenxiao_num + '人',
|
||||
tips: '分销商的直属下级分销商人数达到'+ 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: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
title: '商家未开启分销',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
@@ -218,7 +218,7 @@
|
||||
}
|
||||
},1000);
|
||||
|
||||
if (this.fenxiaoWords && this.fenxiaoWords.fenxiao_name) this.$langConfig.title(this.fenxiaoWords.fenxiao_name + this.$lang('fenxiao.level'));
|
||||
if (this.fenxiaoWords && this.fenxiaoWords.fenxiao_name) this.$langConfig.title(this.fenxiaoWords.fenxiao_name + '等级');
|
||||
|
||||
if (this.storeToken) {
|
||||
this.getFenxiaoInfo();
|
||||
@@ -231,7 +231,7 @@
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 获取分销{{ $lang('fenxiao.level') }}信息
|
||||
* 获取分销等级信息
|
||||
*/
|
||||
getFenxiaoLevel() {
|
||||
this.$api.sendRequest({
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
@click="toDetail(orderItem.fenxiao_order_id)">
|
||||
<view class="order-header">
|
||||
<text class="site-name font-size-base">{{ orderItem.order_no }}</text>
|
||||
<text class="status-name color-base-text" v-if="orderItem.is_refund == 1">{{ $lang('fenxiao.refunded') }}</text>
|
||||
<text class="status-name color-base-text" v-if="orderItem.is_refund == 1">已退款</text>
|
||||
<text class="status-name color-text-green"
|
||||
v-else-if="orderItem.is_settlement == 1">{{ $lang('fenxiao.settled') }}</text>
|
||||
<text class="status-name color-text-orange" v-else>{{ $lang('fenxiao.pendingSettlement') }}</text>
|
||||
v-else-if="orderItem.is_settlement == 1">已结算</text>
|
||||
<text class="status-name color-text-orange" v-else>待结算</text>
|
||||
</view>
|
||||
|
||||
<view class="order-body">
|
||||
@@ -30,7 +30,7 @@
|
||||
<view class="top-wrap">
|
||||
<view class="goods-name font-size-base">{{ orderItem.sku_name }}</view>
|
||||
<view>
|
||||
<text class="color-tip">{{ $lang('fenxiao.commission') }}</text>
|
||||
<text class="color-tip">返{{ fenxiaoWords.account }}</text>
|
||||
<text class="price-color price-style small">{{
|
||||
$lang('common.currencySymbol') }}</text>
|
||||
<text class="price-color price-style large">{{
|
||||
@@ -66,7 +66,7 @@
|
||||
<text class="color-base-text">{{ $lang('common.currencySymbol') }}{{ orderItem.commission }}</text> -->
|
||||
</view>
|
||||
<view class="total">
|
||||
<text>{{ $lang('fenxiao.total') }}:</text>
|
||||
<text>合计:</text>
|
||||
<text class="price-color">{{ $lang('common.currencySymbol') }}</text>
|
||||
<text class="price-color font-size-toolbar">{{
|
||||
parseFloat(orderItem.real_goods_money).toFixed(2).split(".")[0] }}</text>
|
||||
@@ -78,13 +78,13 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="cart-empty">
|
||||
<ns-empty :text="$lang('fenxiao.emptyOrder')" :isIndex="false"
|
||||
<ns-empty text="暂无订单" :isIndex="false"
|
||||
v-if="selectId == 0 && orderList.length == 0 && emptyShow"></ns-empty>
|
||||
<ns-empty :text="$lang('fenxiao.emptyPendingSettleOrder')" :isIndex="false"
|
||||
<ns-empty text="暂无待结算订单" :isIndex="false"
|
||||
v-if="selectId == 1 && orderList.length == 0 && emptyShow"></ns-empty>
|
||||
<ns-empty :text="$lang('fenxiao.emptySettledOrder')" :isIndex="false"
|
||||
<ns-empty text="暂无已结算订单" :isIndex="false"
|
||||
v-if="selectId == 2 && orderList.length == 0 && emptyShow"></ns-empty>
|
||||
<ns-empty :text="$lang('fenxiao.emptyRefundedOrder')" :isIndex="false"
|
||||
<ns-empty text="暂无已退款订单" :isIndex="false"
|
||||
v-if="selectId == 3 && orderList.length == 0 && emptyShow"></ns-empty>
|
||||
</view>
|
||||
</view>
|
||||
@@ -108,22 +108,22 @@ export default {
|
||||
category: [
|
||||
{
|
||||
id: 0,
|
||||
name: this.$lang('fenxiao.all'),
|
||||
name: '全部',
|
||||
number: 2
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
name: this.$lang('fenxiao.pendingSettlement'),
|
||||
name: '待结算',
|
||||
number: 0
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: this.$lang('fenxiao.settled'),
|
||||
name: '已结算',
|
||||
number: 0
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: this.$lang('fenxiao.refunded'),
|
||||
name: '已退款',
|
||||
number: 0
|
||||
}
|
||||
],
|
||||
@@ -142,7 +142,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
title: '商家未开启分销',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
@@ -152,7 +152,7 @@ export default {
|
||||
}
|
||||
}, 1000);
|
||||
|
||||
if (this.fenxiaoWords && this.fenxiaoWords.concept) this.$langConfig.title(this.fenxiaoWords.concept + this.$lang('fenxiao.order'));
|
||||
if (this.fenxiaoWords && this.fenxiaoWords.concept) this.$langConfig.title(this.fenxiaoWords.concept + '订单');
|
||||
|
||||
if (!this.storeToken) {
|
||||
this.$nextTick(() => {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<template>
|
||||
<template>
|
||||
<view :style="themeColor">
|
||||
<view class="order-detail">
|
||||
<view class="order-detail-box">
|
||||
<view class="header">
|
||||
<view class="title">
|
||||
<text>{{ $lang('fenxiao.totalItems', { num: orderData.num }) }}</text>
|
||||
<text>共{{ orderData.num }}件商品</text>
|
||||
</view>
|
||||
<text class="color-base-text font-size-tag" v-if="orderData.is_refund == 1">{{ $lang('fenxiao.refunded') }}</text>
|
||||
<text class="color-base-text font-size-tag" v-else-if="orderData.is_settlement == 1">{{ $lang('fenxiao.settled') }}</text>
|
||||
<text class="color-base-text font-size-tag" v-else>{{ $lang('fenxiao.pendingSettlement') }}</text>
|
||||
<text class="color-base-text font-size-tag" v-if="orderData.is_refund == 1">已退款</text>
|
||||
<text class="color-base-text font-size-tag" v-else-if="orderData.is_settlement == 1">已结算</text>
|
||||
<text class="color-base-text font-size-tag" v-else>待结算</text>
|
||||
</view>
|
||||
<view class="detail-body">
|
||||
<view class="detail-body-box">
|
||||
@@ -37,27 +37,27 @@
|
||||
<view class="detail-footer">
|
||||
<text></text>
|
||||
<text>
|
||||
<text>{{ $lang('fenxiao.total') }}:</text>
|
||||
<text>合计:</text>
|
||||
<text class="price-color total">¥{{ orderData.real_goods_money }}</text>
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-detail-box commission">
|
||||
<view class="header">
|
||||
<view class="title color-base-bg-before"><text>{{ $lang('fenxiao.commissionDetail') }}</text></view>
|
||||
<view class="title color-base-bg-before"><text>返佣详情</text></view>
|
||||
<text class="color-base-text"> </text>
|
||||
</view>
|
||||
<view class="detail-content">
|
||||
<view class="order-info-item">
|
||||
<text class="tit">{{ $lang('fenxiao.orderNo') }}:</text>
|
||||
<text class="tit">订单编号:</text>
|
||||
<text>{{ orderData.order_no }}</text>
|
||||
</view>
|
||||
<view class="order-info-item">
|
||||
<text class="tit">{{ $lang('fenxiao.commissionLevel') }}:</text>
|
||||
<text>{{ orderData.commission_level }}$lang('fenxiao.level')</text>
|
||||
<text class="tit">分佣层级:</text>
|
||||
<text>{{ orderData.commission_level }}级</text>
|
||||
</view>
|
||||
<view class="order-info-item">
|
||||
<text class="tit">{{ $lang('fenxiao.commissionAmountDetail') }}:</text>
|
||||
<text class="tit">返佣金额:</text>
|
||||
<text class="price-color font-size-toolbar">
|
||||
<text class="font-size-goods-tag">¥</text>
|
||||
{{ parseFloat(orderData.commission).toFixed(2).split(".")[0] }}
|
||||
@@ -100,7 +100,7 @@ export default {
|
||||
setTimeout( () => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
title: '商家未开启分销',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
@@ -133,7 +133,7 @@ export default {
|
||||
this.orderData = res.data;
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.noOrderInfo')
|
||||
title: '未获取到订单信息!'
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo('/pages_promotion/fenxiao/order', {}, 'redirectTo');
|
||||
|
||||
@@ -10,16 +10,16 @@
|
||||
<image class="money-bg" :src="$util.img('public/uniapp/fenxiao/promote/money.png')"
|
||||
mode="aspectFill"></image>
|
||||
<view class="content">
|
||||
{{ $lang('fenxiao.totalEarnings') }}
|
||||
累计收益
|
||||
<text class="money-text">{{ detailData.total_commission }}</text>
|
||||
{{ $lang('fenxiao.yuan') }}
|
||||
元
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="earnings-body">
|
||||
<view class="earnings-tab">
|
||||
<text :class="{ active: tabIndex == 0 }" @click="tabCut(0)">{{ $lang('fenxiao.invitedFriends') }}</text>
|
||||
<text :class="{ active: tabIndex == 1 }" @click="tabCut(1)">{{ $lang('fenxiao.orderedFriends') }}</text>
|
||||
<text :class="{ active: tabIndex == 0 }" @click="tabCut(0)">已邀请好友</text>
|
||||
<text :class="{ active: tabIndex == 1 }" @click="tabCut(1)">已下单好友</text>
|
||||
</view>
|
||||
<scroll-view scroll-y="true" class="earnings-content-wrap" @scrolltolower="getTeam()">
|
||||
<view class="earnings-list" v-if="promote.list.length">
|
||||
@@ -32,7 +32,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="earnings-empty" v-else>{{ $lang('fenxiao.emptyInvite') }}</view>
|
||||
<view class="earnings-empty" v-else>暂无已邀请好友,快去邀请吧</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -41,9 +41,9 @@
|
||||
mode="aspectFit" show-menu-by-longpress></image>
|
||||
<view class="content" v-if="promoteContent.content"><rich-text
|
||||
:nodes="promoteContent.content"></rich-text></view>
|
||||
<view class="rules-empty" v-else>{{ $lang('fenxiao.emptyActivityRules') }}</view>
|
||||
<view class="rules-empty" v-else>暂无活动规则</view>
|
||||
</view>
|
||||
<view class="active-btn"><button type="primary" @click="toPoster()">{{ $lang('fenxiao.inviteFriend') }}</button></view>
|
||||
<view class="active-btn"><button type="primary" @click="toPoster()">邀请好友</button></view>
|
||||
<ns-copyright></ns-copyright>
|
||||
<ns-login ref="login"></ns-login>
|
||||
<loading-cover ref="loadingCover"></loading-cover>
|
||||
@@ -79,7 +79,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
title: '商家未开启分销',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
@@ -384,7 +384,7 @@ export default {
|
||||
border-radius: 50rpx;
|
||||
color: #985400;
|
||||
// P0: 推广页金色按钮 → var(--promote-grad-start/end)
|
||||
// 兼容: 微信小程序 / 鸿蒙{{ $lang('fenxiao.yuan') }}服务 — linear-gradient 嵌套 var() 现代 runtime 支持
|
||||
// 兼容: 微信小程序 / 鸿蒙元服务 — linear-gradient 嵌套 var() 现代 runtime 支持
|
||||
background: #ffe2ac; // 兜底
|
||||
background: linear-gradient(45deg, var(--promote-grad-start, #ffe2ac) 0%, var(--promote-grad-end, #fdc174) 100%);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<view class="container" :style="themeColor">
|
||||
<swiper class="swiper" @change="getIndex">
|
||||
<swiper-item v-for="(item, index) in poster" :key="index">
|
||||
@@ -11,22 +11,22 @@
|
||||
</swiper>
|
||||
|
||||
<!-- #ifdef H5 -->
|
||||
<view class="tips">{{ $lang('fenxiao.longPressQrTip') }}</view>
|
||||
<view class="tips">长按识别图中二维码</view>
|
||||
<!-- #endif -->
|
||||
|
||||
<!-- #ifdef MP -->
|
||||
<view class="btn color-base-bg color-base-border" @click="save">{{ $lang('fenxiao.saveImage') }}</view>
|
||||
<view class="btn color-base-bg color-base-border" @click="save">保存海报</view>
|
||||
<!-- #endif -->
|
||||
|
||||
<uni-popup ref="popupDialog" :custom="true" :mask-click="false">
|
||||
<view class="dialog-popup">
|
||||
<view class="title">{{ $lang('fenxiao.hint') }}</view>
|
||||
<view class="message">{{ $lang('fenxiao.authDeniedTip') }}</view>
|
||||
<view class="title">提示</view>
|
||||
<view class="message">您拒绝了保存图片到相册的授权请求,无法保存图片到相册,如需正常使用,请授权之后再进行操作。</view>
|
||||
<view class="action-wrap">
|
||||
<view @click="closeDialog">{{ $lang('common.cancel') }}</view>
|
||||
<view @click="closeDialog">取消</view>
|
||||
<view>
|
||||
<button type="default" open-type="openSetting" @opensetting="closeDialog"
|
||||
hover-class="none">{{ $lang('fenxiao.authorizeNow') }}</button>
|
||||
hover-class="none">立即授权</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -95,7 +95,7 @@ export default {
|
||||
filePath: res.tempFilePath,
|
||||
success: () => {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.saveSuccess')
|
||||
title: '保存成功'
|
||||
});
|
||||
},
|
||||
fail: res => {
|
||||
@@ -104,20 +104,20 @@ export default {
|
||||
this.$refs.popupDialog.open();
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.saveFailed')
|
||||
title: '保存失败,请稍后重试'
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.downloadFailed')
|
||||
title: '下载失败'
|
||||
});
|
||||
}
|
||||
},
|
||||
fail: res => {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.downloadFailed')
|
||||
title: '下载失败'
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -136,7 +136,7 @@ export default {
|
||||
});
|
||||
} catch {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.posterGenerateFailed')
|
||||
title: '海报生成失败'
|
||||
});
|
||||
}
|
||||
},
|
||||
@@ -149,7 +149,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
title: '商家未开启分销',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
@@ -22,7 +22,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
title: '商家未开启分销',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
@@ -48,7 +48,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.fenxiaoWords && this.fenxiaoWords.concept) this.$langConfig.title(this.fenxiaoWords.concept + this.$lang('fenxiao.center'));
|
||||
if (this.fenxiaoWords && this.fenxiaoWords.concept) this.$langConfig.title(this.fenxiaoWords.concept + '中心');
|
||||
this.is_fenxiao = Boolean(this.memberInfo.is_fenxiao);
|
||||
},
|
||||
methods: {
|
||||
@@ -157,7 +157,7 @@ export default {
|
||||
//生成海报
|
||||
getGoodsPoster() {
|
||||
uni.showLoading({
|
||||
'title': this.$lang('fenxiao.posterGenerating')
|
||||
'title': '海报生成中...'
|
||||
});
|
||||
let url = "";
|
||||
let data = {};
|
||||
@@ -204,12 +204,12 @@ export default {
|
||||
filePath: res.tempFilePath,
|
||||
success: () => {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.saveSuccess')
|
||||
title: "保存成功"
|
||||
});
|
||||
},
|
||||
fail: () => {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.saveFailed')
|
||||
title: "保存失败,请稍后重试"
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
</view>
|
||||
</block>
|
||||
<block v-if="list.length == 0 && emptyShow">
|
||||
<ns-empty :text="$lang('fenxiao.emptyData')" :isIndex="false"></ns-empty>
|
||||
<ns-empty text="暂无数据" :isIndex="false"></ns-empty>
|
||||
</block>
|
||||
</view>
|
||||
</mescroll-uni>
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cart-empty"><ns-empty :text="$lang('fenxiao.emptyOrder')" :isIndex="false"
|
||||
<view class="cart-empty"><ns-empty text="暂无订单" :isIndex="false"
|
||||
v-if="orderList.length == 0 && emptyShow"></ns-empty></view>
|
||||
</view>
|
||||
</mescroll-uni>
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<block v-if="teamList.length == 0 && emptyShow"><ns-empty :text="$lang('fenxiao.emptyData')" :isIndex="false"></ns-empty>
|
||||
<block v-if="teamList.length == 0 && emptyShow"><ns-empty text="暂无数据" :isIndex="false"></ns-empty>
|
||||
</block>
|
||||
</block>
|
||||
</mescroll-uni>
|
||||
@@ -89,11 +89,11 @@ export default {
|
||||
return {
|
||||
levelList: [
|
||||
{
|
||||
name: this.$lang('fenxiao.firstLevel'),
|
||||
name: '一级',
|
||||
level: 1
|
||||
},
|
||||
{
|
||||
name: this.$lang('fenxiao.secondLevel'),
|
||||
name: '二级',
|
||||
level: 2
|
||||
}
|
||||
],
|
||||
@@ -108,7 +108,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
title: '商家未开启分销',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
verify() {
|
||||
if (this.withdrawMoney == '' || this.withdrawMoney < 0 || isNaN(parseFloat(this.withdrawMoney))) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.inputWithdrawAmount')
|
||||
title: '请输入提现金额'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -186,14 +186,14 @@
|
||||
}
|
||||
if (parseFloat(this.withdrawMoney) > 0 && (parseFloat(this.withdrawMoney) > parseFloat(money))) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.withdrawAmountExceed')
|
||||
title: '提现金额超出可提现金额'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (parseFloat(this.withdrawMoney) > 0 && (parseFloat(this.withdrawMoney) < parseFloat(this
|
||||
.withdrawConfigInfo.withdraw))) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.withdrawAmountBelowMin')
|
||||
title: '提现金额小于最低提现金额'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -202,7 +202,7 @@
|
||||
withdraw() {
|
||||
if (!this.bankAccountInfo.withdraw_type && !this.isBalance) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.pleaseAddWithdrawMethod')
|
||||
title: '请先添加提现方式'
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -235,7 +235,7 @@
|
||||
success: res => {
|
||||
if (res.code >= 0) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.withdrawApplySuccess')
|
||||
title: '提现申请成功'
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo('/pages_promotion/fenxiao/withdraw_list', {},
|
||||
@@ -270,7 +270,7 @@
|
||||
success: res => {
|
||||
if (res.code >= 0) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.withdrawApplySuccess')
|
||||
title: '提现申请成功'
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo('/pages_promotion/fenxiao/withdraw_list', {},
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
<view class="detailed-item" v-for="(item, index) in withdrawList" :key="index"
|
||||
@click="toDetail(item.id)">
|
||||
<view class="info">
|
||||
<view class="event">{{ item.transfer_type == 'balance' ? $lang('fenxiao.balance') :
|
||||
item.transfer_type == 'alipay' ? $lang('fenxiao.alipay') : item.transfer_type == 'bank' ? $lang('fenxiao.bankCard') :
|
||||
item.transfer_type =='wechatpay' ? $lang('fenxiao.wechat') : '' }}</view>
|
||||
<view class="event">{{ item.transfer_type == 'balance' && '余额' ||
|
||||
item.transfer_type == 'alipay' && '支付宝' || item.transfer_type == 'bank' && '银行卡' ||
|
||||
item.transfer_type =='wechatpay'&&'微信' }}</view>
|
||||
<view>
|
||||
<text class="time">{{ $util.timeStampTurnTime(item.create_time) }}</text>
|
||||
</view>
|
||||
@@ -25,7 +25,7 @@
|
||||
</view>
|
||||
</block>
|
||||
<block v-else>
|
||||
<ns-empty :isIndex="false" :text="$lang('fenxiao.emptyWithdrawRecord')"></ns-empty>
|
||||
<ns-empty :isIndex="false" text="暂无提现记录"></ns-empty>
|
||||
</block>
|
||||
</view>
|
||||
</mescroll-uni>
|
||||
@@ -42,19 +42,19 @@ export default {
|
||||
withdrawState: {
|
||||
'3': {
|
||||
color: 'color: rgb(255, 69, 68)',
|
||||
text: this.$lang('fenxiao.transferred')
|
||||
text: '已转账'
|
||||
},
|
||||
'1': {
|
||||
color: 'color: rgb(255, 160, 68)',
|
||||
text: this.$lang('fenxiao.pendingAudit')
|
||||
text: '待审核'
|
||||
},
|
||||
'2': {
|
||||
color: 'color: rgb(17, 189, 100)',
|
||||
text: this.$lang('fenxiao.audited')
|
||||
text: '已审核'
|
||||
},
|
||||
'-1': {
|
||||
color: 'color: rgb(255, 69, 68)',
|
||||
text: this.$lang('fenxiao.rejected')
|
||||
text: '已拒绝'
|
||||
}
|
||||
},
|
||||
withdrawList: [],
|
||||
@@ -65,7 +65,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('fenxiao.merchantNotOpenFenxiao'),
|
||||
title: '商家未开启分销',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<!-- 搜索区域 -->
|
||||
<view class="search-wrap uni-flex uni-row" style="margin-bottom: 20rpx;">
|
||||
<view class="flex-item input-wrap">
|
||||
<input class="uni-input" maxlength="50" v-model="keyword" @confirm="search()" :placeholder="$lang('merch.searchGoodsPlaceholder')" />
|
||||
<input class="uni-input" maxlength="50" v-model="keyword" @confirm="search()" placeholder="请输入您要搜索的商品" />
|
||||
<text class="iconfont icon-sousuo3" @click.stop="search()"></text>
|
||||
</view>
|
||||
<view class="iconfont" :class="{ 'icon-apps': isList, 'icon-list': !isList }" @click="changeListStyle()"></view>
|
||||
@@ -99,7 +99,8 @@
|
||||
parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}</text>
|
||||
</view>
|
||||
<view class="discount-price" v-else>
|
||||
<text class="price price-style large">{{ $lang('merch.consultNow') }}</text>
|
||||
<text class="price price-style large">{{ $lang('Make') ? $lang('Make') : '立即咨询'
|
||||
}}</text>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -192,7 +193,8 @@
|
||||
parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}</text>
|
||||
</view>
|
||||
<view class="discount-price" v-else>
|
||||
<text class="price price-style large">{{ $lang('merch.consultNow') }}</text>
|
||||
<text class="price price-style large">{{ $lang('Make') ? $lang('Make') : '立即咨询'
|
||||
}}</text>
|
||||
</view>
|
||||
<view class="member-price-tag"
|
||||
v-if="item.member_price && item.member_price == showPrice(item)">
|
||||
@@ -256,7 +258,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="goodsList.length == 0 && emptyShow"><ns-empty :text="$lang('merch.emptyGoods')"></ns-empty></view>
|
||||
<view v-if="goodsList.length == 0 && emptyShow"><ns-empty text="暂无商品"></ns-empty></view>
|
||||
</block>
|
||||
</mescroll-uni>
|
||||
|
||||
|
||||
@@ -53,54 +53,54 @@ export default {
|
||||
begin_time:'',//团购开始时间
|
||||
end_time:''//团购结束时间
|
||||
},
|
||||
groundingArray: [this.$lang('merch.grounding'), this.$lang('merch.listing')],
|
||||
groundingArray: ['下架', '上架'],
|
||||
|
||||
pickuptypeArray: [this.$lang('merch.sameDay'), this.$lang('merch.nextDay'), this.$lang('merch.dayAfter')],//, '自定义'
|
||||
pickuptypeArray: ['当日达', '次日达', '隔日达'],//, '自定义'
|
||||
|
||||
|
||||
currCategory: 0, // 当前所设置的商品分类
|
||||
virtualDeliverArray: [{
|
||||
name: this.$lang('merch.autoDeliver'),
|
||||
name: '自动发货',
|
||||
value: 'auto_deliver',
|
||||
},
|
||||
{
|
||||
name: this.$lang('merch.manualDeliver'),
|
||||
name: '手动发货',
|
||||
value: 'artificial_deliver',
|
||||
},
|
||||
{
|
||||
name: this.$lang('merch.storeVerify'),
|
||||
name: '到店核销',
|
||||
value: 'verify',
|
||||
}
|
||||
],
|
||||
virtualDeliverValue: {
|
||||
'auto_deliver': this.$lang('merch.autoDeliver'),
|
||||
'artificial_deliver': this.$lang('merch.manualDeliver'),
|
||||
'verify': this.$lang('merch.storeVerify')
|
||||
'auto_deliver': '自动发货',
|
||||
'artificial_deliver': '手动发货',
|
||||
'verify': '到店核销'
|
||||
},
|
||||
virtualReceiveArray: [{
|
||||
name: this.$lang('merch.autoReceive'),
|
||||
name: '自动收货',
|
||||
value: 'auto_receive',
|
||||
},
|
||||
{
|
||||
name: this.$lang('merch.buyerConfirm'),
|
||||
name: '买家确认收货',
|
||||
value: 'artificial_receive',
|
||||
},
|
||||
],
|
||||
virtualReceiveValue: {
|
||||
'auto_receive': this.$lang('merch.autoReceive'),
|
||||
'artificial_receive': this.$lang('merch.buyerConfirm'),
|
||||
'auto_receive': '自动收货',
|
||||
'artificial_receive': '买家确认收货',
|
||||
},
|
||||
validityTypeArray: [this.$lang('merch.permanent'), this.$lang('merch.validDays'), this.$lang('merch.expireDate')],
|
||||
validityTypeArray: ['永久', '购买后几日有效', '指定过期日期'],
|
||||
virtualIndate: 0,
|
||||
minDate: '',
|
||||
carmiLength: this.$lang('merch.addCarmi'),
|
||||
carmiLength: '添加卡密',
|
||||
limitLength: [ //限购
|
||||
{
|
||||
name: this.$lang('merch.singleLimit'),
|
||||
name: '单次限购',
|
||||
value: '1'
|
||||
},
|
||||
{
|
||||
name: this.$lang('merch.longLimit'),
|
||||
name: '长期限购',
|
||||
value: '2'
|
||||
}
|
||||
],
|
||||
@@ -123,14 +123,14 @@ export default {
|
||||
if (this.goodsData.id) {
|
||||
this.isAWait = true;
|
||||
uni.setNavigationBarTitle({
|
||||
title: this.$lang('merch.editGoods')
|
||||
title: '编辑商品'
|
||||
});
|
||||
await this.editGetGoodsInfo();
|
||||
} else {
|
||||
|
||||
this.isAWait = false;
|
||||
uni.setNavigationBarTitle({
|
||||
title: this.$lang('merch.addGoods')
|
||||
title: '添加商品'
|
||||
});
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ export default {
|
||||
if(res.result.detail){
|
||||
this.goodsData = res.result.detail
|
||||
this.$util.showToast({
|
||||
title: this.$lang('merch.goodsNotExist'),
|
||||
title: '商品不存在',
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo('/pages_goods/list', {}, 'redirectTo');
|
||||
@@ -265,7 +265,7 @@ export default {
|
||||
this.$forceUpdate();
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('merch.goodsNotExist'),
|
||||
title: '商品不存在',
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo('/pages_goods/list', {}, 'redirectTo');
|
||||
@@ -493,7 +493,7 @@ export default {
|
||||
addShopCategory() {
|
||||
if (this.shopCategoryNumber == 10) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('merch.maxCategoryLimit')
|
||||
title: '商品可以属于多个分类,最多10个'
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -530,7 +530,7 @@ export default {
|
||||
|
||||
this.goodsData.carmichael = uni.getStorageSync('editGoodsCarmichael') ? JSON.parse(uni.getStorageSync('editGoodsCarmichael')) : [];
|
||||
if (this.goodsData.carmichael.length > 0) {
|
||||
this.carmiLength = this.$lang('merch.addCarmiWithCount', { count: this.goodsData.carmichael.length })
|
||||
this.carmiLength = '添加卡密【' + this.goodsData.carmichael.length + '】'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -568,21 +568,21 @@ export default {
|
||||
|
||||
if (this.goodsData.goodsname.length == 0) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('merch.inputGoodsName')
|
||||
title: '请输入商品名称'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.goodsData.subtitle.length > 100) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('merch.subtitleMaxLength')
|
||||
title: '商品简介不能超过100个字符'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.goodsData.goods_image.length == 0) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('merch.uploadGoodsImage')
|
||||
title: '请上传商品图片'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -632,7 +632,7 @@ export default {
|
||||
if (this.goodsData.price == 0) {
|
||||
|
||||
this.$util.showToast({
|
||||
title: this.$lang('merch.inputPrice')
|
||||
title: '请输入销售价'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -655,26 +655,26 @@ export default {
|
||||
// 总库存
|
||||
if (this.goodsData.total == 0) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('merch.inputStock')
|
||||
title: '请输入库存'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isNaN(this.goodsData.total) || !this.$util.data().regExp.number.test(this.goodsData.total)) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('merch.stockFormatError')
|
||||
title: '[库存]格式输入错误'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (isNaN(this.goodsData.goods_start_count) || !this.$util.data().regExp.number.test(this.goodsData.goods_start_count)) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('merch.startCountFormatError')
|
||||
title: '[起售]格式输入错误'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (this.goodsData.goods_start_count < 0) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('merch.startCountNotNegative')
|
||||
title: '起售数量不能小于0'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -905,7 +905,7 @@ export default {
|
||||
getGoodsForm() {
|
||||
getOrderFormList().then(res=>{
|
||||
if (res.data) {
|
||||
let goodsForm = [this.$lang('merch.selectGoodsForm')];
|
||||
let goodsForm = ['请选择商品表单'];
|
||||
res.data.forEach((item, index) => {
|
||||
goodsForm.push(item.form_name);
|
||||
if (this.goodsData.form_id && this.goodsData.form_id == item.id) this.goodsData.goods_form_index = index + 1;
|
||||
@@ -926,7 +926,7 @@ export default {
|
||||
getSupplyList() {
|
||||
getSupplyList().then(res=>{
|
||||
if (res.data) {
|
||||
let supplyForm = [this.$lang('merch.selectSupplier')];
|
||||
let supplyForm = ['请选择供应商'];
|
||||
res.data.forEach((item, index) => {
|
||||
supplyForm.push(item.title);
|
||||
if (this.goodsData.supplier_id && this.goodsData.supplier_id == item.supplier_id) this.goodsData.supply_index = index + 1;
|
||||
|
||||
@@ -39,7 +39,7 @@ export default {
|
||||
fontWeight: false,
|
||||
padding: 0,
|
||||
cartEvent: "detail",
|
||||
text: this.$lang('goods.buy'),
|
||||
text: "购买",
|
||||
textColor: "#FFFFFF",
|
||||
theme: "default",
|
||||
aroundRadius: 25,
|
||||
@@ -76,8 +76,8 @@ export default {
|
||||
this.getMerch()
|
||||
}else{
|
||||
uni.showModal({
|
||||
title: this.$lang('common.tip'),
|
||||
content: this.$lang('merch.merchantNotExist'),
|
||||
title:'提示',
|
||||
content:'商家不存在',
|
||||
showCancel:false,
|
||||
success(e){
|
||||
uni.navigateBack({})
|
||||
@@ -120,7 +120,7 @@ export default {
|
||||
* 转发分享
|
||||
*/
|
||||
onShareAppMessage(res) {
|
||||
var title = this.$lang('merch.searchResultCount', { count: this.count, keyword: this.keyword + this.category_title + this.coupon_name });'”相关的优质商品';
|
||||
var title = '搜索到' + this.count + '件“' + this.keyword + this.category_title + this.coupon_name + '”相关的优质商品';
|
||||
let route = this.$util.getCurrentShareRoute(this.memberInfo ? this.memberInfo.member_id : 0);
|
||||
var path = route.path;
|
||||
return {
|
||||
@@ -134,7 +134,7 @@ export default {
|
||||
},
|
||||
// 分享到微信朋友圈
|
||||
onShareTimeline() {
|
||||
var title = this.$lang('merch.searchResultCount', { count: this.count, keyword: this.keyword + this.category_title + this.coupon_name });'”相关的优质商品';
|
||||
var title = '搜索到' + this.count + '件“' + this.keyword + this.category_title + this.coupon_name + '”相关的优质商品';
|
||||
let route = this.$util.getCurrentShareRoute(this.memberInfo ? this.memberInfo.member_id : 0);
|
||||
var query = route.query;
|
||||
return {
|
||||
@@ -144,18 +144,18 @@ export default {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
getMerch(){
|
||||
this.$api.sendRequest({
|
||||
url: '/merch/api/merch/merchinfo',
|
||||
data: {
|
||||
merch_id: this.merch_id
|
||||
},
|
||||
success: res => {
|
||||
if (res.code >= 0 && res.data) {
|
||||
this.merch = res.data;
|
||||
}
|
||||
}
|
||||
});
|
||||
getMerch(){
|
||||
this.$api.sendRequest({
|
||||
url: '/merch/api/merch/merchinfo',
|
||||
data: {
|
||||
merch_id: this.merch_id
|
||||
},
|
||||
success: res => {
|
||||
if (res.code >= 0 && res.data) {
|
||||
this.merch = res.data;
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取优惠券数据
|
||||
@@ -336,26 +336,26 @@ export default {
|
||||
// }
|
||||
if (!Number(this.maxPrice) && this.maxPrice) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('merch.inputMaxPrice')
|
||||
title: '请输入最高价'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (Number(this.minPrice) < 0 || Number(this.maxPrice) < 0) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('merch.priceNotNegative')
|
||||
title: '筛选价格不能小于0'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (this.minPrice != '' && Number(this.minPrice) > Number(this.maxPrice) && this.maxPrice) {
|
||||
|
||||
this.$util.showToast({
|
||||
title: this.$lang('merch.minNotGreaterMax')
|
||||
title: '最低价不能大于最高价'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (this.maxPrice != '' && Number(this.maxPrice) < Number(this.minPrice)) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('merch.maxNotLessMin')
|
||||
title: '最高价不能小于最低价'
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</view>
|
||||
<view class="group-wrap padding-top">
|
||||
<view class="goods-module-wrap">
|
||||
<text class="price-symbol ">{{ pointInfo.point }}{{ $lang('point.point') }}</text>
|
||||
<text class="price-symbol ">{{ pointInfo.point }}积分</text>
|
||||
<template v-if="pointInfo.exchange_price != '0.00' && pointInfo.pay_type > 0">
|
||||
<text class="price-symbol ">+{{ $lang('common.currencySymbol') }}{{ pointInfo.exchange_price
|
||||
}}</text>
|
||||
@@ -48,10 +48,10 @@
|
||||
|
||||
<view class="follow-and-share"
|
||||
v-if="pointInfo.stock_show == 1 || pointInfo.stock_show == undefined">
|
||||
<text class="color-tip" v-if="pointInfo.pointCoupon != 1">{{ $lang('point.stockLabel') }}:{{ pointInfo.stock }}{{
|
||||
<text class="color-tip" v-if="pointInfo.pointCoupon != 1">库存:{{ pointInfo.stock }}{{
|
||||
pointInfo.stock >= 0 ?
|
||||
pointInfo.unit : '' }}</text>
|
||||
<text class="color-tip" v-else>{{ $lang('point.stockLabel') }}:{{ $lang('point.unlimitedStock') }}{{ pointInfo.stock >= 0 ? pointInfo.unit : '' }}</text>
|
||||
<text class="color-tip" v-else>库存:无限{{ pointInfo.stock >= 0 ? pointInfo.unit : '' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="goods-module-wrap info">
|
||||
@@ -61,21 +61,21 @@
|
||||
<text class="sku-name-wrap" v-else>{{ pointInfo.name }}</text>
|
||||
</view>
|
||||
<view class="coupon-desc">
|
||||
<view v-if="pointInfo.balance && pointInfo.balance > 0" class="color-tip">{{ $lang('point.contains') }}{{ pointInfo.balance
|
||||
}}{{ $lang('common.yuan') }}</view>
|
||||
<view v-if="pointInfo.coupon_type == 'random'" class="color-tip">{{ $lang('point.noThresholdCoupon') }}</view>
|
||||
<view v-if="pointInfo.coupon_type == 'reward'" class="color-tip">{{ $lang('form.full') + pointInfo.at_least +
|
||||
$lang('common.yuan') + $lang('order.fullReduceDesc', { limit: pointInfo.at_least, type: '', money: pointInfo.money })
|
||||
<view v-if="pointInfo.balance && pointInfo.balance > 0" class="color-tip">内含{{ pointInfo.balance
|
||||
}}元</view>
|
||||
<view v-if="pointInfo.coupon_type == 'random'" class="color-tip">无门槛优惠券</view>
|
||||
<view v-if="pointInfo.coupon_type == 'reward'" class="color-tip">{{ '满' + pointInfo.at_least +
|
||||
'减' + pointInfo.money
|
||||
}}</view>
|
||||
<view v-if="pointInfo.coupon_type == 'discount'" class="color-tip">
|
||||
{{ $lang('form.full') }}{{ pointInfo.at_least }}{{ $lang('common.yuan') }}
|
||||
<text>{{ pointInfo.discount }}{{ $lang('common.discount') }}</text>
|
||||
满{{ pointInfo.at_least }}元
|
||||
<text>{{ pointInfo.discount }}折</text>
|
||||
</view>
|
||||
<view v-if="pointInfo.coupon_type == 'discount'" class="color-tip">{{ $lang('point.maxDiscount') }}{{
|
||||
pointInfo.discount_limit }}{{ $lang('common.yuan') }}</view>
|
||||
<view v-if="pointInfo.coupon_type == 'discount'" class="color-tip">最多优惠{{
|
||||
pointInfo.discount_limit }}元</view>
|
||||
<view class="time color-tip" v-if="pointInfo.coupon_type">
|
||||
{{ pointInfo.validity_type == 1 ? $lang('point.fromReceive') + pointInfo.fixed_term + $lang('point.daysValid') :
|
||||
$util.timeStampTurnTime(pointInfo.end_time) + $lang('point.expireAt') }}
|
||||
{{ pointInfo.validity_type == 1 ? '领取之日起' + pointInfo.fixed_term + '天内有效' :
|
||||
$util.timeStampTurnTime(pointInfo.end_time) + '到期' }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -88,7 +88,7 @@
|
||||
<view class="community-txt">{{ pointInfo.qr_data.community_describe }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="community-btn" @click="onCommunity()">{{ $lang('point.add') }}</view>
|
||||
<view class="community-btn" @click="onCommunity()">添加</view>
|
||||
</view>
|
||||
|
||||
<!-- 促销 -->
|
||||
@@ -96,7 +96,7 @@
|
||||
v-show="isCommunity">
|
||||
<view class="community-model-content" @click.stop>
|
||||
<view class="community-model-content-radius">
|
||||
<view>{{ $lang('point.add') }}{{ $lang('point.community') }}</view>
|
||||
<view>添加社群</view>
|
||||
</view>
|
||||
<view class="community-model-content-draw" v-if="pointInfo.qr_data && pointInfo.qr_data.qr_img">
|
||||
<image :src="pointInfo.qr_data.qr_img != '' && pointInfo.qr_data.qr_state == 1
|
||||
@@ -104,7 +104,7 @@
|
||||
: $util.img('public/uniapp/goods/detail_erweiImage.png')
|
||||
" mode="aspectFill" show-menu-by-longpress />
|
||||
</view>
|
||||
<view class="community-model-content-text">{{ $lang('point.longPressQrCode') }}</view>
|
||||
<view class="community-model-content-text">长按识别二维码,添加社群</view>
|
||||
</view>
|
||||
<view class="community-model-close" @click.stop="onCloseCommunity()"><text
|
||||
class="iconfont icon-close"></text>
|
||||
@@ -115,7 +115,7 @@
|
||||
<view class="newdetail margin-bottom">
|
||||
<!-- 已选规格 -->
|
||||
<view class="item selected-sku-spec" v-if="pointInfo.sku_spec_format" @click="exchange">
|
||||
<view class="label">{{ $lang('point.select') }}</view>
|
||||
<view class="label">选择</view>
|
||||
<view class="box">
|
||||
<text v-for="(item, index) in pointInfo.sku_spec_format" :key="index">{{ item.spec_name
|
||||
}}/{{
|
||||
@@ -126,7 +126,7 @@
|
||||
|
||||
<view class="item goods-attribute" @click="openAttributePopup()"
|
||||
v-if="pointInfo.goods_attr_format && pointInfo.goods_attr_format.length > 0">
|
||||
<view class="label">{{ $lang('point.attribute') }}</view>
|
||||
<view class="label">属性</view>
|
||||
<view class="box">
|
||||
<text v-for="(item, index) in pointInfo.goods_attr_format" :key="index"
|
||||
v-if="index < 2">{{
|
||||
@@ -141,7 +141,7 @@
|
||||
<uni-popup ref="attributePopup" type="bottom">
|
||||
<view class="goods-attribute-popup-layer popup-layer">
|
||||
<view class="head-wrap" @click="closeAttributePopup()">
|
||||
<text>{{ $lang('point.goodsAttribute') }}</text>
|
||||
<text>商品属性</text>
|
||||
<text class="iconfont icon-close"></text>
|
||||
</view>
|
||||
<scroll-view scroll-y class="goods-attribute-body">
|
||||
@@ -152,7 +152,7 @@
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="button-box"><button type="primary"
|
||||
@click="closeAttributePopup()">{{ $lang('point.confirm') }}</button></view>
|
||||
@click="closeAttributePopup()">确定</button></view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
</view>
|
||||
@@ -161,7 +161,7 @@
|
||||
<uni-popup ref="merchantsServicePopup" type="bottom">
|
||||
<view class="goods-merchants-service-popup-layer popup-layer">
|
||||
<view class="head-wrap" @click="closeMerchantsServicePopup()">
|
||||
<text>{{ $lang('point.goodsService') }}</text>
|
||||
<text>商品服务</text>
|
||||
<text class="iconfont icon-close"></text>
|
||||
</view>
|
||||
<scroll-view scroll-y>
|
||||
@@ -175,7 +175,7 @@
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="button-box"><button type="primary"
|
||||
@click="closeMerchantsServicePopup()">{{ $lang('point.confirm') }}</button></view>
|
||||
@click="closeMerchantsServicePopup()">确定</button></view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
</view>
|
||||
@@ -184,7 +184,7 @@
|
||||
<!-- 详情 -->
|
||||
<view class="goods-detail-tab">
|
||||
<view class="detail-tab">
|
||||
<view class="tab-item">{{ $lang('point.exchangeDetail') }}</view>
|
||||
<view class="tab-item">兑换详情</view>
|
||||
</view>
|
||||
|
||||
<view class="detail-content">
|
||||
@@ -192,7 +192,7 @@
|
||||
<view class="goods-details" v-if="pointInfo.content"><rich-text
|
||||
:nodes="pointInfo.content"></rich-text>
|
||||
</view>
|
||||
<view class="goods-details active" v-else>{{ $lang('point.noExchangeDetail') }}</view>
|
||||
<view class="goods-details active" v-else>暂无兑换详情!</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -205,14 +205,14 @@
|
||||
</view>
|
||||
|
||||
<view class="detail-swap" @click="exchange()" :class="{ 'position-bottom': isIphoneX }" v-if="!isLogin"><button
|
||||
type="primary">{{ $lang('point.loginToExchange') }}</button></view>
|
||||
type="primary">登录之后方可兑换</button></view>
|
||||
<block v-else>
|
||||
<view class="detail-swap" :class="{ 'position-bottom': isIphoneX }" v-if="pointInfo.stock == 0"><button
|
||||
disabled>{{ $lang('point.insufficientStock') }}</button></view>
|
||||
disabled>库存不足</button></view>
|
||||
<view class="detail-swap" :class="{ 'position-bottom': isIphoneX }" v-else-if="enough"><button
|
||||
disabled>{{ $lang('point.insufficientPoint') }}</button></view>
|
||||
disabled>积分不足</button></view>
|
||||
<view class="detail-swap" @click="exchange()" :class="{ 'position-bottom': isIphoneX }" v-else><button
|
||||
type="primary" hover-class="none">{{ $lang('point.exchange') }}</button></view>
|
||||
type="primary" hover-class="none">兑换</button></view>
|
||||
</block>
|
||||
|
||||
<loading-cover ref="loadingCover"></loading-cover>
|
||||
@@ -293,7 +293,7 @@ export default {
|
||||
imageUrl = this.pointInfo.image;
|
||||
break;
|
||||
}
|
||||
title = this.$lang('point.exchangeWithPoints', { points: this.pointInfo.point }) + title;
|
||||
title = '仅需' + this.pointInfo.point + '积分即可兑换' + title;
|
||||
imageUrl = this.$util.img(imageUrl);
|
||||
var route = this.$util.getCurrentShareRoute(this.memberInfo ? this.memberInfo.member_id : 0);
|
||||
var path = route.path;
|
||||
@@ -322,7 +322,7 @@ export default {
|
||||
imageUrl = this.pointInfo.image;
|
||||
break;
|
||||
}
|
||||
title = this.$lang('point.exchangeWithPoints', { points: this.pointInfo.point }) + title;
|
||||
title = '仅需' + this.pointInfo.point + '积分即可兑换' + title;
|
||||
imageUrl = this.$util.img(imageUrl);
|
||||
var route = this.$util.getCurrentShareRoute(this.memberInfo ? this.memberInfo.member_id : 0);
|
||||
var query = route.query;
|
||||
|
||||
@@ -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="$lang('point.searchKeyword')" />
|
||||
:placeholder="isEnEnv ? 'Please enter product keywords' : '请输入商品关键词'" />
|
||||
<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 === '' }">{{ $lang('goods.comprehensive') }}</text>
|
||||
<text :class="{ 'color-base-text': order === '' }">{{ isEnEnv ? 'Comprehensive' : '综合' }}</text>
|
||||
</view>
|
||||
<view class="price-wrap" @click="sortTabClick('point')">
|
||||
<text :class="{ 'color-base-text': order === 'point' }">{{ $lang('point.point') }}</text>
|
||||
<text :class="{ 'color-base-text': order === 'point' }">{{ isEnEnv ? 'Points' : '积分' }}</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' }">{{ $lang('point.newArrivalTime')
|
||||
<text :class="{ 'color-base-text': order === 'create_time' }">{{ isEnEnv ? 'New Arrival' : '上新时间'
|
||||
}}</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')">{{ $lang('goods.filter') }}</text>
|
||||
<text @click="sortTabClick('screen')">{{ isEnEnv ? '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">{{ $lang('point.point') }}</text>
|
||||
<text class="unit font-size-tag">{{ isEnEnv ? 'Points' : '积分' }}</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">{{ $lang('point.stockLabel') }}{{
|
||||
<view class="font-size-activity-tag color-tip">{{ isEnEnv ? 'Stock ' : '库存' }}{{
|
||||
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="$lang('point.noPointGoods')"></ns-empty>
|
||||
:text="isEnEnv ? 'No point products available' : '暂无积分商品'"></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">{{ $lang('goods.filter') }}</view>
|
||||
<view class="title color-tip">{{ isEnEnv ? 'Filter' : '筛选' }}</view>
|
||||
<scroll-view scroll-y>
|
||||
<!-- 价格筛选项 -->
|
||||
<view class="item-wrap">
|
||||
<view class="label"><text>{{ $lang('point.pointRange') }}</text></view>
|
||||
<view class="label"><text>{{ isEnEnv ? 'Point Range' : '积分区间' }}</text></view>
|
||||
<view class="price-wrap">
|
||||
<input class="uni-input" type="digit" v-model="minPoint"
|
||||
:placeholder="$lang('point.min')" />
|
||||
:placeholder="isEnEnv ? 'Min' : '最低'" />
|
||||
<view class="h-line"></view>
|
||||
<input class="uni-input" type="digit" v-model="maxPoint"
|
||||
:placeholder="$lang('point.max')" />
|
||||
:placeholder="isEnEnv ? 'Max' : '最高'" />
|
||||
</view>
|
||||
</view>
|
||||
<!-- 分类筛选项 -->
|
||||
<view class="category-list-wrap">
|
||||
<text class="first">{{ $lang('point.allCategories') }}</text>
|
||||
<text class="first">{{ isEnEnv ? 'All Categories' : '全部分类' }}</text>
|
||||
<view class="class-box">
|
||||
<view @click="selectedCategory('')" class="list-wrap"><text
|
||||
:class="{ selected: !categoryId, 'color-base-text': !categoryId }">{{ $lang('goods.all')
|
||||
}}</text></view>
|
||||
:class="{ selected: !categoryId, 'color-base-text': !categoryId }">{{ isEnEnv ? '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">{{ $lang('goods.reset') }}</button>
|
||||
<button type="primary" class="footer-box1" @click="screenData">{{ $lang('common.confirm') }}</button>
|
||||
<button type="default" class="footer-box" @click="resetData">{{ isEnEnv ? 'Reset' : '重置' }}</button>
|
||||
<button type="primary" class="footer-box1" @click="screenData">{{ isEnEnv ? 'Confirm' : '确定' }}</button>
|
||||
</view>
|
||||
</uni-drawer>
|
||||
|
||||
@@ -285,26 +285,26 @@ export default {
|
||||
// }
|
||||
if (!Number(this.maxPoint) && this.maxPoint) {
|
||||
this.$util.showToast({
|
||||
title: this.isEnEnv ? 'Please enter the maximum price' : this.$lang('point.inputMaxPrice')
|
||||
title: this.isEnEnv ? 'Please enter the maximum price' : '请输入最高价'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (Number(this.minPoint) < 0 || Number(this.maxPoint) < 0) {
|
||||
this.$util.showToast({
|
||||
title: this.isEnEnv ? 'Filter price cannot be less than 0' : this.$lang('point.priceNotNegative')
|
||||
title: this.isEnEnv ? 'Filter price cannot be less than 0' : '筛选价格不能小于0'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (this.minPoint != '' && Number(this.minPoint) > Number(this.maxPoint) && this.maxPoint) {
|
||||
|
||||
this.$util.showToast({
|
||||
title: this.isEnEnv ? 'Minimum price cannot be greater than maximum price' : this.$lang('point.minNotGreaterMax')
|
||||
title: this.isEnEnv ? 'Minimum price cannot be greater than maximum price' : '最低价不能大于最高价'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (this.maxPoint != '' && Number(this.maxPoint) < Number(this.minPoint)) {
|
||||
this.$util.showToast({
|
||||
title: this.isEnEnv ? 'Maximum price cannot be less than minimum price' : this.$lang('point.maxNotLessMin')
|
||||
title: this.isEnEnv ? 'Maximum price cannot be less than minimum price' : '最高价不能小于最低价'
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
</view>
|
||||
<view class="search" @click="$util.redirectTo('/pages_tool/goods/search')">
|
||||
<text class="iconfont icon-sousuo3"></text>
|
||||
<text class="tips">{{ $lang('goods.searchGoods') }}</text>
|
||||
<text class="tips">搜索商品</text>
|
||||
</view>
|
||||
<view class="sign"
|
||||
:style="{ width: menuButtonBounding.height + 'px', height: menuButtonBounding.height + 'px' }"
|
||||
@@ -28,17 +28,17 @@
|
||||
<view class="account-content">
|
||||
<view class="left">
|
||||
<image :src="$util.img('public/uniapp/point/point-icon.png')" mode="widthFix"></image>
|
||||
<view>{{ $lang('point.myPoint') }}</view>
|
||||
<view>我的积分</view>
|
||||
</view>
|
||||
<view class="right">
|
||||
<text class="point price-font">{{ point }}</text>
|
||||
<text class="text">{{ $lang('point.point') }}</text>
|
||||
<text class="text">积分</text>
|
||||
<!-- <text class="iconfont icon-right"></text> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="remark">
|
||||
<view class="label">{{ $lang('point.reminder') }}</view>
|
||||
<view class="text">{{ $lang('point.reminderDesc') }}</view>
|
||||
<view class="label">提醒</view>
|
||||
<view class="text">积分兑好礼,每日上新换不停!</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -81,9 +81,9 @@
|
||||
<view class="recharge-list-wrap" @click="redirect('/pages_tool/recharge/list')"
|
||||
v-if="rechargeList.length">
|
||||
<view class="item-wrap" v-for="(item, index) in rechargeList.slice(0, 4)" :key="index">
|
||||
<view class="recharge">{{ $lang('point.recharge') }}{{ parseFloat(item.buy_price) }}{{ $lang('common.yuan') }}</view>
|
||||
<view class="point">{{ $lang('point.getPoint') }}{{ item.point }}{{ $lang('point.point') }}</view>
|
||||
<view class="btn">{{ $lang('point.goRecharge') }}</view>
|
||||
<view class="recharge">储值{{ parseFloat(item.buy_price) }}元</view>
|
||||
<view class="point">可得{{ item.point }}积分</view>
|
||||
<view class="btn">去储值</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
<view class="point-exchange-wrap exchange-coupon" v-if="couponList.length > 0">
|
||||
<view class="card-category-title">
|
||||
<text class="before-line"></text>
|
||||
<text>{{ $lang('point.exchangeCoupon') }}</text>
|
||||
<text>积分换券</text>
|
||||
<text class="after-line"></text>
|
||||
</view>
|
||||
|
||||
@@ -115,24 +115,25 @@
|
||||
</block>
|
||||
<block v-if="couponItem.coupon_type == 'discount'">
|
||||
<block v-if="couponItem.coupon_type == 'discount'">
|
||||
{{ parseFloat(couponItem.discount) }}<text>{{ $lang('common.discount') }}</text>
|
||||
{{ parseFloat(couponItem.discount) }}<text>折</text>
|
||||
</block>
|
||||
</block>
|
||||
</view>
|
||||
<view class="coupon-info">
|
||||
<view class="coupon_condition font-size-activity-tag">
|
||||
{{ couponItem.at_least == 0 ? $lang('point.noThresholdCoupon') : $lang('point.fullAvailable', { amount: parseFloat(couponItem.at_least).toFixed(0) }) }}
|
||||
{{ couponItem.at_least == 0 ? '无门槛优惠券' : '满' +
|
||||
parseFloat(couponItem.at_least).toFixed(0) + '可用' }}
|
||||
</view>
|
||||
<view class="coupon_type font-size-activity-tag"
|
||||
v-if="couponItem.goods_type == 1">{{ $lang('point.siteWideCoupon') }}</view>
|
||||
v-if="couponItem.goods_type == 1">全场券</view>
|
||||
<view class="coupon_type font-size-activity-tag"
|
||||
v-else-if="couponItem.goods_type == 2 || couponItem.goods_type == 3">
|
||||
{{ $lang('point.designatedCoupon') }}</view>
|
||||
指定券</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="coupon_right">
|
||||
<view class="coupon_num font-size-tag">{{ couponItem.point }}{{ $lang('point.point') }}</view>
|
||||
<view class="coupon_btn">{{ $lang('point.exchange') }}</view>
|
||||
<view class="coupon_num font-size-tag">{{ couponItem.point }}积分</view>
|
||||
<view class="coupon_btn">兑换</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -144,7 +145,7 @@
|
||||
<view class="point-exchange-wrap exchange-hongbao" v-if="hongbaoList.length > 0">
|
||||
<view class="card-category-title">
|
||||
<text class="before-line"></text>
|
||||
<text>{{ $lang('point.exchangeHongbao') }}</text>
|
||||
<text>积分换红包</text>
|
||||
<text class="after-line"></text>
|
||||
</view>
|
||||
|
||||
@@ -165,8 +166,8 @@
|
||||
<!-- <view class="coupon_condition font-size-activity-tag">{{ hongbaoItem.name }}</view> -->
|
||||
</view>
|
||||
<view class="coupon_right">
|
||||
<view class="coupon_num font-size-tag">{{ hongbaoItem.point }}{{ $lang('point.point') }}</view>
|
||||
<view class="coupon_btn">{{ $lang('point.exchange') }}</view>
|
||||
<view class="coupon_num font-size-tag">{{ hongbaoItem.point }}积分</view>
|
||||
<view class="coupon_btn">兑换</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -177,7 +178,7 @@
|
||||
<view class="point-exchange-wrap" v-if="goodsList.length > 0">
|
||||
<view class="card-category-title">
|
||||
<text class="before-line"></text>
|
||||
<text>{{ $lang('point.exchangeGift') }}</text>
|
||||
<text>积分换礼品</text>
|
||||
<text class="after-line"></text>
|
||||
</view>
|
||||
|
||||
@@ -195,7 +196,7 @@
|
||||
<view class="discount-price">
|
||||
<view>
|
||||
<text class="unit price-font point">{{ item.point }}</text>
|
||||
<text class="unit font-size-tag ">{{ $lang('point.point') }}</text>
|
||||
<text class="unit font-size-tag ">积分</text>
|
||||
</view>
|
||||
<block v-if="item.price > 0 && item.pay_type > 0">
|
||||
<text class="unit font-size-tag">+</text>
|
||||
@@ -203,17 +204,17 @@
|
||||
<text class="font-size-tag">{{
|
||||
parseFloat(item.price).toFixed(2).split(".")[0] }}</text>
|
||||
<text class="unit font-size-tag">.{{
|
||||
parseFloat(item.price).toFixed(2).split(".")[1] }}{{ $lang('common.yuan') }}</text>
|
||||
parseFloat(item.price).toFixed(2).split(".")[1] }}元</text>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="btn" @click="toDetail(item)">{{ $lang('point.exchange') }}</view>
|
||||
<view class="btn" @click="toDetail(item)">兑换</view>
|
||||
</view>
|
||||
<view class="pro-info" v-if="item.stock_show || item.sale_show">
|
||||
<view class="font-size-activity-tag color-tip" v-if="item.stock_show">
|
||||
{{ $lang('point.stock') }}:{{ isNaN(parseInt(item.stock)) ? 0 : parseInt(item.stock) }}</view>
|
||||
库存:{{ isNaN(parseInt(item.stock)) ? 0 : parseInt(item.stock) }}</view>
|
||||
<view class="font-size-activity-tag color-tip sale" v-if="item.sale_show">
|
||||
{{ $lang('point.exchanged') }}:{{ isNaN(parseInt(item.sale_num)) ? 0 : parseInt(item.sale_num) }}
|
||||
已兑:{{ isNaN(parseInt(item.sale_num)) ? 0 : parseInt(item.sale_num) }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -230,20 +231,20 @@
|
||||
<uni-popup ref="pointPopup" type="bottom">
|
||||
<view class="tips-layer">
|
||||
<view class="head" @click="closePointPopup()">
|
||||
<view class="title">{{ $lang('point.integralDescription') }}</view>
|
||||
<view class="title">{{ isEnEnv ? 'Integral Description' : '积分说明' }}</view>
|
||||
<text class="iconfont icon-close"></text>
|
||||
</view>
|
||||
<view class="body">
|
||||
<view class="detail margin-bottom">
|
||||
<view class="tip">{{ $lang('point.integralAcquisition') }}</view>
|
||||
<view class="font-size-base">1、{{ $lang('point.integralAcquisitionDesc1') }}</view>
|
||||
<view class="font-size-base">2、{{ $lang('point.integralAcquisitionDesc2') }}</view>
|
||||
<view class="tip">{{ $lang('point.integralUse') }}</view>
|
||||
<view class="font-size-base">1、{{ $lang('point.integralUseDesc1') }}</view>
|
||||
<view class="font-size-base">2、{{ $lang('point.integralUseDesc2') }}</view>
|
||||
<view class="font-size-base">3、{{ $lang('point.integralUseDesc3') }}</view>
|
||||
<view class="tip">{{ $lang('point.integralQuery') }}</view>
|
||||
<view class="font-size-base">1、{{ $lang('point.integralQueryDesc1') }}</view>
|
||||
<view class="tip">{{ isEnEnv ? 'Integral Acquisition' : '积分的获取' }}</view>
|
||||
<view class="font-size-base">1、积分可在注册、签到、分享、消费、充值时获得。</view>
|
||||
<view class="font-size-base">2、在购买部分商品时可获得积分。</view>
|
||||
<view class="tip">{{ isEnEnv ? 'Integral Use' : '积分的使用' }}</view>
|
||||
<view class="font-size-base">1、积分可用于兑换积分中心的商品。</view>
|
||||
<view class="font-size-base">2、积分可在参与某些活动时使用。</view>
|
||||
<view class="font-size-base">3、积分不得转让,出售,不设有效期。</view>
|
||||
<view class="tip">{{ isEnEnv ? 'Integral Query' : '积分的查询' }}</view>
|
||||
<view class="font-size-base">1、积分可在会员中心中查询具体数额以及明细。</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -272,15 +273,15 @@ export default {
|
||||
},
|
||||
categoryList: [{
|
||||
id: 1,
|
||||
name: this.$lang('point.exchangeGoods')
|
||||
name: '积分换好物'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: this.$lang('point.exchangeCoupon')
|
||||
name: '积分换券'
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: this.$lang('point.exchangeHongbao')
|
||||
name: '积分换红包'
|
||||
}
|
||||
],
|
||||
isLogin: false,
|
||||
@@ -301,7 +302,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.pointexchange) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('point.notOpenPointMall'),
|
||||
title: '商家未开启积分商城',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
@@ -579,7 +580,7 @@ export default {
|
||||
}
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('point.noActivity')
|
||||
title: '暂无相关活动'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
<view class="order-item" v-for="(orderItem, orderIndex) in orderList" :key="orderIndex"
|
||||
@click="detail(orderItem)">
|
||||
<view class="order-header">
|
||||
<text class="order-no">{{ $lang('point.orderNo') }}:{{ orderItem.order_no }}</text>
|
||||
<text class="order-no">订单号:{{ orderItem.order_no }}</text>
|
||||
<text class="status-name">
|
||||
{{ orderItem.order_status == 0 ? $lang('point.waitPay') : orderItem.order_status == 1 ? $lang('order.completed') :
|
||||
orderItem.order_status == -1 ? $lang('order.closed') : '' }}
|
||||
{{ orderItem.order_status == 0 ? '待支付' : orderItem.order_status == 1 ? '已完成' :
|
||||
orderItem.order_status == -1 ? '已关闭' : '' }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="order-body">
|
||||
@@ -46,7 +46,7 @@
|
||||
<view class="goods-sub-section">
|
||||
<text class="goods-price">
|
||||
<text class="price-style large">{{ orderItem.point }}</text>
|
||||
<text class="unit price-style small">{{ $lang('point.point') }}</text>
|
||||
<text class="unit price-style small">积分</text>
|
||||
<block v-if="orderItem.price > 0">
|
||||
+
|
||||
<text class="unit price-style small">{{
|
||||
@@ -69,20 +69,20 @@
|
||||
<view class="order-footer">
|
||||
<view class="order-action" v-if="orderItem.order_status == 0 && orderItem.type == 1">
|
||||
<view class="order-box-btn font-size-tag"
|
||||
@click.stop="orderClose(orderItem.order_id, orderIndex)">{{ $lang('point.close') }}</view>
|
||||
@click.stop="orderClose(orderItem.order_id, orderIndex)">关闭</view>
|
||||
<view class="order-box-btn color-base-bg color-base-border"
|
||||
@click.stop="openChoosePayment(orderItem.out_trade_no, orderItem.price)">{{ $lang('point.pay') }}</view>
|
||||
@click.stop="openChoosePayment(orderItem.out_trade_no, orderItem.price)">支付</view>
|
||||
</view>
|
||||
<view class="order-action" v-else>
|
||||
<view class="order-box-btn font-size-tag">{{ $lang('point.viewDetail') }}</view>
|
||||
<view class="order-box-btn font-size-tag">查看详情</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<block v-if="showEmpty && !orderList.length">
|
||||
<view class="cart-empty">
|
||||
<ns-empty :isIndex="true" :emptyBtn="{ url: '/pages_promotion/point/list', text: $lang('point.goShopping') }"
|
||||
:text="$lang('point.noPointOrder')"></ns-empty>
|
||||
<ns-empty :isIndex="true" :emptyBtn="{ url: '/pages_promotion/point/list', text: '去逛逛' }"
|
||||
text="暂无积分兑换订单"></ns-empty>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
@@ -104,9 +104,9 @@ export default {
|
||||
outTradeNo: '',
|
||||
payMoney: 0,
|
||||
statusList: [
|
||||
{ status: 'all', id: 'all', name: this.$lang('order.all') },
|
||||
{ status: 0, id: 'pay', name: this.$lang('point.waitPay') },
|
||||
{ status: 1, id: 'complete', name: this.$lang('order.completed') },
|
||||
{ status: 'all', id: 'all', name: '全部' },
|
||||
{ status: 0, id: 'pay', name: '待支付' },
|
||||
{ status: 1, id: 'complete', name: '已完成' },
|
||||
],
|
||||
orderStatus: 'all',
|
||||
};
|
||||
@@ -115,7 +115,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.pointexchange) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('point.notOpenPointMall'),
|
||||
title: '商家未开启积分商城',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
@@ -182,8 +182,8 @@ export default {
|
||||
},
|
||||
orderClose(order_id, index) {
|
||||
uni.showModal({
|
||||
title: this.$lang('common.reminder'),
|
||||
content: this.$lang('point.confirmClose'),
|
||||
title: '提示',
|
||||
content: '确定关闭此次兑换?',
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
this.$api.sendRequest({
|
||||
@@ -195,7 +195,7 @@ export default {
|
||||
if (res.code >= 0) {
|
||||
this.orderList[index].order_status = -1;
|
||||
this.$util.showToast({
|
||||
title: this.$lang('point.closeSuccess')
|
||||
title: '关闭成功'
|
||||
});
|
||||
this.$forceUpdate();
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
}">
|
||||
<view class="nav-wrap">
|
||||
<text class="iconfont icon-back_light" @click="back"></text>
|
||||
<view class="navbar-title">{{ $lang('point.confirmOrder') }}</view>
|
||||
<view class="navbar-title">确认订单</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="payment-navbar-block" :style="{ height: menuButtonBounding.bottom + 'px' }"></view>
|
||||
@@ -39,16 +39,16 @@
|
||||
<view class="local-delivery-store" v-if="Object.keys(storeInfo.currStore).length"
|
||||
@click="$refs.deliveryPopup.open()">
|
||||
<view class="info">
|
||||
{{ $lang('order.providedBy') }} <text class="store-name">{{ storeInfo.currStore.store_name }}</text> {{ $lang('order.delivery') }}
|
||||
由 <text class="store-name">{{ storeInfo.currStore.store_name }}</text> 提供配送
|
||||
</view>
|
||||
<view class="cell-more">
|
||||
<text>{{ $lang('common.clickSwitch') }}</text>
|
||||
<text>点击切换</text>
|
||||
<text class="iconfont icon-right"></text>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else class="local-delivery-store">
|
||||
<view class="info">
|
||||
<text class="store-name">{{ $lang('order.noNearbyStore') }}</text>
|
||||
<text class="store-name">您的附近没有可配送的门店,请选择其他配送方式</text>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
@@ -69,7 +69,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="empty-wrap" v-else @click="selectAddress">
|
||||
<view class="info">{{ $lang('order.setAddress') }}</view>
|
||||
<view class="info">请设置收货地址</view>
|
||||
<view class="cell-more">
|
||||
<view class="iconfont icon-right"></view>
|
||||
</view>
|
||||
@@ -80,11 +80,11 @@
|
||||
<view class="local-box"
|
||||
v-if="orderPaymentData.config.local.is_use && orderPaymentData.delivery.local.info && orderPaymentData.delivery.local.info.time_is_open == 1">
|
||||
<view class="pick-block" @click="localtime">
|
||||
<view class="font-size-base">{{ $lang('order.deliverTime') }}</view>
|
||||
<view class="font-size-base">送达时间</view>
|
||||
<view class="time-picker">
|
||||
<text :class="{ 'color-tip': !orderCreateData.buyer_ask_delivery_title }">{{
|
||||
orderCreateData.buyer_ask_delivery_title ?
|
||||
orderCreateData.buyer_ask_delivery_title : $lang('order.selectDeliverTime') }}</text>
|
||||
orderCreateData.buyer_ask_delivery_title : '请选择送达时间' }}</text>
|
||||
<text class="iconfont icon-right cell-more"></text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -106,8 +106,8 @@
|
||||
</view>
|
||||
<view class="store-detail">
|
||||
<view v-if="storeInfo.currStore.open_date">
|
||||
{{ $lang('order.businessHours') }}:{{ storeInfo.currStore.open_date }}</view>
|
||||
<view>{{ $lang('order.address') }}:{{ storeInfo.currStore.full_address }}
|
||||
营业时间:{{ storeInfo.currStore.open_date }}</view>
|
||||
<view>地址:{{ storeInfo.currStore.full_address }}
|
||||
{{ storeInfo.currStore.address }}
|
||||
</view>
|
||||
</view>
|
||||
@@ -116,28 +116,28 @@
|
||||
</view>
|
||||
<view class="mobile-wrap store-mobile">
|
||||
<view class="form-group">
|
||||
<text class="text">{{ $lang('member.name') }}</text>
|
||||
<text class="text">姓名</text>
|
||||
<input type="text" placeholder-class="color-tip placeholder" class="input"
|
||||
v-model="member_address.name" disabled />
|
||||
</view>
|
||||
</view>
|
||||
<view class="mobile-wrap store-mobile">
|
||||
<view class="form-group">
|
||||
<text class="text">{{ $lang('member.reservePhone') }}</text>
|
||||
<input type="number" maxlength="11" :placeholder="$lang('member.inputPhone')"
|
||||
<text class="text">预留手机</text>
|
||||
<input type="number" maxlength="11" placeholder="请输入您的手机号码"
|
||||
placeholder-class="color-tip placeholder" class="input"
|
||||
v-model="member_address.mobile" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="store-time">
|
||||
<view class="left">{{ $lang('order.pickupTime') }}</view>
|
||||
<view class="left">自提时间</view>
|
||||
<view class="right" @click="storetime">
|
||||
{{ orderCreateData.buyer_ask_delivery_title }}
|
||||
<text class="iconfont icon-right"></text>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<view v-else class="empty">{{ $lang('order.noPickupStore') }}</view>
|
||||
<view v-else class="empty">当前无自提门店,请选择其它配送方式</view>
|
||||
|
||||
<image class="address-line" :src="$util.img('public/uniapp/order/address-line.png')" show-menu-by-longpress></image>
|
||||
</view>
|
||||
@@ -147,12 +147,12 @@
|
||||
<view class="mobile-wrap" v-if="orderPaymentData.is_virtual == 1 && orderCreateData.member_address">
|
||||
<view class="tips color-base-text">
|
||||
<text class="iconfont icon-gantanhao"></text>
|
||||
{{ $lang('order.virtualGoodsTip') }}
|
||||
购买虚拟类商品需填写手机号,方便商家与您联系
|
||||
</view>
|
||||
<view class="form-group">
|
||||
<text class="iconfont icon-dianhua2"></text>
|
||||
<text class="text">{{ $lang('member.phone') }}</text>
|
||||
<input type="number" maxlength="11" :placeholder="$lang('member.inputPhone')"
|
||||
<text class="text">手机号码</text>
|
||||
<input type="number" maxlength="11" placeholder="请输入您的手机号码"
|
||||
placeholder-class="color-tip placeholder" class="input"
|
||||
v-model="orderCreateData.member_address.mobile" />
|
||||
</view>
|
||||
@@ -188,7 +188,7 @@
|
||||
<view class="goods-sub-section">
|
||||
<view v-if="orderPaymentData.exchange_info.pay_type == 1" class="color-base-text">
|
||||
<text class="goods-price">{{ orderPaymentData.exchange_info.point }}</text>
|
||||
<text class="unit">{{ $lang('point.point') }}</text>
|
||||
<text class="unit">积分</text>
|
||||
<template v-if="orderPaymentData.exchange_info.price != '0.00'">
|
||||
<text class="unit">+{{ $lang('common.currencySymbol') }}</text>
|
||||
<text class="goods-price">{{ orderPaymentData.exchange_info.price }}</text>
|
||||
@@ -204,8 +204,8 @@
|
||||
</view>
|
||||
<view class="site-footer">
|
||||
<view class="order-cell">
|
||||
<text class="tit">{{ $lang('order.buyerMessage') }}</text>
|
||||
<view class="box"><input type="text" :placeholder="$lang('order.messagePlaceholder')" placeholder-class="color-tip"
|
||||
<text class="tit">买家留言</text>
|
||||
<view class="box"><input type="text" placeholder="留言前建议先与商家协调一致" placeholder-class="color-tip"
|
||||
v-model="orderCreateData.buyer_message" /></view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -214,15 +214,15 @@
|
||||
<!-- 金额 -->
|
||||
<view class="order-money">
|
||||
<view class="order-cell">
|
||||
<text class="tit">{{ $lang('point.requiredPoint') }}</text>
|
||||
<text class="tit">所需积分</text>
|
||||
<view class="box">
|
||||
<text class="money">{{ orderPaymentData.point }}</text>
|
||||
<text class="unit">{{ $lang('point.point') }}</text>
|
||||
<text class="unit">积分</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="order-cell"
|
||||
v-if="orderPaymentData.exchange_info.type == 1 && orderPaymentData.delivery_money > 0">
|
||||
<text class="tit">{{ $lang('order.shippingFee') }}</text>
|
||||
<text class="tit">运费</text>
|
||||
<view class="box">
|
||||
<text class="unit">{{ $lang('common.currencySymbol') }}</text>
|
||||
<text class="money">{{ orderPaymentData.delivery_money | moneyFormat }}</text>
|
||||
@@ -237,10 +237,10 @@
|
||||
</view>
|
||||
<view class="order-submit" :class="{ 'bottom-safe-area': isIphoneX }">
|
||||
<view class="order-settlement-info">
|
||||
<text class="font-size-base color-tip margin-right">{{ $lang('order.total') }}{{ orderPaymentData.goods_num }}{{ $lang('order.items') }}</text>
|
||||
<text class="font-size-base">{{ $lang('order.totalAmount') }}:</text>
|
||||
<text class="font-size-base color-tip margin-right">共{{ orderPaymentData.goods_num }}件</text>
|
||||
<text class="font-size-base">合计:</text>
|
||||
<text class="color-base-text money">{{ orderPaymentData.point }}</text>
|
||||
<text class="color-base-text unit">{{ $lang('point.point') }}</text>
|
||||
<text class="color-base-text unit">积分</text>
|
||||
<template v-if="orderPaymentData.exchange_info.type == 1 && orderPaymentData.order_money > 0">
|
||||
<text class="color-base-text unit">+{{ $lang('common.currencySymbol') }}</text>
|
||||
<text class="color-base-text money">{{ orderPaymentData.order_money | moneyFormat }}</text>
|
||||
@@ -248,13 +248,13 @@
|
||||
</view>
|
||||
<view class="submit-btn">
|
||||
<button v-if="createBtn()" type="primary" class="mini" size="mini"
|
||||
@click="openChoosePayment()">{{ $lang('point.submitOrder') }}</button>
|
||||
@click="openChoosePayment()">提交订单</button>
|
||||
<button v-else class="no-submit mini" size="mini">
|
||||
<block
|
||||
v-if="orderPaymentData.delivery && orderPaymentData.delivery.delivery_type == 'local' && orderPaymentData.delivery && orderPaymentData.delivery.error && orderPaymentData.delivery.start_money > orderPaymentData.price">
|
||||
{{ $lang('order.minDeliveryAmount') }}{{ orderPaymentData.delivery.start_money - orderPaymentData.price | moneyFormat }}{{ $lang('order.startDelivery') }}
|
||||
差{{ orderPaymentData.delivery.start_money - orderPaymentData.price | moneyFormat }}起送
|
||||
</block>
|
||||
<block v-else>{{ $lang('point.submitOrder') }}</block>
|
||||
<block v-else>提交订单</block>
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -264,7 +264,7 @@
|
||||
<uni-popup ref="deliveryPopup" type="bottom">
|
||||
<view class="delivery-popup popup">
|
||||
<view class="popup-header">
|
||||
<text class="tit">{{ $lang('order.nearbyStores') }}</text>
|
||||
<text class="tit">已为您甄选出附近所有相关门店</text>
|
||||
<text class="iconfont icon-close" @click="closePopup('deliveryPopup')"></text>
|
||||
</view>
|
||||
<view class="popup-body store-popup" :class="{ 'safe-area': isIphoneX }">
|
||||
@@ -281,19 +281,19 @@
|
||||
<view
|
||||
:class="item.store_id == orderPaymentData.delivery.store_id ? 'color-base-text' : ''"
|
||||
class="font-size-goods-tag">
|
||||
{{ $lang('order.businessHours') }}:{{ item.open_date }}
|
||||
营业时间:{{ item.open_date }}
|
||||
</view>
|
||||
<view
|
||||
:class="item.store_id == orderPaymentData.delivery.store_id ? 'color-base-text' : ''"
|
||||
class="font-size-goods-tag">
|
||||
{{ $lang('order.address') }}:{{ item.full_address }}{{ item.address }}
|
||||
地址:{{ item.full_address }}{{ item.address }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="icon" v-if="item.store_id == orderPaymentData.delivery.store_id"><text
|
||||
class="iconfont icon-yuan_checked color-base-text"></text></view>
|
||||
</view>
|
||||
<view v-if="!storeInfo.storeList" class="empty">{{ $lang('order.noNearbyPickupStore') }}</view>
|
||||
<view v-if="!storeInfo.storeList" class="empty">所选择收货地址附近没有可以自提的门店</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -92,7 +92,7 @@ export default {
|
||||
uni.removeStorageSync("pay_flag");
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('point.notGetData')
|
||||
title: '未获取到创建订单所需数据!'
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
@@ -119,7 +119,7 @@ export default {
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('point.notGetData')
|
||||
title: '未获取到创建订单所需数据!'
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
@@ -280,9 +280,9 @@ export default {
|
||||
this.isSub = false;
|
||||
if (res.data.error_code == 10 || res.data.error_code == 12) {
|
||||
uni.showModal({
|
||||
title: this.$lang('common.tip'),
|
||||
title: '订单未创建',
|
||||
content: res.message,
|
||||
confirmText: this.$lang('member.toSet'),
|
||||
confirmText: '去设置',
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
this.selectAddress();
|
||||
@@ -309,13 +309,13 @@ export default {
|
||||
if (this.orderPaymentData.is_virtual == 1) {
|
||||
if (!this.orderCreateData.member_address.mobile.length) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('member.inputPhone')
|
||||
title: '请输入您的手机号码'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (!this.$util.verifyMobile(this.orderCreateData.member_address.mobile)) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('member.inputMobileCorrect')
|
||||
title: '请输入正确的手机号码'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -324,7 +324,7 @@ export default {
|
||||
if (this.orderPaymentData.is_virtual == 0) {
|
||||
if (!this.orderCreateData.delivery || !this.orderCreateData.delivery.delivery_type) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('order.notSetDelivery')
|
||||
title: '商家未设置配送方式'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -332,7 +332,7 @@ export default {
|
||||
if (this.orderCreateData.delivery.delivery_type != 'store') {
|
||||
if (!this.orderCreateData.member_address) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('order.pleaseSelectAddress')
|
||||
title: '请先选择您的收货地址'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -341,26 +341,26 @@ export default {
|
||||
if (this.orderCreateData.delivery.delivery_type == 'store') {
|
||||
if (!this.orderCreateData.delivery.store_id) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('order.noPickupStoreForDelivery')
|
||||
title: '没有可提货的门店,请选择其他配送方式'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (!this.member_address.mobile) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('member.reservePhone')
|
||||
title: '请输入预留手机'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (!this.$util.verifyMobile(this.member_address.mobile)) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('member.inputMobileCorrect')
|
||||
title: '请输入正确的预留手机'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!this.orderCreateData.delivery.buyer_ask_delivery_time.start_date || !this.orderCreateData.delivery.buyer_ask_delivery_time.end_date) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('order.pleaseSelectPickupTime')
|
||||
title: '请选择自提时间'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -369,13 +369,13 @@ export default {
|
||||
if (this.orderCreateData.delivery.delivery_type == 'local') {
|
||||
if (!this.orderCreateData.delivery.store_id) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('order.noDeliveryStore')
|
||||
title: '没有可配送的门店,请选择其他配送方式'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (this.orderPaymentData.config.local.is_use && this.orderPaymentData.delivery.local.info && this.orderPaymentData.delivery.local.info.time_is_open == 1 && (!this.orderCreateData.delivery.buyer_ask_delivery_time.start_date || !this.orderCreateData.delivery.buyer_ask_delivery_time.end_date)) {
|
||||
this.$util.showToast({
|
||||
title: this.$lang('order.pleaseSelectDeliverTime')
|
||||
title: '请选择配送时间'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user