大数据平台的小程序版本

search.wxml 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <view class="container">
  2. <!-- 搜索 -->
  3. <view class="topSearch">
  4. <view class="searchView">
  5. <image src="https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/search_icon2.png"/>
  6. <input bindinput="bindKeyInput" placeholder="{{placeholder}}" type='text' confirm-type="search" bindconfirm='getKey' placeholder-class="searchPlaceholder2"/>
  7. </view>
  8. <scroll-view class="scroll-view_H"
  9. scroll-left="{{scroll_left}}"
  10. scroll-with-animation="true"
  11. scroll-x="true">
  12. <view class="scroll-view-item_H">
  13. <view wx:for="{{topArray}}"
  14. bindtap="clickTitle"
  15. data-type = "{{item.type}}"
  16. class="{{type === item.type ?'active':''}}"
  17. wx:key="index">{{item.title}}</view>
  18. </view>
  19. </scroll-view>
  20. </view>
  21. <!-- 搜达人 -->
  22. <view class="rankListDiv" wx:if="{{type == '1'}}">
  23. <view class="rankList" wx:for="{{searchList}}" wx:key="index" bindtap="goHrDetail" data-userid='{{item.user_id}}'>
  24. <view class="userImgDiv">
  25. <image src="{{item.headurl}}" mode="widthFix"></image>
  26. </view>
  27. <view class="userInfo">
  28. <view class="userName">{{item.user_name}}</view>
  29. <view class="fan">粉丝数 {{item.fan}}</view>
  30. <!-- <view class="other">
  31. <view>销量<text>{{item.sell_count}}</text></view>
  32. <view>销售额<text>{{item.sell_money}}</text></view>
  33. </view> -->
  34. </view>
  35. </view>
  36. </view>
  37. <!-- 搜商品 -->
  38. <view class="rankListDiv" wx:if="{{type == '2'}}">
  39. <view class="rankList" wx:for="{{searchList}}" wx:key="index" data-id='{{item.commodity_id}}' bindtap="toProduct">
  40. <view class="userImgDiv" style="border-radius:8rpx">
  41. <image src="{{item.img}}" mode="widthFix"></image>
  42. </view>
  43. <view class="userInfo">
  44. <view class="userName">{{item.title}}</view>
  45. <view class="fan" wx:if="{{item.price}}">¥{{item.price}}</view>
  46. </view>
  47. </view>
  48. </view>
  49. <!-- 搜视频 -->
  50. <view wx:if="{{type == '3'}}" class="rankListDiv">
  51. <view class="listView" wx:for="{{searchList}}" wx:key="photo_id" bindtap="goVideoDetail" data-userid="{{item.user_id}}" data-photoid="{{item.photo_id}}">
  52. <view class="infoView">
  53. <view class="coverImg">
  54. <image src="{{item.cover_thumbnail_url}}" mode="widthFix" webp="{{item.cover_thumbnail_url&&item.cover_thumbnail_url.indexOf('.webp') != -1 ? true : false}}"></image>
  55. </view>
  56. <view class="info">
  57. <view class="caption">{{item.caption}}</view>
  58. <view class="nameInfo">
  59. <view class="name">
  60. <image src="{{item.headurl}}" mode="widthFix"></image>
  61. <text>{{item.user_name}}</text>
  62. </view>
  63. </view>
  64. <view class="time">{{item.time}}</view>
  65. <view class="other_info">
  66. <view>播放量 <text>{{item.view_count}}</text></view>
  67. <view>点赞量 <text>{{item.like_count}}</text></view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <!-- 搜应用 -->
  74. <view class="rankListDiv" wx:if="{{type == '4'}}">
  75. <view class="rankList" wx:for="{{searchList}}" wx:key="index" bindtap="goAdDetail" data-videoid="{{item.video_id}}">
  76. <view class="userImgDiv" style="border-radius:8rpx">
  77. <image src="{{item.app_icon_url}}" mode="widthFix"></image>
  78. </view>
  79. <view class="userInfo">
  80. <view class="userName">{{item.app_name}}</view>
  81. <view class="fan">{{item.ad_description}}</view>
  82. </view>
  83. </view>
  84. </view>
  85. <!-- 搜音乐 -->
  86. <view class="rankListDiv" wx:if="{{type == '5'}}">
  87. <view class="rankList" wx:for="{{searchList}}" wx:key="index" bindtap="goMusic" data-musicid='{{item.music_id}}'>
  88. <view class="userImgDiv" style="border-radius:8rpx">
  89. <image src="{{item.music_img}}" mode="widthFix"></image>
  90. </view>
  91. <view class="userInfo">
  92. <view class="userName">{{item.music}}</view>
  93. <view class="other">
  94. <view>作品数<text>{{item.photo_count}}</text></view>
  95. <view>作品增量<text>{{item.photo_count_incr}}</text></view>
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. <!-- 搜商圈 -->
  101. <view class="rankListDiv" wx:if="{{type == '6'}}">
  102. <view class="rankList" wx:for="{{searchList}}" wx:key="index" data-id="{{item.poi_id}}" bindtap="toBussiness">
  103. <view class="userImgDiv" style="border-radius:8rpx">
  104. <image src="https://kx-bigdata.oss-cn-beijing.aliyuncs.com/location.png" mode="widthFix"></image>
  105. </view>
  106. <view class="userInfo">
  107. <view class="userName">{{item.title}}</view>
  108. <view class="other">
  109. <view>来过人数<text>{{item.heat}}</text></view>
  110. <view>人数增量<text>{{item.heat_incr}}</text></view>
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. <!-- 搜索结果 -->
  116. <view class="searchResult" wx:if="{{searchKeyword!='' && pages !=-1 && searchList.length==0&&!hasAuno}}">
  117. <image class="img" src="https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/dataLoadingImg.png"/>
  118. <view class="result1">搜索结果为空</view>
  119. <view class="result2">没有搜索到相关内容</view>
  120. </view>
  121. <nopermission wx:if="{{hasAuno&&!searchKeyword==''&&pages!=-1}}"></nopermission>
  122. </view>
  123. <image wx:if="{{scrollTop>=1000}}" bindtap="goScrolltop" class="goTop" src="https://kx-gw.oss-cn-beijing.aliyuncs.com/goTop_icon.png"/>