search.wxml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!--pages/index/search/search.wxml-->
  2. <view class="base">
  3. <!-- 搜索框 -->
  4. <l-search-bar l-container-class="search" placeholder="大家都在搜:{{hotsearch}}"
  5. bg-color="#f6f6f6"
  6. shape="circle"
  7. bind:lincancel="search"
  8. bind:linchange="input"
  9. bind:linclear="clearValue"
  10. value="{{searchValue}}"
  11. cancel-text="搜索"/>
  12. <!-- 分割线 -->
  13. <view class="line" wx:if="{{isSearch}}"></view>
  14. <!-- 热门搜索 -->
  15. <view class="hot" wx:if="{{!isSearch}}">
  16. <text class="hot-tittle">热门搜索</text>
  17. <view class="hot-content">
  18. <view class="content-item" wx:for="{{hotsearchList}}" wx:key="id" data-index="{{index}}" bindtap="clickHot">{{item.message}}</view>
  19. </view>
  20. </view>
  21. <!-- 搜索历史 -->
  22. <view class="history" wx:if="{{!isSearch}}">
  23. <view class="history-tittle">
  24. <text class="hot-tittle">搜索历史</text>
  25. <image src="../../../image/lj.png" class="history-tittle-icon" bindtap="deleteRecord"></image>
  26. </view>
  27. <view class="hot-content">
  28. <view class="content-item" wx:for="{{searchRecordList}}" wx:key="id" data-index="{{index}}" bindtap="clickRecord">{{item.message}}</view>
  29. </view>
  30. </view>
  31. <!-- 兼职信息列表 -->
  32. <view class="resList" wx:if="{{isSearch}}" wx:for="{{searchResList}}" wx:key="id" data-id="{{item.id}}" bindtap="clickRes">
  33. <view class="resList-left">
  34. <view class="resList-left-one">{{item.tittle}}</view>
  35. <view class="resList-left-two" wx:if="{{item.settlement==1}}">{{item.place}} 日结</view>
  36. <view class="resList-left-two" wx:if="{{item.settlement==2}}">{{item.place}} 周结</view>
  37. <view class="resList-left-two" wx:if="{{item.settlement==3}}">{{item.place}} 完工结</view>
  38. <view class="resList-left-three">
  39. <view class="resList-left-three-item" wx:if="{{item.isBagEating==1}}">包吃</view>
  40. <view class="resList-left-three-item" wx:if="{{item.encase==1}}">包住</view>
  41. <view class="resList-left-three-item" wx:if="{{item.isTrafficSubsidy==1}}">交通补贴</view>
  42. <view class="resList-left-three-item" wx:if="{{item.royalty==1}}">有提成</view>
  43. </view>
  44. </view>
  45. <view class="resList-right">
  46. <view class="resList-right-price">{{item.reward}}</view>
  47. <view class="resList-right-date">2020-03-15</view>
  48. </view>
  49. </view>
  50. </view>