order_addcart.wxml 5.3 KB

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