knowledge.wxml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!--pages/knowledge/knowledge.wxml-->
  2. <view class="search">
  3. <input bindinput='search' placeholder-style='color:#C8C8C8;' placeholder="输入名称/关键字搜索"></input>
  4. <image bindtap="search" mode="widthFix" src="../images/search.png"></image>
  5. </view>
  6. <view class="menu">
  7. <view class="picker" bindtap="showmenu">
  8. {{array[index]}} <text class="up"></text>
  9. </view>
  10. <view class="drop_menu" wx:if='{{show}}'>
  11. <text wx:for='{{array}}' bindtap="check" data-id='{{index}}'>{{item}}</text>
  12. </view>
  13. </view>
  14. <view class="tab">
  15. <text bindtap="tab" data-id='0' class="{{act == 0?'active':''}}">精品导读</text>
  16. <text bindtap="tab" data-id='1' class="{{act == 1?'active':''}}">刊群状态</text>
  17. </view>
  18. <!-- <view style="text-align:center;margin:100px 0;" bindtap="getData" wx:if='{{list.length<=0}}'>点击重新加载</view> -->
  19. <swiper circular="{{true}}" class="myswiper" bindchange='swchange' current='{{act}}' autoplay="{{false}}">
  20. <swiper-item>
  21. <scroll-view scroll-y="true" scroll-into-view="{{scroll}}" bindscrolltolower='next' class="content">
  22. <navigator url="../actDetail/actDetail?id={{item.id}}" class="list" wx:for='{{list}}' wx:key="journals{{index}}">
  23. <image src="{{item.img}}"></image>
  24. <view>
  25. <view class="title"> <rich-text nodes="<div style='overflow:hidden;white-space:nowrap;text-overflow:ellipsis;'>{{item.name}}</div>"></rich-text></view>
  26. <view class="ly">
  27. <text style="float:right;">{{item.publish_time}}</text>
  28. <text class="nowrap">作者:{{item.author}}</text>
  29. <text class="">发布单位:{{item.journal_name}}</text>
  30. </view>
  31. <text class="">{{item.desc}}</text>
  32. </view>
  33. </navigator>
  34. <block wx:if='{{total>=20}}'>
  35. <view class='more' wx:if='{{list.length < total}}'>上拉加载更多...</view>
  36. <view class='more' wx:else>已加载全部数据!</view>
  37. </block>
  38. </scroll-view>
  39. </swiper-item>
  40. <swiper-item>
  41. <scroll-view scroll-y="true" scroll-into-view="{{scroll}}" bindscrolltolower='next1' class="content">
  42. <navigator url="../news/news?id={{item.id}}" class="list" wx:for='{{list1}}' wx:key="journals{{index}}">
  43. <image src="{{item.img}}"></image>
  44. <view>
  45. <view class="title"> <rich-text nodes="<div style='overflow:hidden;white-space:nowrap;text-overflow:ellipsis;'>{{item.name}}</div>"></rich-text></view>
  46. <view class="ly">
  47. <view>
  48. <text>{{item.publish_time}}</text>
  49. </view>
  50. <text class="nowrap">来源:{{item.journal_name}}</text>
  51. </view>
  52. <text>{{item.desc}}</text>
  53. </view>
  54. </navigator>
  55. <block wx:if='{{total1>=20}}'>
  56. <view class='more' wx:if='{{list1.length < total1}}'>上拉加载更多...</view>
  57. <view class='more' wx:else>已加载全部数据!</view>
  58. </block>
  59. </scroll-view>
  60. </swiper-item>
  61. </swiper>