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