<!--pages/learn/learn.wxml-->
|
<view class="page ">
|
|
<!-- <view class="swiper-tab">
|
<scroll-view scroll-left="{{navScrollLeft}}" scroll-x="true" show-scrollbar="false" scroll-with-animation="true">
|
<block wx:for="{{tabList}}" wx:key="i">
|
<view class="swiper-tab-list {{currentTab==index ? 'on' : ''}}" data-current="{{index}}" bindtap="swichNav">{{item.name}}</view>
|
</block>
|
</scroll-view>
|
</view> -->
|
<!-- <swiper current="{{currentTab}}" class="swiper-box" duration="300" bindchange="bindChange" style="height: {{pageheight}};">
|
<block wx:for="{{pageList}}" wx:for-item="page" wx:key="n">
|
|
<swiper-item>
|
|
<view class="page{{index}}">
|
|
</view>
|
</swiper-item>
|
</block>
|
</swiper> -->
|
|
<view class="page__bd ">
|
<view class="fyui-panel">
|
<swiper indicator-dots="true" autoplay="true" circular="true" interval="2000" duration="500" previous-margin="0px" next-margin="0px">
|
<block wx:for='{{banners}}' wx:key='u'>
|
<swiper-item>
|
<image src='{{item.pic}}' mode="aspectFill" class='swiper-item-images' data-index="{{index}}" bindtap="openFile" />
|
</swiper-item>
|
</block>
|
</swiper>
|
</view>
|
|
<view class="flex-h" style="padding: 8px 10px;">
|
<view class="image-btn" bindtap="goto" data-index="0">
|
<image src="/res/icons/learn_1.png" class="image-btn__2" mode="aspectFit" />
|
<view class="image-btn_title">
|
<view class="image-btn_title_t">环保守法</view>
|
<view>视频、文档材料</view>
|
<mp-icon class="image-btn_goto" icon="arrow" color="#7F7F7F" size="8" type="filled"></mp-icon>
|
</view>
|
|
</view>
|
<view class="flex-v">
|
<view class="image-btn" style="background-color: #F4EED3;" bindtap="goto" data-index="1">
|
<image src="/res/icons/learn_2.png" class="image-btn__2" mode="aspectFit" />
|
<view class="image-btn_title">
|
<view class="image-btn_title_t">执法案例</view>
|
<view>相关执法案例</view>
|
<mp-icon class="image-btn_goto" icon="arrow" color="#7F7F7F" size="8" type="filled"></mp-icon>
|
</view>
|
</view>
|
</view>
|
</view>
|
|
<!-- <view class="fyui-cell fyui-cell_select title">
|
<view class="fyui-cell__bd">环保守法</view>
|
<view class="fyui-cell__ft">更多</view>
|
</view> -->
|
<view wx:for="{{resources}}" wx:key="index" wx:item="item" bindtap="openFile" data-index="{{index}}">
|
<view wx:if="{{item.lrResourcefiletype != 4}}" class="fyui-box fyui-panel">
|
<view class="fyui-box__hd">
|
<image src="{{item.lrPicurl}}" class="" mode="aspectFill" />
|
</view>
|
<view class="fyui-box__bd">
|
<view class="fyui-box__content">{{item.lrResourcetitle}}</view>
|
<view class="fyui-box__tag">
|
<view>{{item.lrPublishdate}}</view>
|
<view class="flex-h">
|
<image src="/res/icons/view.png" class="icon"></image>{{item.views}}
|
</view>
|
</view>
|
</view>
|
</view>
|
<view wx:else class="fyui-panel fyui-panel_video">
|
<view style="position: relative;">
|
<image src="{{item.lrPicurl}}" class="video-poster" mode="aspectFit" />
|
<mp-icon class="video-play" icon="play" color="white" size="50" type="filled"></mp-icon>
|
</view>
|
<view class="video-title">{{item.lrResourcetitle}}</view>
|
<view class="tag">
|
<view>{{item.lrPublishdate}}</view>
|
<view class="flex-h">
|
<image src="/res/icons/view.png" class="icon"></image>{{item.views}}
|
</view>
|
</view>
|
</view>
|
</view>
|
|
<!-- <view class="fyui-cell fyui-cell_select title">
|
<view class="fyui-cell__bd">执法案例</view>
|
<view class="fyui-cell__ft">更多</view>
|
</view>
|
<view wx:for="{{text2}}" wx:key="index" data-index="index" wx:for-item="item">
|
<view class="fyui-box fyui-panel fyui-box__text">
|
<view class="fyui-box__hd">
|
{{item.title}}
|
</view>
|
<view class="fyui-box__bd">
|
<view class="fyui-box__content">{{item.content}}</view>
|
<view class="fyui-box__tag">
|
<view wx:for="{{item.tags}}" wx:key="i" data-index="i" wx:for-item="tag">{{tag}}</view>
|
</view>
|
</view>
|
<view class="fyui-box__ft">
|
<view class="flex-h">
|
<image src="/res/icons/view.png" class="icon"></image>{{item.views}}
|
</view>
|
<view class="flex-h">
|
<image src="/res/icons/like.png" class="icon"></image>{{item.likes}}
|
</view>
|
<view>{{item.time}}</view>
|
</view>
|
</view>
|
</view> -->
|
|
</view>
|
|
<view class="page__ft"></view>
|
</view>
|