product.wxml 2.8 KB

123456789101112131415161718192021222324252627282930313233
  1. <view class="container">
  2. <top-swiper bind:__l="__l" imgList="{{imgList}}" vueId="1c037ce0-1"></top-swiper>
  3. <product-content bind:__l="__l" goodsObjact="{{goodsObjact}}" vueId="1c037ce0-2"></product-content>
  4. <estimate bind:__l="__l" bind:navTo="__e" data-event-opts="{{[ [ '^navTo',[ [ 'navTo',['/pages/product/reply?id='+goodsid] ] ] ] ]}}" list="{{list}}" reply="{{reply}}" vueId="1c037ce0-3" wx:if="{{reply}}"></estimate>
  5. <fresh-detail bind:__l="__l" goodsObjact="{{goodsObjact}}" vueId="1c037ce0-4"></fresh-detail>
  6. <content-text bind:__l="__l" description="{{description}}" vueId="1c037ce0-5"></content-text>
  7. <view>{{storeInfo.description}}</view>
  8. <view class="contentBottomHeight"></view>
  9. <product-bottom bind:__l="__l" bind:buy="__e" bind:specOPne="__e" data-event-opts="{{[ [ '^buy',[ ['buy'] ] ],[ '^specOPne',[ ['specOPne'] ] ] ]}}" goodsObjact="{{goodsObjact}}" goodsid="{{goodsid}}" vueId="1c037ce0-6"></product-bottom>
  10. <view bindtap="__e" catchtouchmove="__e" class="{{['popup spec',specClass]}}" data-event-opts="{{[ [ 'touchmove',[ [ 'stopPrevent',['$event'] ] ] ],[ 'tap',[ [ 'toggleSpec',['$event'] ] ] ] ]}}">
  11. <view class="mask"></view>
  12. <view catchtap="__e" class="layer attr-content" data-event-opts="{{[ [ 'tap',[ [ 'stopPrevent',['$event'] ] ] ] ]}}">
  13. <view class="a-t">
  14. <image src="{{actionImage}}"></image>
  15. <view class="right">
  16. <text class="name">{{goodsObjact.store_name}}</text>
  17. <text class="price">{{'¥'+actionPrice*goodsNumber}}</text>
  18. <text class="stock">{{'库存:'+goodsStore+'件'}}</text>
  19. <view class="selected" wx:if="{{specList!=''}}">已选:<text class="selected-text" wx:for="{{specSelected}}" wx:for-index="sIndex" wx:for-item="sItem" wx:key="sIndex">{{sItem}}</text>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="attr-list" wx:for="{{specList}}" wx:key="index">
  24. <text>{{item.attr_name}}</text>
  25. <view class="item-list">
  26. <text bindtap="__e" class="{{['tit',childItem.check?'selected':'']}}" data-event-opts="{{[ [ 'tap',[ [ 'selectSpec',['$0','$1',index],[ [ ['specList','',index],['attr_value','',childIndex] ],[ ['specList','',index] ] ] ] ] ] ]}}" wx:for="{{item.attr_value}}" wx:for-index="childIndex" wx:for-item="childItem" wx:key="childIndex">{{''+childItem.attr+''}}</text>
  27. </view>
  28. </view>
  29. <button catchtap="__e" class="btn" data-event-opts="{{[ [ 'tap',[ [ 'buy',['$event'] ] ] ] ]}}" hidden="{{!buys_show}}">完成</button>
  30. <button class="btn" hidden="{{!buys_shows}}" style="background-color:#999999;">售罄</button>
  31. </view>
  32. </view>
  33. </view>