addGood.wxml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <view class="wrap">
  2. <view class="fixed-top">
  3. <!-- 搜索 -->
  4. <view class='search-bar'>
  5. <view class='search-box'>
  6. <input class='ipt' placeholder="搜索活动" confirm-type="搜索" type="text" bindconfirm="goResult" confirm-type="搜索"></input>
  7. <view class='search-icon'>
  8. <text class="iconfont icon-sousuo1"></text>
  9. </view>
  10. </view>
  11. </view>
  12. <view class="nav-bar">
  13. <view class="nav-bar-inner">
  14. <view class="i-flex-item" wx:for="{{tabs}}" wx:key="id">
  15. <text bindtap="changeTabs" class="nav-bar-item {{currentIdx==item.id?'current':''}}" data-type="{{item.id}}">{{item.name}}</text>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. <!-- 列表 -->
  21. <view class="list bg-f">
  22. <view class="item i-flex i-aic" wx:for="{{list}}" wx:key="id" wx:if="{{list.length}}">
  23. <label class="check-box-content">
  24. <checkbox-group bindchange="checkboxChange" data-index="{{index}}" data-type="item">
  25. <view class="check-box">
  26. <image class="checkbox-checked" src="../../images/checkbox-checked.png" wx:if="{{item.checked}}"></image>
  27. <image class="checkbox-disabled" src="../../images/checkbox-disabled.png" wx:else></image>
  28. <checkbox hidden checked="{{item.checked}}" value="{{index}}"></checkbox>
  29. </view>
  30. </checkbox-group>
  31. </label>
  32. <view class="i-flex-item">
  33. <i-solitaire-good spuItem="{{item}}" type="1" bind:onSelect="selectGoods"></i-solitaire-good>
  34. </view>
  35. </view>
  36. <i-load-more iClass="loadMore" loading="{{loadMore}}" tip="{{loadText}}" wx:if="{{!noMore}}"></i-load-more>
  37. </view>
  38. <!-- 底部按钮 -->
  39. <view class="bottom-bar {{isIpx?'pb20':''}}">
  40. <label class="check-box-content">
  41. <checkbox-group bindchange="checkboxChange" data-type="all">
  42. <view class="check-box">
  43. <image class="checkbox-checked" src="../../images/checkbox-checked.png" wx:if="{{checkedAll && list.length>0}}"></image>
  44. <image class="checkbox-disabled" src="../../images/checkbox-disabled.png" wx:else></image>
  45. <checkbox hidden checked="{{checkedAll && list.length>0}}" value="{{index}}"></checkbox>
  46. </view>
  47. </checkbox-group>
  48. 全选
  49. </label>
  50. <view class="flex">
  51. <view class="total">
  52. 合计:<span>{{checkedCount}}条</span>
  53. </view>
  54. <label class="btn">确定 <button hidden bindtap="selectGoods" data-type="1"></button></label>
  55. </view>
  56. </view>
  57. </view>