order_addcart.wxml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <navbar parameter='{{parameter}}'></navbar>
  2. <view class='shoppingCart'>
  3. <view class='labelNav acea-row row-around row-middle' style='top:{{navH}}rpx'>
  4. <view class='item'><text class='iconfont icon-xuanzhong'></text>100%正品保证</view>
  5. <view class='item'><text class='iconfont icon-xuanzhong'></text>所有商品精挑细选</view>
  6. <view class='item'><text class='iconfont icon-xuanzhong'></text>售后无忧</view>
  7. </view>
  8. <view class='nav acea-row row-between-wrapper' style='top:{{navH+76}}rpx'>
  9. <view>购物数量 <text class='num font-color'>{{cartCount}}</text></view>
  10. <view wx:if="{{cartList.valid.length > 0 || cartList.invalid.length > 0}}"
  11. class='administrate acea-row row-center-wrapper' bindtap='manage'>{{ footerswitch ? '管理' : '取消'}}</view>
  12. </view>
  13. <view wx:if="{{cartList.valid.length > 0 || cartList.invalid.length > 0}}">
  14. <view class='list'>
  15. <checkbox-group bindchange="checkboxChange">
  16. <block wx:for="{{cartList.valid}}" wx:key='index'>
  17. <view class='item acea-row row-between-wrapper'>
  18. <checkbox value="{{item.id}}" checked="{{item.checked}}" />
  19. <navigator url='/pages/goods_details/index?id={{item.product_id}}' hover-class='none'
  20. class='picTxt acea-row row-between-wrapper'>
  21. <view class='picTxt acea-row row-between-wrapper'>
  22. <view class='pictrue'>
  23. <image wx:if="{{item.productInfo.attrInfo}}"
  24. src='{{item.productInfo.attrInfo.image}}'></image>
  25. <image wx:else src='{{item.productInfo.image}}'></image>
  26. </view>
  27. <view class='text'>
  28. <view class='line1'>{{item.productInfo.store_name}}</view>
  29. <view class='infor line1' wx:if="{{item.productInfo.attrInfo}}">
  30. 属性:{{item.productInfo.attrInfo.suk}}</view>
  31. <view class='money'>¥{{item.truePrice}}</view>
  32. </view>
  33. <view class='carnum acea-row row-center-wrapper'>
  34. <view class="reduce {{item.numSub ? 'on' : ''}}" catchtap='subCart'
  35. data-index="{{index}}">-</view>
  36. <view class='num'>
  37. <input type="number" value="{{item.cart_num}}" data-name="item.cart_num"
  38. catchinput="iptCartNum" data-index="{{index}}" bindblur="inputBlur"
  39. catchtap="proventD"></input>
  40. </view>
  41. <view class="plus {{item.numAdd ? 'on' : ''}}" catchtap='addCart'
  42. data-index="{{index}}">+</view>
  43. </view>
  44. </view>
  45. </navigator>
  46. </view>
  47. </block>
  48. </checkbox-group>
  49. </view>
  50. <view class='invalidGoods' wx:if="{{cartList.invalid.length > 0}}">
  51. <view class='goodsNav acea-row row-between-wrapper'>
  52. <view bindtap='goodsOpen'><text
  53. class='iconfont {{goodsHidden==true?"icon-xiangxia":"icon-xiangshang"}}'></text>失效商品</view>
  54. <view class='del' bindtap='unsetCart'><text class='iconfont icon-shanchu1'></text>清空</view>
  55. </view>
  56. <view class='goodsList' hidden='{{goodsHidden}}'>
  57. <block wx:for="{{cartList.invalid}}" wx:key='index'>
  58. <view class='item acea-row row-between-wrapper'>
  59. <view class='invalid'>失效</view>
  60. <view class='pictrue'>
  61. <image wx:if="{{item.productInfo.attrInfo}}" src='{{item.productInfo.attrInfo.image}}'>
  62. </image>
  63. <image wx:else src='{{item.productInfo.image}}'></image>
  64. </view>
  65. <view class='text acea-row row-column-between'>
  66. <view class='line1'>{{item.productInfo.store_name}}</view>
  67. <view class='infor line1' wx:if="{{item.productInfo.attrInfo}}">
  68. 属性:{{item.productInfo.attrInfo.suk}}</view>
  69. <view class='acea-row row-between-wrapper'>
  70. <view wx:if="{{item.truePrice}}">¥{{item.truePrice}}</view>
  71. <view class='end'>该商品已失效</view>
  72. </view>
  73. </view>
  74. </view>
  75. </block>
  76. </view>
  77. </view>
  78. </view>
  79. <view class='noCart' wx:if="{{cartList.valid.length == 0 && cartList.invalid.length == 0}}">
  80. <view class='pictrue'>
  81. <image src='/images/noCart.png'></image>
  82. </view>
  83. <recommend host_product='{{host_product}}'></recommend>
  84. </view>
  85. <view style='height:120rpx;'></view>
  86. <view class='footer acea-row row-between-wrapper' wx:if="{{cartList.valid.length > 0}}">
  87. <view>
  88. <checkbox-group bindchange="checkboxAllChange">
  89. <checkbox value="all" checked="{{isAllSelect}}" /><text class='checkAll'>全选 ({{cartCount}})</text>
  90. </checkbox-group>
  91. </view>
  92. <view class='money acea-row row-middle' wx:if='{{footerswitch==true}}'>
  93. <text class='font-color'>¥{{selectCountPrice}}</text>
  94. <form bindsubmit="subOrder">
  95. <button class='placeOrder bg-color' formType="submit">立即下单</button>
  96. </form>
  97. </view>
  98. <view class='button acea-row row-middle' wx:else>
  99. <form bindsubmit="subCollect">
  100. <button class='bnt cart-color' formType="submit">收藏</button>
  101. </form>
  102. <form bindsubmit="subDel">
  103. <button class='bnt' formType="submit">删除</button>
  104. </form>
  105. </view>
  106. </view>
  107. </view>
  108. <authorize bind:onLoadFun='onLoadFun' bind:onCloseAuto='onCloseAuto' isGoIndex='{{isGoIndex}}' isHidden='{{isHidden}}'>
  109. </authorize>