canyin-project/ybcy/miniApp/yb_shd/my/storeset/spgl/sxsz.wxml
2024-11-01 16:07:54 +08:00

1 line
5.1 KiB
Plaintext

<view class="pb130 data-v-1c1eb0d2"><view class="p3 data-v-1c1eb0d2"><block wx:for="{{arr}}" wx:for-item="v" wx:for-index="i" wx:key="i"><mg-cell vue-id="{{'90c82780-1-'+i}}" cname="23 mb30 bs20" last="1" class="data-v-1c1eb0d2" bind:__l="__l" vue-slots="{{['bd','ft']}}"><view class="mr30 data-v-1c1eb0d2" slot="bd"><view class="f30 data-v-1c1eb0d2">{{v.name}}<text class="f24 c9 ml20 data-v-1c1eb0d2">{{"(排序:"+v.sort+")"}}</text></view><view class="f-raw data-v-1c1eb0d2"><block wx:for="{{v.attr_str}}" wx:for-item="sv" wx:for-index="si" wx:key="si"><view class="bf5 c9 mr20 mt20 f24 bs10 bq data-v-1c1eb0d2">{{sv.sxz+''}}</view></block></view></view><view class="b-df bs10 p-5-20 f26 c3 data-v-1c1eb0d2" slot="ft" data-event-opts="{{[['tap',[['sz',['$0'],[[['arr','',i]]]]]]]}}" bindtap="__e">设置</view></mg-cell></block></view><view class="foot-btnc mt30 data-v-1c1eb0d2"><button class="foot-btn2 data-v-1c1eb0d2" style="{{'background:'+(tColor)+';'}}" loading="{{loading}}" disabled="{{loading}}" hover-class="btnhc" data-event-opts="{{[['tap',[['xjfl',['$event']]]]]}}" bindtap="__e">新增属性</button></view><mg-as vue-id="90c82780-2" list="{{list}}" value="{{show}}" data-event-opts="{{[['^con',[['asdj']]],['^input',[['__set_model',['','show','$event',[]]]]]]}}" bind:con="__e" bind:input="__e" class="data-v-1c1eb0d2" bind:__l="__l"></mg-as><mg-modal bind:input="__e" vue-id="90c82780-3" vs="{{true}}" ismr="{{true}}" width="650rpx" z-index="{{3000}}" value="{{showtc}}" data-event-opts="{{[['^input',[['__set_model',['','showtc','$event',[]]]]]]}}" class="data-v-1c1eb0d2" bind:__l="__l" vue-slots="{{['default']}}"><view class="bs10 bf p-r data-v-1c1eb0d2"><text data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="ggx p-a iconfont iconcuo f50 c9 data-v-1c1eb0d2" bindtap="__e"></text><view class="p20 ggh f-c f32 data-v-1c1eb0d2"><view class="t-o-e t-c data-v-1c1eb0d2" style="width:80%;">{{(isxz?'新增':'保存')+"属性"}}</view></view><view class="ggb data-v-1c1eb0d2"><mg-input bind:input="__e" vue-id="{{('90c82780-4')+','+('90c82780-3')}}" cname="p23" t="number" isr="1" ht="排序" htc="f30" pr="请输入排序" icn="f30" value="{{params.sort}}" data-event-opts="{{[['^input',[['__set_model',['$0','sort','$event',[]],['params']]]]]}}" class="data-v-1c1eb0d2" bind:__l="__l"></mg-input><mg-input bind:input="__e" vue-id="{{('90c82780-5')+','+('90c82780-3')}}" cname="p23" isr="1" ht="属性名称" htc="f30" pr="请输入属性名称" icn="f30" value="{{params.name}}" data-event-opts="{{[['^input',[['__set_model',['$0','name','$event',[]],['params']]]]]}}" class="data-v-1c1eb0d2" bind:__l="__l"></mg-input><mg-cell vue-id="{{('90c82780-6')+','+('90c82780-3')}}" cname="p332" isr="1" last="1" class="data-v-1c1eb0d2" bind:__l="__l" vue-slots="{{['default','bd']}}"><view slot="bd" class="data-v-1c1eb0d2"><view class="c3 f30 data-v-1c1eb0d2">属性值</view><view class="f26 data-v-1c1eb0d2"><block wx:for="{{ggarr}}" wx:for-item="v" wx:for-index="i" wx:key="i"><view class="mt20 f-y-c data-v-1c1eb0d2"><input class="f-1 weui-input b-df mr30 bs10 p02 data-v-1c1eb0d2" placeholder="请输入属性值" data-event-opts="{{[['input',[['__set_model',['$0','sxz','$event',[]],[[['ggarr','',i]]]]]]]}}" value="{{v.sxz}}" bindinput="__e"/><view data-event-opts="{{[['tap',[['scgg',[i]]]]]}}" class="bs10 p-8-20 cf ml20 data-v-1c1eb0d2" style="{{'background:'+(tColor)+';'}}" bindtap="__e">删除</view></view></block><block wx:if="{{ggarr.length<20}}"><view class="f-x-bt mt20 data-v-1c1eb0d2"><view data-event-opts="{{[['tap',[['tjggz',['$event']]]]]}}" class="ggi f-c jggz cf7c f26 data-v-1c1eb0d2" style="{{'border-color:'+(tColor)+';'}}" bindtap="__e">+添加属性值</view></view></block></view></view>></mg-cell></view><button class="foot-btn3 w33 data-v-1c1eb0d2" style="{{'margin:30rpx auto;'+('background:'+(tColor)+';')}}" disabled="{{loading}}" loading="{{loading}}" hover-class="btnhc" data-event-opts="{{[['tap',[['save',['$event']]]]]}}" bindtap="__e">确定</button></view></mg-modal><mg-modal bind:input="__e" vue-id="90c82780-7" vs="{{true}}" ismr="{{true}}" width="600rpx" z-index="{{999}}" value="{{showtc2}}" data-event-opts="{{[['^input',[['__set_model',['','showtc2','$event',[]]]]]]}}" class="data-v-1c1eb0d2" bind:__l="__l" vue-slots="{{['default']}}"><view class="bs10 bf p-r data-v-1c1eb0d2"><text data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="ggx p-a iconfont iconcuo f50 c9 data-v-1c1eb0d2" bindtap="__e"></text><view class="p20 ggh f-c f32 data-v-1c1eb0d2"><view class="t-o-e t-c data-v-1c1eb0d2" style="width:80%;">新增属性值</view></view><mg-input bind:input="__e" vue-id="{{('90c82780-8')+','+('90c82780-7')}}" cname="p23" t="number" isr="1" ht="属性值" htc="f30" pr="请输入" icn="f30" value="{{xzsxz}}" data-event-opts="{{[['^input',[['__set_model',['','xzsxz','$event',[]]]]]]}}" class="data-v-1c1eb0d2" bind:__l="__l"></mg-input><button class="foot-btn3 w33 data-v-1c1eb0d2" style="{{'margin:30rpx auto;'+('background:'+(tColor)+';')}}" disabled="{{loading2}}" loading="{{loading2}}" hover-class="btnhc" data-event-opts="{{[['tap',[['save2',['$event']]]]]}}" bindtap="__e">确定</button></view></mg-modal></view>