riku
2022-08-26 9f78f3f014a3423ea3fcab8f9f1056c57cd47fc8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!--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>