product.wxml 3.0 KB

1
  1. <view class="container"><top-swiper vue-id="1c037ce0-1" imgList="{{imgList}}" bind:__l="__l"></top-swiper><product-content vue-id="1c037ce0-2" goodsObjact="{{goodsObjact}}" data-event-opts="{{[['^callf',[['callf']]]]}}" bind:callf="__e" bind:__l="__l"></product-content><block wx:if="{{reply}}"><estimate vue-id="1c037ce0-3" reply="{{reply}}" list="{{list}}" data-event-opts="{{[['^navTo',[['navTo',['/pages/product/reply?id='+goodsid]]]]]}}" bind:navTo="__e" bind:__l="__l"></estimate></block><fresh-detail vue-id="1c037ce0-4" goodsObjact="{{goodsObjact}}" bind:__l="__l"></fresh-detail><content-text vue-id="1c037ce0-5" description="{{description}}" bind:__l="__l"></content-text><view class="contentBottomHeight"></view><product-bottom vue-id="1c037ce0-6" goodsObjact="{{goodsObjact}}" goodsid="{{goodsid}}" showAdd="{{showAdd}}" data-event-opts="{{[['^buy',[['buy']]],['^specOPne',[['specOPne']]]]}}" bind:buy="__e" bind:specOPne="__e" bind:__l="__l"></product-bottom><view data-event-opts="{{[['touchmove',[['stopPrevent',['$event']]]],['tap',[['toggleSpec',['$event']]]]]}}" class="{{['popup','spec',specClass]}}" catchtouchmove="__e" bindtap="__e"><view class="mask"></view><view data-event-opts="{{[['tap',[['stopPrevent',['$event']]]]]}}" class="layer attr-content" catchtap="__e"><view class="a-t"><image src="{{actionImage}}"></image><view class="right"><text class="name clamp">{{goodsObjact.store_name}}</text><view class="price"><text>¥</text>{{''+actionPrice*goodsNumber+''}}</view><image class="right-img" src="../../static/icon/del.png" mode data-event-opts="{{[['tap',[['close']]]]}}" bindtap="__e"></image></view></view><block wx:for="{{specList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="attr-list"><text>{{"选择"+item.attr_name+"分类"}}</text><view class="item-list"><block wx:for="{{item.attr_value}}" wx:for-item="childItem" wx:for-index="childIndex" wx:key="childIndex"><text data-event-opts="{{[['tap',[['selectSpec',['$0','$1',index],[[['specList','',index],['attr_value','',childIndex]],[['specList','',index]]]]]]]}}" class="{{['tit',(childItem.check)?'selected':'']}}" bindtap="__e">{{''+childItem.attr+''}}</text></block></view></view></block><block wx:if="{{showDrop}}"><view class="attr-list"><view class="item-list"><text class="selected">上门安装</text></view></view></block><view class="mun-box"><text>购买数量</text><view class="num"><uni-number-box class="step" vue-id="1c037ce0-7" isMin="{{true}}" value="{{goodsNumber}}" min="{{1}}" max="{{goodsNumberMax}}" data-event-opts="{{[['^eventChange',[['numberChange']]]]}}" bind:eventChange="__e" bind:__l="__l"></uni-number-box></view></view><button data-event-opts="{{[['tap',[['buy',['$event']]]]]}}" hidden="{{!(buys_show)}}" class="btn" catchtap="__e">完成</button><button hidden="{{!(buys_shows)}}" class="btn" style="background-color:#999999;">售罄</button></view></view><block wx:if="{{show}}"><view class="mask"><image src="../../static/img/shareimg.png" data-event-opts="{{[['tap',[['onTap',['$event']]]]]}}" bindtap="__e"></image></view></block></view>