index.wxml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <view class="search" bindtap='search' wx:if="{{act!=3}}">
  2. <!-- <input bindfocus="search" placeholder-style='color:#C8C8C8;' placeholder="输入名称/关键字搜索"></input> -->
  3. 输入名称/关键字搜索
  4. <image mode="widthFix" src="../images/search.png"></image>
  5. </view>
  6. <swiper class="banner" indicator-dots="{{true}}" autoplay="true" interval="5000" circular="true" indicator-active-color='#ffffff'>
  7. <block wx:for="{{lb}}" wx:key="*this">
  8. <swiper-item>
  9. <navigator wx:if="{{item.is_jump}}" url="{{item.url}}">
  10. <image src="{{item.img}}" data-id="{{item.url}}"></image>
  11. </navigator>
  12. <image wx:else src="{{item.img}}" data-id="{{item.url}}"></image>
  13. <!-- <view class="swiper-item">{{item.text}}</view> -->
  14. </swiper-item>
  15. </block>
  16. </swiper>
  17. <view class="search" wx:if="{{act==3}}" style="margin-bottom:20rpx;">
  18. <input bindinput="search1" value="{{keyword}}" placeholder-style='color:#C8C8C8;' placeholder="输入期刊名称进行搜索"></input>
  19. <image mode="widthFix" src="../images/search.png"></image>
  20. </view>
  21. <view class="tab">
  22. <text bindtap="tab" data-id='0' class="{{act == 0?'active':''}}">中科院全刊</text>
  23. <text bindtap="tab" data-id='1' class="{{act == 1?'active':''}}">主办单位</text>
  24. <text bindtap="tab" data-id='2' class="{{act == 2?'active':''}}">领域期刊</text>
  25. <text bindtap="tab" data-id='3' class="{{act == 3?'active':''}}">传播指数</text>
  26. </view>
  27. <view wx:if='{{act==0}}' id='nav' class="nav {{touchmove == 1?'touchmove':''}}" bindtouchstart="touchstart" bindtouchmove="touchmove" bindtouchend="touchend">
  28. <view id="nav_item" wx:for="{{zimu_list}}" wx:key="" data-index="{{index}}"
  29. data-id='{{item}}' bindtap="scroll">
  30. {{zimu_list[index]}}
  31. </view>
  32. </view>
  33. <swiper class="myswiper" circular="{{true}}" bindchange='swchange' current='{{act}}' autoplay="{{false}}">
  34. <!-- 全刊 -->
  35. <swiper-item>
  36. <scroll-view scroll-y="true" scroll-into-view="{{scroll}}" class="content">
  37. <view wx:for='{{journals}}'>
  38. <view id="{{item.name}}" class="tt">{{item.name}}</view>
  39. <navigator url="../journalDetail/journalDetail?id={{item.id}}" class="list" wx:for='{{item.journals}}' wx:key="journals{{index}}">
  40. <image src="{{item.img}}"></image>
  41. <view>
  42. <view class="title">{{item.name}}</view>
  43. <text>微信号:{{item.wxcode}}</text>
  44. <text>主编:{{item.editor}}</text>
  45. <text class="">主办单位:{{item.publishingUnit}}</text>
  46. </view>
  47. </navigator>
  48. </view>
  49. </scroll-view>
  50. </swiper-item>
  51. <!-- 主办单位 -->
  52. <swiper-item>
  53. <scroll-view scroll-y="true" bindscrolltolower='next_org'>
  54. <view class="dw" wx:for='{{organizers}}' wx:key="organizers{{index}}">
  55. <navigator class="dw_title" url="../list/list?organizer_id={{item.id}}&title={{item.name}}">
  56. <view>{{item.name}}</view>
  57. <image mode="widthFix" src="../images/left.png"></image><text wx:if='{{item.total_journal>0}}'>{{item.total_journal}} </text>
  58. </navigator>
  59. <view class="dw_list">
  60. <navigator wx:for='{{item.journals}}' url="../journalDetail/journalDetail?id={{jour.id}}" wx:key="*this" wx:for-item='jour'>
  61. <view>{{jour.name}}</view>
  62. <text class="jdesc">{{jour.desc}}</text>
  63. </navigator>
  64. <view wx:if='{{item.istop}}' bindtap="cancel_top" data-type='organizer' data-id='{{item.id}}' class="top cancel">取消置顶</view>
  65. <view wx:else bindtap="top" data-type='organizer' data-id='{{item.id}}' class="top">置顶</view>
  66. </view>
  67. </view>
  68. <block wx:if='{{total_org>=20}}'>
  69. <view class='more' wx:if='{{organizers.length < total_org}}'>上拉加载更多...</view>
  70. <view class='more' wx:else>已加载全部数据!</view>
  71. </block>
  72. </scroll-view>
  73. </swiper-item>
  74. <!-- 领域期刊 -->
  75. <swiper-item>
  76. <scroll-view scroll-y="true" bindscrolltolower='next_sub'>
  77. <view class="dw" wx:for='{{subjects}}' wx:key="*this">
  78. <navigator class="dw_title" url="../list/list?subject_id={{item.id}}&title={{item.name}}"><view>{{item.name}}</view>
  79. <image mode="widthFix" src="../images/left.png"></image>
  80. <text wx:if='{{item.total_journal>0}}'>{{item.total_journal}} </text>
  81. </navigator>
  82. <view class="dw_list">
  83. <navigator wx:for='{{item.journals}}' url="../journalDetail/journalDetail?id={{jour.id}}" wx:key="*this" wx:for-item='jour'>
  84. <view>{{jour.name}}</view>
  85. <text class="jdesc">{{jour.desc}}</text>
  86. </navigator>
  87. <view wx:if='{{item.istop}}' bindtap="cancel_top" data-type='subject' data-id='{{item.subject_id}}' class="top cancel">取消置顶</view>
  88. <view wx:else bindtap="top" data-id='{{item.id}}' data-type='subject' class="top">置顶</view>
  89. </view>
  90. </view>
  91. <block wx:if='{{total_sub>=20}}'>
  92. <view class='more' wx:if='{{subjects.length < total_sub}}'>上拉加载更多...</view>
  93. <view class='more' wx:else>已加载全部数据!</view>
  94. </block>
  95. </scroll-view>
  96. </swiper-item>
  97. <swiper-item>
  98. <scroll-view scroll-y="true" style="background:#fff;">
  99. <view class="picker_sub">
  100. <picker value="{{sub_value}}" range-key='name' bindchange="subChange"
  101. range="{{sub_list}}">{{sub_list[sub_value].name}}
  102. <image class="zk" mode="widthFix" src="../images/zk.png"></image></picker>
  103. </view>
  104. <view class="tab_container">
  105. <view class="tab_item" style="width:{{100/value.length}}%" wx:for="{{value}}"
  106. bindtap="onTabItemClick" data-tabs="{{index}}">
  107. <view class="{{(select==index)?'tab_item_checked':'tab_item_normal'}}">{{item}}</view>
  108. <view wx:if="{{select==index}}" class="tab-line"></view>
  109. </view>
  110. </view>
  111. <view class="date">
  112. <view class="day" wx:if='{{select==0}}'>
  113. <picker bindchange="bindDateChange" mode='date' end='{{yestoday1}}'
  114. value="{{yestoday}}">{{yestoday}}<image class="zk" mode="widthFix" src="../images/zk.png"></image></picker>
  115. </view>
  116. <view class="day" bindtap="open" wx:if='{{select==1}}'>{{week}}<image class="zk" mode="widthFix" src="../images/zk.png"></image></view>
  117. <view class="day" wx:if='{{select==2}}'>
  118. <picker bindchange="bindDateChange1" mode='date' start='2018-01-01' fields='month'
  119. value="{{month}}">{{month}}<image class="zk" mode="widthFix" src="../images/zk.png"></image></picker>
  120. </view>
  121. </view>
  122. <scroll-view scroll-y="true" scroll-top='{{top_csi}}' bindscrolltolower='next_csi' style="height: calc(100vh - 660rpx);">
  123. <navigator url="../number/number?id={{item.journal_id}}" class="num_list" wx:for='{{casci_list}}'>
  124. <view class="order" wx:if='{{index <= 2}}'>
  125. <image src="{{'../images/t'+(index+1)+'.png'}}"></image>
  126. </view>
  127. <view class="order" wx:if='{{index > 2}}'>{{index+1}}</view>
  128. <image src="{{item.journal_img}}"></image>
  129. <view class="j_name">{{item.journal_name}}</view>
  130. <view class="num">
  131. <text>CASCI</text>
  132. <text style="color:#0077FF;">{{item.casci}}</text>
  133. </view>
  134. </navigator>
  135. <block wx:if='{{total_csi>=20}}'>
  136. <view class='more' wx:if='{{casci_list.length < total_csi}}'>上拉加载更多...</view>
  137. <view class='more' wx:else>已加载全部数据!</view>
  138. </block>
  139. <view wx:if='{{total_csi<=0}}' style="color:#999;margin:100rpx 0;text-align:center;">暂无期刊!</view>
  140. </scroll-view>
  141. </scroll-view>
  142. </swiper-item>
  143. </swiper>
  144. <!-- 当前选择字母提示框 -->
  145. <view class="hint_bok" hidden="{{hiddenn}}">{{nav_text}}</view>
  146. <!--
  147. <view class="login" wx:if='{{show}}'>
  148. <view>
  149. <view>
  150. <image src="../images/logo.png" mode="widthFix"></image>
  151. </view>
  152. <text class="xx">申请获取您的用户信息(头像、昵称等)</text>
  153. <button bindtap="onGotUserInfo">确定</button>
  154. </view>
  155. </view>
  156. -->
  157. <view class="bg" wx:if='{{show_month}}'>
  158. <view class="months">
  159. <view class="btn_title">
  160. <text bindtap="close" class="qx">取消</text>
  161. <text bindtap="monthSelect" class="sure">确认</text>
  162. </view>
  163. <scroll-view scroll-y="true" scroll-top='{{week_h}}' style="height:40vh;">
  164. <view wx:for='{{columns}}' class="{{(m_value==index)?'select':''}}"
  165. data-id='{{index}}' bindtap="changeMonth">
  166. {{item}}<icon wx:if="{{m_value==index}}"
  167. class="icon-small" color='#0077FF' type="success_no_circle" size="18 "></icon></view>
  168. </scroll-view>
  169. </view>
  170. </view>