goodsManage.wxml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <view class="goods-manage {{isIpx?'pb80':''}}">
  2. <view class='list'>
  3. <view wx:if="{{goods.length}}">
  4. <view class="order-item" wx:for="{{goods}}" wx:key="id">
  5. <view class="order-title">
  6. <label class="check-box-content">
  7. <checkbox-group bindchange="checkboxChange" data-index="{{index}}" data-type="item">
  8. <view class="check-box">
  9. <image class="checkbox-checked" src="../../images/checkbox-checked.png" wx:if="{{item.checked}}"></image>
  10. <image class="checkbox-disabled" src="../../images/checkbox-disabled.png" wx:else></image>
  11. <checkbox hidden checked="{{item.checked}}" value="{{index}}"></checkbox>
  12. </view>
  13. </checkbox-group>
  14. </label>
  15. <view class="goods-item">
  16. <view class="goods-img">
  17. <component-img defaultImage="../../images/placeholder-refund.png" height="60" loadImage="{{item.image}}" width="60"></component-img>
  18. </view>
  19. <view class="goods-detail">
  20. <view class="goods-title">{{item.name}}</view>
  21. </view>
  22. </view>
  23. <view class="order-status">{{item.status_name}}</view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="no-list" wx:else>
  28. 暂无数据
  29. </view>
  30. </view>
  31. <!-- 底部按钮 -->
  32. <view class="bottom-bar {{isIpx?'pb20':''}}">
  33. <label class="check-box-content">
  34. <checkbox-group bindchange="checkboxChange" data-type="all">
  35. <view class="check-box">
  36. <image class="checkbox-checked" src="../../images/checkbox-checked.png" wx:if="{{checkedAll && goods.length>0}}"></image>
  37. <image class="checkbox-disabled" src="../../images/checkbox-disabled.png" wx:else></image>
  38. <checkbox hidden checked="{{checkedAll && goods.length>0}}" value="{{index}}"></checkbox>
  39. </view>
  40. </checkbox-group>
  41. 全选
  42. </label>
  43. <view class="flex">
  44. <view class="total">
  45. 合计:
  46. <span>{{checkedCount}}条</span>
  47. </view>
  48. <label class="btn">上架<button hidden bindtap="signAll"></button></label>
  49. <label class="btn gray">下架<button hidden bindtap="signAll"></button></label>
  50. </view>
  51. </view>
  52. </view>