You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
2.9 KiB
1 lines
2.9 KiB
<view><view class="tabr" style="{{'top:'+(headerTop)+';'}}"><view data-event-opts="{{[['tap',[['switchType',['valid']]]]]}}" class="{{[(typeClass=='valid')?'on':'']}}" bindtap="__e">{{"待领取("+couponValidList.length+")"}}</view><view data-event-opts="{{[['tap',[['switchType',['invalid']]]]]}}" class="{{[(typeClass=='invalid')?'on':'']}}" bindtap="__e">{{"我的优惠券("+mycouponvalidList.length+")"}}</view><view class="{{['border',typeClass]}}"></view></view><view class="place"></view><view class="list"><view class="{{['sub-list','valid',subState]}}"><block wx:if="{{couponValidList.length==0}}"><view class="tis">暂无可领优惠券~</view></block><block wx:for="{{couponValidList}}" wx:for-item="row" wx:for-index="index" wx:key="index"><view class="row"><view class="{{['carrier',typeClass=='valid'?theIndex==index?'open':oldIndex==index?'close':'':'']}}"><view class="left"><view class="title">{{''+row.lx+''}}</view><view class="term">{{''+row.brq+" ~ "+row.erq+''}}</view><view class="gap-top"></view><view class="gap-bottom"></view></view><view data-event-opts="{{[['tap',[['dogetcoupon',['$0'],[[['couponValidList','',index,'id']]]]]]]}}" class="right" bindtap="__e"><view class="ticket"><view class="num">{{''+row.jine+''}}</view><view class="unit">元</view></view><view class="criteria">{{'满'+row.manjine+'使用'}}</view><view class="use">立即领取</view></view></view></view></block></view><view class="{{['sub-list','invalid',subState]}}"><block wx:if="{{mycouponvalidList.length==0}}"><view class="tis">暂无优惠券哦~</view></block><block wx:for="{{mycouponvalidList}}" wx:for-item="row" wx:for-index="index" wx:key="index"><view class="row"><view class="{{['carrier',typeClass=='invalid'?theIndex==index?'open':oldIndex==index?'close':'':'']}}"><view class="left"><view class="title">{{''+row.lx+''}}</view><view class="term">{{''+row.brq+" ~ "+row.erq+''}}<block wx:if="{{row.number>1}}"><view class="shengyu">{{"剩余"+row.number+"张"}}</view></block></view><view class="gap-top"></view><view class="gap-bottom"></view></view><view class="right invalid"><view class="ticket"><view class="num">{{''+row.jine+''}}</view><view class="unit">元</view></view><view class="criteria">{{'满'+row.manjine+'使用'}}</view><block wx:if="{{fromchoose==1}}"><view class="use"><block wx:if="{{row.id==yid}}"><label data-event-opts="{{[['tap',[['chooseit',['$0','$1','$2',0],[[['mycouponvalidList','',index,'id']],[['mycouponvalidList','',index,'jine']],[['mycouponvalidList','',index,'manjine']]]]]]]}}" style="color:red;" bindtap="__e" class="_span">取消</label></block><block wx:else><label data-event-opts="{{[['tap',[['chooseit',['$0','$1','$2',1],[[['mycouponvalidList','',index,'id']],[['mycouponvalidList','',index,'jine']],[['mycouponvalidList','',index,'manjine']]]]]]]}}" bindtap="__e" class="_span">选择</label></block></view></block><block wx:else><view class="use">待使用</view></block></view></view></view></block></view></view></view>
|