index.wxml 2.8 KB

1
  1. <view class="pages data-v-37f9c3e4"><view class="nav data-v-37f9c3e4"><view data-event-opts="{{[['tap',[['change',[0]]]]]}}" class="{{['data-v-37f9c3e4',(status==0)?'nav_btna':'']}}" bindtap="__e">可使用</view><view data-event-opts="{{[['tap',[['change',[1]]]]]}}" class="{{['data-v-37f9c3e4',(status==1)?'nav_btna':'']}}" bindtap="__e">已使用</view><view data-event-opts="{{[['tap',[['change',[2]]]]]}}" class="{{['data-v-37f9c3e4',(status==2)?'nav_btna':'']}}" bindtap="__e">已失效</view></view><view class="cont_one data-v-37f9c3e4"><block wx:for="{{dataList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="cont_one_ce data-v-37f9c3e4"><view class="cont_one_top data-v-37f9c3e4"><view class="cont_one_top_le flex align-center data-v-37f9c3e4"><image style="margin-right:10rpx;width:65rpx;height:35rpx;border-radius:8rpx;" src="{{item.shopId==0||item.shopId==null?imgtype2:imgtype1}}" mode class="data-v-37f9c3e4"></image>{{''+item.couponName+''}}</view><view class="cont_one_top_ri data-v-37f9c3e4"><text class="data-v-37f9c3e4">¥</text>{{item.money}}</view></view><view class="cont_one_text data-v-37f9c3e4" style="font-size:28rpx;"><text class="data-v-37f9c3e4">{{"有效期至"+item.expirationTime}}</text><block wx:if="{{item.minMoney}}"><view class="data-v-37f9c3e4">{{"满"+item.minMoney+"元可用"}}</view></block><block wx:if="{{!item.minMoney}}"><view class="data-v-37f9c3e4">无门槛优惠券</view></block></view><view class="cont_one_bottom data-v-37f9c3e4"><view class="cont_one_bottom_le data-v-37f9c3e4">优惠券一张</view><block wx:if="{{status==0}}"><view data-event-opts="{{[['tap',[['use',['$0'],[[['dataList','',index]]]]]]]}}" class="cont_one_bottom_ri flex justify-center align-center data-v-37f9c3e4" bindtap="__e">立即使用</view></block></view><block wx:if="{{status==1}}"><view class="cont_one_img data-v-37f9c3e4"><image src="../static/coupon/has.png" mode class="data-v-37f9c3e4"></image></view></block><block wx:if="{{status==2}}"><view class="cont_one_img data-v-37f9c3e4"><image src="../static/coupon/failure.png" mode class="data-v-37f9c3e4"></image></view></block></view></block></view><block wx:if="{{!$root.g0}}"><empty vue-id="c73db690-1" class="data-v-37f9c3e4" bind:__l="__l"></empty></block><u-popup bind:input="__e" vue-id="c73db690-2" closeable="{{true}}" mode="center" border-radius="20" value="{{popupShow}}" data-event-opts="{{[['^input',[['__set_model',['','popupShow','$event',[]]]]]]}}" class="data-v-37f9c3e4" bind:__l="__l" vue-slots="{{['default']}}"><view class="margin-tb text-center text-lg text-bold data-v-37f9c3e4">使用规则</view><view class="padding-lr padding-bottom data-v-37f9c3e4"><view style="color:#333333;font-size:28rpx;width:550rpx;height:70vh;" class="data-v-37f9c3e4"><rich-text nodes="{{content}}"></rich-text></view></view></u-popup></view>