|
@@ -6,7 +6,7 @@
|
|
|
<text class="error-text">暂无可领的优惠券~</text>
|
|
|
</view>
|
|
|
<template v-else>
|
|
|
- <view v-for="(coupon, index) in coupinList" :key="index" :id="coupon.id" class="coupon-list">
|
|
|
+ <view v-for="(coupon, index) in coupinList" :key="index" :id="coupon.id" class="coupon-list" @click.stop="handleCouponDetails(coupon)">
|
|
|
<view class="list-cell-le">
|
|
|
<view class="coupon-maxMoney"> <text class="small">¥</text> {{ coupon.couponAmount }} </view>
|
|
|
<view class="coupon-minMoney"> 满{{ coupon.touchPrice }}可用 </view>
|
|
@@ -47,7 +47,7 @@
|
|
|
<template v-if="coupon.couponPayWay == 2">
|
|
|
<template v-if="coupon.couponBtnType == 0">
|
|
|
<view class="icon-used-text">{{ coupon.moneyCouponPrice }}采美豆</view>
|
|
|
- <view class="icon-used-btn buy" @click="toDeductCoupon(coupon)"
|
|
|
+ <view class="icon-used-btn buy" @click.stop="toDeductCoupon(coupon)"
|
|
|
>抵扣</view
|
|
|
>
|
|
|
</template>
|
|
@@ -55,14 +55,14 @@
|
|
|
<view
|
|
|
class="icon-used-btn make"
|
|
|
v-if="coupon.couponBtnType == 1"
|
|
|
- @click="toUseCoupon(coupon)"
|
|
|
+ @click.stop="toUseCoupon(coupon)"
|
|
|
>去使用</view
|
|
|
>
|
|
|
</template>
|
|
|
</template>
|
|
|
<template v-else-if="coupon.couponPayWay == 1">
|
|
|
<view class="icon-used-text">购买</view>
|
|
|
- <view class="icon-used-btn buy" @click="toPayCoupon(coupon)"
|
|
|
+ <view class="icon-used-btn buy" @click.stop="toPayCoupon(coupon)"
|
|
|
>¥{{ coupon.moneyCouponPrice }}</view
|
|
|
>
|
|
|
</template>
|
|
@@ -70,13 +70,13 @@
|
|
|
<view
|
|
|
class="icon-used-btn receive"
|
|
|
v-if="coupon.couponBtnType == 0"
|
|
|
- @click="receiveCoupon(coupon)"
|
|
|
+ @click.stop="receiveCoupon(coupon)"
|
|
|
>领取</view
|
|
|
>
|
|
|
<view
|
|
|
class="icon-used-btn make"
|
|
|
v-if="coupon.couponBtnType == 1"
|
|
|
- @click="toUseCoupon(coupon)"
|
|
|
+ @click.stop="toUseCoupon(coupon)"
|
|
|
>去使用</view
|
|
|
>
|
|
|
</template>
|
|
@@ -289,7 +289,11 @@ export default {
|
|
|
} else {
|
|
|
this.$api.navigateTo('/pages/login/login')
|
|
|
}
|
|
|
- },
|
|
|
+ },
|
|
|
+ // 跳转优惠券详情
|
|
|
+ handleCouponDetails(coupon){
|
|
|
+ this.$api.navigateTo(`/pages/user/coupon/coupon-details?couponId=${coupon.couponId}&shareUserId=${this.listQuery.userId}`)
|
|
|
+ },
|
|
|
toUseCoupon(coupon) {
|
|
|
// 去使用跳转路径,友盟埋点收集去使用优惠券
|
|
|
if (process.env.NODE_ENV != 'development') {
|
|
@@ -371,8 +375,9 @@ export default {
|
|
|
if (this.userIdentity === 1 || this.userIdentity === 3) {
|
|
|
this.$util.msg('您的身份暂不支持领取优惠券', 2000)
|
|
|
return
|
|
|
- }
|
|
|
- this.createCouponRecord(coupon)
|
|
|
+ }
|
|
|
+ this.$api.navigateTo(`/pages/user/pay/card-coupon-under?amount=${coupon.moneyCouponPrice}`)
|
|
|
+ // this.createCouponRecord(coupon)
|
|
|
} else {
|
|
|
this.$api.navigateTo('/pages/login/login')
|
|
|
}
|