<app-layout vue-id="7618125e-1" class="data-v-615027f6" bind:__l="__l" vue-slots="{{['default']}}"><view class="data-v-615027f6"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="attr data-v-615027f6"><image class="low-attr data-v-615027f6" src="./../../image/low.png" data-event-opts="{{[['tap',[['pop',[index]]]]]}}" bindtap="__e"></image><view class="attr-item dir-left-nowrap data-v-615027f6"><view class="attr-label data-v-615027f6">规格名</view><view class="dir-left-nowrap cross-center data-v-615027f6"><input class="input data-v-615027f6" placeholder-style="color: #cdcdcd" placeholder="请输入规格" data-event-opts="{{[['input',[['__set_model',['$0','attr_group_name','$event',[]],[[['list','',index]]]],['changeName',['$0'],[[['list','',index]]]]]]]}}" value="{{item.attr_group_name}}" bindinput="__e"/></view></view><view class="attr-item dir-left-nowrap data-v-615027f6"><view class="attr-label data-v-615027f6">规格值</view><view data-event-opts="{{[['tap',[['changeValue',[index]]]]]}}" bindtap="__e" class="data-v-615027f6"><block wx:if="{{item.attr_list.length>0}}"><view class="attr_name data-v-615027f6"><image class="to-more data-v-615027f6" src="/static/image/icon/arrow-right.png"></image><view class="attr-name-list t-omit data-v-615027f6"><block wx:for="{{item.attr_list}}" wx:for-item="attr" wx:for-index="idx" wx:key="idx"><text class="data-v-615027f6"><block wx:if="{{idx!==0}}"><text class="data-v-615027f6">；</text></block>{{attr.attr_name}}</text></block></view></view></block><block wx:else><view class="cat-info dir-right-nowrap cross-center data-v-615027f6"><image class="to-more data-v-615027f6" src="/static/image/icon/arrow-right.png"></image><text style="color:#cdcdcd;" class="data-v-615027f6">未选择</text></view></block></view><view class="data-v-615027f6"></view></view></view></block></view><view class="title data-v-615027f6">设置价格、库存等规格明细</view><view class="info-item cross-center main-between data-v-615027f6"><view class="form-label data-v-615027f6">规格明细</view><view data-event-opts="{{[['tap',[['chooseDetail',['$event']]]]]}}" bindtap="__e" class="data-v-615027f6"><view class="cat-info dir-right-nowrap cross-center data-v-615027f6"><image class="to-more data-v-615027f6" src="/static/image/icon/arrow-right.png"></image><block wx:if="{{attr.length>0}}"><text class="data-v-615027f6">已设置</text></block><block wx:else><text style="color:#cdcdcd;" class="data-v-615027f6">未设置，点击设置</text></block></view></view></view><block wx:if="{{list.length<5}}"><view data-event-opts="{{[['tap',[['add_attr',['$event']]]]]}}" class="add-attr data-v-615027f6" bindtap="__e"><view class="add-attr-btn main-center data-v-615027f6"><image src="./../../image/add.png" class="data-v-615027f6"></image><view class="data-v-615027f6">增加规格</view></view></view></block><view class="{{['data-v-615027f6','placeholder',''+(iphone_x?'iphone_x':'')]}}"></view><view class="{{['data-v-615027f6','add',''+(iphone_x?'iphone_x':'')]}}"><view data-event-opts="{{[['tap',[['save',['$event']]]]]}}" bindtap="__e" class="data-v-615027f6">保存</view></view><block wx:if="{{index>-1}}"><view class="dialog data-v-615027f6"><view class="dialog-item data-v-615027f6"><view class="dialog-title data-v-615027f6">确定删除这个规格吗？</view><view class="submit-info data-v-615027f6">删除后，规格名与规格值都将被删除</view><view class="main-center btn-area data-v-615027f6"><view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="submit-btn data-v-615027f6" bindtap="__e">取消</view><view class="line data-v-615027f6"></view><view data-event-opts="{{[['tap',[['toDelete',['$event']]]]]}}" class="submit-btn be-submit data-v-615027f6" bindtap="__e">确认</view></view></view></view></block></app-layout>