foo-tan.wxml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <view class="model-bg {{show==true ? 'show':''}} {{prostatus==true ? 'show':''}}" bindtap='modelbg'></view>
  2. <view class="model-proinfo {{prostatus==true ? 'show':''}}">
  3. <view class='hd-wrapper'>
  4. <image src='{{url}}{{productSelect.image}}'></image>
  5. <view class='txt-info'>
  6. <view class='title'>{{productSelect.store_name}}</view>
  7. <view class='num flex'>
  8. <view class='price'>¥{{productSelect.price}}</view>
  9. <view class='stock'>库存:{{productSelect.stock}}{{storeInfo.unit_name}}</view>
  10. </view>
  11. </view>
  12. </view>
  13. <view class='bd-wrapper'>
  14. <block wx:for="{{productAttr}}">
  15. <view class='parameter-item'>
  16. <view class='title-bar'>{{item.attr_name}}</view>
  17. <view class='item-wrapper'>
  18. <block wx:for="{{item.attr_value}}" wx:for-item="items">
  19. <view data-key="{{items.attr}}" class='item {{items.check?"sizecolor":""}}' bindtap='tapsize'>{{items.attr}}</view>
  20. </block>
  21. </view>
  22. </view>
  23. </block>
  24. </view>
  25. <view class='count-box flex'>
  26. 购买数量
  27. <view class='count-wrappers flex'>
  28. <text data-index="{{index}}" bindtap="bindMinus" class='{{minusStatus}}'>-</text>
  29. <input class='num' type="number" value='{{num}}' bindblur='setNumber'/>
  30. <!-- <text class='num'>{{num}}</text> -->
  31. <text class='add' data-index="{{index}}" bindtap="bindPlus">+</text>
  32. </view>
  33. </view>
  34. <view style='height:100rpx;'></view>
  35. <form bindsubmit="subBuy" report-submit='true'>
  36. <button class='foot-wrapper' form-type='submit'>确定</button>
  37. <!-- <view class='foot-wrapper' bindtap='subBuy'>确定</view> -->
  38. </form>
  39. </view>