添加:用户开通会员卡后跳转到优惠券列表

This commit is contained in:
wuhui_zzw 2024-02-06 14:16:11 +08:00
parent 346c96ba5a
commit 6e344ba6a3
3 changed files with 20 additions and 16 deletions

View File

@ -99,14 +99,14 @@ export default {
}
if(this.service.is_user){
list.push({
title: '用户管理',
title: '顾客管理',
url: '/pages/admin/custom/index?mer_id=' + merId,
icon: 'iconfont icon-kehu-xuanzhong'
});
}
if(this.service.staff_manage){
list.push({
title: '品牌管理',
title: '客服经理',
url: '/pages/admin/business/staff?mer_id=' + merId,
icon: 'iconfont icon-kehu-xuanzhong'
});
@ -130,7 +130,7 @@ export default {
if(this.service.product_exchange){
list.push({
type: 'exchange_qr_code',
title: '商品兑换码',
title: '特色菜兑换',
url: '',
icon: 'iconfont icon-erweima1'
});
@ -231,7 +231,7 @@ export default {
});
});
},
// -
// -
createExchangeQrCode(){
let _this = this;
//

View File

@ -418,12 +418,15 @@
},
//
callPay(res) {
let that = this;
let status = res.data.status,
orderId = res.data.result.order_id,
callback_key = res.data.result.pay_key,
jsConfig = res.data.result.config,
goPages = '/pages/annx/vip_center/index'
let that = this;
let status = res.data.status,
orderId = res.data.result.order_id,
callback_key = res.data.result.pay_key,
jsConfig = res.data.result.config,
// goPages = '/pages/annx/vip_center/index'
goPages = '/pages/users/user_coupon/index';
console.log('支付成功', status)
switch (status) {
case 'ORDER_EXIST':
case 'EXTEND_ORDER':
@ -509,7 +512,7 @@
// #ifdef MP
case "routine":
jsConfig.timeStamp = jsConfig.timestamp;
let mp_pay_name=''
let mp_pay_name = '';
if(uni.requestOrderPayment){
mp_pay_name='requestOrderPayment'
}else{
@ -518,10 +521,11 @@
uni[mp_pay_name]({
...jsConfig,
success: function(res) {
console.log("支付成功:", res)
uni.hideLoading();
that.payClose();
return that.$util.Tips({
title: '支付成功',
title: '支付成功',
icon: 'success'
}, {
tab: 5,

View File

@ -16,7 +16,7 @@
</view>
<view class='item acea-row row-center-wrapper'>
<block v-if="item.status == 0">
<view v-if="item.coupon.send_type == 5 && item.coupon.type == 13" class='money vip-coupon'>
<view v-if="item.coupon.type == 13" class='money vip-coupon'>
<view class="line1 coupon_value"><text class='num' style="font-size: 45rpx!important;">{{ item.brand ? item.brand.title : '逸路红' }}</text></view>
<view class="pic-num">{{ item.shopMer ? '仅 ' + item.shopMer.mer_name + ' 可用' : '全门店可用' }}</view>
<!--<view class="line1 coupon_value"><text class='num'>{{item.coupon_price}}</text></view>-->
@ -28,7 +28,7 @@
</view>
</block>
<view v-else class='money moneyGray'>
<block v-if="item.coupon.send_type == 5 && item.coupon.type == 13">
<block v-if="item.coupon.type == 13">
<view class="line1 coupon_value"><text class='num'>{{ item.brand ? item.brand.title : '逸路红' }}</text></view>
<view class="pic-num">已核销</view>
</block>
@ -51,10 +51,10 @@
<view class='data acea-row row-between-wrapper'>
<view>{{item.start_time | timeYMD}}-{{item.end_time | timeYMD}}</view>
<view v-if="item.status==0">
<navigator :url="'/pages/columnGoods/goods_coupon_list/index?coupon_id='+item.coupon_id" class='bnt1 b-color' :class="item.coupon.send_type == 5 ? 'svip-btn' : ''" hover-class="none" v-if="item.coupon.type != 13">
<navigator :url="'/pages/columnGoods/goods_coupon_list/index?coupon_id='+item.coupon_id" class='bnt1 b-color' hover-class="none" v-if="item.coupon.type != 13">
去使用
</navigator>
<view class='bnt1 b-color' @click="getQRcode(item.write_code)" :class="item.coupon.send_type == 5 ? 'svip-btn' : ''" hover-class="none" v-else>
<view class='bnt1 b-color svip-btn' @click="getQRcode(item.write_code)" hover-class="none" v-else>
去核销
</view>
</view>