业务交流通
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

index.wxml 5.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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" 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. <view class="title">
  15. 全方位需求
  16. <text class="sub-title">交流平台</text>
  17. </view>
  18. <button type="default" plain class="set-attention" id="shouquan" bindtap="setAttention">
  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 {{ moreTitle.length > 2 ? 'more' : '' }}" wx:key="index">
  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 && !(currentTab == 'my' && attentionTypeIds.length > 0) }}">
  47. <image class="not-data-img" src="/images/home/not-data.png" />
  48. <view class="not-info" wx:if="{{ currentTab == 'all' }}">抱歉,暂无任何需求</view>
  49. <view class="not-info" wx:elif="{{ currentTab == 'my' && attentionTypeIds.length < 1}}">
  50. <view>您尚未设置关注类型喜好</view>
  51. <view style="margin-bottom: 10rpx;">设置后将为您进行需求推荐~</view>
  52. <van-button class="set-attention-btn" color="#5e73e5" round bind:click="setAttention">
  53. 设置关注类型喜好
  54. </van-button>
  55. </view>
  56. <view class="not-info" wx:else>抱歉,暂无任何需求</view>
  57. </view>
  58. <view class="not-data" wx:elif="{{ listData.length < 1 && (currentTab == 'my' && attentionTypeIds.length > 0) }}">
  59. <view class="not-info-attention-type">
  60. <view class="not-data-attention-view fl">
  61. <image class="not-data-attention-img" src="/images/home/not-data-attention-img.png" />
  62. </view>
  63. <view class="not-info">抱歉,您关注的类型暂无任何需求</view>
  64. <van-button class="set-attention-btn fl" color="#5e73e5" round bind:click="setAttention" size="small">
  65. 更换关注类型
  66. </van-button>
  67. </view>
  68. </view>
  69. <view wx:else>
  70. <view class="not-data clearfix" wx:if="{{ paramIsInterest == 2 }}">
  71. <view class="not-info-attention-type">
  72. <view class="not-data-attention-view fl">
  73. <image class="not-data-attention-img" src="/images/home/not-data-attention-img.png" />
  74. </view>
  75. <view class="not-info">抱歉,您关注的类型暂无任何需求</view>
  76. <van-button class="set-attention-btn fl" color="#5e73e5" round bind:click="setAttention" size="small">
  77. 更换关注类型
  78. </van-button>
  79. </view>
  80. </view>
  81. <view class="view-interested" wx:if="{{ paramIsInterest == 2 }}">为您推荐以下内容</view>
  82. <view class="list-view" wx:for="{{ listData }}" wx:key="index">
  83. <listItem item="{{ item }}" bind:getItem="goDetails" customerId="{{ customerId }}"/>
  84. </view>
  85. <view class="text-center" wx:if="{{ itemLoading }}">
  86. <van-loading size="24px">加载中...</van-loading>
  87. </view>
  88. <view class="list-finished text-center" wx:if="{{ isFinished }}">
  89. <image class="finished-img" src="/images/home/finished-icon.png" />
  90. 没有更多啦~
  91. </view>
  92. </view>
  93. </view>
  94. <tabBar currentIndex="{{currentIndex}}"></tabBar>
  95. </view>