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

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