detail-attr.wxml 2.7 KB

1
  1. <view class="detail-attr data-v-fd2a1010"><app-iphone-x vue-id="3e86d0c8-1" class="data-v-fd2a1010" bind:__l="__l" vue-slots="{{['empty-area']}}"><view class="attr-content data-v-fd2a1010" slot="empty-area"><view class="top dir-left-nowrap data-v-fd2a1010"><view class="image-view data-v-fd2a1010"><image src="{{attr_pic_url?attr_pic_url:image_url}}" data-event-opts="{{[['tap',[['clickImage',['$0'],['index']]]]]}}" bindtap="__e" class="data-v-fd2a1010"></image></view><view class="price dir-top-nowrap data-v-fd2a1010"><text class="des data-v-fd2a1010">{{"定金¥"+attr_deposit+"抵¥"+attr_swell_deposit}}</text><block wx:if="{{level_show==0||level_show==2}}"><text class="swell data-v-fd2a1010">{{'¥'+attr_price+''}}<text class="swell-text data-v-fd2a1010">预售价</text></text></block><block wx:if="{{level_show===1}}"><text class="swell data-v-fd2a1010" style="color:#f49f18;">{{'¥'+attr_price_member+''}}<text class="swell-text data-v-fd2a1010">会员价</text></text></block><text class="stock data-v-fd2a1010">{{"库存"+attr_stock}}</text></view><image class="close data-v-fd2a1010" src="/static/image/icon/icon-close.png" data-event-opts="{{[['tap',[['close_attr',['$event']]]]]}}" bindtap="__e"></image></view><scroll-view class="center data-v-fd2a1010" scroll-y="{{true}}"><block wx:for="{{attr_groups}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="row data-v-fd2a1010"><text class="attr-group-name data-v-fd2a1010">{{item.attr_group_name}}</text><view class="attr-row dir-left-wrap data-v-fd2a1010"><block wx:for="{{item.attr_list}}" wx:for-item="attr" wx:for-index="ind" wx:key="ind"><view data-event-opts="{{[['tap',[['select_attr',['$0','$1'],[[['attr_groups','',index]],[['attr_groups','',index],['attr_list','',ind]]]]]]]}}" class="{{['attr-item data-v-fd2a1010',(attr.active)?'active-attr-item':'']}}" bindtap="__e">{{attr.attr_name}}</view></block></view></view></block></scroll-view><view class="bottom dir-left-nowrap main-between cross-center data-v-fd2a1010"><text class="data-v-fd2a1010">数量</text><view class="num dir-right-nowrap main-between cross-center data-v-fd2a1010"><image class="image data-v-fd2a1010" src="/static/image/cart/can-be-added.png" data-event-opts="{{[['tap',[['add_num',['$event']]]]]}}" bindtap="__e"></image><input class="input data-v-fd2a1010" type="number" data-event-opts="{{[['change',[['change_num',['$event']]]]]}}" value="{{num}}" bindchange="__e"/><image class="image data-v-fd2a1010" src="{{num===1?'/static/image/cart/unreducible.png':'/static/image/cart/can-be-reduced.png'}}" data-event-opts="{{[['tap',[['edd_num',['$event']]]]]}}" bindtap="__e"></image></view></view><view style="{{'height:'+(height+'rpx')+';'}}" class="data-v-fd2a1010"></view></view></app-iphone-x></view>