业务交流通
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!-- index.wxml -->
  2. <view class="home-page page-container">
  3. <!-- 搜索块 -->
  4. <view class="search-view">
  5. <view class="serach-input-view">
  6. <image class="hhr-img fl" src="/images/home/hhr-icon.png" />
  7. <view class="input-box fl">
  8. <input class="weui-serach-input" value="{{ keyword }}" bindinput="bindKeyInput" confirm-type="search" placeholder="请输入关键字搜索" placeholder-class="phcolor"></input>
  9. </view>
  10. <view class="search-img-view" bindtap="toSearch">
  11. <image class="search-img" src="/images/home/search-icon.png" />
  12. </view>
  13. </view>
  14. <view class="title">
  15. 全方位需求
  16. <text class="sub-title">交流平台</text>
  17. </view>
  18. <button type="default" plain open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" class="set-attention" id="shouquan">
  19. 设置关注类型喜好 >>
  20. </button>
  21. <image class="header-img" src="/images/home/header-icon.png" />
  22. </view>
  23. <!-- tab块 -->
  24. <view class="tab-view">
  25. <view wx:for="{{tabData}}" class="tab-li" wx:key="*this">
  26. <view class="tab-span {{currentTab == item.value ? 'isActive' : ''}}" bindtap="tabChange" data-value="{{ item.value }}">
  27. {{item.text}}
  28. </view>
  29. </view>
  30. <view class="tab-li last">
  31. <view class="tab-span {{currentTab == 'more' ? 'isActive' : ''}}" bindtap="toggleMore">
  32. {{ moreTitle }}
  33. </view>
  34. </view>
  35. <view class="tab-li right">
  36. <van-dropdown-menu class="tab-menu" active-color="#5e73e5">
  37. <van-dropdown-item id="item" bindchange="moreTabChange" title-class="{{ currentTab == 'more' ? 'isActive' : '' }}" value="{{ moreTab }}" options="{{ moreTabOption }}" />
  38. </van-dropdown-menu>
  39. </view>
  40. </view>
  41. <!-- list块 -->
  42. <view class="list-loading text-center" wx:if="{{ listLoading }}">
  43. <van-loading size="24px">加载中...</van-loading>
  44. </view>
  45. <view wx:else>
  46. <view class="not-data" wx:if="{{ listData.length < 1 }}">
  47. <image class="not-data-img" src="/images/home/not-data.png" />
  48. <view class="not-info" wx:if="{{ currentTab == 'all ' }}">
  49. 抱歉,暂无任何需求
  50. </view>
  51. <view class="not-info" wx:else>
  52. 抱歉,暂无任何需求
  53. </view>
  54. </view>
  55. <view wx:else>
  56. <view class="list-view" wx:for="{{ listData }}" wx:key="*this">
  57. <listItem item="{{ item }}" bind:getItem="goDetails"/>
  58. </view>
  59. <view class="text-center" wx:if="{{ itemLoading }}">
  60. <van-loading size="24px">加载中...</van-loading>
  61. </view>
  62. <view class="list-finished text-center" wx:if="{{ isFinished }}">
  63. <image class="finished-img" src="/images/home/finished-icon.png" />
  64. 没有更多啦~
  65. </view>
  66. </view>
  67. </view>
  68. <tabBar currentIndex="{{currentIndex}}"></tabBar>
  69. </view>