searchList.wxml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <view class="search" >
  2. <input bindinput="inputChange" placeholder-style='color:#C8C8C8;' value="{{keyword}}" placeholder="输入名称/关键字搜索"></input>
  3. <image bindtap="search1" mode="widthFix" src="../images/search.png"></image>
  4. </view>
  5. <view class="rview" wx:if='{{keyword}}'>
  6. <scroll-view scroll-x="true" class="tab" scroll-left='{{left}}'>
  7. <view>
  8. <text bindtap="tab" data-id='0' class="{{act == 0?'active':''}}">全部</text>
  9. <text bindtap="tab" data-id='1' class="{{act == 1?'active':''}}">相关主办单位</text>
  10. <text bindtap="tab" data-id='2' class="{{act == 2?'active':''}}">相关文章</text>
  11. <text bindtap="tab" data-id='3' class="{{act == 3?'active':''}}">相关学术会议</text>
  12. <text bindtap="tab" data-id='4' class="{{act == 4?'active':''}}">相关期刊</text>
  13. <text bindtap="tab" data-id='5' class="{{act == 5?'active':''}}">相关学术学科</text>
  14. </view>
  15. </scroll-view>
  16. <scroll-view class="scroll" scroll-y="true" scroll-top='{{top}}' bindscrolltolower='next'>
  17. <view wx:if='{{act==0}}' class="part" wx:for='{{data}}'>
  18. <view class="title" wx:if='{{item.list.length>0}}'>{{item.name}} <text bindtap="more" data-index='{{index+1}}' data-id='{{item.value}}'>查看更多</text></view>
  19. <navigator url="../journalDetail/journalDetail?id={{i.id}}" class="list" wx:for='{{item.list}}' wx:for-item='i' wx:for-index='idx' wx:if='{{item.value=="journal"&& idx<3}}'>
  20. <image src="{{i.img}}"></image>
  21. <view>
  22. <view class="title"> <rich-text nodes="{{i._name}}"></rich-text></view>
  23. <text>微信号:{{i.wxcode}}</text>
  24. <text>主编:{{i.editor}}</text>
  25. <text class="">主办单位:{{i.publishingUnit}}</text>
  26. </view>
  27. </navigator>
  28. <navigator url="../list/list?organizer_id={{i.id}}&title={{i.name}}" class="list" wx:for='{{item.list}}' wx:for-item='i' wx:for-index='idx' wx:if='{{item.value=="organizer" && idx<3}}' >
  29. <image style="height:125rpx;" src="{{i.img}}"></image>
  30. <view>
  31. <view class="title"> <rich-text nodes="{{i._name}}"></rich-text></view>
  32. <text class="wrap">{{i.desc}}</text>
  33. </view>
  34. </navigator>
  35. <navigator url="../actDetail/actDetail?id={{i.id}}" class="list" wx:for='{{item.list}}' wx:for-item='i' wx:for-index='idx' wx:if='{{item.value=="article" && idx<3}}' >
  36. <image src="{{i.img}}"></image>
  37. <view>
  38. <view class="title"> <rich-text nodes="{{i._name}}"></rich-text></view>
  39. <text>作者:{{i.author}}</text>
  40. <text class="wrap">{{i.desc}}</text>
  41. </view>
  42. </navigator>
  43. <navigator url="../eventDetail/eventDetail?id={{i.id}}" class="list" wx:for='{{item.list}}' wx:for-item='i' wx:for-index='idx' wx:if='{{item.value=="conference" && idx<3}}' >
  44. <image src="{{i.img}}"></image>
  45. <view>
  46. <view class="title"> <rich-text nodes="{{i._name}}"></rich-text></view>
  47. <text class="wrap">{{i.desc}}</text>
  48. </view>
  49. </navigator>
  50. <navigator url="../list/list?subject_id={{i.id}}&title={{i.name}}" class="list" wx:for='{{item.list}}' wx:for-item='i' wx:for-index='idx' wx:if='{{item.value=="subject" && idx<3}}' style='padding-left:0;'>
  51. <!-- <image mode="widthFix" src="{{i.img}}"></image> -->
  52. <view>
  53. <view class="title"> <rich-text nodes="{{i._name}}"></rich-text></view>
  54. <text class="wrap">{{i.desc}}</text>
  55. </view>
  56. </navigator>
  57. </view>
  58. <view wx:if='{{act!=0}}' class="part">
  59. <view class="title">{{title}}</view>
  60. <navigator url="../journalDetail/journalDetail?id={{i.id}}" class="list" wx:for='{{list}}' wx:for-item='i' wx:for-index='idx' wx:if='{{value==type && type=="journal"}}'>
  61. <image src="{{i.img}}"></image>
  62. <view>
  63. <view class="title"> <rich-text nodes="{{i._name}}"></rich-text></view>
  64. <!-- <text>微信号:{{i.wxcode}}</text>
  65. <text>主编:{{i.editor}}</text>
  66. <text class="">主办单位:{{i.publishingUnit}}</text> -->
  67. <text class="wrap">{{i.desc}}</text>
  68. </view>
  69. </navigator>
  70. <navigator url="../list/list?organizer_id={{i.id}}&title={{i.name}}" class="list" wx:for='{{list}}' wx:for-item='i' wx:for-index='idx' wx:if='{{value==type && type=="organizer"}}' >
  71. <image style="height:125rpx;" src="{{i.img}}"></image>
  72. <view>
  73. <view class="title"> <rich-text nodes="{{i._name}}"></rich-text></view>
  74. <text class="wrap">{{i.desc}}</text>
  75. </view>
  76. </navigator>
  77. <navigator url="../actDetail/actDetail?id={{i.id}}" class="list" wx:for='{{list}}' wx:for-item='i' wx:for-index='idx' wx:if='{{value==type && type=="article"}}' >
  78. <image mode="widthFix" src="{{i.img}}"></image>
  79. <view>
  80. <!-- <view class="title">{{i.name}}</view> -->
  81. <view class="title"> <rich-text nodes="{{i.name}}"></rich-text></view>
  82. <text>作者:{{i.author}}</text>
  83. <text class="wrap">{{i.desc}}</text>
  84. </view>
  85. </navigator>
  86. <navigator url="../conference/conference?id={{i.id}}" class="list" wx:for='{{list}}' wx:for-item='i' wx:for-index='idx' wx:if='{{value==type && type=="conference"}}' >
  87. <image src="{{i.img}}"></image>
  88. <view>
  89. <view class="title"> <rich-text nodes="{{i._name}}"></rich-text></view>
  90. <text class="wrap">{{i.desc}}</text>
  91. </view>
  92. </navigator>
  93. <navigator url="../list/list?subject_id={{i.id}}&title={{i.name}}" class="list" wx:for='{{list}}' wx:for-item='i' wx:for-index='idx' wx:if='{{value==type && type=="subject"}}' style='padding-left:0;'>
  94. <!-- <image mode="widthFix" src="{{i.img}}"></image> -->
  95. <view>
  96. <view class="title"> <rich-text nodes="{{i._name}}"></rich-text></view>
  97. <text class="wrap">{{i.desc}}</text>
  98. </view>
  99. </navigator>
  100. <block wx:if='{{list.length >= 20}}'>
  101. <view class='more' wx:if='{{loading}}'>上拉加载更多...</view>
  102. <view class='more' wx:else>已加载全部数据!</view>
  103. </block>
  104. </view>
  105. </scroll-view>
  106. </view>
  107. <view class="sview" wx:else>
  108. <view class="part">
  109. <view class="title">搜索指定内容</view>
  110. <navigator url="../search/search?type={{item.value}}&title={{item.name}}" wx:for='{{info.navs}}'>{{item.name}}</navigator>
  111. </view>
  112. <view class="part">
  113. <view class="title">搜索记录</view>
  114. <text data-value='{{item}}' bindtap="search" wx:for='{{info.history}}'>{{item}}</text>
  115. </view>
  116. <view class="part">
  117. <view class="title">冷词</view>
  118. <text data-value='{{item}}' bindtap="search" wx:for='{{info.cold_keyword}}'>{{item}}</text>
  119. </view>
  120. <view class="part">
  121. <view class="title">热词</view>
  122. <text data-value='{{item}}' bindtap="search" wx:for='{{info.hot_keyword}}'>{{item}}</text>
  123. </view>
  124. </view>