search.wxml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <view class="search" >
  2. <input bindinput="inputChange" placeholder-style='color:#C8C8C8;' value="{{keyword}}" placeholder="输入名称/关键字搜索"></input>
  3. <image bindtap="search" mode="widthFix" src="../images/search.png"></image>
  4. </view>
  5. <view style="height:30rpx;background:#fff;"></view>
  6. <view class="rview">
  7. <scroll-view class="scroll" scroll-y="true" scroll-top='{{top}}' bindscrolltolower='next'>
  8. <view class="part">
  9. <view class="title">{{title}}</view>
  10. <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"}}'>
  11. <image src="{{i.img}}"></image>
  12. <view>
  13. <view class="title"> <rich-text nodes="{{i.name}}"></rich-text></view>
  14. <!-- <text>微信号:{{i.wxcode}}</text>
  15. <text>主编:{{i.editor}}</text>
  16. <text class="">主办单位:{{i.publishingUnit}}</text> -->
  17. <text class="wrap">{{i.desc}}</text>
  18. </view>
  19. </navigator>
  20. <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"}}' >
  21. <image style="height:125rpx;" src="{{i.img}}"></image>
  22. <view>
  23. <view class="title"> <rich-text nodes="{{i.name}}"></rich-text></view>
  24. <text class="wrap">{{i.desc}}</text>
  25. </view>
  26. </navigator>
  27. <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"}}' >
  28. <image mode="widthFix" src="{{i.img}}"></image>
  29. <view>
  30. <!-- <view class="title">{{i.name}}</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="../conference/conference?id={{i.id}}" class="list" wx:for='{{list}}' wx:for-item='i' wx:for-index='idx' wx:if='{{value==type && type=="conference"}}' >
  36. <image src="{{i.img}}"></image>
  37. <view>
  38. <view class="title"> <rich-text nodes="{{i.name}}"></rich-text></view>
  39. <text class="wrap">{{i.desc}}</text>
  40. </view>
  41. </navigator>
  42. <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;'>
  43. <!-- <image mode="widthFix" src="{{i.img}}"></image> -->
  44. <view>
  45. <view class="title"> <rich-text nodes="{{i.name}}"></rich-text></view>
  46. <text class="wrap">{{i.desc}}</text>
  47. </view>
  48. </navigator>
  49. <block wx:if='{{list.length >= 20}}'>
  50. <view class='more' wx:if='{{loading}}'>上拉加载更多...</view>
  51. <view class='more' wx:else>已加载全部数据!</view>
  52. </block>
  53. </view>
  54. </scroll-view>
  55. </view>