| | |
| | | <view class="con_tit">{{item.name}}</view> |
| | | </view> |
| | | <view> |
| | | <button v-if="item.shop_supplier_id>0" class="btn-red-border btn-to-shop" @click="gotoPage('/pages/shop/shop?shop_supplier_id=' + item.shop_supplier_id)">进店</button> |
| | | <button v-if="item.shop_supplier_id>0" class="btn-red-border btn-to-shop" @click="gotoShopPage(item.shop_supplier_id)">进店</button> |
| | | </view> |
| | | </view> |
| | | <view v-for="(sup_item,sup_index) in item.list" :key="sup_index" class="coupon_item" |
| | |
| | | <button type="default" v-if="sup_item.coupon_type.value == 10 && sup_item.use_permission !=1" class="btn-gray coupon-text mt10" v-on:click.stop="gotoPages(sup_item)"> |
| | | 查看券码 |
| | | </button> |
| | | <button type="default" v-if="sup_item.state.value>0 && sup_item.use_permission !=2" class="btn-gray coupon-text mt10" v-on:click.stop="gotoPages(sup_item)"> |
| | | <button type="default" v-if="sup_item.state.value>0 && sup_item.use_permission !=2" class="btn-gray coupon-text mt10" v-on:click.stop="gotoPages(sup_item,(sup_item.coupon_type.value == 30?0:1))"> |
| | | {{sup_item.coupon_type.value == 30?'查看券码':'立即使用'}} |
| | | </button> |
| | | <button type="default" v-else class="btn-gray mt30" v-on:click.stop> |
| | |
| | | self.getSup(); |
| | | }); |
| | | }, |
| | | gotoShopPage(shop_supplier_id) { |
| | | uni.setStorageSync('shop_supplier_id', shop_supplier_id) |
| | | this.gotoPage('/pages/shop/shop?shop_supplier_id=' + shop_supplier_id) |
| | | }, |
| | | /* 优惠券分类 */ |
| | | getSup() { |
| | | let self = this; |
| | |
| | | closeRule(item) { |
| | | item.rule = false; |
| | | }, |
| | | gotoPages(sup_item) { |
| | | if (sup_item.apply_range != 10 || sup_item.coupon_type.value == 30) { |
| | | gotoPages(sup_item,type=0) { |
| | | if(type){ |
| | | this.gotoPage('/pages/product/category'); |
| | | }else if (sup_item.apply_range != 10 || sup_item.coupon_type.value == 30) { |
| | | this.gotoPage('/pages/user/my-coupon/my-detail?user_coupon_id='+ sup_item.user_coupon_id+'&apply_range='+sup_item.apply_range); |
| | | }else if (sup_item.use_permission != 1 || sup_item.coupon_type.value == 10) { |
| | | //满减券 具有线下核销权限 byyj 2024.1.16 |