knowledge.wxml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!--pages/knowledge/knowledge.wxml-->
  2. <view class="search">
  3. <input placeholder-style='color:#C8C8C8;' placeholder="输入名称/关键字搜索"></input>
  4. <image mode="widthFix" src="../images/search.png"></image>
  5. </view>
  6. <picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}">
  7. <view class="picker">
  8. {{array[index]}}
  9. </view>
  10. </picker>
  11. <view class="tab">
  12. <text bindtap="tab" data-id='0' class="{{act == 0?'active':''}}">精品导读</text>
  13. <text bindtap="tab" data-id='1' class="{{act == 1?'active':''}}">知识地图</text>
  14. </view>
  15. <swiper circular="{{true}}" style="height:83vh;" bindchange='swchange' current='{{act}}' autoplay="{{false}}">
  16. <swiper-item>
  17. <scroll-view scroll-y="true" scroll-into-view="{{scroll}}" class="content">
  18. <navigator url="../journalDetail/journalDetail" class="list" wx:for='{{list}}' wx:key="journals{{index}}">
  19. <image mode="widthFix" src="{{item.img}}"></image>
  20. <view>
  21. <view class="title">{{item.name}}</view>
  22. <view class="ly">
  23. <view>
  24. <text>2018.5.28</text>
  25. </view>
  26. <text>作者:包为民</text>
  27. <text>《中国科学院》</text>
  28. </view>
  29. <text class="">主办单位:{{item.desc}}</text>
  30. </view>
  31. </navigator>
  32. </scroll-view>
  33. </swiper-item>
  34. <swiper-item>
  35. </swiper-item>
  36. </swiper>