From 620e4040d9e849d31abc9092b95c2e7bb14e75c5 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期四, 29 二月 2024 09:46:33 +0800
Subject: [PATCH] 书目

---
 app.json                                           |    1 
 pages/bibliographyList/index.wxml                  |   51 ++++++++++
 pages/bibliographyList/index.wxss                  |   47 +++++++++
 static/images/bibliographyList/downloadshiftin.png |    0 
 pages/bibliographyList/index.json                  |    7 +
 static/images/bibliographyList/download.png        |    0 
 pages/bibliographyList/index.js                    |  174 ++++++++++++++++++++++++++++++++++
 7 files changed, 280 insertions(+), 0 deletions(-)

diff --git a/app.json b/app.json
index 734dd72..1232b9f 100644
--- a/app.json
+++ b/app.json
@@ -4,6 +4,7 @@
     "pages/bookServices/index",
     "pages/bookExhibitionList/index",
     "pages/bookExhibitionDetails/index",
+    "pages/bibliographyList/index",
     "pages/usercenter/index",
     "pages/usercenter/person-info/index",
     "pages/usercenter/address/list/index",
diff --git a/pages/bibliographyList/index.js b/pages/bibliographyList/index.js
new file mode 100644
index 0000000..5edaf82
--- /dev/null
+++ b/pages/bibliographyList/index.js
@@ -0,0 +1,174 @@
+// pages/bibliographyList/index.js
+const app = getApp()
+Page({
+
+  /**
+   * 椤甸潰鐨勫垵濮嬫暟鎹�
+   */
+  data: {
+    higherList: [],
+    vocationalList: [],
+    teacherList: [],
+    higherTotal: null,
+    vocationalTotal: null,
+    teacherTotal: null
+  },
+
+  /**
+   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
+   */
+  onLoad(options) {
+    this.higherGet()
+    this.vocationalGet()
+    this.teacherGet()
+  },
+
+  /**
+   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁�
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜�
+   */
+  onShareAppMessage() {
+
+  },
+  onTabsChange(event) {
+    console.log(`Change tab, tab-panel value is ${event.detail.value}.`);
+  },
+
+  onTabsClick(event) {
+    console.log(`Click tab, tab-panel value is ${event.detail.value}.`);
+  },
+  //楂樼瓑鏁欒偛
+  higherGet() {
+    app.MG.resource.getItem({
+      path: 'jsek_biblioClassification\\jsek_bCHigherEducation',
+      queryType: '*',
+      paging: {
+        start: '0',
+        size: '999'
+      },
+      coverSize: {
+        width: 260
+      },
+      fields: {
+        jsek_link: [],
+        content: [],
+        subtitle: [],
+        fileType: [],
+        jsek_resource: [],
+        freeFile: []
+      },
+      SysType: 'CmsItem'
+    }).then(res => {
+      console.log(res.total);
+      this.setData({
+        higherList: res.datas,
+        higherTotal: res.total
+      })
+      console.log(this.data.higherList, '5555');
+    })
+
+
+  },
+
+  //鏁欏笀鏁欒偛
+  vocationalGet() {
+    app.MG.resource.getItem({
+      path: 'jsek_biblioClassification\\jsek_bCVocationalEducation',
+      queryType: '*',
+      paging: {
+        start: '0',
+        size: '999'
+      },
+      coverSize: {
+        width: 260
+      },
+      fields: {
+        jsek_link: [],
+        content: [],
+        subtitle: [],
+        fileType: [],
+        jsek_resource: [],
+        freeFile: []
+      },
+      SysType: 'CmsItem'
+    }).then(res => {
+      this.setData({
+        vocationalList: res.datas,
+        vocationalTotal: res.total
+      })
+
+    })
+  },
+  // 鑱屼笟鏁欒偛
+  teacherGet() {
+    app.MG.resource.getItem({
+      path: 'jsek_biblioClassification\\jsek_bCTeacherEducation',
+      queryType: '*',
+      paging: {
+        start: '0',
+        size: '999'
+      },
+      coverSize: {
+        width: 260
+      },
+      fields: {
+        jsek_link: [],
+        content: [],
+        subtitle: [],
+        fileType: [],
+        jsek_resource: [],
+        freeFile: []
+      },
+      SysType: 'CmsItem'
+    }).then(res => {
+      this.setData({
+        teacherList: res.datas,
+        teacherTotal: res.total
+      })
+
+    })
+
+
+  }
+})
\ No newline at end of file
diff --git a/pages/bibliographyList/index.json b/pages/bibliographyList/index.json
new file mode 100644
index 0000000..e1e3326
--- /dev/null
+++ b/pages/bibliographyList/index.json
@@ -0,0 +1,7 @@
+{
+  "component": true,
+  "usingComponents": {
+    "t-tabs": "tdesign-miniprogram/tabs/tabs",
+    "t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel"
+  }
+}
\ No newline at end of file
diff --git a/pages/bibliographyList/index.wxml b/pages/bibliographyList/index.wxml
new file mode 100644
index 0000000..18f91df
--- /dev/null
+++ b/pages/bibliographyList/index.wxml
@@ -0,0 +1,51 @@
+<!--pages/bibliographyList/index.wxml-->
+
+<t-tabs defaultValue="{{0}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs" t-class-content="custom-panel">
+  <t-tab-panel label="楂樼瓑鏁欒偛({{higherTotal}})" value="0">
+    <view class="outsideHigherBox">
+      <view class="higherBox" wx:for="{{higherList}}" wx:key="index" wx:for-item="item" wx:for-index="index">
+        <view class="outsideHigherImageBox">
+          <image class="higherImageBox" src="{{item.icon}}" mode="" />
+
+        </view>
+
+        <view class="higherTextBox">{{item.name}}</view>
+      </view>
+
+    </view>
+
+  </t-tab-panel>
+  <t-tab-panel label="鑱屼笟鏁欒偛({{vocationalTotal}})" value="1">
+    <view class="outsideHigherBox">
+      <view class="higherBox" wx:for="{{vocationalList}}" wx:key="index" wx:for-item="item" wx:for-index="index">
+        <view class="outsideHigherImageBox">
+          <image class="higherImageBox" src="{{item.icon}}" mode="" />
+          <view class="downloadIcon">
+
+            <image class="download" src="/static/images/bibliographyList/download.png" mode="" />
+            <image class="downloadshiftin" src="/static/images/bibliographyList/downloadshiftin.png" mode="" />
+          </view>
+        </view>
+
+        <view class="higherTextBox">{{item.name}}</view>
+      </view>
+
+    </view>
+
+
+  </t-tab-panel>
+  <t-tab-panel label="鏁欏笀鏁欒偛({{teacherTotal}})" value="2">
+    <view class="outsideHigherBox">
+      <view class="higherBox" wx:for="{{teacherList}}" wx:key="index" wx:for-item="item" wx:for-index="index">
+        <view class="outsideHigherImageBox">
+          <image class="higherImageBox" src="{{item.icon}}" mode="" />
+
+        </view>
+
+        <view class="higherTextBox">{{item.name}}</view>
+      </view>
+
+    </view>
+  </t-tab-panel>
+
+</t-tabs>
\ No newline at end of file
diff --git a/pages/bibliographyList/index.wxss b/pages/bibliographyList/index.wxss
new file mode 100644
index 0000000..a24200b
--- /dev/null
+++ b/pages/bibliographyList/index.wxss
@@ -0,0 +1,47 @@
+/* pages/bibliographyList/index.wxss */
+/* .custom-tabs {
+  margin-bottom: 32rpx;
+}
+
+.custom-panel {
+  height: 120px;
+} */
+
+.higherBox {
+  width: 220rpx;
+  /* height: 390rpx; */
+  box-shadow: 10rpx 10rpx 10rpx 10rpx rgba(0, 0, 0, 0.08);
+  margin: 30rpx 15rpx;
+}
+
+.outsideHigherBox {
+  display: flex;
+  flex-wrap: wrap;
+}
+
+.higherImageBox {
+  width: 190rpx;
+  height: 255rpx;
+  margin: 15rpx;
+}
+
+.higherTextBox {
+  font-weight: bold;
+  font-size: 25rpx;
+  color: #333333;
+  padding: 15rpx;
+  margin-bottom: 10rpx;
+}
+
+/* .downloadIcon {
+  width: 430rpx;
+  height: 430rpx;
+  background-color: #000;
+  position: relative;
+  top: 0;
+  left: 0;
+} */
+
+/* .download {
+  background-color: #8bc34a;
+} */
\ No newline at end of file
diff --git a/static/images/bibliographyList/download.png b/static/images/bibliographyList/download.png
new file mode 100644
index 0000000..4dce634
--- /dev/null
+++ b/static/images/bibliographyList/download.png
Binary files differ
diff --git a/static/images/bibliographyList/downloadshiftin.png b/static/images/bibliographyList/downloadshiftin.png
new file mode 100644
index 0000000..7838645
--- /dev/null
+++ b/static/images/bibliographyList/downloadshiftin.png
Binary files differ

--
Gitblit v1.9.1