index.wxml 1.6 KB

123456789101112131415161718192021222324252627282930
  1. <view class='product-window {{attribute.cartAttr==true?"on":""}}'>
  2. <view class='textpic acea-row row-between-wrapper'>
  3. <view class='pictrue'><image src='{{productSelect.image}}'></image></view>
  4. <view class='text'>
  5. <view class='line1'>{{productSelect.store_name}}</view>
  6. <view class='money font-color'>
  7. ¥<text class='num'>{{productSelect.price}}</text>
  8. <text class='stock'>库存: {{productSelect.stock}}</text>
  9. </view>
  10. </view>
  11. <view class='iconfont icon-guanbi' bindtap='close'></view>
  12. </view>
  13. <view class='productWinList'>
  14. <view class='item' wx:for='{{productAttr}}' wx:key>
  15. <view class='title'>{{item.attr_name}}</view>
  16. <view class='listn acea-row row-middle'>
  17. <view class='itemn {{item.checked==itemn.attr ?"on":""}}' wx:for='{{item.attr_value}}' wx:for-item='itemn' wx:for-index='indexn' data-indexw='{{index}}' data-indexn='{{indexn}}' bindtap='tapAttr' wx:key>{{itemn.attr}}</view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class='cart'>
  22. <view class='title'>数量</view>
  23. <view class='carnum acea-row row-left'>
  24. <view class='reduce {{productSelect.cart_num <= 1 ? "on":""}}' bindtap='CartNumDes'>-</view>
  25. <view class='num'>{{productSelect.cart_num}}</view>
  26. <view class='plus {{productSelect.cart_num >= productSelect.stock || productSelect.is_on ? "on":""}}' bindtap='CartNumInt'>+</view>
  27. </view>
  28. </view>
  29. </view>
  30. <view class='mask' catchtouchmove="true" hidden='{{attribute.cartAttr==false}}' bindtap='close'></view>