业务交流通
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.wxml 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <!-- index.wxml -->
  2. <view class="home-page">
  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. <!-- 平台认证 -->
  58. <view class="list-certification" wx:if="{{ item.isPartner }}">
  59. <image class="certification-img" src="/images/home/certification-icon.png" />
  60. 平台认证
  61. </view>
  62. <!-- 头部 -->
  63. <view class="list-avatar">
  64. <view class="list-chatHeads fl">
  65. <image class="chatHeads-img" src="{{ item.chatHeads }}" />
  66. </view>
  67. <view class="list-nick-name fl">{{ item.nickName }}</view>
  68. <view class="list-home fl">
  69. <image class="home-img" src="{{ item.isPartner ? '/images/home/company-icon.png' : '/images/home/personal-icon.png' }}" />
  70. 主页
  71. </view>
  72. </view>
  73. <!-- 内容 -->
  74. <view class="list-content">
  75. <!-- 详情 -->
  76. <view>
  77. <text space class="list-details-text">{{ item.info }}</text>
  78. </view>
  79. <!-- 标签 -->
  80. <view class="list-tag-view">
  81. <view class="list-tag" wx:for="{{ item.type }}" wx:for-item="tag" wx:key="*this">
  82. {{ tag }}
  83. </view>
  84. </view>
  85. <!-- 底部 -->
  86. <view class="list-foot">
  87. <view class="fl list-foot-text-lf">
  88. <image class="time-img" src="/images/home/time-icon.png" />
  89. 2021-07-23
  90. </view>
  91. <view class="fl list-foot-text-lf">
  92. <image class="browse-img" src="/images/home/browse-icon.png" />
  93. 897浏览量
  94. </view>
  95. <view class="fr list-foot-text-chat">
  96. <image class="chat-img" src="/images/home/chat-icon.png" />
  97. 聊一聊
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. <view class="text-center" wx:if="{{ itemLoading }}">
  103. <van-loading size="24px">加载中...</van-loading>
  104. </view>
  105. <view class="list-finished text-center" wx:if="{{ isFinished }}">
  106. <image class="finished-img" src="/images/home/finished-icon.png" />
  107. 没有更多啦~
  108. </view>
  109. </view>
  110. </view>
  111. <tabBar currentIndex="{{currentIndex}}"></tabBar>
  112. </view>