riku
2022-08-05 45b2c022e27dda53ee4e5266fbdbdf1ac3aa4c65
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
<!--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 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='{{page.banners}}' wx:key='u'>
                  <swiper-item>
                    <image src='{{item}}' mode="aspectFill" class='swiper-item-images' />
                  </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/btn_bg_3.png" class="image-btn__1" />
              </view>
              <view class="flex-v">
                <view class="image-btn" bindtap="goto">
                  <image src="../../res/icons/btn_bg_4.png" class="image-btn__2" />
                </view>
                <view class="image-btn" bindtap="goto" data-index="2">
                  <image src="../../res/icons/btn_bg_5.png" class="image-btn__2" />
                </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="{{page.text1}}" wx:key="index" data-index="index" wx:item="item">
              <view class="fyui-box fyui-panel" bindtap="goto" data-index="4">
                <view class="fyui-box__hd">
                  <image src="{{item.pic}}" class="" />
                </view>
                <view class="fyui-box__bd">
                  <view class="fyui-box__content">{{item.title}}</view>
                  <view class="fyui-box__tag">
                    <view>{{item.time}}</view>
                    <view class="flex-h">
                      <image src="/res/icons/view.png" class="icon"></image>{{item.views}}
                    </view>
                  </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="{{page.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>
      </swiper-item>
    </block>
  </swiper>
</view>