knowledge.wxml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!--pages/knowledge/knowledge.wxml-->
  2. <view class="search">
  3. <input bindinput='search' placeholder-style='color:#C8C8C8;' placeholder="输入名称/关键字搜索"></input>
  4. <image 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">{{item.name}}</view>
  25. <view class="ly">
  26. <view>
  27. <text>2018.5.28</text>
  28. </view>
  29. <text>作者:</text>
  30. <text></text>
  31. </view>
  32. <text class="">主办单位:{{item.desc}}</text>
  33. </view>
  34. </navigator>
  35. <view class='more' wx:if='{{list.length < total}}'>上拉加载更多...</view>
  36. <view class='more' wx:else>已加载全部数据!</view>
  37. </scroll-view>
  38. </swiper-item>
  39. <swiper-item>
  40. </swiper-item>
  41. </swiper>