learning.wxml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <view class="search" bindtap='search' wx:if='{{act!=0}}'>
  2. <input placeholder-style='color:#C8C8C8;' placeholder="输入名称/关键字搜索"></input>
  3. <image mode="widthFix" src="../images/search.png"></image>
  4. </view>
  5. <view class="search" bindtap='search' wx:else style="width:100%;">
  6. <input placeholder-style='color:#C8C8C8;' placeholder="输入名称/关键字搜索"></input>
  7. <image mode="widthFix" src="../images/search.png"></image>
  8. </view>
  9. <view class="menu" wx:if='{{act!=0}}'>
  10. <view class="picker" bindtap="showmenu">
  11. {{array[index]}} <text class="up"></text>
  12. </view>
  13. <view class="drop_menu" wx:if='{{show}}'>
  14. <text wx:for='{{array}}' bindtap="check" data-id='{{index}}'>{{item}}</text>
  15. </view>
  16. </view>
  17. <view class="tab">
  18. <text bindtap="tab" data-id='0' class="{{act == 0?'active':''}}">推荐</text>
  19. <text bindtap="tab" data-id='1' class="{{act == 1?'active':''}}">学术会议</text>
  20. <text bindtap="tab" data-id='2' class="{{act == 2?'active':''}}">活动预告</text>
  21. <text bindtap="tab" data-id='3' class="{{act == 3?'active':''}}">活动回顾</text>
  22. </view>
  23. <swiper class="myswiper" circular="{{true}}" bindchange='swchange' current='{{act}}' autoplay="{{false}}">
  24. <swiper-item>
  25. <scroll-view scroll-y="true">
  26. <block wx:if='{{!show_tj}}'>
  27. <view class="part">
  28. <view class="title">精品推荐 <text bindtap="more" data-id='1'>查看更多</text></view>
  29. <view class="tj">
  30. <navigator wx:for="{{arct}}" url="../conference/conference?id={{item.id}}" wx:if='{{index<3}}'>
  31. <view class="img_view">
  32. <image mode="scaleToFill" src="{{item.img}}"></image>
  33. <view class="date_ly">
  34. <text>{{item.begin_time}}</text>
  35. <text>{{item.journal_name}}</text>
  36. </view>
  37. </view>
  38. <view class="tj_name">{{item.name}}</view>
  39. <text>{{item.desc}}</text>
  40. </navigator>
  41. </view>
  42. </view>
  43. <view class="part">
  44. <view class="title">热门会议 <text bindtap="more" data-id='2'>查看更多</text></view>
  45. <view class="hd">
  46. <navigator class="list" wx:for='{{hot_arct}}' wx:key="hot_arct{{index}}" url="../eventDetail/eventDetail?id={{item.id}}">
  47. <image src="{{item.img}}"></image>
  48. <view>
  49. <view class="tt">{{item.name}} </view>
  50. <view class="ly">
  51. <view>
  52. <text>{{item.begin_time}}</text>
  53. </view>
  54. <text class="nowrap">来源:{{item.organizer_name}}</text>
  55. </view>
  56. <text>{{item.desc}}</text>
  57. </view>
  58. </navigator>
  59. </view>
  60. </view>
  61. <view class="part">
  62. <view class="title">活动预告 <text bindtap="more" data-id='3'>查看更多</text></view>
  63. <view class="hd">
  64. <navigator class="list" wx:for='{{pre_arct}}' wx:key="pre_arct{{index}}" url="../conference/conference?id={{item.id}}" >
  65. <image src="{{item.img}}"></image>
  66. <view>
  67. <view class="tt">{{item.name}} </view>
  68. <view class="ly">
  69. <view>
  70. <text>{{item.begin_time}}</text>
  71. <text>{{item.address}}</text>
  72. </view>
  73. <text>主讲人:{{item.speaker}}</text>
  74. <text>{{item.publish_unit}}</text>
  75. </view>
  76. <text>{{item.desc}}</text>
  77. </view>
  78. </navigator>
  79. </view>
  80. </view>
  81. <view class="part">
  82. <view class="title">活动回顾 <text bindtap="more" data-id='4'>查看更多</text></view>
  83. <view class="hd">
  84. <navigator class="list" wx:for='{{over_arct}}' wx:key="over_arct{{index}}" url="../conference/conference?id={{item.id}}" >
  85. <image src="{{item.img}}"></image>
  86. <view>
  87. <view class="tt">{{item.name}} </view>
  88. <view class="ly">
  89. <text>主讲人:{{item.speaker}}</text>
  90. <view>
  91. <text>{{item.begin_time}}</text>
  92. </view>
  93. <text>{{item.publish_unit}}</text>
  94. </view>
  95. <text>{{item.desc}}</text>
  96. </view>
  97. </navigator>
  98. </view>
  99. </view>
  100. </block>
  101. <block wx:else>
  102. <!-- 全部推荐 -->
  103. <view class="part">
  104. <navigator class="list" wx:for='{{arct}}' wx:key="prearct{{index}}" url="../conference/conference?id={{item.id}}" >
  105. <image mode="widthFix" src="{{item.img}}"></image>
  106. <view>
  107. <view class="tt">{{item.name}} </view>
  108. <view class="ly">
  109. <view>
  110. <text>{{item.begin_time}}</text>
  111. </view>
  112. <text>主讲人:{{item.speaker}}</text>
  113. <text>{{item.publish_unit}}</text>
  114. </view>
  115. <text>{{item.desc}}</text>
  116. </view>
  117. </navigator>
  118. </view>
  119. </block>
  120. </scroll-view>
  121. </swiper-item>
  122. <!-- 学术会议 -->
  123. <swiper-item>
  124. <scroll-view class="content" scroll-y="true" bindscrolltolower='next_0'>
  125. <navigator class="list" wx:for='{{conference}}' wx:key="conference{{index}}" url="../eventDetail/eventDetail?id={{item.id}}">
  126. <image src="{{item.img}}"></image>
  127. <view>
  128. <view class="tt">{{item.name}} </view>
  129. <view class="ly">
  130. <view>
  131. <text>{{item.begin_time}}</text>
  132. </view>
  133. <text class="nowrap">来源:{{item.organizer_name}}</text>
  134. </view>
  135. <text>{{item.desc}}</text>
  136. </view>
  137. </navigator>
  138. <block wx:if='{{total_0 >= 20}}'>
  139. <view class='more' wx:if='{{conference.length < total_0}}'>上拉加载更多...</view>
  140. <view class='more' wx:else>已加载全部数据!</view>
  141. </block>
  142. </scroll-view>
  143. </swiper-item>
  144. <!-- 活动预告 -->
  145. <swiper-item>
  146. <scroll-view class="content" scroll-y="true" bindscrolltolower='next_1'>
  147. <navigator class="list" wx:for='{{pre}}' wx:key="pre{{index}}" url="../conference/conference?id={{item.id}}" >
  148. <image src="{{item.img}}"></image>
  149. <view>
  150. <view class="tt">{{item.name}} </view>
  151. <view class="ly">
  152. <view>
  153. <text>{{item.begin_time}}</text>
  154. <text>{{item.address}}</text>
  155. </view>
  156. <text>主讲人:{{item.speaker}}</text>
  157. <text>{{item.publish_unit}}</text>
  158. </view>
  159. <text>{{item.desc}}</text>
  160. </view>
  161. </navigator>
  162. <block wx:if='{{total_1 >= 20}}'>
  163. <view class='more' wx:if='{{pre.length < total_1}}'>上拉加载更多...</view>
  164. <view class='more' wx:else>已加载全部数据!</view>
  165. </block>
  166. </scroll-view>
  167. </swiper-item>
  168. <!-- 活动回顾 -->
  169. <swiper-item>
  170. <scroll-view class="content" scroll-y="true" bindscrolltolower='next_2'>
  171. <navigator class="list" wx:for='{{over}}' wx:key="over{{index}}" url="../conference/conference?id={{item.id}}" >
  172. <image src="{{item.img}}"></image>
  173. <view>
  174. <view class="tt">{{item.name}} </view>
  175. <view class="ly">
  176. <text>主讲人:{{item.speaker}}</text>
  177. <view>
  178. <text>{{item.begin_time}}</text>
  179. </view>
  180. <text style="min-height:36rpx;">{{item.publish_unit}} </text>
  181. </view>
  182. <text>{{item.desc}}</text>
  183. </view>
  184. </navigator>
  185. <block wx:if='{{total_2 >= 20}}'>
  186. <view class='more' wx:if='{{over.length < total_2}}'>上拉加载更多...</view>
  187. <view class='more' wx:else>已加载全部数据!</view>
  188. </block>
  189. </scroll-view>
  190. </swiper-item>
  191. </swiper>