riku
2022-08-23 8fbd6b8d09e70494d920cc0b77812e9643be3196
pages/learn/learn.wxml
@@ -1,25 +1,31 @@
<!--pages/learn/learn.wxml-->
<view class="page ">
  <view class="swiper-tab">
  <!-- <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}};">
  </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='{{page.banners}}' wx:key='u'>
        <block wx:for='{{banners}}' wx:key='u'>
                  <swiper-item>
                    <image src='{{item}}' mode="aspectFill" class='swiper-item-images' />
            <image src='{{item.pic}}' mode="aspectFill" class='swiper-item-images' data-index="{{index}}" bindtap="gotoBanner" />
                  </swiper-item>
                </block>
              </swiper>
@@ -39,32 +45,45 @@
              </view>
            </view>
            <view class="fyui-cell fyui-cell_select title">
    <!-- <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> -->
    <view wx:for="{{resources}}" wx:key="index" wx:item="item" bindtap="gotoResource" data-index="{{index}}">
      <view wx:if="{{item.lrResourcefiletype != 4}}" class="fyui-box fyui-panel">
                <view class="fyui-box__hd">
                  <image src="{{item.pic}}" class="" />
          <image src="{{item.lrPicurl}}" class="" mode="aspectFill" />
                </view>
                <view class="fyui-box__bd">
                  <view class="fyui-box__content">{{item.title}}</view>
          <view class="fyui-box__content">{{item.lrResourcetitle}}</view>
                  <view class="fyui-box__tag">
                    <view>{{item.time}}</view>
            <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 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 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}}
@@ -85,13 +104,9 @@
                  <view>{{item.time}}</view>
                </view>
              </view>
            </view>
    </view> -->
          </view>
          <view class="page__ft"></view>
        </view>
      </swiper-item>
    </block>
  </swiper>
</view>