1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <!--pages/knowledge/knowledge.wxml-->
- <view class="search">
- <input bindinput='search' placeholder-style='color:#C8C8C8;' placeholder="输入名称/关键字搜索"></input>
- <image bindtap="search" mode="widthFix" src="../images/search.png"></image>
- </view>
- <view class="menu">
- <view class="picker" bindtap="showmenu">
- {{array[index]}} <text class="up"></text>
- </view>
- <view class="drop_menu" wx:if='{{show}}'>
- <text wx:for='{{array}}' bindtap="check" data-id='{{index}}'>{{item}}</text>
- </view>
- </view>
- <view class="tab">
- <text bindtap="tab" data-id='0' class="{{act == 0?'active':''}}">精品导读</text>
- <text bindtap="tab" data-id='1' class="{{act == 1?'active':''}}">刊群动态</text>
- <text bindtap="tab" data-id='2' class="{{act == 2?'active':''}}">知识地图</text>
- </view>
- <!-- <view style="text-align:center;margin:100px 0;" bindtap="getData" wx:if='{{list.length<=0}}'>点击重新加载</view> -->
- <swiper circular="{{true}}" class="myswiper" bindchange='swchange' current='{{act}}' autoplay="{{false}}">
- <swiper-item>
- <scroll-view scroll-y="true" scroll-into-view="{{scroll}}" bindscrolltolower='next' class="content">
- <navigator url="../actDetail/actDetail?id={{item.id}}" class="list" wx:for='{{list}}' wx:key="journals{{index}}">
- <image src="{{item.img}}"></image>
- <view>
- <view class="title"> <rich-text nodes="<div style='overflow:hidden;white-space:nowrap;text-overflow:ellipsis;'>{{item.name}}</div>"></rich-text></view>
- <view class="ly">
- <text style="float:right;">{{item.publish_time}}</text>
- <text class="nowrap">作者:{{item.author}}</text>
- <text class="">发布单位:{{item.journal_name}}</text>
- </view>
-
- <text class="">{{item.desc}}</text>
- </view>
- </navigator>
- <block wx:if='{{total>=20}}'>
- <view class='more' wx:if='{{list.length < total}}'>上拉加载更多...</view>
- <view class='more' wx:else>已加载全部数据!</view>
- </block>
- </scroll-view>
- </swiper-item>
- <swiper-item>
- <scroll-view scroll-y="true" scroll-into-view="{{scroll}}" bindscrolltolower='next1' class="content">
- <navigator url="../news/news?id={{item.id}}" class="list" wx:for='{{list1}}' wx:key="journals{{index}}">
- <image style="height:60px;" src="{{item.img}}"></image>
- <view>
- <view class="title"> <rich-text nodes="<div style='overflow:hidden;white-space:nowrap;text-overflow:ellipsis;'>{{item.name}}</div>"></rich-text></view>
- <view class="ly">
- <view>
- <text>{{item.publish_time}}</text>
- </view>
- <text class="nowrap">来源:{{item.journal_name}}</text>
- </view>
- <text>{{item.desc}}</text>
- </view>
- </navigator>
- <block wx:if='{{total1>=20}}'>
- <view class='more' wx:if='{{list1.length < total1}}'>上拉加载更多...</view>
- <view class='more' wx:else>已加载全部数据!</view>
- </block>
- </scroll-view>
- </swiper-item>
- <swiper-item>
- <view wx:if="{{act == 2}}">
- <image class='back-img' src='../../images/backimg.jpg' lazy-load='true'></image>
- </view>
- </swiper-item>
- </swiper>
|