knowledge.wxml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. <swiper circular="{{true}}" class="myswiper" bindchange='swchange' current='{{act}}' autoplay="{{false}}">
  19. <swiper-item>
  20. <scroll-view scroll-y="true" scroll-into-view="{{scroll}}" bindscrolltolower='next' class="content">
  21. <navigator url="../actDetail/actDetail?id={{item.id}}" class="list" wx:for='{{list}}' wx:key="journals{{index}}">
  22. <image src="{{item.img}}"></image>
  23. <view>
  24. <view class="title"> <rich-text nodes="{{item.name}}"></rich-text></view>
  25. <view class="ly">
  26. <view>
  27. <text>{{item.publish_time}}</text>
  28. </view>
  29. <text>作者:{{item.author}}</text>
  30. <text></text>
  31. </view>
  32. <text class="">主办单位:{{item.desc}}</text>
  33. </view>
  34. </navigator>
  35. <block wx:if='{{total>=20}}'>
  36. <view class='more' wx:if='{{list.length < total}}'>上拉加载更多...</view>
  37. <view class='more' wx:else>已加载全部数据!</view>
  38. </block>
  39. </scroll-view>
  40. </swiper-item>
  41. <swiper-item>
  42. </swiper-item>
  43. </swiper>