Showing
4 changed files
with
21 additions
and
7 deletions
| @@ -88,8 +88,8 @@ | @@ -88,8 +88,8 @@ | ||
| 88 | <image src="{{sellerObj.seller_image}}" mode="heightFix" /> | 88 | <image src="{{sellerObj.seller_image}}" mode="heightFix" /> |
| 89 | <view class="info_right"> | 89 | <view class="info_right"> |
| 90 | <view class="font36r sellerName">{{sellerObj.sellername}}</view> | 90 | <view class="font36r sellerName">{{sellerObj.sellername}}</view> |
| 91 | - <view class="font24r">{{sellerObj.cateStr}}</view> | ||
| 92 | - <view class="font28r">{{sellerObj.real_address}}</view> | 91 | + <view class="font24r" wx:if="{{sellerObj.cateStr}}">{{sellerObj.cateStr}}</view> |
| 92 | + <view class="font28r" wx:if="{{sellerObj.real_address}}">{{sellerObj.real_address}}</view> | ||
| 93 | </view> | 93 | </view> |
| 94 | </view> | 94 | </view> |
| 95 | <view class="bottom_box"> | 95 | <view class="bottom_box"> |
| @@ -36,7 +36,13 @@ Page({ | @@ -36,7 +36,13 @@ Page({ | ||
| 36 | }else{ | 36 | }else{ |
| 37 | item.is_expire='1'; | 37 | item.is_expire='1'; |
| 38 | } | 38 | } |
| 39 | + if(item.is_type == '3'){ | ||
| 40 | + item.status = '2'; | ||
| 41 | + item.is_examine = '0'; | ||
| 42 | + } | ||
| 39 | }) | 43 | }) |
| 44 | + list.sort((a, b) => a.is_examine - b.is_examine); | ||
| 45 | + list.sort((a, b) => a.is_expire - b.is_expire); | ||
| 40 | this.setData({ | 46 | this.setData({ |
| 41 | list, | 47 | list, |
| 42 | isShow:true, | 48 | isShow:true, |
| @@ -65,9 +71,18 @@ Page({ | @@ -65,9 +71,18 @@ Page({ | ||
| 65 | todetail(e) { | 71 | todetail(e) { |
| 66 | let item=e.currentTarget.dataset['item']; | 72 | let item=e.currentTarget.dataset['item']; |
| 67 | if(item.is_examine=='0' && item.is_expire=='0' && item.is_examine=='0' && item.status!='4' && item.status!='5'){ | 73 | if(item.is_examine=='0' && item.is_expire=='0' && item.is_examine=='0' && item.status!='4' && item.status!='5'){ |
| 68 | - wx.navigateTo({ | ||
| 69 | - url: '/pack-activity/pack/examineCertificate?id='+item.id, | ||
| 70 | - }) | 74 | + // 免费券 扫商家的付款码 进行使用 |
| 75 | + if(item.is_type == '3'){ | ||
| 76 | + wx.scanCode({ | ||
| 77 | + success: (res) => { | ||
| 78 | + } | ||
| 79 | + }) | ||
| 80 | + return | ||
| 81 | + }else{ | ||
| 82 | + wx.navigateTo({ | ||
| 83 | + url: '/pack-activity/pack/examineCertificate?id='+item.id, | ||
| 84 | + }) | ||
| 85 | + } | ||
| 71 | } | 86 | } |
| 72 | if(item.is_examine=='1' && item.is_expire=='0' && item.status!='4' && item.status!='5' && item.is_comment!='1'){ | 87 | if(item.is_examine=='1' && item.is_expire=='0' && item.status!='4' && item.status!='5' && item.is_comment!='1'){ |
| 73 | wx.navigateTo({ | 88 | wx.navigateTo({ |
| @@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
| 6 | <view wx:for="{{list}}" class="card bg-white"> | 6 | <view wx:for="{{list}}" class="card bg-white"> |
| 7 | <view class="flex-vl gray-font card-main" style="justify-content:space-between;"> | 7 | <view class="flex-vl gray-font card-main" style="justify-content:space-between;"> |
| 8 | <view class="seller-info flex-ll"> | 8 | <view class="seller-info flex-ll"> |
| 9 | - <view class="smooth font-siny font32r" wx:if="{{item.recharge_name}}">{{item.recharge_name}}</view> | 9 | + <view class="smooth font-siny font32r" wx:if="{{item.recharge_name || item.aname}}">{{item.recharge_name || item.aname}}</view> |
| 10 | </view> | 10 | </view> |
| 11 | <view class="font24r font-bold text1" wx:if="{{item.sellername}}">{{item.sellername}}</view> | 11 | <view class="font24r font-bold text1" wx:if="{{item.sellername}}">{{item.sellername}}</view> |
| 12 | <view class="font24r font-bold text1" wx:if="{{item.order_no}}">{{item.order_no}}</view> | 12 | <view class="font24r font-bold text1" wx:if="{{item.order_no}}">{{item.order_no}}</view> |
| @@ -54,7 +54,6 @@ Page({ | @@ -54,7 +54,6 @@ Page({ | ||
| 54 | this.getSellerVersionFun(sid) | 54 | this.getSellerVersionFun(sid) |
| 55 | } | 55 | } |
| 56 | this.couponModal = this.selectComponent("#couponModal"); | 56 | this.couponModal = this.selectComponent("#couponModal"); |
| 57 | - this.couponModal.showModal() | ||
| 58 | }, | 57 | }, |
| 59 | // 关闭优惠券弹框(更新已被领取数量) | 58 | // 关闭优惠券弹框(更新已被领取数量) |
| 60 | closeCouponModal() { | 59 | closeCouponModal() { |
-
Please register or login to post a comment