business.wxml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <view class="app_page-header-search page-header-search">
  2. <view class="app_page-header-search-warp">
  3. <label for="header-search">
  4. <image src="../../image/common/search@2x.png"></image>
  5. </label>
  6. <input
  7. placeholder-class="app_header-search-placeholder"
  8. value="{{searchForm.key_words}}"
  9. placeholder="搜索信息"
  10. data-formkey="key_words"
  11. bind:input="handleKeyWords"></input>
  12. </view>
  13. <van-icon
  14. style="margin-left: 4px;"
  15. color="#91B379"
  16. size="28px"
  17. name="filter-o" bind:tap="showPopop"/>
  18. </view>
  19. <scroll-view
  20. class="app_nav-wrap"
  21. scroll-x="{{true}}"
  22. scroll-with-animation="{{true}}"
  23. scroll-into-view="item-{{searchForm.category_id * 1 < 4 ? navScrollLeft : searchForm.category_id * 1 - 3}}">
  24. <view
  25. class="nav {{searchForm.category_id === item.id ? 'active' : ''}}"
  26. wx:for="{{categoryList}}"
  27. wx:key="id"
  28. data-item="{{item}}"
  29. bind:tap="handleNav">
  30. <view class="photo" id="item-{{index}}">
  31. <image src="{{item.category_img_url}}"></image>
  32. </view>
  33. <view class="name">{{item.category_name}}</view>
  34. </view>
  35. </scroll-view>
  36. <business-item-normal
  37. listData="{{listData}}"/>
  38. <!-- 无数据 -->
  39. <view class="list-bitmap" wx:if="{{finished && listData.length < 1}}">
  40. <image src="../../image/common/bitmap.png"></image>
  41. <text>暂无数据</text>
  42. </view>
  43. <view class="pullup-wrapper" wx:if="{{!isRefresh}}">
  44. <van-loading
  45. wx:if="{{!finished}}"
  46. size="24px"
  47. type="spinner">加载中...
  48. </van-loading>
  49. </view>
  50. <van-popup
  51. show="{{ booPopop }}"
  52. overlay="{{true}}"
  53. position="bottom"
  54. round
  55. bind:close="hidePopop">
  56. <view class="popup-body">
  57. <view class="popup-body-icon"></view>
  58. <view class="popup-body-title">筛选</view>
  59. <van-checkbox-group
  60. value="{{ shop_type }}"
  61. bind:change="onChange">
  62. <view
  63. class="form-item"
  64. wx:for="{{arrShopType}}"
  65. wx:key="index">
  66. <text class="form-item-label">{{item.name}}</text>
  67. <van-checkbox
  68. checked-color="#91B379"
  69. name="{{item.value}}"></van-checkbox>
  70. </view>
  71. </van-checkbox-group>
  72. </view>
  73. </van-popup>