cart.wxml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <view>
  2. <view class="manage">
  3. <text>管 理</text>
  4. </view>
  5. <!-- 暂无可管理商品 -->
  6. <view class="empty" wx:if="{{false}}">
  7. <image class="emptyIcon" src="/images/cart/empty.png" alt=""/>
  8. <text>暂无可管理商品</text>
  9. </view>
  10. <!-- 商品列表 -->
  11. <view class="prodsList">
  12. <checkbox-group bindchange="handleCheckboxChange">
  13. <view class="itemProd" wx:for="{{cartList}}" wx:key="id">
  14. <checkbox value="{{item.id}}" checked="{{item.checked}}"></checkbox>
  15. <view class="goods-info">
  16. <image src="/images/index/category-item.png" mode="aspectFill"></image>
  17. <view class="info">
  18. <text>{{item.name}}</text>
  19. <text>白色/M</text>
  20. <text>¥{{item.price}}</text>
  21. </view>
  22. </view>
  23. <view class="count">
  24. <text class="reduceNum" bindtap="decreaseCount" data-id="{{item.id}}">-</text>
  25. <text class="num">{{item.count}}</text>
  26. <text class="addNum" bindtap="increaseCount" data-id="{{item.id}}">+</text>
  27. </view>
  28. </view>
  29. </checkbox-group>
  30. </view>
  31. <!-- 推荐 -->
  32. <view class="recommend">
  33. <view class="divider">
  34. <text class="line"></text>
  35. <text class="text">更多个性化推荐</text>
  36. <text class="line"></text>
  37. </view>
  38. <product-list position="hot"></product-list>
  39. </view>
  40. <!-- 底部全选和总价 -->
  41. <view class="footer">
  42. <label>
  43. <checkbox value="all" checked="{{isAllChecked}}" bindtap="toggleAll">全选</checkbox>
  44. </label>
  45. <text>总价:¥{{totalPrice}}</text>
  46. <button>结算({{checkedCount}})</button>
  47. </view>
  48. </view>