business.wxml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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>