cartModal.wxml 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. <i-modal scrollUp="{{true}}" visible="{{show}}" bind:cancel="handleModal" iClass="zmodal" iClassMask="zmodal">
  2. <view class="cart pb100">
  3. <view class="head i-flex p30 bg-lighter i-flex-spb">
  4. <view class="weight">{{stitle}}</view>
  5. <view>
  6. <!-- <text class="iconfont icon-shanchu1"></text> 清空 -->
  7. </view>
  8. </view>
  9. <scroll-view scroll-y style="max-height: 750rpx;">
  10. <view class="list">
  11. <block wx:for="{{carts}}" wx:for-item="cart" wx:for-index="cartId" wx:key="cid">
  12. <block wx:for="{{cart.shopcarts}}" wx:key="key" wx:if="{{cart.shopcarts.length}}">
  13. <view class="item i-flex border-bottom">
  14. <view class="fsz-30 i-flex i-flex-item w0">
  15. <image class="img" src="{{item.imgurl}}"></image>
  16. <view class="ml5 i-flex-item w0">
  17. <view class="text-overflow1 text-dark">{{item.title}}</view>
  18. <view class="text-overflow1 text-gray fsz-22 mb5">{{item.goodstype}}</view>
  19. <view class="red">¥{{item.currntprice}}</view>
  20. </view>
  21. </view>
  22. <view class="fsz-30">
  23. <i-input-number bind:change="changeNumber" bind:outOfMax="outOfMax" iClass="index-input-number" iClassNumberText="input-number-text" max="{{item.max_quantity}}" min="0" value="{{item.goodsnum}}" addImage="../../images/icon-add-2.png" reduceImage="../../images/icon-reduce-2.png" data-cartid="{{cartId}}" data-gidx="{{index}}"></i-input-number>
  24. </view>
  25. </view>
  26. </block>
  27. </block>
  28. </view>
  29. </scroll-view>
  30. </view>
  31. </i-modal>