From 8fbd6b8d09e70494d920cc0b77812e9643be3196 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 23 八月 2022 17:37:31 +0800
Subject: [PATCH] 2022.8.23

---
 pages/learn/learn.wxml |  173 +++++++++++++++++++++++++++++++--------------------------
 1 files changed, 94 insertions(+), 79 deletions(-)

diff --git a/pages/learn/learn.wxml b/pages/learn/learn.wxml
index d7f4871..33599d4 100644
--- a/pages/learn/learn.wxml
+++ b/pages/learn/learn.wxml
@@ -1,97 +1,112 @@
 <!--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 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>
+  </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="gotoBanner" />
+          </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="{{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.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>
\ No newline at end of file

--
Gitblit v1.9.3