<app-layout vue-id="33d1cf58-1" class="data-v-37e044cc" bind:__l="__l" vue-slots="{{['default']}}"><view class="add-cat data-v-37e044cc"><block wx:if="{{mch_id||mch_id==0}}"><view data-event-opts="{{[['tap',[['editCat',['$event']]]]]}}" class="add-cat-btn main-center data-v-37e044cc" style="{{'border-color:'+(color)+';'+('color:'+(color)+';')}}" bindtap="__e"><image src="{{mch_id==0?'./../image/add.png':'./../image/mch-add.png'}}" class="data-v-37e044cc"></image><view class="data-v-37e044cc">新增分类</view></view></block></view><view class="data-v-37e044cc"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="__i0__" wx:key="value"><view class="cat data-v-37e044cc"><view data-event-opts="{{[['tap',[['toggle',['$0'],[[['list','value',item.value]]]]]]]}}" class="main-between cat-item data-v-37e044cc" bindtap="__e"><view class="dir-left-nowrap cat-name data-v-37e044cc"><block wx:if="{{item.children}}"><view class="show-more cross-center main-center data-v-37e044cc"><block wx:if="{{!item.show}}"><image src="/static/image/icon/right.png" class="data-v-37e044cc"></image></block><block wx:else><image class="bottom data-v-37e044cc" src="/static/image/icon/bottom.png"></image></block></view></block><view class="{{['data-v-37e044cc',''+(item.children?'':'cat-left')]}}">{{item.label}}</view></view><view class="cat-menu dir-left-nowrap cross-center data-v-37e044cc"><image src="./../image/edit.png" data-event-opts="{{[['tap',[['editCat',['$0'],[[['list','value',item.value]]]]]]]}}" catchtap="__e" class="data-v-37e044cc"></image><image src="./../image/low.png" data-event-opts="{{[['tap',[['pop',['$0'],[[['list','value',item.value,'value']]]]]]]}}" catchtap="__e" class="data-v-37e044cc"></image></view></view><block wx:for="{{item.children}}" wx:for-item="sec" wx:for-index="__i1__" wx:key="value"><block wx:if="{{item.children&&item.show}}"><view class="data-v-37e044cc"><view data-event-opts="{{[['tap',[['toggle',['$0'],[[['list','value',item.value],['children','value',sec.value]]]]]]]}}" class="main-between cat-item sec-cat data-v-37e044cc" catchtap="__e"><view class="show-more data-v-37e044cc"></view><view class="dir-left-nowrap cat-name data-v-37e044cc"><block wx:if="{{sec.children}}"><view class="show-more cross-center main-center data-v-37e044cc"><block wx:if="{{!sec.show}}"><image src="/static/image/icon/right.png" class="data-v-37e044cc"></image></block><block wx:else><image class="bottom data-v-37e044cc" src="/static/image/icon/bottom.png"></image></block></view></block><view class="{{['data-v-37e044cc',''+(sec.children?'':'cat-left')]}}">{{sec.label}}</view></view><view class="cat-menu dir-left-nowrap cross-center data-v-37e044cc"><image src="./../image/edit.png" data-event-opts="{{[['tap',[['editCat',['$0'],[[['list','value',item.value],['children','value',sec.value]]]]]]]}}" catchtap="__e" class="data-v-37e044cc"></image><image src="./../image/low.png" data-event-opts="{{[['tap',[['pop',['$0'],[[['list','value',item.value],['children','value',sec.value,'value']]]]]]]}}" catchtap="__e" class="data-v-37e044cc"></image></view></view><block wx:for="{{sec.children}}" wx:for-item="third" wx:for-index="__i2__" wx:key="value"><block wx:if="{{sec.children&&sec.show}}"><view class="data-v-37e044cc"><view class="main-between cat-item sec-cat data-v-37e044cc"><view class="show-more data-v-37e044cc"></view><view class="dir-left-nowrap cat-name data-v-37e044cc"><view class="show-more data-v-37e044cc"></view><view class="data-v-37e044cc">{{third.label}}</view></view><view class="cat-menu dir-left-nowrap cross-center data-v-37e044cc"><image src="./../image/edit.png" data-event-opts="{{[['tap',[['editCat',['$0'],[[['list','value',item.value],['children','value',sec.value],['children','value',third.value]]]]]]]}}" catchtap="__e" class="data-v-37e044cc"></image><image src="./../image/low.png" data-event-opts="{{[['tap',[['pop',['$0'],[[['list','value',item.value],['children','value',sec.value],['children','value',third.value,'value']]]]]]]}}" catchtap="__e" class="data-v-37e044cc"></image></view></view></view></block></block></view></block></block></view></block><block wx:if="{{value>-1}}"><view class="dialog data-v-37e044cc"><view class="dialog-item data-v-37e044cc"><view class="dialog-title data-v-37e044cc">确定删除这个分类吗？</view><view class="main-center btn-area data-v-37e044cc"><view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="submit-btn data-v-37e044cc" bindtap="__e">取消</view><view class="line data-v-37e044cc"></view><view data-event-opts="{{[['tap',[['toDelete',['$event']]]]]}}" class="submit-btn be-submit data-v-37e044cc" bindtap="__e">删除</view></view></view></view></block></view></app-layout>