1 |
- <app-layout vue-id="1e38cfec-1" class="data-v-28da26fe" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{mch_id||mch_id==0}}"><view class="cat-info data-v-28da26fe"><view class="cat-item type cross-center dir-left-nowrap data-v-28da26fe"><view class="form-label data-v-28da26fe">分类级别</view><view class="select data-v-28da26fe"><radio-group data-event-opts="{{[['change',[['typeChange',['$event']]]]]}}" class="dir-left-nowrap main-between data-v-28da26fe" bindchange="__e"><block wx:for="{{level}}" wx:for-item="item" wx:for-index="__i0__" wx:key="value"><label class="dir-left-nowrap cross-center data-v-28da26fe" style="width:33%;"><view class="data-v-28da26fe"><radio disabled="{{id>0}}" color="{{color}}" value="{{item.value}}" checked="{{item.value==catItem.level}}" class="data-v-28da26fe"></radio></view><view class="select-label data-v-28da26fe" style="{{'color:'+(id>0?'#adadb2':catItem.level==item.value?color:'#353535')+';'}}">{{item.label}}</view></label></block></radio-group></view></view><block wx:if="{{catItem.level>1}}"><view class="cat-item cross-center main-between data-v-28da26fe"><view class="form-label data-v-28da26fe"><view class="data-v-28da26fe"><text style="color:#ff4544;" class="data-v-28da26fe">*</text>一级分类</view></view><view data-event-opts="{{[['tap',[['getList',['one']]]]]}}" style="flex-grow:1;" bindtap="__e" class="data-v-28da26fe"><view class="cat-info dir-right-nowrap cross-center data-v-28da26fe"><image class="to-more data-v-28da26fe" src="/static/image/icon/arrow-right.png"></image><block wx:if="{{parents}}"><text class="t-omit data-v-28da26fe" style="color:#353535;width:90%;text-align:right;">{{parents.label}}</text></block><block wx:else><text style="color:#cdcdcd;" class="data-v-28da26fe">请选择归属的一级分类</text></block></view></view></view></block><block wx:if="{{catItem.level>2}}"><view class="cat-item cross-center main-between data-v-28da26fe"><view class="form-label data-v-28da26fe"><view class="data-v-28da26fe"><text style="color:#ff4544;" class="data-v-28da26fe">*</text>二级分类</view></view><view data-event-opts="{{[['tap',[['getList',['two']]]]]}}" style="flex-grow:1;" bindtap="__e" class="data-v-28da26fe"><view class="cat-info dir-right-nowrap cross-center data-v-28da26fe"><image class="to-more data-v-28da26fe" src="/static/image/icon/arrow-right.png"></image><block wx:if="{{parents_two}}"><text class="t-omit data-v-28da26fe" style="color:#353535;width:90%;text-align:right;">{{parents_two.label}}</text></block><block wx:else><text style="color:#cdcdcd;" class="data-v-28da26fe">请选择归属的二级分类</text></block></view></view></view></block><view class="cat-item cross-center dir-left-nowrap data-v-28da26fe"><view class="form-label data-v-28da26fe"><text style="color:#ff4544;" class="data-v-28da26fe">*</text>分类名称</view><view class="dir-left-nowrap price-input cross-center data-v-28da26fe"><input class="input data-v-28da26fe" placeholder-style="color: #cdcdcd" maxlength="16" placeholder="请输入分类名称" data-event-opts="{{[['input',[['__set_model',['$0','name','$event',[]],['catItem']]]]]}}" value="{{catItem.name}}" bindinput="__e"/></view></view><view class="cat-item cross-center dir-left-nowrap data-v-28da26fe"><view class="form-label data-v-28da26fe"><text style="color:#ff4544;" class="data-v-28da26fe">*</text>排序</view><view class="dir-left-nowrap price-input cross-center data-v-28da26fe"><input class="input data-v-28da26fe" type="number" placeholder-style="color: #cdcdcd" placeholder="请输入排序" data-event-opts="{{[['input',[['__set_model',['$0','sort','$event',[]],['catItem']]]]]}}" value="{{catItem.sort}}" bindinput="__e"/></view></view><view class="cat-item cross-center main-between data-v-28da26fe"><view class="form-label data-v-28da26fe"><view class="data-v-28da26fe">分类图标</view><view class="sub-label data-v-28da26fe">200x200</view></view><view class="data-v-28da26fe"><view data-event-opts="{{[['tap',[['add',['pic_url']]]]]}}" class="cat-info dir-right-nowrap cross-center data-v-28da26fe" bindtap="__e"><image class="to-more data-v-28da26fe" src="/static/image/icon/arrow-right.png"></image><block wx:if="{{catItem.pic_url}}"><image class="cat-pic data-v-28da26fe" src="{{catItem.pic_url}}"></image></block><block wx:else><text style="color:#cdcdcd;" class="data-v-28da26fe">请上传分类图标</text></block></view></view></view><view class="cat-item cross-center main-between data-v-28da26fe"><view class="form-label data-v-28da26fe"><view class="data-v-28da26fe">分类大图</view><view class="sub-label data-v-28da26fe">702x212</view></view><view class="data-v-28da26fe"><view data-event-opts="{{[['tap',[['add',['big_pic_url']]]]]}}" class="cat-info dir-right-nowrap cross-center data-v-28da26fe" bindtap="__e"><image class="to-more data-v-28da26fe" src="/static/image/icon/arrow-right.png"></image><block wx:if="{{catItem.big_pic_url}}"><image class="cat-pic big data-v-28da26fe" src="{{catItem.big_pic_url}}"></image></block><block wx:else><text style="color:#cdcdcd;" class="data-v-28da26fe">请上传分类大图</text></block></view></view></view><view class="cat-item cross-center main-between data-v-28da26fe"><view class="form-label data-v-28da26fe"><view class="data-v-28da26fe">分类广告图</view><view class="sub-label data-v-28da26fe">500x184</view></view><view class="data-v-28da26fe"><view data-event-opts="{{[['tap',[['add',['advert_pic']]]]]}}" class="cat-info dir-right-nowrap cross-center data-v-28da26fe" bindtap="__e"><image class="to-more data-v-28da26fe" src="/static/image/icon/arrow-right.png"></image><block wx:if="{{catItem.advert_pic}}"><image class="cat-pic advert data-v-28da26fe" src="{{catItem.advert_pic}}"></image></block><block wx:else><text style="color:#cdcdcd;" class="data-v-28da26fe">请上传分类广告图</text></block></view></view></view><block wx:if="{{mch_id==0}}"><view class="cat-item cross-center main-between data-v-28da26fe"><view class="form-label data-v-28da26fe"><view class="data-v-28da26fe">广告链接</view></view><view data-event-opts="{{[['tap',[['getList',['ad']]]]]}}" style="flex-grow:1;" bindtap="__e" class="data-v-28da26fe"><view class="cat-info dir-right-nowrap cross-center data-v-28da26fe"><image class="to-more data-v-28da26fe" src="/static/image/icon/arrow-right.png"></image><block wx:if="{{catItem.advert_url}}"><text class="data-v-28da26fe">{{catItem.advert_url}}</text></block><block wx:else><text style="color:#cdcdcd;" class="data-v-28da26fe">请选择链接</text></block></view></view></view></block><view class="cat-item cross-center main-between data-v-28da26fe"><view class="form-label data-v-28da26fe">是否启用</view><switch style="transform:scale(0.7);" color="{{color}}" checked="{{catItem.status==1}}" data-event-opts="{{[['change',[['e0',['$event']]]]]}}" bindchange="__e" class="data-v-28da26fe"></switch></view><view class="cat-item cross-center main-between data-v-28da26fe"><view class="form-label data-v-28da26fe">是否显示</view><switch style="transform:scale(0.7);" color="{{color}}" checked="{{catItem.is_show==true}}" data-event-opts="{{[['change',[['e1',['$event']]]]]}}" bindchange="__e" class="data-v-28da26fe"></switch></view></view></block><block wx:if="{{mch_id||mch_id==0}}"><view class="{{['data-v-28da26fe','placeholder',''+(iphone_x?'iphone_x':'')]}}"></view></block><block wx:if="{{mch_id||mch_id==0}}"><view class="{{['data-v-28da26fe','add',''+(iphone_x?'iphone_x':'')]}}"><view data-event-opts="{{[['tap',[['save',['$event']]]]]}}" style="{{'background-color:'+(color)+';'}}" bindtap="__e" class="data-v-28da26fe">保存</view></view></block><block wx:if="{{dialog}}"><view class="{{['data-v-28da26fe','dialog',''+(iphone_x?'iphone_x':'')]}}"><view class="picker-list data-v-28da26fe"><view class="main-between picker-header data-v-28da26fe" style="{{'color:'+(color)+';'}}"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" bindtap="__e" class="data-v-28da26fe">取消</view><view data-event-opts="{{[['tap',[['submitChoose',['$event']]]]]}}" bindtap="__e" class="data-v-28da26fe">确定</view></view><block wx:if="{{mode=='ad'}}"><view class="picker-type dir-left-nowrap cross-center data-v-28da26fe"><block wx:for="{{linkType}}" wx:for-item="item" wx:for-index="__i1__" wx:key="value"><view data-event-opts="{{[['tap',[['toggleType',['$0'],[[['linkType','value',item.value,'value']]]]]]]}}" class="{{['picker-type-item','box-grow-1','data-v-28da26fe',chooseType==item.value?'active':'']}}" style="{{'color:'+(chooseType==item.value?color:'#353535')+';'+('border-color:'+(chooseType==item.value?color:'#fff')+';')}}" bindtap="__e">{{item.name}}</view></block></view></block><block wx:if="{{pickList.length>0}}"><picker-view class="picker data-v-28da26fe" indicator-style="height: 34px;" value="{{chooseIndex}}" data-event-opts="{{[['change',[['bindChange',['$event']]]]]}}" bindchange="__e"><picker-view-column class="data-v-28da26fe"><block wx:for="{{pickList}}" wx:for-item="item" wx:for-index="idx" wx:key="idx"><view class="picker-text t-omit data-v-28da26fe" style="{{'color:'+(newIndex==idx?color:newIndex==idx+1||newIndex==idx-1?'#999999':newIndex==idx+2||newIndex==idx-2?'#cdcdcd':'')+';'}}">{{mode=='ad'?item.name:item.label}}</view></block></picker-view-column></picker-view></block><block wx:else><block wx:if="{{pickList.length==0&&mode=='ad'}}"><view class="picker data-v-28da26fe" style="background-color:#fff;"></view></block></block></view></view></block><block wx:if="{{showParams}}"><view class="params-dialog main-center cross-center data-v-28da26fe"><view class="params data-v-28da26fe"><view class="params-title data-v-28da26fe">{{title}}</view><view class="params-list data-v-28da26fe"><block wx:for="{{params}}" wx:for-item="item" wx:for-index="__i2__" wx:key="key"><view class="params-item data-v-28da26fe"><view class="main-center cross-center data-v-28da26fe"><view class="params-label data-v-28da26fe">{{item.key}}</view><view class="params-input data-v-28da26fe"><input type="{{item.number}}" data-event-opts="{{[['input',[['__set_model',['$0','value','$event',[]],[[['params','key',item.key]]]]]]]}}" value="{{item.value}}" bindinput="__e" class="data-v-28da26fe"/></view></view><view class="params-desc data-v-28da26fe">{{item.desc}}</view></view></block></view><view class="params-buttons dir-left-nowrap cross-center data-v-28da26fe"><view class="but cancel data-v-28da26fe"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" bindtap="__e" class="data-v-28da26fe">取消</view></view><view class="line data-v-28da26fe"></view><view class="but confirm data-v-28da26fe"><view data-event-opts="{{[['tap',[['paramsConfirm',['$event']]]]]}}" bindtap="__e" class="data-v-28da26fe">确认</view></view></view></view></view></block></app-layout>
|