| 1 |
- <view class="app-content _div data-v-618a9400"><view class="list-wrap _div data-v-618a9400"><block wx:if="{{!$root.g0}}"><block class="data-v-618a9400"><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="list _div data-v-618a9400"><view class="list-img _div data-v-618a9400"><image src="{{item.img}}" alt mode="aspectFit" class="_img data-v-618a9400"></image></view><view data-event-opts="{{[['tap',[['edit',['$0'],[[['list.data','',index]]]]]]]}}" class="list-det _div data-v-618a9400" bindtap="__e"><view class="app-size-28 app-color-0 _div data-v-618a9400">{{item.categoryName}}</view><view class="_div data-v-618a9400"><block wx:if="{{item.status==1}}"><text style="color:green;" class="data-v-618a9400">启用</text></block><block wx:else><text class="data-v-618a9400">停用</text></block></view><view class="list-operate _div data-v-618a9400"><view class="operate-det _div data-v-618a9400"><label data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" data-event-params="{{({item})}}" catchtap="__e" class="_span data-v-618a9400">编辑</label><label data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" data-event-params="{{({item})}}" catchtap="__e" class="_span data-v-618a9400"><block wx:if="{{item.status==1}}"><text class="data-v-618a9400">停用</text></block><block wx:else><text class="data-v-618a9400">启用</text></block></label><label data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" data-event-params="{{({item})}}" catchtap="__e" class="_span data-v-618a9400">删除</label></view></view></view></view></block></block></block><block wx:else><block class="data-v-618a9400"><app-wrapper-empty vue-id="181c8b06-1" title="暂无数据" is-empty="{{$root.g1}}" class="data-v-618a9400" bind:__l="__l"></app-wrapper-empty></block></block></view><view class="app-footer _div data-v-618a9400"><button data-event-opts="{{[['tap',[['addCategoryFn',['$event']]]]]}}" class="admin-button-com middle blue data-v-618a9400" bindtap="__e">添加分类</button></view><modal-module vue-id="181c8b06-2" show="{{modifyModal}}" maskClosable="{{false}}" width="92%" title="{{modifyTitle}}" padding="30upx 30upx" data-event-opts="{{[['^cancel',[['modalCancel']]],['^click',[['modifyModalClick']]]]}}" bind:cancel="__e" bind:click="__e" class="data-v-618a9400" bind:__l="__l" vue-slots="{{['content']}}"><view slot="content"><view class="app-modal-input-wrap modify-modal _div data-v-618a9400"><view class="inp-list-line _div data-v-618a9400"><view class="line-label _div data-v-618a9400">名称</view><view class="line-input _div data-v-618a9400"><input class="inp-input data-v-618a9400" type="text" adjust-position="{{false}}" placeholder="请填写" data-event-opts="{{[['input',[['__set_model',['$0','categoryName','$event',[]],['modifyForm']]]]]}}" value="{{modifyForm.categoryName}}" bindinput="__e"/></view></view><view class="inp-list-line _div data-v-618a9400"><view class="line-label _div data-v-618a9400">图片</view><view class="line-input flex-strat _div data-v-618a9400"><app-uploader vue-id="{{('181c8b06-3')+','+('181c8b06-2')}}" multiple="{{false}}" imgList="{{modifyForm.img}}" data-ref="appUploader" data-event-opts="{{[['^updateImgList',[['__set_sync',['$0','img','$event'],['modifyForm']]]],['^updateImgList',[['__set_sync',['$0','img','$event'],['modifyForm']]]]]}}" bind:updateImgList="__e" class="data-v-618a9400 vue-ref" bind:__l="__l"></app-uploader></view></view><view class="inp-list-line _div data-v-618a9400"><view class="line-label _div data-v-618a9400">排序</view><view class="line-input _div data-v-618a9400"><input class="inp-input data-v-618a9400" type="text" adjust-position="{{false}}" placeholder="越大越靠前" data-event-opts="{{[['input',[['__set_model',['$0','inTurn','$event',[]],['modifyForm']]]]]}}" value="{{modifyForm.inTurn}}" bindinput="__e"/></view></view><view class="inp-list-line switch-wrap _div data-v-618a9400"><view class="line-label _div data-v-618a9400">启用</view><view class="line-input flex-strat _div data-v-618a9400"><switch checked="{{modifyForm.status=='0'?false:true}}" data-event-opts="{{[['change',[['switchChangeFn',['$event']]]]]}}" bindchange="__e" class="data-v-618a9400"></switch></view></view></view></view></modal-module></view>
|