goods-cat.wxml 2.9 KB

1
  1. <view style="position:absolute;width:100%;height:100%;top:0;left:0;background-color:#fff;" class="data-v-6add8286"><app-layout vue-id="13a2c044-1" class="data-v-6add8286" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{list.length==0}}"><view class="title data-v-6add8286">暂无分类,请添加</view></block><view class="dir-left-wrap cat-list data-v-6add8286"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="value"><view class="cross-center dir-left-nowrap cat-item data-v-6add8286"><view class="data-v-6add8286">{{item.label}}</view><view data-event-opts="{{[['tap',[['delCat',[index]]]]]}}" class="close cross-center main-center data-v-6add8286" bindtap="__e"><image src="./../image/cat-close.png" data-event-opts="{{[['tap',[['delCat',[index]]]]]}}" bindtap="__e" class="data-v-6add8286"></image></view></view></block></view><view class="{{['data-v-6add8286','add main-between',''+(iphone_x?'iphone_x':'')]}}"><view data-event-opts="{{[['tap',[['add',['$event']]]]]}}" class="add-btn data-v-6add8286" bindtap="__e">添加分类</view><view data-event-opts="{{[['tap',[['save',['$event']]]]]}}" class="save-btn data-v-6add8286" bindtap="__e">保存</view></view><block wx:if="{{dialog}}"><view class="dialog data-v-6add8286"><view class="picker-list data-v-6add8286"><view class="main-between picker-header data-v-6add8286"><view data-event-opts="{{[['tap',[['cancel',['$event']]]]]}}" bindtap="__e" class="data-v-6add8286">取消</view><view data-event-opts="{{[['tap',[['toAdd',['$event']]]]]}}" bindtap="__e" class="data-v-6add8286">新增</view></view><picker-view indicator-style="height: 36px;" value="{{[index]}}" data-event-opts="{{[['change',[['bindChange',['$event']]]]]}}" bindchange="__e" class="data-v-6add8286"><picker-view-column class="data-v-6add8286"><block wx:for="{{cat}}" wx:for-item="item" wx:for-index="idx" wx:key="value"><view class="{{['data-v-6add8286','picker-view',[(index_1===idx)?'sure-color':'',(index_1===idx+1||index_1===idx-1)?'cardinal-color':'',(index_1===idx+2||index_1===idx-2)?'even-color':'']]}}">{{''+item.label+''}}</view></block></picker-view-column><picker-view-column class="data-v-6add8286"><block wx:for="{{sec_list}}" wx:for-item="item" wx:for-index="idx" wx:key="value"><view class="{{['data-v-6add8286','picker-view',[(index_2===idx)?'sure-color':'',(index_2===idx+1||index_2===idx-1)?'cardinal-color':'',(index_2===idx+2||index_2===idx-2)?'even-color':'']]}}">{{''+item.label+''}}</view></block></picker-view-column><picker-view-column class="data-v-6add8286"><block wx:for="{{third_list}}" wx:for-item="item" wx:for-index="idx" wx:key="value"><view class="{{['data-v-6add8286','picker-view',[(index_3===idx)?'sure-color':'',(index_3===idx+1||index_3===idx-1)?'cardinal-color':'',(index_3===idx+2||index_3===idx-2)?'even-color':'']]}}">{{''+item.label+''}}</view></block></picker-view-column></picker-view></view></view></block></app-layout></view>