<view style="position:absolute;width:100%;height:100%;top:0;left:0;background-color:#fff;" class="data-v-bdff2d70"><app-layout vue-id="7f0d40be-1" class="data-v-bdff2d70" bind:__l="__l" vue-slots="{{['default']}}"><view class="title data-v-bdff2d70">{{list.length>0?'已添加卡券':'未添加卡券'}}</view><view class="card-list data-v-bdff2d70"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view class="main-between card-item data-v-bdff2d70"><view class="card-info dir-left-nowrap data-v-bdff2d70" style="width:80%;"><view data-event-opts="{{[['tap',[['close',[index]]]]]}}" class="card-img data-v-bdff2d70" bindtap="__e"><image src="./../image/low.png" class="data-v-bdff2d70"></image></view><view data-event-opts="{{[['tap',[['add',[index,'$0'],[[['list','id',item.id]]]]]]]}}" class="t-omit data-v-bdff2d70" bindtap="__e">{{item.name}}</view></view><view class="data-v-bdff2d70">{{item.num}}</view></view></block></view><view class="{{['data-v-bdff2d70','add main-between',''+(iphone_x?'iphone_x':'')]}}"><view data-event-opts="{{[['tap',[['add',['$event']]]]]}}" class="add-btn data-v-bdff2d70" bindtap="__e">添加卡券</view><view data-event-opts="{{[['tap',[['save',['$event']]]]]}}" class="save-btn data-v-bdff2d70" bindtap="__e">保存</view></view><block wx:if="{{to_add}}"><view class="dialog data-v-bdff2d70"><view class="dialog-content data-v-bdff2d70"><view class="dialog-title data-v-bdff2d70">选择卡券</view><view class="main-between choose-item data-v-bdff2d70"><view class="label data-v-bdff2d70">选择卡券</view><view data-event-opts="{{[['tap',[['showDialog',['$event']]]]]}}" class="cat-info dir-right-nowrap cross-center data-v-bdff2d70" bindtap="__e"><image class="to-more data-v-bdff2d70" src="/static/image/icon/arrow-right.png"></image><block wx:if="{{beCard&&beCard.id>0}}"><text class="t-omit data-v-bdff2d70">{{beCard.name}}</text></block><block wx:else><text class="data-v-bdff2d70">未选择</text></block></view></view><view class="main-between choose-item data-v-bdff2d70" style="border-bottom:0;"><view class="label data-v-bdff2d70">填写张数(张)</view><input class="number-input data-v-bdff2d70" type="number" maxlength="3" data-event-opts="{{[['input',[['__set_model',['','num','$event',[]]]]]]}}" value="{{num}}" bindinput="__e"/></view><view class="main-center btn-area data-v-bdff2d70"><view data-event-opts="{{[['tap',[['cancel',['$event']]]]]}}" class="submit-btn data-v-bdff2d70" bindtap="__e">取消</view><view class="line data-v-bdff2d70"></view><view data-event-opts="{{[['tap',[['submit',['$event']]]]]}}" class="submit-btn be-submit data-v-bdff2d70" bindtap="__e">确认</view></view></view></view></block><block wx:if="{{dialog}}"><view class="{{['data-v-bdff2d70','dialog',''+(iphone_x?'iphone_x':'')]}}"><view class="picker-list data-v-bdff2d70"><view class="main-between picker-header data-v-bdff2d70"><view data-event-opts="{{[['tap',[['toggle',['$event']]]]]}}" bindtap="__e" class="data-v-bdff2d70">取消</view><view data-event-opts="{{[['tap',[['toggle',[1]]]]]}}" bindtap="__e" class="data-v-bdff2d70">确定</view></view><picker-view class="picker data-v-bdff2d70" value="{{[newIndex]}}" data-event-opts="{{[['change',[['bindChange',['$event']]]]]}}" bindchange="__e"><picker-view-column class="data-v-bdff2d70"><block wx:for="{{card}}" wx:for-item="item" wx:for-index="idx" wx:key="id"><view class="{{['data-v-bdff2d70','picker-item',[(newIndex==idx)?'sure-color':'',(newIndex==idx+1||newIndex==idx-1)?'cardinal-color':'',(newIndex==idx+2||newIndex==idx-2)?'even-color':'']]}}">{{''+item.name+''}}</view></block></picker-view-column></picker-view></view></view></block></app-layout></view>