|
@@ -6,15 +6,12 @@
|
|
|
选择优惠券
|
|
选择优惠券
|
|
|
<uni-icons @click="closeCoupon" class="box-close" type="closeempty" size="20"></uni-icons>
|
|
<uni-icons @click="closeCoupon" class="box-close" type="closeempty" size="20"></uni-icons>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
<view class="flex-justify-around">
|
|
<view class="flex-justify-around">
|
|
|
<view @click="setType(1)" class="fs-28 fw-600 mb-24" :class="type == 1?'fc-41ABF5':''">
|
|
<view @click="setType(1)" class="fs-28 fw-600 mb-24" :class="type == 1?'fc-41ABF5':''">
|
|
|
可用优惠券({{shopCouponData.coupon.length}})</view>
|
|
可用优惠券({{shopCouponData.coupon.length}})</view>
|
|
|
<view @click="setType(2)" class="fs-28 fw-600 mb-24" :class="type == 2?'fc-41ABF5':''">
|
|
<view @click="setType(2)" class="fs-28 fw-600 mb-24" :class="type == 2?'fc-41ABF5':''">
|
|
|
可领优惠券({{shopCouponData.receive.length}})</view>
|
|
可领优惠券({{shopCouponData.receive.length}})</view>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<view class="scroll-view-css" v-if="type == 1">
|
|
<view class="scroll-view-css" v-if="type == 1">
|
|
|
<view v-if="shopCouponData.coupon.length === 0" class="scroll-view-css">
|
|
<view v-if="shopCouponData.coupon.length === 0" class="scroll-view-css">
|
|
|
<EnBlank :customSrc='true'>
|
|
<EnBlank :customSrc='true'>
|
|
@@ -161,10 +158,15 @@
|
|
|
this.$refs.popupCoupon.close();
|
|
this.$refs.popupCoupon.close();
|
|
|
},
|
|
},
|
|
|
setFun(item) {
|
|
setFun(item) {
|
|
|
- this.$emit('giveCouPon', item);
|
|
|
|
|
- this.closeCoupon();
|
|
|
|
|
|
|
+ if (this.coupon_id == item.id) {
|
|
|
|
|
+ this.coupon_id = ''
|
|
|
|
|
+ this.$emit('giveCouPon', '');
|
|
|
|
|
+ this.closeCoupon();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$emit('giveCouPon', item);
|
|
|
|
|
+ this.closeCoupon();
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
getFun(item) {
|
|
getFun(item) {
|
|
|
if (this.isAJAX) {
|
|
if (this.isAJAX) {
|
|
|
return
|
|
return
|