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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!-- index.wxml -->
  2. <view class="home-page page-container">
  3. <!-- <official-account></official-account> -->
  4. <!-- 搜索块 -->
  5. <view class="search-view">
  6. <view class="serach-input-view">
  7. <image class="hhr-img fl" src="/images/home/hhr-icon.png" />
  8. <view class="input-box fl">
  9. <input class="weui-serach-input" value="{{ keyword }}" bindinput="bindKeyInput" bindconfirm="toSearch" confirm-type="search" placeholder="请输入关键字搜索" placeholder-class="phcolor"></input>
  10. </view>
  11. <view class="search-img-view" bindtap="toSearch">
  12. <image class="search-img" src="/images/home/search-icon.png" />
  13. </view>
  14. </view>
  15. <view class="title">
  16. 全方位需求
  17. <text class="sub-title">交流平台</text>
  18. </view>
  19. <button type="default" plain class="set-attention" id="shouquan" bindtap="setAttention">
  20. 设置关注类型喜好 >>
  21. </button>
  22. <image class="header-img" src="/images/home/header-icon.png" />
  23. </view>
  24. <!-- tab块 -->
  25. <view class="tab-view">
  26. <view wx:for="{{tabData}}" class="tab-li {{ moreTitle.length > 2 ? 'more' : '' }}" wx:key="index">
  27. <view class="tab-span {{currentTab == item.value ? 'isActive' : ''}}" bindtap="tabChange" data-value="{{ item.value }}">
  28. {{item.text}}
  29. </view>
  30. </view>
  31. <view class="tab-li last">
  32. <view class="tab-span {{currentTab == 'more' ? 'isActive' : ''}}" bindtap="toggleMore">
  33. {{ moreTitle }}
  34. </view>
  35. </view>
  36. <view class="tab-li right">
  37. <van-dropdown-menu class="tab-menu" active-color="#5e73e5">
  38. <van-dropdown-item id="item" bindchange="moreTabChange" title-class="{{ currentTab == 'more' ? 'isActive' : '' }}" value="{{ moreTab }}" options="{{ moreTabOption }}" />
  39. </van-dropdown-menu>
  40. </view>
  41. </view>
  42. <!-- list块 -->
  43. <view class="list-loading text-center" wx:if="{{ listLoading }}">
  44. <van-loading size="24px">加载中...</van-loading>
  45. </view>
  46. <view wx:else>
  47. <view class="not-data" wx:if="{{ listData.length < 1 && !(currentTab == 'my' && attentionTypeIds.length > 0) }}">
  48. <image class="not-data-img" src="/images/home/not-data.png" />
  49. <view class="not-info" wx:if="{{ currentTab == 'all' }}">抱歉,暂无任何需求</view>
  50. <view class="not-info" wx:elif="{{ currentTab == 'my' && attentionTypeIds.length < 1}}">
  51. <view>您尚未设置关注类型喜好</view>
  52. <view style="margin-bottom: 10rpx;">设置后将为您进行需求推荐~</view>
  53. <van-button class="set-attention-btn" color="#5e73e5" round bind:click="setAttention">
  54. 设置关注类型喜好
  55. </van-button>
  56. </view>
  57. <view class="not-info" wx:else>抱歉,暂无任何需求</view>
  58. </view>
  59. <view class="not-data" wx:elif="{{ listData.length < 1 && (currentTab == 'my' && attentionTypeIds.length > 0) }}">
  60. <view class="not-info-attention-type">
  61. <view class="not-data-attention-view fl">
  62. <image class="not-data-attention-img" src="/images/home/not-data-attention-img.png" />
  63. </view>
  64. <view class="not-info">抱歉,您关注的类型暂无任何需求</view>
  65. <van-button class="set-attention-btn fl" color="#5e73e5" round bind:click="setAttention" size="small">
  66. 更换关注类型
  67. </van-button>
  68. </view>
  69. </view>
  70. <view wx:else>
  71. <view class="not-data clearfix" wx:if="{{ paramIsInterest == 1 }}">
  72. <view class="not-info-attention-type">
  73. <view class="not-data-attention-view fl">
  74. <image class="not-data-attention-img" src="/images/home/not-data-attention-img.png" />
  75. </view>
  76. <view class="not-info">抱歉,您关注的类型暂无任何需求</view>
  77. <van-button class="set-attention-btn fl" color="#5e73e5" round bind:click="setAttention" size="small">
  78. 更换关注类型
  79. </van-button>
  80. </view>
  81. </view>
  82. <view class="view-interested" wx:if="{{ paramIsInterest == 1 }}">为您推荐以下内容</view>
  83. <view class="list-view" wx:for="{{ listData }}" wx:key="index">
  84. <listItem item="{{ item }}" bind:getItem="goDetails" customerId="{{ customerId }}"/>
  85. </view>
  86. <view class="text-center" wx:if="{{ itemLoading }}">
  87. <van-loading size="24px">加载中...</van-loading>
  88. </view>
  89. <view class="list-finished text-center" wx:if="{{ isFinished }}">
  90. <image class="finished-img" src="/images/home/finished-icon.png" />
  91. 没有更多啦~
  92. </view>
  93. </view>
  94. </view>
  95. <tabBar currentIndex="{{currentIndex}}"></tabBar>
  96. </view>