business.wxml 2.0 KB

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