forked from zhongyuanhaiju/uniapp
【修改】兑换券改积分,消费券改余额
This commit is contained in:
parent
74919a62fc
commit
992bb55fa6
|
|
@ -480,8 +480,8 @@ uni-slider .uni-slider-track {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************消费券***************
|
// ***************余额***************
|
||||||
// 消费券背景色渐变
|
// 余额背景色渐变
|
||||||
.balance-wrap {
|
.balance-wrap {
|
||||||
// background: linear-gradient(to right, $base-color, mix($base-color, #fff, 70%)) !important;
|
// background: linear-gradient(to right, $base-color, mix($base-color, #fff, 70%)) !important;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="order-cell point" v-if="calculateGoodsData && calculateGoodsData.max_usable_point > 0">
|
<view class="order-cell point" v-if="calculateGoodsData && calculateGoodsData.max_usable_point > 0">
|
||||||
<text class="tit">
|
<text class="tit">
|
||||||
<text>使用{{ parseInt(calculateGoodsData.max_usable_point) }}兑换券可抵扣</text>
|
<text>使用{{ parseInt(calculateGoodsData.max_usable_point) }}积分可抵扣</text>
|
||||||
<text class="unit price-font">{{ $lang('common.currencySymbol') }}</text>
|
<text class="unit price-font">{{ $lang('common.currencySymbol') }}</text>
|
||||||
<text class="money price-font">{{ calculateData.point_money | moneyFormat }}</text>
|
<text class="money price-font">{{ calculateData.point_money | moneyFormat }}</text>
|
||||||
</text>
|
</text>
|
||||||
|
|
@ -379,7 +379,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="order-cell" v-if="calculateData.point_money > 0">
|
<view class="order-cell" v-if="calculateData.point_money > 0">
|
||||||
<text class="tit">兑换券抵扣</text>
|
<text class="tit">积分抵扣</text>
|
||||||
<view class="box color-base-text">
|
<view class="box color-base-text">
|
||||||
<text class="operator">-</text>
|
<text class="operator">-</text>
|
||||||
<text class="unit price-font">{{ $lang('common.currencySymbol') }}</text>
|
<text class="unit price-font">{{ $lang('common.currencySymbol') }}</text>
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ export default {
|
||||||
calculateGoodsData(){
|
calculateGoodsData(){
|
||||||
if (this.calculateData) return this.calculateData.shop_goods_list;
|
if (this.calculateData) return this.calculateData.shop_goods_list;
|
||||||
},
|
},
|
||||||
// 消费券可抵扣金额
|
// 余额可抵扣金额
|
||||||
balanceDeduct() {
|
balanceDeduct() {
|
||||||
if (this.calculateData) {
|
if (this.calculateData) {
|
||||||
if (this.calculateData.member_account.balance_total <= parseFloat(this.calculateData.order_money).toFixed(2)) {
|
if (this.calculateData.member_account.balance_total <= parseFloat(this.calculateData.order_money).toFixed(2)) {
|
||||||
|
|
@ -728,7 +728,7 @@ export default {
|
||||||
this.calculate();
|
this.calculate();
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 使用兑换券抵扣
|
* 使用积分抵扣
|
||||||
*/
|
*/
|
||||||
usePoint() {
|
usePoint() {
|
||||||
this.orderCreateData.is_point = this.orderCreateData.is_point ? 0 : 1;
|
this.orderCreateData.is_point = this.orderCreateData.is_point ? 0 : 1;
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
<view class="lineheight-clear">
|
<view class="lineheight-clear">
|
||||||
<view class="discount-price">
|
<view class="discount-price">
|
||||||
<text class="unit ">{{ item.point }}</text>
|
<text class="unit ">{{ item.point }}</text>
|
||||||
<text class="unit font-size-tag">兑换券</text>
|
<text class="unit font-size-tag">积分</text>
|
||||||
<block v-if="item.price > 0 && item.pay_type > 0">
|
<block v-if="item.price > 0 && item.pay_type > 0">
|
||||||
<text class="unit font-size-tag">+</text>
|
<text class="unit font-size-tag">+</text>
|
||||||
<text class="unit font-size-tag">{{ $lang('common.currencySymbol') }}</text>
|
<text class="unit font-size-tag">{{ $lang('common.currencySymbol') }}</text>
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="empty" v-if="goodsList.length == 0">
|
<view class="empty" v-if="goodsList.length == 0">
|
||||||
<ns-empty :isIndex="false" text="暂无兑换券商品"></ns-empty>
|
<ns-empty :isIndex="false" text="暂无积分商品"></ns-empty>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="goodsValue && (goodsValue.sources =='jianlou')">
|
<view v-if="goodsValue && (goodsValue.sources =='jianlou')">
|
||||||
|
|
@ -106,7 +106,16 @@ export default {
|
||||||
goodsValue: null, // 商品列表数据
|
goodsValue: null, // 商品列表数据
|
||||||
goodsList: [],
|
goodsList: [],
|
||||||
list : [],
|
list : [],
|
||||||
msg: ''
|
msg: '暂无捡漏商品',
|
||||||
|
status_text: {
|
||||||
|
1 : '库存',
|
||||||
|
2 : '正在销售',
|
||||||
|
3 : '已售出',
|
||||||
|
4 : '提货中',
|
||||||
|
5 : '提货完成',
|
||||||
|
6 : '待支付',
|
||||||
|
7 : '捡漏',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -158,7 +167,7 @@ export default {
|
||||||
// this.$refs.diyGoodsList.goodsValue = this.goodsValue;
|
// this.$refs.diyGoodsList.goodsValue = this.goodsValue;
|
||||||
// this.$refs.diyGoodsList.getGoodsList();
|
// this.$refs.diyGoodsList.getGoodsList();
|
||||||
},
|
},
|
||||||
//获取兑换券商品详情
|
//获取积分商品详情
|
||||||
getData(mescroll) {
|
getData(mescroll) {
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
url: '/pointexchange/api/goods/page',
|
url: '/pointexchange/api/goods/page',
|
||||||
|
|
|
||||||
|
|
@ -90,28 +90,28 @@
|
||||||
>
|
>
|
||||||
<view class="account-item" @click="redirect('/pages_tool/member/balance')">
|
<view class="account-item" @click="redirect('/pages_tool/member/balance')">
|
||||||
<view class="value price-font">{{ memberInfo ? (parseFloat(memberInfo.balance) + parseFloat(memberInfo.balance_money)).toFixed(2) : '--' }}</view>
|
<view class="value price-font">{{ memberInfo ? (parseFloat(memberInfo.balance) + parseFloat(memberInfo.balance_money)).toFixed(2) : '--' }}</view>
|
||||||
<view class="title">消费券</view>
|
<view class="title">余额</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="solid"></view>
|
<view class="solid"></view>
|
||||||
<view class="account-item" @click="redirect('/pages_tool/member/point')">
|
<view class="account-item" @click="redirect('/pages_tool/member/point')">
|
||||||
<view class="value price-font">{{ memberInfo ? parseFloat(memberInfo.point) : '--' }}</view>
|
<view class="value price-font">{{ memberInfo ? parseFloat(memberInfo.point) : '--' }}</view>
|
||||||
<view class="title">兑换券</view>
|
|
||||||
</view>
|
|
||||||
<view class="solid"></view>
|
|
||||||
<view class="account-item" @click="redirect('/pages_promotion/fenxiao/bill')">
|
|
||||||
<view class="value price-font">{{ fenxiaoInfo && fenxiaoInfo.points != undefined ? fenxiaoInfo.points : '--' }}</view>
|
|
||||||
<view class="title">积分</view>
|
<view class="title">积分</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="solid"></view>
|
<view class="solid"></view>
|
||||||
<view class="account-item" @click="redirect('/pages_promotion/fenxiao/bill')">
|
<view class="account-item" @click="redirect('/pages_promotion/fenxiao/bill')">
|
||||||
<view class="value price-font">{{ fenxiaoInfo && fenxiaoInfo.contribution != undefined ? fenxiaoInfo.contribution : '--' }}</view>
|
<view class="value price-font">{{ fenxiaoInfo && fenxiaoInfo.diamond != undefined ? fenxiaoInfo.diamond : '--' }}</view>
|
||||||
<view class="title">贡献值</view>
|
<view class="title">钻石</view>
|
||||||
</view>
|
|
||||||
<view class="solid"></view>
|
|
||||||
<view class="account-item" @click="redirect('/pages_promotion/fenxiao/bill')">
|
|
||||||
<view class="value price-font">{{ fenxiaoInfo && fenxiaoInfo.house_purchase != undefined ? fenxiaoInfo.house_purchase : '--' }}</view>
|
|
||||||
<view class="title">购房券</view>
|
|
||||||
</view>
|
</view>
|
||||||
|
<!-- <view class="solid"></view>-->
|
||||||
|
<!-- <view class="account-item" @click="redirect('/pages_promotion/fenxiao/bill')">-->
|
||||||
|
<!-- <view class="value price-font">{{ fenxiaoInfo && fenxiaoInfo.contribution != undefined ? fenxiaoInfo.contribution : '--' }}</view>-->
|
||||||
|
<!-- <view class="title">贡献值</view>-->
|
||||||
|
<!-- </view>-->
|
||||||
|
<!-- <view class="solid"></view>-->
|
||||||
|
<!-- <view class="account-item" @click="redirect('/pages_promotion/fenxiao/bill')">-->
|
||||||
|
<!-- <view class="value price-font">{{ fenxiaoInfo && fenxiaoInfo.house_purchase != undefined ? fenxiaoInfo.house_purchase : '--' }}</view>-->
|
||||||
|
<!-- <view class="title">购房券</view>-->
|
||||||
|
<!-- </view>-->
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="super-member" v-if="superMember" :style="superMemberStyle">
|
<view class="super-member" v-if="superMember" :style="superMemberStyle">
|
||||||
|
|
@ -146,28 +146,28 @@
|
||||||
>
|
>
|
||||||
<view class="account-item" @click="redirect('/pages_tool/member/balance')">
|
<view class="account-item" @click="redirect('/pages_tool/member/balance')">
|
||||||
<view class="value price-font">{{ memberInfo ? (parseFloat(memberInfo.balance) + parseFloat(memberInfo.balance_money)).toFixed(2) : '--' }}</view>
|
<view class="value price-font">{{ memberInfo ? (parseFloat(memberInfo.balance) + parseFloat(memberInfo.balance_money)).toFixed(2) : '--' }}</view>
|
||||||
<view class="title">消费券</view>
|
<view class="title">余额</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="solid"></view>
|
<view class="solid"></view>
|
||||||
<view class="account-item" @click="redirect('/pages_tool/member/point')">
|
<view class="account-item" @click="redirect('/pages_tool/member/point')">
|
||||||
<view class="value price-font">{{ memberInfo ? parseFloat(memberInfo.point).toFixed(2) : '--' }}</view>
|
<view class="value price-font">{{ memberInfo ? parseFloat(memberInfo.point).toFixed(2) : '--' }}</view>
|
||||||
<view class="title">兑换券</view>
|
|
||||||
</view>
|
|
||||||
<view class="solid"></view>
|
|
||||||
<view class="account-item" @click="redirect('/pages_promotion/fenxiao/bill')">
|
|
||||||
<view class="value price-font">{{ fenxiaoInfo && fenxiaoInfo.points != undefined ? fenxiaoInfo.points : '--' }}</view>
|
|
||||||
<view class="title">积分</view>
|
<view class="title">积分</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="solid"></view>
|
<view class="solid"></view>
|
||||||
<view class="account-item" @click="redirect('/pages_promotion/fenxiao/bill')">
|
<view class="account-item" @click="redirect('/pages_promotion/fenxiao/bill')">
|
||||||
<view class="value price-font">{{ fenxiaoInfo && fenxiaoInfo.contribution != undefined ? fenxiaoInfo.contribution : '--' }}</view>
|
<view class="value price-font">{{ fenxiaoInfo && fenxiaoInfo.diamond != undefined ? fenxiaoInfo.diamond : '--' }}</view>
|
||||||
<view class="title">贡献值</view>
|
<view class="title">钻石</view>
|
||||||
</view>
|
|
||||||
<view class="solid"></view>
|
|
||||||
<view class="account-item" @click="redirect('/pages_promotion/fenxiao/bill')">
|
|
||||||
<view class="value price-font">{{ fenxiaoInfo && fenxiaoInfo.house_purchase != undefined ? fenxiaoInfo.house_purchase : '--' }}</view>
|
|
||||||
<view class="title">购房券</view>
|
|
||||||
</view>
|
</view>
|
||||||
|
<!-- <view class="solid"></view>-->
|
||||||
|
<!-- <view class="account-item" @click="redirect('/pages_promotion/fenxiao/bill')">-->
|
||||||
|
<!-- <view class="value price-font">{{ fenxiaoInfo && fenxiaoInfo.contribution != undefined ? fenxiaoInfo.contribution : '--' }}</view>-->
|
||||||
|
<!-- <view class="title">贡献值</view>-->
|
||||||
|
<!-- </view>-->
|
||||||
|
<!-- <view class="solid"></view>-->
|
||||||
|
<!-- <view class="account-item" @click="redirect('/pages_promotion/fenxiao/bill')">-->
|
||||||
|
<!-- <view class="value price-font">{{ fenxiaoInfo && fenxiaoInfo.house_purchase != undefined ? fenxiaoInfo.house_purchase : '--' }}</view>-->
|
||||||
|
<!-- <view class="title">购房券</view>-->
|
||||||
|
<!-- </view>-->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<text class="text">{{ value.btnStyle.text }}</text>
|
<text class="text">{{ value.btnStyle.text }}</text>
|
||||||
<text class="fan" v-if="item.reward_type == 4">返{{ item.reward_type_num }}兑换券</text>
|
<text class="fan" v-if="item.reward_type == 4">返{{ item.reward_type_num }}积分</text>
|
||||||
<text class="fan" v-if="item.reward_type == 1 || item.reward_type == 2">返¥{{ item.reward_type_num }}</text>
|
<text class="fan" v-if="item.reward_type == 1 || item.reward_type == 2">返¥{{ item.reward_type_num }}</text>
|
||||||
<text class="fan" v-if="item.reward_type == 3">返优惠券</text>
|
<text class="fan" v-if="item.reward_type == 3">返优惠券</text>
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -79,7 +79,7 @@
|
||||||
{{ item.pintuan_num }}人团
|
{{ item.pintuan_num }}人团
|
||||||
</text>
|
</text>
|
||||||
<text class="content-tuan-price" :style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '' }" v-if="item.reward_type == 4">
|
<text class="content-tuan-price" :style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '' }" v-if="item.reward_type == 4">
|
||||||
返{{ item.reward_type_num }}兑换券
|
返{{ item.reward_type_num }}积分
|
||||||
</text>
|
</text>
|
||||||
<text
|
<text
|
||||||
class="content-tuan-price"
|
class="content-tuan-price"
|
||||||
|
|
@ -127,7 +127,7 @@
|
||||||
{{ item.pintuan_num }}人团
|
{{ item.pintuan_num }}人团
|
||||||
</text>
|
</text>
|
||||||
<text class="content-tuan-price" :style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '' }" v-if="item.reward_type == 4">
|
<text class="content-tuan-price" :style="{ color: value.theme == 'diy' ? value.groupStyle.bgColor : '' }" v-if="item.reward_type == 4">
|
||||||
返{{ item.reward_type_num }}兑换券
|
返{{ item.reward_type_num }}积分
|
||||||
</text>
|
</text>
|
||||||
<text
|
<text
|
||||||
class="content-tuan-price"
|
class="content-tuan-price"
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<text class="num">
|
<text class="num">
|
||||||
{{ parseFloat(birthday.point) }}
|
{{ parseFloat(birthday.point) }}
|
||||||
<text class="type">兑换券</text>
|
<text class="type">积分</text>
|
||||||
</text>
|
</text>
|
||||||
<view class="desc">用于下单时抵现或兑换商品等</view>
|
<view class="desc">用于下单时抵现或兑换商品等</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
<block v-if="type == 'point'">
|
<block v-if="type == 'point'">
|
||||||
<block v-if="goodsDetail.type == 1">
|
<block v-if="goodsDetail.type == 1">
|
||||||
<view class="price-wrap">
|
<view class="price-wrap">
|
||||||
<text class="price price-color font-size-toolbar">{{ goodsDetail.point }}兑换券</text>
|
<text class="price price-color font-size-toolbar">{{ goodsDetail.point }}积分</text>
|
||||||
<block v-if="goodsDetail.exchange_price != '0.00' && goodsDetail.pay_type > 0">
|
<block v-if="goodsDetail.exchange_price != '0.00' && goodsDetail.pay_type > 0">
|
||||||
<text class="unit price-color font-size-tag">+</text>
|
<text class="unit price-color font-size-tag">+</text>
|
||||||
<text class="price price-color font-size-toolbar price-font">{{ $lang('common.currencySymbol') }}{{ goodsDetail.exchange_price }}</text>
|
<text class="price price-color font-size-toolbar price-font">{{ $lang('common.currencySymbol') }}{{ goodsDetail.exchange_price }}</text>
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
<view class="price font-size-toolbar">{{ goodsDetail.name }}</view>
|
<view class="price font-size-toolbar">{{ goodsDetail.name }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="stock" style="height: auto;">
|
<view class="stock" style="height: auto;">
|
||||||
兑换券:
|
积分:
|
||||||
<text class="price-color">{{ goodsDetail.point }}</text>
|
<text class="price-color">{{ goodsDetail.point }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="stock">
|
<view class="stock">
|
||||||
|
|
@ -723,7 +723,7 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 【兑换券】获取所有规格信息
|
// 【积分】获取所有规格信息
|
||||||
getPointGoodsSkuList() {
|
getPointGoodsSkuList() {
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
url: '/pointexchange/api/goods/goodsSku',
|
url: '/pointexchange/api/goods/goodsSku',
|
||||||
|
|
@ -1361,7 +1361,7 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (this.type == 'point') {
|
} else if (this.type == 'point') {
|
||||||
// 兑换券兑换
|
// 积分兑换
|
||||||
var data = {
|
var data = {
|
||||||
id: this.goodsDetail.exchange_id,
|
id: this.goodsDetail.exchange_id,
|
||||||
sku_id: this.skuId,
|
sku_id: this.skuId,
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<text class="num">
|
<text class="num">
|
||||||
{{ newgift.award_list.point }}
|
{{ newgift.award_list.point }}
|
||||||
<text class="type">兑换券</text>
|
<text class="type">积分</text>
|
||||||
</text>
|
</text>
|
||||||
<view class="desc">用于参与活动购买商品时抵扣</view>
|
<view class="desc">用于参与活动购买商品时抵扣</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<view class="payment-item" v-if="balanceDeduct > 0 && balanceConfig == 1 && sale">
|
<view class="payment-item" v-if="balanceDeduct > 0 && balanceConfig == 1 && sale">
|
||||||
<view class="iconfont icon-yue"></view>
|
<view class="iconfont icon-yue"></view>
|
||||||
<view class="info-wrap">
|
<view class="info-wrap">
|
||||||
<text class="name">消费券抵扣</text>
|
<text class="name">余额抵扣</text>
|
||||||
<view class="money">可用¥{{ balanceDeduct }}</view>
|
<view class="money">可用¥{{ balanceDeduct }}</view>
|
||||||
</view>
|
</view>
|
||||||
<ns-switch class="balance-switch" @change="useBalance" :checked="isBalance == 1"></ns-switch>
|
<ns-switch class="balance-switch" @change="useBalance" :checked="isBalance == 1"></ns-switch>
|
||||||
|
|
@ -146,7 +146,7 @@ export default {
|
||||||
close() {
|
close() {
|
||||||
this.$refs.choosePaymentPopup.close();
|
this.$refs.choosePaymentPopup.close();
|
||||||
},
|
},
|
||||||
// 使用消费券
|
// 使用余额
|
||||||
useBalance() {
|
useBalance() {
|
||||||
this.$emit('useBalance');
|
this.$emit('useBalance');
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<view class="payment-item" v-if="balanceDeduct > 0 && balanceUsable && balanceConfig == 1">
|
<view class="payment-item" v-if="balanceDeduct > 0 && balanceUsable && balanceConfig == 1">
|
||||||
<view class="iconfont icon-yue"></view>
|
<view class="iconfont icon-yue"></view>
|
||||||
<view class="info-wrap">
|
<view class="info-wrap">
|
||||||
<text class="name">消费券抵扣</text>
|
<text class="name">余额抵扣</text>
|
||||||
<view class="money">可用¥{{ balanceDeduct|moneyFormat }}</view>
|
<view class="money">可用¥{{ balanceDeduct|moneyFormat }}</view>
|
||||||
</view>
|
</view>
|
||||||
<ns-switch class="balance-switch" @change="useBalance" :checked="isBalance == 1"></ns-switch>
|
<ns-switch class="balance-switch" @change="useBalance" :checked="isBalance == 1"></ns-switch>
|
||||||
|
|
@ -61,7 +61,7 @@
|
||||||
nsSwitch
|
nsSwitch
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
// 是否可用消费券支付
|
// 是否可用余额支付
|
||||||
balanceUsable: {
|
balanceUsable: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
|
|
@ -128,7 +128,7 @@
|
||||||
this.$emit('close');
|
this.$emit('close');
|
||||||
this.$refs.choosePaymentPopup.close();
|
this.$refs.choosePaymentPopup.close();
|
||||||
},
|
},
|
||||||
// 使用消费券
|
// 使用余额
|
||||||
useBalance() {
|
useBalance() {
|
||||||
this.isBalance = this.isBalance ? 0 : 1;
|
this.isBalance = this.isBalance ? 0 : 1;
|
||||||
this.$emit('useBalance', this.isBalance)
|
this.$emit('useBalance', this.isBalance)
|
||||||
|
|
@ -169,7 +169,7 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 获取消费券配置
|
* 获取余额配置
|
||||||
*/
|
*/
|
||||||
getBalanceConfig() {
|
getBalanceConfig() {
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
|
|
@ -181,7 +181,7 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 获取用户消费券
|
* 获取用户余额
|
||||||
*/
|
*/
|
||||||
getMemberBalance() {
|
getMemberBalance() {
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,12 @@
|
||||||
<scroll-view scroll-y="true" class="register-box">
|
<scroll-view scroll-y="true" class="register-box">
|
||||||
<view class="reward-content">
|
<view class="reward-content">
|
||||||
<view class="reward-item" v-if="reward.point > 0">
|
<view class="reward-item" v-if="reward.point > 0">
|
||||||
<view class="head">兑换券奖励</view>
|
<view class="head">积分奖励</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<view>
|
<view>
|
||||||
<text class="num">{{ reward.point }}</text>
|
<text class="num">{{ reward.point }}</text>
|
||||||
<text class="type">兑换券</text>
|
<text class="type">积分</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="desc">用于下单时抵现或兑换商品等</view>
|
<view class="desc">用于下单时抵现或兑换商品等</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
export const lang = {
|
export const lang = {
|
||||||
//title为每个页面的标题
|
//title为每个页面的标题
|
||||||
title: '兑换券中心'
|
title: '积分中心'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
export const lang = {
|
export const lang = {
|
||||||
//title为每个页面的标题
|
//title为每个页面的标题
|
||||||
title: '我的消费券',
|
title: '我的余额',
|
||||||
accountBalance: '账户消费券 ',
|
accountBalance: '账户余额 ',
|
||||||
money:' (元)',
|
money:' (元)',
|
||||||
recharge: '充值',
|
recharge: '充值',
|
||||||
withdrawal: '提现',
|
withdrawal: '提现',
|
||||||
balanceDetailed: '消费券明细',
|
balanceDetailed: '余额明细',
|
||||||
emptyTips: '暂无消费券记录',
|
emptyTips: '暂无余额记录',
|
||||||
rechargeRecord:'充值记录',
|
rechargeRecord:'充值记录',
|
||||||
ableAccountBalance:'现金消费券 ',
|
ableAccountBalance:'现金余额 ',
|
||||||
noAccountBalance:'储值消费券 ',
|
noAccountBalance:'储值余额 ',
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
export const lang = {
|
export const lang = {
|
||||||
//title为每个页面的标题
|
//title为每个页面的标题
|
||||||
title: '消费券明细'
|
title: '余额明细'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,10 +27,10 @@ export const lang = {
|
||||||
pintuanOrder: '拼团订单',
|
pintuanOrder: '拼团订单',
|
||||||
yushouOrder: '预售订单',
|
yushouOrder: '预售订单',
|
||||||
message: '我的消息',
|
message: '我的消息',
|
||||||
exchangeOrder: '兑换券兑换',
|
exchangeOrder: '积分兑换',
|
||||||
// 推广中心
|
// 推广中心
|
||||||
balance: '消费券',
|
balance: '余额',
|
||||||
point: '兑换券',
|
point: '积分',
|
||||||
coupon: '优惠券',
|
coupon: '优惠券',
|
||||||
memberRecommend: '邀请有礼',
|
memberRecommend: '邀请有礼',
|
||||||
myPresale: '我的预售',
|
myPresale: '我的预售',
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
export const lang = {
|
export const lang = {
|
||||||
//title为每个页面的标题
|
//title为每个页面的标题
|
||||||
title: '我的兑换券'
|
title: '我的积分'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
export const lang = {
|
export const lang = {
|
||||||
//title为每个页面的标题
|
//title为每个页面的标题
|
||||||
title: '兑换券明细',
|
title: '积分明细',
|
||||||
emptyTpis: '您暂时还没有兑换券记录哦!',
|
emptyTpis: '您暂时还没有积分记录哦!',
|
||||||
pointExplain: '兑换券说明'
|
pointExplain: '积分说明'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
export const lang = {
|
export const lang = {
|
||||||
//title为每个页面的标题
|
//title为每个页面的标题
|
||||||
title: '兑换券商城'
|
title: '积分商城'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
export const lang = {
|
export const lang = {
|
||||||
//title为每个页面的标题
|
//title为每个页面的标题
|
||||||
title: '兑换券兑换订单详情'
|
title: '积分兑换订单详情'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
export const lang = {
|
export const lang = {
|
||||||
//title为每个页面的标题
|
//title为每个页面的标题
|
||||||
title: '兑换券兑换',
|
title: '积分兑换',
|
||||||
emptyTips: '暂无更多数据了'
|
emptyTips: '暂无更多数据了'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,8 @@ https://unpkg.com/jweixin-module/out/index.js
|
||||||
## 使用
|
## 使用
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var jweixin = require('jweixin-module')
|
var wx = require('jweixin-module')
|
||||||
jweixin.ready(function(){
|
wx.ready(function(){
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,28 @@
|
||||||
{
|
{
|
||||||
"_from": "jweixin-module@1.6.0",
|
"_from": "jweixin-module",
|
||||||
"_id": "jweixin-module@1.6.0",
|
"_id": "jweixin-module@1.4.1",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-dGk9cf+ipipHmtzYmKZs5B2toX+p4hLyllGLF6xuC8t+B05oYxd8fYoaRz0T30U2n3RUv8a4iwvjhA+OcYz52w==",
|
"_integrity": "sha512-2R2oa1lYhAsclfjKSf3DP4ZiP1dcrQUbM7aklbeJA+UAg/LS7MqoA6UbTy1cs4sbB34z62K4bKW0Z9iazD8ejg==",
|
||||||
"_location": "/jweixin-module",
|
"_location": "/jweixin-module",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "version",
|
"type": "tag",
|
||||||
"registry": true,
|
"registry": true,
|
||||||
"raw": "jweixin-module@1.6.0",
|
"raw": "jweixin-module",
|
||||||
"name": "jweixin-module",
|
"name": "jweixin-module",
|
||||||
"escapedName": "jweixin-module",
|
"escapedName": "jweixin-module",
|
||||||
"rawSpec": "1.6.0",
|
"rawSpec": "",
|
||||||
"saveSpec": null,
|
"saveSpec": null,
|
||||||
"fetchSpec": "1.6.0"
|
"fetchSpec": "latest"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
|
"#USER",
|
||||||
"/"
|
"/"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/jweixin-module/-/jweixin-module-1.6.0.tgz",
|
"_resolved": "https://registry.npmjs.org/jweixin-module/-/jweixin-module-1.4.1.tgz",
|
||||||
"_shasum": "4a7ea614083e3c9c3f49e2fdc2bb882cfa58dfcd",
|
"_shasum": "1fc8fa42622243f6c35651d272cd587debf56cd1",
|
||||||
"_spec": "jweixin-module@1.6.0",
|
"_spec": "jweixin-module",
|
||||||
"_where": "D:\\Web-Object\\rush-goods",
|
"_where": "E:\\demo\\niushop_uniapp",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Shengqiang Guo"
|
"name": "Shengqiang Guo"
|
||||||
},
|
},
|
||||||
|
|
@ -31,7 +32,10 @@
|
||||||
"bundleDependencies": false,
|
"bundleDependencies": false,
|
||||||
"deprecated": false,
|
"deprecated": false,
|
||||||
"description": "微信JS-SDK",
|
"description": "微信JS-SDK",
|
||||||
"devDependencies": {},
|
"devDependencies": {
|
||||||
|
"textfile": "^1.2.0",
|
||||||
|
"uglify-js": "^3.4.9"
|
||||||
|
},
|
||||||
"homepage": "https://github.com/zhetengbiji/jweixin-module#readme",
|
"homepage": "https://github.com/zhetengbiji/jweixin-module#readme",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"wxjssdk",
|
"wxjssdk",
|
||||||
|
|
@ -42,12 +46,15 @@
|
||||||
"wx"
|
"wx"
|
||||||
],
|
],
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"main": "lib/index.js",
|
"main": "out/index.js",
|
||||||
"name": "jweixin-module",
|
"name": "jweixin-module",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/zhetengbiji/jweixin-module.git"
|
"url": "git+https://github.com/zhetengbiji/jweixin-module.git"
|
||||||
},
|
},
|
||||||
"scripts": {},
|
"scripts": {
|
||||||
"version": "1.6.0"
|
"build": "node build",
|
||||||
|
"prepublish": "npm run build"
|
||||||
|
},
|
||||||
|
"version": "1.4.1"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//兑换券订单详情
|
//积分订单详情
|
||||||
{
|
{
|
||||||
"path": "pages/order/detail_point",
|
"path": "pages/order/detail_point",
|
||||||
"style": {
|
"style": {
|
||||||
|
|
@ -522,7 +522,7 @@
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//----------兑换券模块(2)----------
|
//----------积分模块(2)----------
|
||||||
{
|
{
|
||||||
"path": "point/list",
|
"path": "point/list",
|
||||||
"style": {
|
"style": {
|
||||||
|
|
|
||||||
|
|
@ -403,7 +403,7 @@ export default {
|
||||||
if (item.point != undefined || item.coupon != undefined) {
|
if (item.point != undefined || item.coupon != undefined) {
|
||||||
let text = '';
|
let text = '';
|
||||||
if (item.point != undefined) {
|
if (item.point != undefined) {
|
||||||
text = '送' + item.point + '兑换券';
|
text = '送' + item.point + '积分';
|
||||||
}
|
}
|
||||||
if (item.coupon != undefined && item.coupon_data != undefined) {
|
if (item.coupon != undefined && item.coupon_data != undefined) {
|
||||||
item.coupon_data.forEach((couponItem, couponIndex) => {
|
item.coupon_data.forEach((couponItem, couponIndex) => {
|
||||||
|
|
|
||||||
|
|
@ -568,7 +568,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="order-cell" v-if="orderData.balance_money > 0">
|
<view class="order-cell" v-if="orderData.balance_money > 0">
|
||||||
<text class="tit">使用消费券</text>
|
<text class="tit">使用余额</text>
|
||||||
<view class="box align-right">
|
<view class="box align-right">
|
||||||
<text class="color-base-text price-font">
|
<text class="color-base-text price-font">
|
||||||
<text class="operator">-</text>
|
<text class="operator">-</text>
|
||||||
|
|
@ -578,7 +578,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="order-cell" v-if="orderData.point_money > 0">
|
<view class="order-cell" v-if="orderData.point_money > 0">
|
||||||
<text class="tit">兑换券抵扣</text>
|
<text class="tit">积分抵扣</text>
|
||||||
<view class="box align-right">
|
<view class="box align-right">
|
||||||
<text class="color-base-text price-font">
|
<text class="color-base-text price-font">
|
||||||
<text class="operator">-</text>
|
<text class="operator">-</text>
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
<view>
|
<view>
|
||||||
<text class="goods-price color-base-text">
|
<text class="goods-price color-base-text">
|
||||||
<text>
|
<text>
|
||||||
<text>{{ orderData.point }}兑换券</text>
|
<text>{{ orderData.point }}积分</text>
|
||||||
<text v-if="orderData.price > 0" class="price-color">
|
<text v-if="orderData.price > 0" class="price-color">
|
||||||
+
|
+
|
||||||
<text class="unit">{{ $lang('common.currencySymbol') }}</text>
|
<text class="unit">{{ $lang('common.currencySymbol') }}</text>
|
||||||
|
|
@ -93,7 +93,7 @@
|
||||||
<!-- 订单金额 -->
|
<!-- 订单金额 -->
|
||||||
<view class="order-money">
|
<view class="order-money">
|
||||||
<view class="order-cell" v-if="orderData.point > 0">
|
<view class="order-cell" v-if="orderData.point > 0">
|
||||||
<text class="tit">使用兑换券</text>
|
<text class="tit">使用积分</text>
|
||||||
<view class="box align-right">
|
<view class="box align-right">
|
||||||
<text class="color-base-text price-font">
|
<text class="color-base-text price-font">
|
||||||
<text>{{ orderData.point }}</text>
|
<text>{{ orderData.point }}</text>
|
||||||
|
|
|
||||||
|
|
@ -70,9 +70,9 @@ export default {
|
||||||
content.mansong += ';' + '满' + item.limit + limit + text;
|
content.mansong += ';' + '满' + item.limit + limit + text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 满送兑换券
|
// 满送积分
|
||||||
if (item.point) {
|
if (item.point) {
|
||||||
let point_text = '可得' + item.point + '兑换券';
|
let point_text = '可得' + item.point + '积分';
|
||||||
if(content.point_text == undefined) {
|
if(content.point_text == undefined) {
|
||||||
content.point_text = '购物满' + item.limit + limit + point_text
|
content.point_text = '购物满' + item.limit + limit + point_text
|
||||||
}else {
|
}else {
|
||||||
|
|
|
||||||
|
|
@ -427,7 +427,7 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 使用消费券
|
// 使用余额
|
||||||
useBalance() {
|
useBalance() {
|
||||||
if (this.is_balance) {
|
if (this.is_balance) {
|
||||||
this.is_balance = 0;
|
this.is_balance = 0;
|
||||||
|
|
@ -603,7 +603,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
// 消费券抵扣
|
// 余额抵扣
|
||||||
balanceDeduct() {
|
balanceDeduct() {
|
||||||
if (this.info.member_info) {
|
if (this.info.member_info) {
|
||||||
if (this.info.is_balance == 1) {
|
if (this.info.is_balance == 1) {
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
<text class="tx-to" v-else-if="!isBalance">请添加提现账户</text>
|
<text class="tx-to" v-else-if="!isBalance">请添加提现账户</text>
|
||||||
<view class="tx-wrap" v-else="isBalance">
|
<view class="tx-wrap" v-else="isBalance">
|
||||||
<text class="tx-to">提现到</text>
|
<text class="tx-to">提现到</text>
|
||||||
<view class="tx-bank">消费券</view>
|
<view class="tx-bank">余额</view>
|
||||||
<view class="tx-img">
|
<view class="tx-img">
|
||||||
<image :src="$util.img('public/uniapp/member/apply_withdrawal/tixian.png')" mode="widthFix"></image>
|
<image :src="$util.img('public/uniapp/member/apply_withdrawal/tixian.png')" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -146,7 +146,7 @@ export default {
|
||||||
if(res.data)
|
if(res.data)
|
||||||
this.bankAccountInfo = res.data;
|
this.bankAccountInfo = res.data;
|
||||||
else if(this.payList && this.payList.balance){
|
else if(this.payList && this.payList.balance){
|
||||||
// 如果信息为空,将默认为消费券
|
// 如果信息为空,将默认为余额
|
||||||
this.isBalance = 1;
|
this.isBalance = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -206,7 +206,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
let withdrawType = this.isBalance ? 'balance' : this.bankAccountInfo.withdraw_type;
|
let withdrawType = this.isBalance ? 'balance' : this.bankAccountInfo.withdraw_type;
|
||||||
let branchBankName = this.isBalance ? "消费券" : this.bankAccountInfo.branch_bank_name;
|
let branchBankName = this.isBalance ? "余额" : this.bankAccountInfo.branch_bank_name;
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
// this.subscribeMessage(() => {
|
// this.subscribeMessage(() => {
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
<view class="cont">
|
<view class="cont">
|
||||||
<view class="detailed-item" v-for="(item, index) in withdrawList" :key="index" @click="toDetail(item.id)">
|
<view class="detailed-item" v-for="(item, index) in withdrawList" :key="index" @click="toDetail(item.id)">
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<view class="event">{{ item.transfer_type=='balance'&&'消费券' || item.transfer_type=='alipay'&&'支付宝' || item.transfer_type=='bank'&&'银行卡' || item.transfer_type=='wechatpay'&&'微信' }}</view>
|
<view class="event">{{ item.transfer_type=='balance'&&'余额' || item.transfer_type=='alipay'&&'支付宝' || item.transfer_type=='bank'&&'银行卡' || item.transfer_type=='wechatpay'&&'微信' }}</view>
|
||||||
<view>
|
<view>
|
||||||
<text class="time">{{ $util.timeStampTurnTime(item.create_time) }}</text>
|
<text class="time">{{ $util.timeStampTurnTime(item.create_time) }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<!--搜索-->
|
<!--搜索-->
|
||||||
<view class="cate-search">
|
<view class="cate-search">
|
||||||
<view class="search-box">
|
<view class="search-box">
|
||||||
<input class="uni-input" maxlength="50" v-model="searchText" confirm-type="search" placeholder="请输入商品名称/订单编号" @confirm="search()"/>
|
<input class="uni-input" maxlength="50" v-model="searchText" confirm-type="search" placeholder="请输入订单编号" @confirm="search()"/>
|
||||||
<text class="iconfont icon-sousuo3" @click="search()"></text>
|
<text class="iconfont icon-sousuo3" @click="search()"></text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<block v-if="gameInfo.status == 1">
|
<block v-if="gameInfo.status == 1">
|
||||||
<view class="text">刮开试试手气</view>
|
<view class="text">刮开试试手气</view>
|
||||||
<view class="btn color-base-bg" :class="{ disabled: gameInfo.surplus_num == 0 }" @click="lottery">
|
<view class="btn color-base-bg" :class="{ disabled: gameInfo.surplus_num == 0 }" @click="lottery">
|
||||||
点我刮奖{{ '(' + gameInfo.points + '兑换券)' }}
|
点我刮奖{{ '(' + gameInfo.points + '积分)' }}
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<block v-else-if="gameInfo.status == 0"><view class="text">活动尚未开始</view></block>
|
<block v-else-if="gameInfo.status == 0"><view class="text">活动尚未开始</view></block>
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- 操作 -->
|
<!-- 操作 -->
|
||||||
<view class="action-text">
|
<view class="action-text">
|
||||||
<view class="point">我的兑换券:{{ point }}</view>
|
<view class="point">我的积分:{{ point }}</view>
|
||||||
<view class="record" @click="$util.redirectTo('/pages_promotion/game/record', { id: id })">我的中奖记录</view>
|
<view class="record" @click="$util.redirectTo('/pages_promotion/game/record', { id: id })">我的中奖记录</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 中奖名单 -->
|
<!-- 中奖名单 -->
|
||||||
|
|
@ -87,7 +87,7 @@
|
||||||
<view class="tit">参与规则</view>
|
<view class="tit">参与规则</view>
|
||||||
<view class="text" v-if="gameInfo.join_type == 0">每个用户活动期间共有{{ gameInfo.join_frequency }}次抽奖机会。</view>
|
<view class="text" v-if="gameInfo.join_type == 0">每个用户活动期间共有{{ gameInfo.join_frequency }}次抽奖机会。</view>
|
||||||
<view class="text" v-else>每个用户活动期间每天都有{{ gameInfo.join_frequency }}次抽奖机会,每天0点更新。</view>
|
<view class="text" v-else>每个用户活动期间每天都有{{ gameInfo.join_frequency }}次抽奖机会,每天0点更新。</view>
|
||||||
<view class="text">每次抽奖需消耗 {{ gameInfo.points }} 兑换券</view>
|
<view class="text">每次抽奖需消耗 {{ gameInfo.points }} 积分</view>
|
||||||
<view class="text" v-if="gameInfo.level_id != 0">该活动只有{{ gameInfo.level_name }}等级的会员可参与。</view>
|
<view class="text" v-if="gameInfo.level_id != 0">该活动只有{{ gameInfo.level_name }}等级的会员可参与。</view>
|
||||||
<block v-if="gameInfo.remark != ''">
|
<block v-if="gameInfo.remark != ''">
|
||||||
<view class="tit">活动说明</view>
|
<view class="tit">活动说明</view>
|
||||||
|
|
@ -303,7 +303,7 @@ export default {
|
||||||
}
|
}
|
||||||
if (this.gameInfo.points > 0 && this.point < this.gameInfo.points) {
|
if (this.gameInfo.points > 0 && this.point < this.gameInfo.points) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '兑换券不足'
|
title: '积分不足'
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -332,7 +332,7 @@ export default {
|
||||||
.exec();
|
.exec();
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
// 扣除次数 兑换券
|
// 扣除次数 积分
|
||||||
this.point -= this.gameInfo.points;
|
this.point -= this.gameInfo.points;
|
||||||
this.gameInfo.surplus_num -= 1;
|
this.gameInfo.surplus_num -= 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="name">{{ item.award_name }}</view>
|
<view class="name">{{ item.award_name }}</view>
|
||||||
<view class="cont font-size-goods-tag" v-if="item.award_type == 1">奖励详情:{{ item.point }}个兑换券</view>
|
<view class="cont font-size-goods-tag" v-if="item.award_type == 1">奖励详情:{{ item.point }}个积分</view>
|
||||||
<view class="cont font-size-goods-tag" v-if="item.award_type == 2">奖励详情:{{ item.balance }}元红包</view>
|
<view class="cont font-size-goods-tag" v-if="item.award_type == 2">奖励详情:{{ item.balance }}元红包</view>
|
||||||
<view class="cont font-size-goods-tag" v-if="item.award_type == 3">奖励详情:优惠券“{{ item.relate_name }}”</view>
|
<view class="cont font-size-goods-tag" v-if="item.award_type == 3">奖励详情:优惠券“{{ item.relate_name }}”</view>
|
||||||
<view class="time font-size-goods-tag">中奖时间:{{ $util.timeStampTurnTime(item.create_time) }}</view>
|
<view class="time font-size-goods-tag">中奖时间:{{ $util.timeStampTurnTime(item.create_time) }}</view>
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
<!-- 操作 -->
|
<!-- 操作 -->
|
||||||
<view class="action-text">
|
<view class="action-text">
|
||||||
<view class="point">我的兑换券:{{ point }}</view>
|
<view class="point">我的积分:{{ point }}</view>
|
||||||
<view class="record" @click="$util.redirectTo('/pages_promotion/game/record', { id: id })">我的中奖记录</view>
|
<view class="record" @click="$util.redirectTo('/pages_promotion/game/record', { id: id })">我的中奖记录</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
@ -70,7 +70,7 @@
|
||||||
<image :src="$util.img('public/uniapp/game/coupon.png')" mode="widthFix" v-if="result.award_type == 3" class="look"></image>
|
<image :src="$util.img('public/uniapp/game/coupon.png')" mode="widthFix" v-if="result.award_type == 3" class="look"></image>
|
||||||
<image :src="$util.img('public/uniapp/game/gift.png')" mode="widthFix" v-if="result.award_type == 4" class="look"></image>
|
<image :src="$util.img('public/uniapp/game/gift.png')" mode="widthFix" v-if="result.award_type == 4" class="look"></image>
|
||||||
|
|
||||||
<view class="msg" v-if="result.award_type == 1">恭喜您抽中{{ result.point }}个兑换券</view>
|
<view class="msg" v-if="result.award_type == 1">恭喜您抽中{{ result.point }}个积分</view>
|
||||||
<view class="msg" v-if="result.award_type == 2">恭喜您抽中{{ result.balance }}元红包</view>
|
<view class="msg" v-if="result.award_type == 2">恭喜您抽中{{ result.balance }}元红包</view>
|
||||||
<view class="msg" v-if="result.award_type == 3">恭喜您抽中优惠券“{{ result.relate_name }}”</view>
|
<view class="msg" v-if="result.award_type == 3">恭喜您抽中优惠券“{{ result.relate_name }}”</view>
|
||||||
|
|
||||||
|
|
@ -103,7 +103,7 @@
|
||||||
<view class="tit">参与规则</view>
|
<view class="tit">参与规则</view>
|
||||||
<view class="text" v-if="gameInfo.join_type == 0">每个用户活动期间共有{{ gameInfo.join_frequency }}次抽奖机会。</view>
|
<view class="text" v-if="gameInfo.join_type == 0">每个用户活动期间共有{{ gameInfo.join_frequency }}次抽奖机会。</view>
|
||||||
<view class="text" v-else>每个用户活动期间每天都有{{ gameInfo.join_frequency }}次抽奖机会,每天0点更新。</view>
|
<view class="text" v-else>每个用户活动期间每天都有{{ gameInfo.join_frequency }}次抽奖机会,每天0点更新。</view>
|
||||||
<view class="text">每次抽奖需消耗 {{ gameInfo.points }} 兑换券</view>
|
<view class="text">每次抽奖需消耗 {{ gameInfo.points }} 积分</view>
|
||||||
<view class="text" v-if="gameInfo.level_id != 0">该活动只有{{ gameInfo.level_name }}等级的会员可参与。</view>
|
<view class="text" v-if="gameInfo.level_id != 0">该活动只有{{ gameInfo.level_name }}等级的会员可参与。</view>
|
||||||
<block v-if="gameInfo.remark != ''">
|
<block v-if="gameInfo.remark != ''">
|
||||||
<view class="tit">活动说明</view>
|
<view class="tit">活动说明</view>
|
||||||
|
|
@ -284,7 +284,7 @@ export default {
|
||||||
|
|
||||||
if (this.gameInfo.points > 0 && this.point < this.gameInfo.points) {
|
if (this.gameInfo.points > 0 && this.point < this.gameInfo.points) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '兑换券不足'
|
title: '积分不足'
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -301,7 +301,7 @@ export default {
|
||||||
this.result = res.data;
|
this.result = res.data;
|
||||||
this.start();
|
this.start();
|
||||||
|
|
||||||
// 扣除次数 兑换券
|
// 扣除次数 积分
|
||||||
this.point -= this.gameInfo.points;
|
this.point -= this.gameInfo.points;
|
||||||
this.gameInfo.surplus_num -= 1;
|
this.gameInfo.surplus_num -= 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="action-text">
|
<view class="action-text">
|
||||||
<view class="point">我的兑换券:{{ point }}</view>
|
<view class="point">我的积分:{{ point }}</view>
|
||||||
<view class="record" @click="$util.redirectTo('/pages_promotion/game/record', { id: id })">我的中奖记录</view>
|
<view class="record" @click="$util.redirectTo('/pages_promotion/game/record', { id: id })">我的中奖记录</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 中奖名单 -->
|
<!-- 中奖名单 -->
|
||||||
|
|
@ -94,7 +94,7 @@
|
||||||
<view class="tit">参与规则</view>
|
<view class="tit">参与规则</view>
|
||||||
<view class="text" v-if="gameInfo.join_type == 0">每个用户活动期间共有{{ gameInfo.join_frequency }}次抽奖机会。</view>
|
<view class="text" v-if="gameInfo.join_type == 0">每个用户活动期间共有{{ gameInfo.join_frequency }}次抽奖机会。</view>
|
||||||
<view class="text" v-else>每个用户活动期间每天都有{{ gameInfo.join_frequency }}次抽奖机会,每天0点更新。</view>
|
<view class="text" v-else>每个用户活动期间每天都有{{ gameInfo.join_frequency }}次抽奖机会,每天0点更新。</view>
|
||||||
<view class="text">每次抽奖需消耗 {{ gameInfo.points }} 兑换券</view>
|
<view class="text">每次抽奖需消耗 {{ gameInfo.points }} 积分</view>
|
||||||
<view class="text" v-if="gameInfo.level_id != 0">该活动只有{{ gameInfo.level_name }}等级的会员可参与。</view>
|
<view class="text" v-if="gameInfo.level_id != 0">该活动只有{{ gameInfo.level_name }}等级的会员可参与。</view>
|
||||||
<block v-if="gameInfo.remark != ''">
|
<block v-if="gameInfo.remark != ''">
|
||||||
<view class="tit">活动说明</view>
|
<view class="tit">活动说明</view>
|
||||||
|
|
@ -284,7 +284,7 @@ export default {
|
||||||
}
|
}
|
||||||
if (this.gameInfo.points > 0 && this.point < this.gameInfo.points) {
|
if (this.gameInfo.points > 0 && this.point < this.gameInfo.points) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '兑换券不足'
|
title: '积分不足'
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -312,7 +312,7 @@ export default {
|
||||||
this.resultIndex = this.$util.inArray(-1, this.award);
|
this.resultIndex = this.$util.inArray(-1, this.award);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 扣除次数 兑换券
|
// 扣除次数 积分
|
||||||
this.point -= this.gameInfo.points;
|
this.point -= this.gameInfo.points;
|
||||||
this.gameInfo.surplus_num -= 1;
|
this.gameInfo.surplus_num -= 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -395,7 +395,7 @@ export default {
|
||||||
calculateGoodsData() {
|
calculateGoodsData() {
|
||||||
if (this.calculateData) return this.calculateData.shop_goods_list;
|
if (this.calculateData) return this.calculateData.shop_goods_list;
|
||||||
},
|
},
|
||||||
// 消费券可抵扣金额
|
// 余额可抵扣金额
|
||||||
balanceDeduct() {
|
balanceDeduct() {
|
||||||
if (this.calculateData) {
|
if (this.calculateData) {
|
||||||
if (this.calculateData.member_account.balance_total <= parseFloat(this.calculateData.order_money).toFixed(2)) {
|
if (this.calculateData.member_account.balance_total <= parseFloat(this.calculateData.order_money).toFixed(2)) {
|
||||||
|
|
@ -1065,7 +1065,7 @@ export default {
|
||||||
this.calculate();
|
this.calculate();
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 使用兑换券抵扣
|
* 使用积分抵扣
|
||||||
*/
|
*/
|
||||||
usePoint() {
|
usePoint() {
|
||||||
this.orderCreateData.is_point = this.orderCreateData.is_point ? 0 : 1;
|
this.orderCreateData.is_point = this.orderCreateData.is_point ? 0 : 1;
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
<text class="price-symbol color-base-text">{{ $lang('common.currencySymbol') }}</text>
|
<text class="price-symbol color-base-text">{{ $lang('common.currencySymbol') }}</text>
|
||||||
<text class="price color-base-text">{{ goodsSkuDetail.promotion_price }}</text> -->
|
<text class="price color-base-text">{{ goodsSkuDetail.promotion_price }}</text> -->
|
||||||
拼中得商品,未拼中
|
拼中得商品,未拼中
|
||||||
<text class="" v-if="goodsSkuDetail.reward_type == 4">返{{ goodsSkuDetail.reward_type_num }}兑换券</text>
|
<text class="" v-if="goodsSkuDetail.reward_type == 4">返{{ goodsSkuDetail.reward_type_num }}积分</text>
|
||||||
<text class="" v-if="goodsSkuDetail.reward_type == 1 || goodsSkuDetail.reward_type == 2">返¥{{ goodsSkuDetail.reward_type_num }}</text>
|
<text class="" v-if="goodsSkuDetail.reward_type == 1 || goodsSkuDetail.reward_type == 2">返¥{{ goodsSkuDetail.reward_type_num }}</text>
|
||||||
<text class="" v-if="goodsSkuDetail.reward_type == 3">返优惠券</text>
|
<text class="" v-if="goodsSkuDetail.reward_type == 3">返优惠券</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -108,7 +108,7 @@
|
||||||
<view>
|
<view>
|
||||||
未拼中获得奖励
|
未拼中获得奖励
|
||||||
<view class="color-base-text">
|
<view class="color-base-text">
|
||||||
<text class="font-size-activity-tag" v-if="goodsSkuDetail.reward_type == 4">返{{ goodsSkuDetail.reward_type_num }}兑换券</text>
|
<text class="font-size-activity-tag" v-if="goodsSkuDetail.reward_type == 4">返{{ goodsSkuDetail.reward_type_num }}积分</text>
|
||||||
<text class="font-size-activity-tag" v-if="goodsSkuDetail.reward_type == 1 || goodsSkuDetail.reward_type == 2">
|
<text class="font-size-activity-tag" v-if="goodsSkuDetail.reward_type == 1 || goodsSkuDetail.reward_type == 2">
|
||||||
返¥{{ goodsSkuDetail.reward_type_num }}
|
返¥{{ goodsSkuDetail.reward_type_num }}
|
||||||
</text>
|
</text>
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@
|
||||||
人拼团,
|
人拼团,
|
||||||
<text class="color-base-text">{{ item.chengtuan_num }}</text>
|
<text class="color-base-text">{{ item.chengtuan_num }}</text>
|
||||||
人拼中,未拼中返
|
人拼中,未拼中返
|
||||||
<text class="color-base-text" v-if="item.reward_type == 4">{{ item.reward_type_num }}兑换券</text>
|
<text class="color-base-text" v-if="item.reward_type == 4">{{ item.reward_type_num }}积分</text>
|
||||||
<text class="color-base-text" v-if="item.reward_type == 1 || item.reward_type == 2">¥{{ item.reward_type_num }}</text>
|
<text class="color-base-text" v-if="item.reward_type == 1 || item.reward_type == 2">¥{{ item.reward_type_num }}</text>
|
||||||
<text class="color-base-text" v-if="item.reward_type == 3">优惠券</text>
|
<text class="color-base-text" v-if="item.reward_type == 3">优惠券</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="group-wrap padding-top">
|
<view class="group-wrap padding-top">
|
||||||
<view class="goods-module-wrap">
|
<view class="goods-module-wrap">
|
||||||
<text class="price-symbol ">{{ pointInfo.point }}兑换券</text>
|
<text class="price-symbol ">{{ pointInfo.point }}积分</text>
|
||||||
<template v-if="pointInfo.exchange_price != '0.00' && pointInfo.pay_type > 0">
|
<template v-if="pointInfo.exchange_price != '0.00' && pointInfo.pay_type > 0">
|
||||||
<text class="price-symbol ">+{{ $lang('common.currencySymbol') }}{{ pointInfo.exchange_price }}</text>
|
<text class="price-symbol ">+{{ $lang('common.currencySymbol') }}{{ pointInfo.exchange_price }}</text>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -191,7 +191,7 @@
|
||||||
<view class="detail-swap" @click="exchange()" :class="{ 'position-bottom': isIphoneX }" v-if="!isLogin"><button disabled>登录之后方可兑换</button></view>
|
<view class="detail-swap" @click="exchange()" :class="{ 'position-bottom': isIphoneX }" v-if="!isLogin"><button disabled>登录之后方可兑换</button></view>
|
||||||
<block v-else>
|
<block v-else>
|
||||||
<view class="detail-swap" :class="{ 'position-bottom': isIphoneX }" v-if="pointInfo.stock == 0"><button disabled>库存不足</button></view>
|
<view class="detail-swap" :class="{ 'position-bottom': isIphoneX }" v-if="pointInfo.stock == 0"><button disabled>库存不足</button></view>
|
||||||
<view class="detail-swap" :class="{ 'position-bottom': isIphoneX }" v-else-if="enough"><button disabled>兑换券不足</button></view>
|
<view class="detail-swap" :class="{ 'position-bottom': isIphoneX }" v-else-if="enough"><button disabled>积分不足</button></view>
|
||||||
<view class="detail-swap" @click="exchange()" :class="{ 'position-bottom': isIphoneX }" v-else><button type="primary" hover-class="none">兑换</button></view>
|
<view class="detail-swap" @click="exchange()" :class="{ 'position-bottom': isIphoneX }" v-else><button type="primary" hover-class="none">兑换</button></view>
|
||||||
</block>
|
</block>
|
||||||
|
|
||||||
|
|
@ -280,7 +280,7 @@ export default {
|
||||||
imageUrl = this.pointInfo.image;
|
imageUrl = this.pointInfo.image;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
title = '仅需' + this.pointInfo.point + '兑换券即可兑换' + title;
|
title = '仅需' + this.pointInfo.point + '积分即可兑换' + title;
|
||||||
imageUrl = this.$util.img(imageUrl);
|
imageUrl = this.$util.img(imageUrl);
|
||||||
var route = this.$util.getCurrentShareRoute(this.memberId);
|
var route = this.$util.getCurrentShareRoute(this.memberId);
|
||||||
var path = route.path;
|
var path = route.path;
|
||||||
|
|
@ -309,7 +309,7 @@ export default {
|
||||||
imageUrl = this.pointInfo.image;
|
imageUrl = this.pointInfo.image;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
title = '仅需' + this.pointInfo.point + '兑换券即可兑换' + title;
|
title = '仅需' + this.pointInfo.point + '积分即可兑换' + title;
|
||||||
imageUrl = this.$util.img(imageUrl);
|
imageUrl = this.$util.img(imageUrl);
|
||||||
var route = this.$util.getCurrentShareRoute(this.memberId);
|
var route = this.$util.getCurrentShareRoute(this.memberId);
|
||||||
var query = route.query;
|
var query = route.query;
|
||||||
|
|
@ -337,7 +337,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//获取个人兑换券信息
|
//获取个人积分信息
|
||||||
getAccountInfo(e, f) {
|
getAccountInfo(e, f) {
|
||||||
if (uni.getStorageSync('token')) {
|
if (uni.getStorageSync('token')) {
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
<text :class="{ 'color-base-text': order === '' }">综合</text>
|
<text :class="{ 'color-base-text': order === '' }">综合</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="price-wrap" @click="sortTabClick('point')">
|
<view class="price-wrap" @click="sortTabClick('point')">
|
||||||
<text :class="{ 'color-base-text': order === 'point' }">兑换券</text>
|
<text :class="{ 'color-base-text': order === 'point' }">积分</text>
|
||||||
<view class="iconfont-wrap">
|
<view class="iconfont-wrap">
|
||||||
<view class="iconfont icon-shangsanjiao-copy"
|
<view class="iconfont icon-shangsanjiao-copy"
|
||||||
:class="{ 'color-base-text': priceOrder === 'asc' && order === 'point' }"></view>
|
:class="{ 'color-base-text': priceOrder === 'asc' && order === 'point' }"></view>
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
<view class="lineheight-clear">
|
<view class="lineheight-clear">
|
||||||
<view class="discount-price">
|
<view class="discount-price">
|
||||||
<text class="unit ">{{ item.point }}</text>
|
<text class="unit ">{{ item.point }}</text>
|
||||||
<text class="unit font-size-tag">兑换券</text>
|
<text class="unit font-size-tag">积分</text>
|
||||||
<block v-if="item.price > 0 && item.pay_type > 0">
|
<block v-if="item.price > 0 && item.pay_type > 0">
|
||||||
<text class="unit font-size-tag">+</text>
|
<text class="unit font-size-tag">+</text>
|
||||||
<text class="unit font-size-tag">{{ $lang('common.currencySymbol') }}</text>
|
<text class="unit font-size-tag">{{ $lang('common.currencySymbol') }}</text>
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="empty" v-if="goodsList.length == 0">
|
<view class="empty" v-if="goodsList.length == 0">
|
||||||
<ns-empty :isIndex="false" text="暂无兑换券商品"></ns-empty>
|
<ns-empty :isIndex="false" text="暂无积分商品"></ns-empty>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
|
|
@ -89,7 +89,7 @@
|
||||||
<scroll-view scroll-y>
|
<scroll-view scroll-y>
|
||||||
<!-- 价格筛选项 -->
|
<!-- 价格筛选项 -->
|
||||||
<view class="item-wrap">
|
<view class="item-wrap">
|
||||||
<view class="label"><text>兑换券区间</text></view>
|
<view class="label"><text>积分区间</text></view>
|
||||||
<view class="price-wrap">
|
<view class="price-wrap">
|
||||||
<input class="uni-input" type="digit" v-model="minPoint" placeholder="最低" />
|
<input class="uni-input" type="digit" v-model="minPoint" placeholder="最低" />
|
||||||
<view class="h-line"></view>
|
<view class="h-line"></view>
|
||||||
|
|
@ -162,7 +162,7 @@
|
||||||
this.loadCategoryList(this.categoryId);
|
this.loadCategoryList(this.categoryId);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//获取兑换券商品详情
|
//获取积分商品详情
|
||||||
getData(mescroll) {
|
getData(mescroll) {
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
url: '/pointexchange/api/goods/page',
|
url: '/pointexchange/api/goods/page',
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
<view class="wrap" :class="{ 'no-login': !token }">
|
<view class="wrap" :class="{ 'no-login': !token }">
|
||||||
<view v-if="!token" @click="login">
|
<view v-if="!token" @click="login">
|
||||||
<view class="lineheight-clear"><text class="font-size-toolbar login-btn">立即登录</text></view>
|
<view class="lineheight-clear"><text class="font-size-toolbar login-btn">立即登录</text></view>
|
||||||
<view class="lineheight-clear"><text class="font-size-tag">登录后查看我的兑换券</text></view>
|
<view class="lineheight-clear"><text class="font-size-tag">登录后查看我的积分</text></view>
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="member-wrap">
|
<view v-else class="member-wrap">
|
||||||
<view class="headimg">
|
<view class="headimg">
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
></image>
|
></image>
|
||||||
</view>
|
</view>
|
||||||
<text class="point">{{ point }}</text>
|
<text class="point">{{ point }}</text>
|
||||||
<text class="point-name">兑换券</text>
|
<text class="point-name">积分</text>
|
||||||
<view class="rule">
|
<view class="rule">
|
||||||
<!-- <text class="iconfont icon-wenhao"></text>-->
|
<!-- <text class="iconfont icon-wenhao"></text>-->
|
||||||
<!-- <text class="font-size-tag" @click="openPointPopup()">兑换规则</text>-->
|
<!-- <text class="font-size-tag" @click="openPointPopup()">兑换规则</text>-->
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="action-wrap" v-if="token">
|
<view class="action-wrap" v-if="token">
|
||||||
<view @click="jumpPage('/pages_tool/member/point')">
|
<view @click="jumpPage('/pages_tool/member/point')">
|
||||||
兑换券明细
|
积分明细
|
||||||
<text class="iconfont icon-right"></text>
|
<text class="iconfont icon-right"></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="split"></view>
|
<view class="split"></view>
|
||||||
|
|
@ -46,24 +46,24 @@
|
||||||
<view class="account-content">
|
<view class="account-content">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<image :src="$util.img('public/uniapp/point/point-icon.png')" mode="widthFix"></image>
|
<image :src="$util.img('public/uniapp/point/point-icon.png')" mode="widthFix"></image>
|
||||||
<view>我的兑换券</view>
|
<view>我的积分</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="right" @click="jumpPage('/pages_tool/member/point')">
|
<view class="right" @click="jumpPage('/pages_tool/member/point')">
|
||||||
<text class="color-base-text point">{{point}}</text>
|
<text class="color-base-text point">{{point}}</text>
|
||||||
<text class="text">兑换券</text>
|
<text class="text">积分</text>
|
||||||
<text class="iconfont iconright"></text>
|
<text class="iconfont iconright"></text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="remark">
|
<view class="remark">
|
||||||
<view class="label">提醒</view>
|
<view class="label">提醒</view>
|
||||||
<view class="text">兑换券兑好礼,每日上新换不停!</view>
|
<view class="text">积分兑好礼,每日上新换不停!</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="body-wrap" :class="{ 'no-login': !token }">
|
<view class="body-wrap" :class="{ 'no-login': !token }">
|
||||||
<view class="point-exchange-wrap" v-if="couponList.length > 0">
|
<view class="point-exchange-wrap" v-if="couponList.length > 0">
|
||||||
<view class="type-wrap">
|
<view class="type-wrap">
|
||||||
<text class="type-name">兑换券换券</text>
|
<text class="type-name">积分换券</text>
|
||||||
<view></view>
|
<view></view>
|
||||||
<text class="type-sub">更多好券,帮你省钱</text>
|
<text class="type-sub">更多好券,帮你省钱</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -84,7 +84,7 @@
|
||||||
<view class="coupon-point">
|
<view class="coupon-point">
|
||||||
<view class="coupon-point-num">
|
<view class="coupon-point-num">
|
||||||
<image :src="$util.img('public/uniapp/point/rechange.png')"></image>
|
<image :src="$util.img('public/uniapp/point/rechange.png')"></image>
|
||||||
<text>{{couponItem.point}}兑换券兑换</text>
|
<text>{{couponItem.point}}积分兑换</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="coupon-conditions">
|
<view class="coupon-conditions">
|
||||||
{{couponItem.at_least == 0 ? '无门槛优惠券' : '满'+ parseFloat(couponItem.at_least).toFixed(0) +'可用'}}
|
{{couponItem.at_least == 0 ? '无门槛优惠券' : '满'+ parseFloat(couponItem.at_least).toFixed(0) +'可用'}}
|
||||||
|
|
@ -110,7 +110,7 @@
|
||||||
<view class="coupon_type font-size-activity-tag color-base-text">{{ couponItem.goods_type == 2 ? '指定券' : '全场券' }}</view>
|
<view class="coupon_type font-size-activity-tag color-base-text">{{ couponItem.goods_type == 2 ? '指定券' : '全场券' }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="coupon_right">
|
<view class="coupon_right">
|
||||||
<view class="coupon_num color-base-text font-size-tag">{{ couponItem.point }}兑换券</view>
|
<view class="coupon_num color-base-text font-size-tag">{{ couponItem.point }}积分</view>
|
||||||
<view class="coupon_btn color-base-text">兑换</view>
|
<view class="coupon_btn color-base-text">兑换</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -122,7 +122,7 @@
|
||||||
|
|
||||||
<view class="point-exchange-wrap" v-if="hongbaoList.length > 0">
|
<view class="point-exchange-wrap" v-if="hongbaoList.length > 0">
|
||||||
<view class="type-wrap">
|
<view class="type-wrap">
|
||||||
<text class="type-name">兑换券换红包</text>
|
<text class="type-name">积分换红包</text>
|
||||||
<view></view>
|
<view></view>
|
||||||
<text class="type-sub">红包在手,省钱有道</text>
|
<text class="type-sub">红包在手,省钱有道</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -145,7 +145,7 @@
|
||||||
<view class="coupon_condition font-size-activity-tag">{{ hongbaoItem.name }}</view>
|
<view class="coupon_condition font-size-activity-tag">{{ hongbaoItem.name }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="coupon_right">
|
<view class="coupon_right">
|
||||||
<view class="coupon_num font-size-tag">{{ hongbaoItem.point }}兑换券</view>
|
<view class="coupon_num font-size-tag">{{ hongbaoItem.point }}积分</view>
|
||||||
<view class="coupon_btn">兑换</view>
|
<view class="coupon_btn">兑换</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -172,7 +172,7 @@
|
||||||
<view class="lineheight-clear">
|
<view class="lineheight-clear">
|
||||||
<view class="discount-price">
|
<view class="discount-price">
|
||||||
<text class="unit price-font point">{{ item.point }}</text>
|
<text class="unit price-font point">{{ item.point }}</text>
|
||||||
<text class="unit font-size-tag ">兑换券</text>
|
<text class="unit font-size-tag ">积分</text>
|
||||||
<block v-if="item.price > 0 && item.pay_type > 0">
|
<block v-if="item.price > 0 && item.pay_type > 0">
|
||||||
<text class="unit font-size-tag">+</text>
|
<text class="unit font-size-tag">+</text>
|
||||||
<text class="unit font-size-tag" >{{ parseFloat(item.price).toFixed(2).split(".")[0] }}</text>
|
<text class="unit font-size-tag" >{{ parseFloat(item.price).toFixed(2).split(".")[0] }}</text>
|
||||||
|
|
@ -199,20 +199,20 @@
|
||||||
<uni-popup ref="pointPopup" type="bottom">
|
<uni-popup ref="pointPopup" type="bottom">
|
||||||
<view class="tips-layer">
|
<view class="tips-layer">
|
||||||
<view class="head" @click="closePointPopup()">
|
<view class="head" @click="closePointPopup()">
|
||||||
<view class="title">兑换券说明</view>
|
<view class="title">积分说明</view>
|
||||||
<text class="iconfont icon-close"></text>
|
<text class="iconfont icon-close"></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="body">
|
<view class="body">
|
||||||
<view class="detail margin-bottom">
|
<view class="detail margin-bottom">
|
||||||
<view class="tip">兑换券的获取</view>
|
<view class="tip">积分的获取</view>
|
||||||
<view class="font-size-base">1、兑换券可在注册、签到、分享、消费、充值时获得。</view>
|
<view class="font-size-base">1、积分可在注册、签到、分享、消费、充值时获得。</view>
|
||||||
<view class="font-size-base">2、在购买部分商品时可获得兑换券。</view>
|
<view class="font-size-base">2、在购买部分商品时可获得积分。</view>
|
||||||
<view class="tip">兑换券的使用</view>
|
<view class="tip">积分的使用</view>
|
||||||
<view class="font-size-base">1、兑换券可用于兑换兑换券中心的商品。</view>
|
<view class="font-size-base">1、积分可用于兑换积分中心的商品。</view>
|
||||||
<view class="font-size-base">2、兑换券可在参与某些活动时使用。</view>
|
<view class="font-size-base">2、积分可在参与某些活动时使用。</view>
|
||||||
<view class="font-size-base">3、兑换券不得转让,出售,不设有效期。</view>
|
<view class="font-size-base">3、积分不得转让,出售,不设有效期。</view>
|
||||||
<view class="tip">兑换券的查询</view>
|
<view class="tip">积分的查询</view>
|
||||||
<view class="font-size-base">1、兑换券可在会员中心中查询具体数额以及明细。</view>
|
<view class="font-size-base">1、积分可在会员中心中查询具体数额以及明细。</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -241,15 +241,15 @@ export default {
|
||||||
categoryList: [
|
categoryList: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
name: '兑换券换好物'
|
name: '积分换好物'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
name: '兑换券换券'
|
name: '积分换券'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
name: '兑换券换红包'
|
name: '积分换红包'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
isLogin: false,
|
isLogin: false,
|
||||||
|
|
@ -294,7 +294,7 @@ export default {
|
||||||
setTimeout( () => {
|
setTimeout( () => {
|
||||||
if (this.addonIsExist && !this.addonIsExist.pointexchange) {
|
if (this.addonIsExist && !this.addonIsExist.pointexchange) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '商家未开启兑换券商城',
|
title: '商家未开启积分商城',
|
||||||
mask: true,
|
mask: true,
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
|
|
@ -349,11 +349,11 @@ export default {
|
||||||
jumpPage(url) {
|
jumpPage(url) {
|
||||||
this.$util.redirectTo(url);
|
this.$util.redirectTo(url);
|
||||||
},
|
},
|
||||||
// 打开兑换券说明弹出层
|
// 打开积分说明弹出层
|
||||||
openPointPopup() {
|
openPointPopup() {
|
||||||
this.$refs.pointPopup.open();
|
this.$refs.pointPopup.open();
|
||||||
},
|
},
|
||||||
// 打开兑换券说明弹出层
|
// 打开积分说明弹出层
|
||||||
closePointPopup() {
|
closePointPopup() {
|
||||||
this.$refs.pointPopup.close();
|
this.$refs.pointPopup.close();
|
||||||
},
|
},
|
||||||
|
|
@ -405,7 +405,7 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//获取兑换券商品详情
|
//获取积分商品详情
|
||||||
getData(mescroll) {
|
getData(mescroll) {
|
||||||
// this.mescroll = mescroll;
|
// this.mescroll = mescroll;
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
<view class="goods-sub-section">
|
<view class="goods-sub-section">
|
||||||
<text class="goods-price">
|
<text class="goods-price">
|
||||||
<text class="price-style large">{{ orderItem.point }}</text>
|
<text class="price-style large">{{ orderItem.point }}</text>
|
||||||
<text class="unit price-style small">兑换券</text>
|
<text class="unit price-style small">积分</text>
|
||||||
<block v-if="orderItem.price > 0">
|
<block v-if="orderItem.price > 0">
|
||||||
+
|
+
|
||||||
<text class="unit price-style small">{{ $lang('common.currencySymbol') }}</text>
|
<text class="unit price-style small">{{ $lang('common.currencySymbol') }}</text>
|
||||||
|
|
@ -70,7 +70,7 @@
|
||||||
</block>
|
</block>
|
||||||
<block v-if="showEmpty && !orderList.length">
|
<block v-if="showEmpty && !orderList.length">
|
||||||
<view class="cart-empty">
|
<view class="cart-empty">
|
||||||
<ns-empty :isIndex="true" :emptyBtn ="{url: '/pages_promotion/point/list',text: '去逛逛'}" text="暂无兑换券兑换订单"></ns-empty>
|
<ns-empty :isIndex="true" :emptyBtn ="{url: '/pages_promotion/point/list',text: '去逛逛'}" text="暂无积分兑换订单"></ns-empty>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</block>
|
</block>
|
||||||
|
|
@ -104,7 +104,7 @@
|
||||||
setTimeout( () => {
|
setTimeout( () => {
|
||||||
if (this.addonIsExist && !this.addonIsExist.pointexchange) {
|
if (this.addonIsExist && !this.addonIsExist.pointexchange) {
|
||||||
this.$util.showToast({
|
this.$util.showToast({
|
||||||
title: '商家未开启兑换券商城',
|
title: '商家未开启积分商城',
|
||||||
mask: true,
|
mask: true,
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@
|
||||||
<view class="goods-sub-section">
|
<view class="goods-sub-section">
|
||||||
<view v-if="orderPaymentData.exchange_info.pay_type == 1" class="color-base-text">
|
<view v-if="orderPaymentData.exchange_info.pay_type == 1" class="color-base-text">
|
||||||
<text class="goods-price">{{ orderPaymentData.exchange_info.point }}</text>
|
<text class="goods-price">{{ orderPaymentData.exchange_info.point }}</text>
|
||||||
<text class="unit">兑换券</text>
|
<text class="unit">积分</text>
|
||||||
<template v-if="orderPaymentData.exchange_info.price != '0.00'">
|
<template v-if="orderPaymentData.exchange_info.price != '0.00'">
|
||||||
<text class="unit">+{{ $lang('common.currencySymbol') }}</text>
|
<text class="unit">+{{ $lang('common.currencySymbol') }}</text>
|
||||||
<text class="goods-price">{{ orderPaymentData.exchange_info.price }}</text>
|
<text class="goods-price">{{ orderPaymentData.exchange_info.price }}</text>
|
||||||
|
|
@ -190,10 +190,10 @@
|
||||||
<!-- 金额 -->
|
<!-- 金额 -->
|
||||||
<view class="order-money">
|
<view class="order-money">
|
||||||
<view class="order-cell">
|
<view class="order-cell">
|
||||||
<text class="tit">所需兑换券</text>
|
<text class="tit">所需积分</text>
|
||||||
<view class="box">
|
<view class="box">
|
||||||
<text class="money">{{ orderPaymentData.point }}</text>
|
<text class="money">{{ orderPaymentData.point }}</text>
|
||||||
<text class="unit">兑换券</text>
|
<text class="unit">积分</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="order-cell" v-if="orderPaymentData.exchange_info.type == 1 && orderPaymentData.delivery_money > 0">
|
<view class="order-cell" v-if="orderPaymentData.exchange_info.type == 1 && orderPaymentData.delivery_money > 0">
|
||||||
|
|
@ -212,7 +212,7 @@
|
||||||
<text class="font-size-base color-tip margin-right">共{{ orderPaymentData.goods_num }}件</text>
|
<text class="font-size-base color-tip margin-right">共{{ orderPaymentData.goods_num }}件</text>
|
||||||
<text class="font-size-base">合计:</text>
|
<text class="font-size-base">合计:</text>
|
||||||
<text class="color-base-text money">{{ orderPaymentData.point }}</text>
|
<text class="color-base-text money">{{ orderPaymentData.point }}</text>
|
||||||
<text class="color-base-text unit">兑换券</text>
|
<text class="color-base-text unit">积分</text>
|
||||||
<template v-if="orderPaymentData.exchange_info.type == 1 && orderPaymentData.order_money > 0">
|
<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 unit">+{{ $lang('common.currencySymbol') }}</text>
|
||||||
<text class="color-base-text money">{{ orderPaymentData.order_money | moneyFormat }}</text>
|
<text class="color-base-text money">{{ orderPaymentData.order_money | moneyFormat }}</text>
|
||||||
|
|
|
||||||
|
|
@ -225,7 +225,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="order-cell" v-if="balanceMoney > 0">
|
<view class="order-cell" v-if="balanceMoney > 0">
|
||||||
<text class="tit">使用消费券</text>
|
<text class="tit">使用余额</text>
|
||||||
<view class="box align-right">
|
<view class="box align-right">
|
||||||
<text class="color-base-text price-font">
|
<text class="color-base-text price-font">
|
||||||
<text class="operator price-color">-</text>
|
<text class="operator price-color">-</text>
|
||||||
|
|
@ -235,7 +235,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="order-cell" v-if="orderData.point_money > 0">
|
<view class="order-cell" v-if="orderData.point_money > 0">
|
||||||
<text class="tit">兑换券抵扣</text>
|
<text class="tit">积分抵扣</text>
|
||||||
<view class="box align-right">
|
<view class="box align-right">
|
||||||
<text class="color-base-text price-font">
|
<text class="color-base-text price-font">
|
||||||
<text class="operator price-color">-</text>
|
<text class="operator price-color">-</text>
|
||||||
|
|
|
||||||
|
|
@ -297,7 +297,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="order-cell" v-if="orderPaymentData.balance_money > 0">
|
<!-- <view class="order-cell" v-if="orderPaymentData.balance_money > 0">
|
||||||
<text class="tit">使用消费券</text>
|
<text class="tit">使用余额</text>
|
||||||
<view class="box color-base-text">
|
<view class="box color-base-text">
|
||||||
<text class="operator">-</text>
|
<text class="operator">-</text>
|
||||||
<text class="unit">{{ $lang('common.currencySymbol') }}</text>
|
<text class="unit">{{ $lang('common.currencySymbol') }}</text>
|
||||||
|
|
|
||||||
|
|
@ -596,7 +596,7 @@ export default {
|
||||||
this.tempData = null;
|
this.tempData = null;
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 使用消费券
|
* 使用余额
|
||||||
*/
|
*/
|
||||||
useBalance() {
|
useBalance() {
|
||||||
if (this.orderCreateData.is_balance) this.orderCreateData.is_balance = 0;
|
if (this.orderCreateData.is_balance) this.orderCreateData.is_balance = 0;
|
||||||
|
|
@ -910,7 +910,7 @@ export default {
|
||||||
if (this.$refs.loadingCover) this.$refs.loadingCover.show();
|
if (this.$refs.loadingCover) this.$refs.loadingCover.show();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
// 消费券抵扣
|
// 余额抵扣
|
||||||
balanceDeduct() {
|
balanceDeduct() {
|
||||||
let balance = parseFloat(this.orderPaymentData.member_account.balance_total) < parseFloat(this
|
let balance = parseFloat(this.orderPaymentData.member_account.balance_total) < parseFloat(this
|
||||||
.orderPaymentData.presale_deposit_money) ? parseFloat(this.orderPaymentData.member_account
|
.orderPaymentData.presale_deposit_money) ? parseFloat(this.orderPaymentData.member_account
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
{{ money }}
|
{{ money }}
|
||||||
<text>元</text>
|
<text>元</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="guafen-man color-sub font-size-tag">红包已存入您的账户消费券中</view>
|
<view class="guafen-man color-sub font-size-tag">红包已存入您的账户余额中</view>
|
||||||
<view class="success-btn" @click="toLook()">立即查看</view>
|
<view class="success-btn" @click="toLook()">立即查看</view>
|
||||||
<view class="success-guafen-btn" @click="toGuaFen">瓜分新红包</view>
|
<view class="success-guafen-btn" @click="toGuaFen">瓜分新红包</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="bootom">
|
<view class="bootom">
|
||||||
<view>
|
<view>
|
||||||
<text class="color-tip">可提现消费券:{{ $lang('common.currencySymbol') }}{{ withdrawInfo.member_info.balance_money | moneyFormat }}</text>
|
<text class="color-tip">可提现余额:{{ $lang('common.currencySymbol') }}{{ withdrawInfo.member_info.balance_money | moneyFormat }}</text>
|
||||||
<text class="all-tx color-base-text" @click="allTx">全部提现</text>
|
<text class="all-tx color-base-text" @click="allTx">全部提现</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
<view class="assets-list">
|
<view class="assets-list">
|
||||||
<view class="assets-li">
|
<view class="assets-li">
|
||||||
<view>{{ member_info.point }}</view>
|
<view>{{ member_info.point }}</view>
|
||||||
<view>兑换券</view>
|
<view>积分</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="assets-li">
|
<view class="assets-li">
|
||||||
<view>¥{{ member_info.balance_money }}</view>
|
<view>¥{{ member_info.balance_money }}</view>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
<view class="navbar-wrap">
|
<view class="navbar-wrap">
|
||||||
<text class="iconfont icon-back_light back" @click="$util.redirectTo('/pages/member/index')"></text>
|
<text class="iconfont icon-back_light back" @click="$util.redirectTo('/pages/member/index')"></text>
|
||||||
<view class="navbar-title">
|
<view class="navbar-title">
|
||||||
我的消费券
|
我的余额
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -18,15 +18,15 @@
|
||||||
|
|
||||||
<view class="head-wrap" :style="{ background: 'url(' + $util.img('public/uniapp/balance/balance_bg.png') + ') no-repeat right bottom/ auto 340rpx, linear-gradient(314deg, #FE7849 0%, #FF1959 100%)' }">
|
<view class="head-wrap" :style="{ background: 'url(' + $util.img('public/uniapp/balance/balance_bg.png') + ') no-repeat right bottom/ auto 340rpx, linear-gradient(314deg, #FE7849 0%, #FF1959 100%)' }">
|
||||||
<view class="balance price-font">{{ (parseFloat(balanceInfo.balance) + parseFloat(balanceInfo.balance_money)).toFixed(2) }}</view>
|
<view class="balance price-font">{{ (parseFloat(balanceInfo.balance) + parseFloat(balanceInfo.balance_money)).toFixed(2) }}</view>
|
||||||
<view class="title">账户消费券(元)</view>
|
<view class="title">账户余额(元)</view>
|
||||||
<view class="flex-box">
|
<view class="flex-box">
|
||||||
<view class="flex-item">
|
<view class="flex-item">
|
||||||
<view class="num price-font">{{ balanceInfo.balance_money|moneyFormat }}</view>
|
<view class="num price-font">{{ balanceInfo.balance_money|moneyFormat }}</view>
|
||||||
<view class="font-size-tag">现金消费券(元)</view>
|
<view class="font-size-tag">现金余额(元)</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-item">
|
<view class="flex-item">
|
||||||
<view class="num price-font">{{ balanceInfo.balance|moneyFormat }}</view>
|
<view class="num price-font">{{ balanceInfo.balance|moneyFormat }}</view>
|
||||||
<view class="font-size-tag">储值消费券(元)</view>
|
<view class="font-size-tag">储值余额(元)</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
<view class="icon">
|
<view class="icon">
|
||||||
<text class="iconfont icon-yuemingxi"></text>
|
<text class="iconfont icon-yuemingxi"></text>
|
||||||
</view>
|
</view>
|
||||||
<text class="title">消费券明细</text>
|
<text class="title">余额明细</text>
|
||||||
<text class="iconfont icon-right"></text>
|
<text class="iconfont icon-right"></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="menu-item" @click="toOrderList" v-if="addonIsExist.memberrecharge && memberrechargeConfig && memberrechargeConfig.is_use">
|
<view class="menu-item" @click="toOrderList" v-if="addonIsExist.memberrecharge && memberrechargeConfig && memberrechargeConfig.is_use">
|
||||||
|
|
@ -102,7 +102,7 @@ export default {
|
||||||
toList() {
|
toList() {
|
||||||
this.$util.redirectTo('/pages_tool/recharge/list');
|
this.$util.redirectTo('/pages_tool/recharge/list');
|
||||||
},
|
},
|
||||||
//获取消费券信息
|
//获取余额信息
|
||||||
getUserInfo() {
|
getUserInfo() {
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
url: '/api/memberaccount/info',
|
url: '/api/memberaccount/info',
|
||||||
|
|
@ -126,7 +126,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 获取消费券提现配置
|
* 获取余额提现配置
|
||||||
*/
|
*/
|
||||||
getWithdrawConfig() {
|
getWithdrawConfig() {
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<block v-else><ns-empty :isIndex="false" text="暂无消费券明细"></ns-empty></block>
|
<block v-else><ns-empty :isIndex="false" text="暂无余额明细"></ns-empty></block>
|
||||||
|
|
||||||
<!-- 无明细列表 -->
|
<!-- 无明细列表 -->
|
||||||
</block>
|
</block>
|
||||||
|
|
@ -71,7 +71,7 @@ export default {
|
||||||
label: '全部',
|
label: '全部',
|
||||||
value: '0'
|
value: '0'
|
||||||
}
|
}
|
||||||
], //兑换券类型
|
], //积分类型
|
||||||
balanceIndex: 0,
|
balanceIndex: 0,
|
||||||
related_id: 0
|
related_id: 0
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,8 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="card-privilege-item" v-if="levelInfo.point_feedback > 0">
|
<view class="card-privilege-item" v-if="levelInfo.point_feedback > 0">
|
||||||
<view class="card-privilege-icon"><text class="iconfont icon-jifen2 f32"></text></view>
|
<view class="card-privilege-icon"><text class="iconfont icon-jifen2 f32"></text></view>
|
||||||
<view class="card-privilege-name">兑换券回馈</view>
|
<view class="card-privilege-name">积分回馈</view>
|
||||||
<view class="card-privilege-text">下单享{{ parseFloat(levelInfo.point_feedback) }}倍兑换券回馈</view>
|
<view class="card-privilege-text">下单享{{ parseFloat(levelInfo.point_feedback) }}倍积分回馈</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
@ -63,8 +63,8 @@
|
||||||
<view class="card-privilege-list">
|
<view class="card-privilege-list">
|
||||||
<view class="card-privilege-item" v-if="levelInfo.send_point > 0">
|
<view class="card-privilege-item" v-if="levelInfo.send_point > 0">
|
||||||
<view class="card-privilege-icon"><text class="iconfont icon-jifen3"></text></view>
|
<view class="card-privilege-icon"><text class="iconfont icon-jifen3"></text></view>
|
||||||
<view class="card-privilege-name">兑换券礼包</view>
|
<view class="card-privilege-name">积分礼包</view>
|
||||||
<view class="card-privilege-text">赠送{{ levelInfo.send_point }}兑换券</view>
|
<view class="card-privilege-text">赠送{{ levelInfo.send_point }}积分</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="card-privilege-item" v-if="levelInfo.send_balance > 0">
|
<view class="card-privilege-item" v-if="levelInfo.send_balance > 0">
|
||||||
<view class="card-privilege-icon"><text class="iconfont icon-hongbao"></text></view>
|
<view class="card-privilege-icon"><text class="iconfont icon-hongbao"></text></view>
|
||||||
|
|
|
||||||
|
|
@ -122,8 +122,8 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="card-privilege-item" v-if="currCard.point_feedback > 0">
|
<view class="card-privilege-item" v-if="currCard.point_feedback > 0">
|
||||||
<view class="card-privilege-icon"><text class="iconfont icon-jifen2 f32"></text></view>
|
<view class="card-privilege-icon"><text class="iconfont icon-jifen2 f32"></text></view>
|
||||||
<view class="card-privilege-name">兑换券回馈</view>
|
<view class="card-privilege-name">积分回馈</view>
|
||||||
<view class="card-privilege-text">下单享{{ parseFloat(currCard.point_feedback) }}倍兑换券回馈</view>
|
<view class="card-privilege-text">下单享{{ parseFloat(currCard.point_feedback) }}倍积分回馈</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
@ -137,8 +137,8 @@
|
||||||
<view class="card-privilege-list">
|
<view class="card-privilege-list">
|
||||||
<view class="card-privilege-item" v-if="currCard.send_point > 0">
|
<view class="card-privilege-item" v-if="currCard.send_point > 0">
|
||||||
<view class="card-privilege-icon"><text class="iconfont icon-jifen3"></text></view>
|
<view class="card-privilege-icon"><text class="iconfont icon-jifen3"></text></view>
|
||||||
<view class="card-privilege-name">兑换券礼包</view>
|
<view class="card-privilege-name">积分礼包</view>
|
||||||
<view class="card-privilege-text">赠送{{ currCard.send_point }}兑换券</view>
|
<view class="card-privilege-text">赠送{{ currCard.send_point }}积分</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="card-privilege-item" v-if="currCard.send_balance > 0">
|
<view class="card-privilege-item" v-if="currCard.send_balance > 0">
|
||||||
<view class="card-privilege-icon"><text class="iconfont icon-hongbao"></text></view>
|
<view class="card-privilege-icon"><text class="iconfont icon-hongbao"></text></view>
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
<view class="prize color-base-text font-size-activity-tag">
|
<view class="prize color-base-text font-size-activity-tag">
|
||||||
<block v-if="item.balance > 0">{{ item.balance }}元现金红包</block>
|
<block v-if="item.balance > 0">{{ item.balance }}元现金红包</block>
|
||||||
<block v-if="(item.point > 0 || item.coupon_num) && item.balance > 0">+</block>
|
<block v-if="(item.point > 0 || item.coupon_num) && item.balance > 0">+</block>
|
||||||
<block v-if="item.point > 0">{{ parseInt(item.point) }}兑换券</block>
|
<block v-if="item.point > 0">{{ parseInt(item.point) }}积分</block>
|
||||||
<block v-if="item.point > 0 && item.balance > 0 && item.coupon_num > 0">+</block>
|
<block v-if="item.point > 0 && item.balance > 0 && item.coupon_num > 0">+</block>
|
||||||
<block v-if="item.coupon_num > 0">{{ item.coupon_num }}张优惠券</block>
|
<block v-if="item.coupon_num > 0">{{ item.coupon_num }}张优惠券</block>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -74,7 +74,7 @@
|
||||||
<view class="price">
|
<view class="price">
|
||||||
<text>{{ parseInt(info.point) }}</text>
|
<text>{{ parseInt(info.point) }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="type">兑换券</view>
|
<view class="type">积分</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
@ -98,7 +98,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="" v-if="$util.inArray('point', info.type) != -1">
|
<view class="" v-if="$util.inArray('point', info.type) != -1">
|
||||||
<text>●</text>
|
<text>●</text>
|
||||||
可得{{ info.point }}兑换券
|
可得{{ info.point }}积分
|
||||||
</view>
|
</view>
|
||||||
<view class="" v-if="$util.inArray('coupon', info.type) != -1">
|
<view class="" v-if="$util.inArray('coupon', info.type) != -1">
|
||||||
<text>●</text>
|
<text>●</text>
|
||||||
|
|
|
||||||
|
|
@ -115,8 +115,8 @@
|
||||||
<view class="equity-itme" v-if="levelList[curIndex].point_feedback > 0">
|
<view class="equity-itme" v-if="levelList[curIndex].point_feedback > 0">
|
||||||
<image :src="$util.img('public/uniapp/level/integral_feedback.png')" mode="aspectFit"></image>
|
<image :src="$util.img('public/uniapp/level/integral_feedback.png')" mode="aspectFit"></image>
|
||||||
<view class="equity-content">
|
<view class="equity-content">
|
||||||
<text>享受兑换券回馈服务</text>
|
<text>享受积分回馈服务</text>
|
||||||
<text class="equity-desc">提供{{ levelList[curIndex].point_feedback }}倍兑换券回馈倍率</text>
|
<text class="equity-desc">提供{{ levelList[curIndex].point_feedback }}倍积分回馈倍率</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -126,8 +126,8 @@
|
||||||
<view class="gift-itme" v-if="levelList[curIndex].send_point > 0">
|
<view class="gift-itme" v-if="levelList[curIndex].send_point > 0">
|
||||||
<image :src="$util.img('public/uniapp/level/integral.png')" mode="aspectFit"></image>
|
<image :src="$util.img('public/uniapp/level/integral.png')" mode="aspectFit"></image>
|
||||||
<view class="gift-content" :class="{ active: levelList[curIndex].send_balance > 0 }">
|
<view class="gift-content" :class="{ active: levelList[curIndex].send_balance > 0 }">
|
||||||
<text>兑换券礼包</text>
|
<text>积分礼包</text>
|
||||||
<text class="gift-desc">赠送{{ levelList[curIndex].send_point }}兑换券</text>
|
<text class="gift-desc">赠送{{ levelList[curIndex].send_point }}积分</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="gift-itme" v-if="levelList[curIndex].send_balance > 0">
|
<view class="gift-itme" v-if="levelList[curIndex].send_balance > 0">
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="content color-tip">
|
<view class="content color-tip">
|
||||||
<text>1、注册会员送x成长值。</text>
|
<text>1、注册会员送x成长值。</text>
|
||||||
<text>2、会员充值到消费券送x成长值。</text>
|
<text>2、会员充值到余额送x成长值。</text>
|
||||||
<text>3、会员签到送x成长值。</text>
|
<text>3、会员签到送x成长值。</text>
|
||||||
<text>4、会员消费x元,交易完成即可获得x个成长值。</text>
|
<text>4、会员消费x元,交易完成即可获得x个成长值。</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
<view class="navbar-wrap">
|
<view class="navbar-wrap">
|
||||||
<text class="iconfont icon-back_light back" @click="$util.redirectTo('/pages/member/index')"></text>
|
<text class="iconfont icon-back_light back" @click="$util.redirectTo('/pages/member/index')"></text>
|
||||||
<view class="navbar-title">
|
<view class="navbar-title">
|
||||||
我的兑换券
|
我的积分
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -18,11 +18,11 @@
|
||||||
|
|
||||||
<view class="head-wrap" :style="{ background: 'url(' + $util.img('public/uniapp/point/point_bg.png') + ') no-repeat right bottom/ auto 340rpx, linear-gradient(314deg, #F16914 0%, #FEAA4C 100%)' }">
|
<view class="head-wrap" :style="{ background: 'url(' + $util.img('public/uniapp/point/point_bg.png') + ') no-repeat right bottom/ auto 340rpx, linear-gradient(314deg, #F16914 0%, #FEAA4C 100%)' }">
|
||||||
<view class="point price-font">{{ pointInfo.point }}</view>
|
<view class="point price-font">{{ pointInfo.point }}</view>
|
||||||
<view class="title">当前兑换券</view>
|
<view class="title">当前积分</view>
|
||||||
<view class="flex-box">
|
<view class="flex-box">
|
||||||
<view class="flex-item">
|
<view class="flex-item">
|
||||||
<view class="num price-font">{{ pointInfo.totalPoint }}</view>
|
<view class="num price-font">{{ pointInfo.totalPoint }}</view>
|
||||||
<view class="font-size-tag">累计兑换券</view>
|
<view class="font-size-tag">累计积分</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-item">
|
<view class="flex-item">
|
||||||
<view class="num price-font">{{ pointInfo.totalConsumePoint }}</view>
|
<view class="num price-font">{{ pointInfo.totalConsumePoint }}</view>
|
||||||
|
|
@ -40,23 +40,23 @@
|
||||||
<view class="icon">
|
<view class="icon">
|
||||||
<image :src="$util.img('public/uniapp/point/point_detail_icon.png')" mode="widthFix"></image>
|
<image :src="$util.img('public/uniapp/point/point_detail_icon.png')" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
<text class="title">兑换券明细</text>
|
<text class="title">积分明细</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="menu-item" @click="$util.redirectTo('/pages_promotion/point/list')">
|
<view class="menu-item" @click="$util.redirectTo('/pages_promotion/point/list')">
|
||||||
<view class="icon">
|
<view class="icon">
|
||||||
<image :src="$util.img('public/uniapp/point/point_shop.png')" mode="widthFix"></image>
|
<image :src="$util.img('public/uniapp/point/point_shop.png')" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
<text class="title">兑换券商城</text>
|
<text class="title">积分商城</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- <view class="task-wrap">-->
|
<!-- <view class="task-wrap">-->
|
||||||
<!-- <view class="title">做任务赚兑换券</view>-->
|
<!-- <view class="title">做任务赚积分</view>-->
|
||||||
<!-- <view class="task-item" @click="toSign">-->
|
<!-- <view class="task-item" @click="toSign">-->
|
||||||
<!-- <view class="icon"><text class="iconfont icon-qiandao1"></text></view>-->
|
<!-- <view class="icon"><text class="iconfont icon-qiandao1"></text></view>-->
|
||||||
<!-- <view class="wrap">-->
|
<!-- <view class="wrap">-->
|
||||||
<!-- <view class="title">每日签到</view>-->
|
<!-- <view class="title">每日签到</view>-->
|
||||||
<!-- <view class="desc color-tip font-size-tag">连续签到可获得更多兑换券</view>-->
|
<!-- <view class="desc color-tip font-size-tag">连续签到可获得更多积分</view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="btn">去签到</view>-->
|
<!-- <view class="btn">去签到</view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
<!-- <view class="icon"><text class="iconfont icon-shangpin"></text></view>-->
|
<!-- <view class="icon"><text class="iconfont icon-shangpin"></text></view>-->
|
||||||
<!-- <view class="wrap">-->
|
<!-- <view class="wrap">-->
|
||||||
<!-- <view class="title">购买商品</view>-->
|
<!-- <view class="title">购买商品</view>-->
|
||||||
<!-- <view class="desc color-tip font-size-tag">购买商品可获得兑换券</view>-->
|
<!-- <view class="desc color-tip font-size-tag">购买商品可获得积分</view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="btn">去下单</view>-->
|
<!-- <view class="btn">去下单</view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ export default {
|
||||||
label: '全部',
|
label: '全部',
|
||||||
value: '0'
|
value: '0'
|
||||||
}
|
}
|
||||||
], //兑换券类型
|
], //积分类型
|
||||||
pointIndex: 0,
|
pointIndex: 0,
|
||||||
related_id: 0
|
related_id: 0
|
||||||
};
|
};
|
||||||
|
|
@ -198,7 +198,7 @@ export default {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//获取个人兑换券信息
|
//获取个人积分信息
|
||||||
getAccountInfo() {
|
getAccountInfo() {
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
url: '/api/memberaccount/info',
|
url: '/api/memberaccount/info',
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取签到累积兑换券
|
// 获取签到累积积分
|
||||||
getSignPointData() {
|
getSignPointData() {
|
||||||
this.$api.sendRequest({
|
this.$api.sendRequest({
|
||||||
url: '/api/memberaccount/sum',
|
url: '/api/memberaccount/sum',
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
<text>{{ signDaysSeries }}</text>
|
<text>{{ signDaysSeries }}</text>
|
||||||
天
|
天
|
||||||
</view>
|
</view>
|
||||||
<view>{{ hasSign ? '明日' : '今日' }}签到可获得{{ pointTomorrow }}兑换券</view>
|
<view>{{ hasSign ? '明日' : '今日' }}签到可获得{{ pointTomorrow }}积分</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
>
|
>
|
||||||
<view class="day">第{{ item.day }}天</view>
|
<view class="day">第{{ item.day }}天</view>
|
||||||
<image :src="$util.img('public/uniapp/signin/sign-icon.png')"></image>
|
<image :src="$util.img('public/uniapp/signin/sign-icon.png')"></image>
|
||||||
<view class="point">{{ item.point }}兑换券</view>
|
<view class="point">{{ item.point }}积分</view>
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
v-else
|
v-else
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
>
|
>
|
||||||
<view>
|
<view>
|
||||||
<view class="day">第{{ item.day }}天</view>
|
<view class="day">第{{ item.day }}天</view>
|
||||||
<view class="point">{{ item.point }}兑换券</view>
|
<view class="point">{{ item.point }}积分</view>
|
||||||
</view>
|
</view>
|
||||||
<image :src="$util.img('public/uniapp/signin/sign-box.png')" mode="widthFix"></image>
|
<image :src="$util.img('public/uniapp/signin/sign-box.png')" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -74,8 +74,8 @@
|
||||||
<view class="my-signin-con">
|
<view class="my-signin-con">
|
||||||
<view class="my-signin-item">
|
<view class="my-signin-item">
|
||||||
<image :src="$util.img('public/uniapp/signin/sign-bg-yellow.png')"></image>
|
<image :src="$util.img('public/uniapp/signin/sign-bg-yellow.png')"></image>
|
||||||
<view class="my-signin-item-num">兑换券:{{ signPoint }}</view>
|
<view class="my-signin-item-num">积分:{{ signPoint }}</view>
|
||||||
<view>累计获得兑换券</view>
|
<view>累计获得积分</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="my-signin-item">
|
<view class="my-signin-item">
|
||||||
<image :src="$util.img('public/uniapp/signin/sign-bg-pink.png')"></image>
|
<image :src="$util.img('public/uniapp/signin/sign-bg-pink.png')"></image>
|
||||||
|
|
@ -92,7 +92,7 @@
|
||||||
<view class="rule-item" v-for="(item, index) in rule" :key="index">
|
<view class="rule-item" v-for="(item, index) in rule" :key="index">
|
||||||
<block v-if="index == 0">1. 每日签到奖励:</block>
|
<block v-if="index == 0">1. 每日签到奖励:</block>
|
||||||
<block v-else>{{ index + 1 + '. 连续签到' + item.day + '天额外奖励:' }}</block>
|
<block v-else>{{ index + 1 + '. 连续签到' + item.day + '天额外奖励:' }}</block>
|
||||||
<text v-if="item.point">{{ item.point + '兑换券 ' }}</text>
|
<text v-if="item.point">{{ item.point + '积分 ' }}</text>
|
||||||
<text v-if="item.growth">{{ item.growth + '成长值' }}</text>
|
<text v-if="item.growth">{{ item.growth + '成长值' }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
@ -116,7 +116,7 @@
|
||||||
<text>恭喜您获得</text>
|
<text>恭喜您获得</text>
|
||||||
<text v-if="successTip.point">
|
<text v-if="successTip.point">
|
||||||
<text class="num color-base-text">{{ successTip.point }}</text>
|
<text class="num color-base-text">{{ successTip.point }}</text>
|
||||||
兑换券
|
积分
|
||||||
</text>
|
</text>
|
||||||
<text v-if="successTip.growth">
|
<text v-if="successTip.growth">
|
||||||
<text class="num color-base-text">{{ successTip.growth }}</text>
|
<text class="num color-base-text">{{ successTip.growth }}</text>
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
<view class="cell">申请时间:{{ $util.timeStampTurnTime(detail.refund_action_time) }}</view>
|
<view class="cell">申请时间:{{ $util.timeStampTurnTime(detail.refund_action_time) }}</view>
|
||||||
<view class="cell" v-if="detail.refund_time">退款时间:{{ $util.timeStampTurnTime(detail.refund_time) }}</view>
|
<view class="cell" v-if="detail.refund_time">退款时间:{{ $util.timeStampTurnTime(detail.refund_time) }}</view>
|
||||||
<view class="cell" v-if="detail.refund_remark != ''">退款说明:{{ detail.refund_remark }}</view>
|
<view class="cell" v-if="detail.refund_remark != ''">退款说明:{{ detail.refund_remark }}</view>
|
||||||
<view class="cell" v-if="detail.use_point>0">退款兑换券:{{ detail.use_point }}</view>
|
<view class="cell" v-if="detail.use_point>0">退款积分:{{ detail.use_point }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
<view class="consume-item" v-if="consumeInfo.point_num > 0">
|
<view class="consume-item" v-if="consumeInfo.point_num > 0">
|
||||||
<image :src="$util.img('public/uniapp/pay/point.png')" mode="widthFix"></image>
|
<image :src="$util.img('public/uniapp/pay/point.png')" mode="widthFix"></image>
|
||||||
<view class="consume-value color-base-text">{{ consumeInfo.point_num }}</view>
|
<view class="consume-value color-base-text">{{ consumeInfo.point_num }}</view>
|
||||||
<view class="consume-type">兑换券</view>
|
<view class="consume-type">积分</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="consume-item" v-if="consumeInfo.growth_num > 0">
|
<view class="consume-item" v-if="consumeInfo.growth_num > 0">
|
||||||
<image :src="$util.img('public/uniapp/pay/growth.png')" mode="widthFix"></image>
|
<image :src="$util.img('public/uniapp/pay/growth.png')" mode="widthFix"></image>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<view>
|
<view>
|
||||||
<view class="recharge-title">充值</view>
|
<view class="recharge-title">充值</view>
|
||||||
<view class="account-box">
|
<view class="account-box">
|
||||||
<view class="label">账户消费券</view>
|
<view class="label">账户余额</view>
|
||||||
<view class="value"><text class="price-font">{{balanceInfo.balance}}</text><text>元</text></view>
|
<view class="value"><text class="price-font">{{balanceInfo.balance}}</text><text>元</text></view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
<view class="box-text" v-if="isIndex !== -1">
|
<view class="box-text" v-if="isIndex !== -1">
|
||||||
注:充值 {{ list[isIndex].face_value }} 元赠送:
|
注:充值 {{ list[isIndex].face_value }} 元赠送:
|
||||||
<text>{{ list[isIndex].point }} 兑换券,</text>
|
<text>{{ list[isIndex].point }} 积分,</text>
|
||||||
<text>{{ list[isIndex].growth }} 成长值</text>
|
<text>{{ list[isIndex].growth }} 成长值</text>
|
||||||
<text v-if="list[isIndex].coupon_id != ''">,优惠券X{{ list[isIndex].coupon_id.split(',').length }}</text>
|
<text v-if="list[isIndex].coupon_id != ''">,优惠券X{{ list[isIndex].coupon_id.split(',').length }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
<view class="explain_list">
|
<view class="explain_list">
|
||||||
<view v-for="(item,index) in list" :key="index" v-if="item.point || item.growth || item.coupon_id != ''">
|
<view v-for="(item,index) in list" :key="index" v-if="item.point || item.growth || item.coupon_id != ''">
|
||||||
充值 {{ item.face_value }} 元赠送:
|
充值 {{ item.face_value }} 元赠送:
|
||||||
<text v-if="item.point">{{ item.point }} 兑换券,</text>
|
<text v-if="item.point">{{ item.point }} 积分,</text>
|
||||||
<text v-if="item.growth">{{ item.growth }} 成长值</text>
|
<text v-if="item.growth">{{ item.growth }} 成长值</text>
|
||||||
<text v-if="item.coupon_id != ''">,优惠券X{{ item.coupon_id.split(',').length }}</text>
|
<text v-if="item.coupon_id != ''">,优惠券X{{ item.coupon_id.split(',').length }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
<view class="goods-sub-section">
|
<view class="goods-sub-section">
|
||||||
<view class="<strong>goods-name</strong> color-tip " v-if="orderItem.point > 0 || orderItem.growth > 0">赠送:</view>
|
<view class="<strong>goods-name</strong> color-tip " v-if="orderItem.point > 0 || orderItem.growth > 0">赠送:</view>
|
||||||
<view class="goods-name color-tip " v-if="orderItem.point > 0">{{ orderItem.point }}兑换券</view>
|
<view class="goods-name color-tip " v-if="orderItem.point > 0">{{ orderItem.point }}积分</view>
|
||||||
<view class="goods-name color-tip " v-if="orderItem.point > 0 && orderItem.growth > 0">、</view>
|
<view class="goods-name color-tip " v-if="orderItem.point > 0 && orderItem.growth > 0">、</view>
|
||||||
<view class="goods-name color-tip " v-if="orderItem.growth > 0">{{ orderItem.growth }}成长值</view>
|
<view class="goods-name color-tip " v-if="orderItem.growth > 0">{{ orderItem.growth }}成长值</view>
|
||||||
<view class="goods-name color-tip " v-if="orderItem.point > 0 && orderItem.coupon_id">、</view>
|
<view class="goods-name color-tip " v-if="orderItem.point > 0 && orderItem.coupon_id">、</view>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue