weliam-smartcity智慧城市
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
3.5 KiB

<view class="foodclassify" style="padding:30rpx;"><far-bottom vue-id="76b4a4ae-1" bind:__l="__l"></far-bottom><view><button style="border-radius:60rpx;height:80rpx;line-height:78rpx;font-size:30rpx;" type="primary" plain="true" data-event-opts="{{[['tap',[['onShows',['$event']]]]]}}" bindtap="__e">添加分类</button></view><view style="padding-top:30rpx;"><block wx:for="{{classList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="dis-flex" style="background-color:#f8f8f8;padding:30rpx;margin-bottom:30rpx;"><view style="flex:0.6;"><view class="f-30" style="padding-bottom:20rpx;"><view class="dis-il-block" style="vertical-align:bottom;">{{''+item.name+''}}</view><view class="dis-il-block" style="padding-left:20rpx;vertical-align:bottom;padding-bottom:3rpx;"><block wx:if="{{item.status==1}}"><image class="iconbox" src="{{imgfixUrls+'centerMerchant/clerksuccess.png'}}"></image></block><block wx:if="{{item.status==0}}"><image class="iconbox" src="{{imgfixUrls+'centerMerchant/clerkjian.png'}}"></image></block></view></view><view class="f-24" style="color:#999999;">排序:<text style="padding-left:20rpx;">{{item.sort}}</text></view></view><view style="flex:0.5;padding-top:15rpx;"><view style="float:right;"><button class="btn" style="margin-right:20rpx;" type="primary" plain="true" data-event-opts="{{[['tap',[['compile',['$0'],[[['classList','',index]]]]]]]}}" bindtap="__e">编辑</button><button class="btn" type="warn" plain="true" data-event-opts="{{[['tap',[['exspot',['$0'],[[['classList','',index]]]]]]]}}" bindtap="__e">删除</button></view></view></view></block></view><popup-view vue-id="76b4a4ae-2" show="{{show}}" type="center" bottom="0%" data-event-opts="{{[['^clickmask',[['onShows']]]]}}" bind:clickmask="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="b-f" style="padding:30rpx;width:70vw;border-radius:15rpx;"><view class="tilte t-c f-32" style="padding-bottom:20rpx;">{{''+tilte+'分类'}}<view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="iconfont icon-guanbijiantou" style="float:right;" bindtap="__e"></view></view><view class="home dis-flex" style="padding:30rpx 0;border-bottom:1px solid #f1f1f1;"><view class="t-r f-30" style="flex:0.3;color:#999999;line-height:60rpx;">分类名称</view><view style="flex:0.7;padding-left:20rpx;"><block wx:if="{{show}}"><input class="uni-input" placeholder="请输入分类的名称" data-event-opts="{{[['input',[['__set_model',['','className','$event',[]]]]]]}}" value="{{className}}" bindinput="__e"/></block></view></view><view class="home dis-flex" style="padding:30rpx 0;border-bottom:1px solid #f1f1f1;"><view class="t-r f-30" style="flex:0.3;color:#999999;line-height:60rpx;">排序</view><view style="flex:0.7;padding-left:20rpx;"><block wx:if="{{show}}"><input class="uni-input" placeholder="请输入排序数字" data-event-opts="{{[['input',[['__set_model',['','sortNum','$event',[]]]]]]}}" value="{{sortNum}}" bindinput="__e"/></block></view></view><block wx:if="{{tilte=='编辑'}}"><view class="home dis-flex" style="padding:30rpx 0;border-bottom:1px solid #f1f1f1;"><view class="t-r f-30" style="flex:0.3;color:#999999;line-height:60rpx;">分类开关</view><view style="flex:0.7;padding-left:20rpx;"><switch checked="{{status=='1'?true:false}}" data-event-opts="{{[['change',[['switch2Change',['$event']]]]]}}" bindchange="__e"></switch></view></view></block><button style="height:70rpx;line-height:68rpx;font-size:30rpx;margin-top:100rpx;" type="primary" data-event-opts="{{[['tap',[['addOrComlit',['$event']]]]]}}" bindtap="__e">确认</button></view></popup-view></view>