order_addcart.wxml 5.0 KB

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