From f9d4b09377c5471e1202be2fef2c89de27b6654d Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期三, 13 三月 2024 19:50:42 +0800
Subject: [PATCH] feat(撒): 的

---
 pages/home/home.js                                 |   11 
 static/images/document/zip200px@2x.png             |    0 
 pages/resourceDetails/myVideo/index.wxml           |   70 +
 pages/resourceDetails/myVideo/index.wxss           |  132 +++
 static/images/document/zip200px.png                |    0 
 pages/personalCenter/index.wxml                    |    4 
 pages/aboutUs/index.js                             |   59 
 pages/resourceDetails/myVideo/index.json           |    6 
 static/images/bookExhibitionList/zhuantitaolun.png |    0 
 pages/aboutUs/index.wxml                           |   29 
 pages/bibliographyList/index.json                  |    3 
 pages/bookServices/detail/components/note/note.js  |    4 
 pages/home/home.wxml                               |    2 
 pages/personalCenter/index.js                      |    8 
 pages/retrievalPage/index.js                       |   11 
 pages/aboutUs/index.wxss                           |   22 
 pages/resourceDetails/document/index.js            |  205 +++++
 pages/resourceDetails/document/index.wxml          |   51 +
 pages/cart/index.wxml                              |    2 
 pages/resourceDetails/document/index.wxss          |   77 ++
 pages/resourceDetails/myAudio/index.wxml           |  142 +++
 .vscode/settings.json                              |    2 
 pages/cart/paymentPage/index.wxml                  |    2 
 pages/cart/paymentPage/index.wxss                  |    2 
 pages/bookExhibitionList/index.wxss                |   14 
 pages/bookExhibitionList/index.wxml                |    3 
 pages/resourceDetails/myVideo/index.js             |  320 +++++++-
 pages/resourceDetails/myAudio/index.wxss           |  330 +++++++
 pages/retrievalPage/index.wxml                     |    2 
 pages/resourceDetails/myAudio/index.json           |   15 
 static/images/document/zip.png                     |    0 
 pages/bibliographyList/index.wxml                  |   14 
 pages/resourceDetails/myAudio/index.js             |  671 +++++++++++++++++
 pages/bibliographyList/index.wxss                  |   18 
 pages/resourceDetails/document/index.json          |    8 
 pages/bibliographyList/index.js                    |   15 
 pages/aboutUs/index.json                           |    6 
 37 files changed, 2,019 insertions(+), 241 deletions(-)

diff --git a/.vscode/settings.json b/.vscode/settings.json
index 22d6d96..8096c21 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -32,7 +32,7 @@
   },
   "editor.tabSize": 2,
   "[wxml]": {
-    "editor.defaultFormatter": "esbenp.prettier-vscode"
+    "editor.defaultFormatter": "wechat.miniprogram.wxml-language-features"
   },
   "[css]": {
     "editor.defaultFormatter": "HookyQR.beautify"
diff --git a/pages/aboutUs/index.js b/pages/aboutUs/index.js
index 135af2c..b5e5956 100644
--- a/pages/aboutUs/index.js
+++ b/pages/aboutUs/index.js
@@ -15,6 +15,9 @@
     interval: 5000,//杞挱鍥惧弬鏁�
     navigation: { type: 'dots' },//杞挱鍥惧弬鏁�
     bannerList: [], //杞挱鍥惧垪琛�
+    navBarHeight: '',
+    barHeight: '',
+    types: '',
   },
 
   /**
@@ -22,36 +25,22 @@
    */
   onLoad(options) {
 
-    this.getBanner()
+
+    const systInfo = wx.getSystemInfoSync();
+    const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅
+    const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴�
+
+    this.setData({
+      navBarHeight: navBarHeight,
+      barHeight: systInfo.statusBarHeight,
+      types: options.types
+    })
+
+    console.log(this.data.types);
+
+
+    // this.getBanner()
     this.getAboutText()
-
-
-    // drawQrcode({
-
-    //   width: 200, // 蹇呴』锛屼簩缁寸爜瀹藉害锛屼笌canvas鐨剋idth淇濇寔涓�鑷�
-
-    //   height: 200, // 蹇呴』锛屼簩缁寸爜楂樺害锛屼笌canvas鐨刪eight淇濇寔涓�鑷�
-
-    //   canvasId: 'myQrcode',
-
-    //   background: '#ffffff', //	闈炲繀椤伙紝浜岀淮鐮佽儗鏅鑹诧紝榛樿鍊肩櫧鑹�
-
-    //   foreground: '#000', // 闈炲繀椤伙紝浜岀淮鐮佸墠鏅壊锛岄粯璁ゅ�奸粦鑹� 	'#000000'
-
-    //   // ctx: wx.createCanvasContext('myQrcode'), // 闈炲繀椤伙紝缁樺浘涓婁笅鏂囷紝鍙�氳繃 wx.createCanvasContext('canvasId') 鑾峰彇锛寁1.0.0+鐗堟湰鏀寔
-
-    //   text: '13216549865',  // 蹇呴』锛屼簩缁寸爜鍐呭
-    //   // v1.0.0+鐗堟湰鏀寔鍦ㄤ簩缁寸爜涓婄粯鍒跺浘鐗�
-
-    //   image: {
-    //     // imageResource: '../../images/icon.png', // 鎸囧畾浜岀淮鐮佸皬鍥炬爣
-    //     dx: 70,
-    //     dy: 70,
-    //     dWidth: 60,
-    //     dHeight: 60
-    //   }
-    // })
-
   },
 
   /**
@@ -102,17 +91,15 @@
   onShareAppMessage() {
 
   },
+  //杞挱鍥�
   getBanner() {
-
     app.MG.resource.getItem({
       path: 'jsek_banner\\jsek_aboutUsBanner',
       paging: { start: 0, size: 9 },
-
       fields: {
         jsek_link: []
       }
     }).then(res => {
-
       this.setData({
         bannerList: res.datas[0].icon,
         swiperList: res.datas[0].icon
@@ -120,9 +107,12 @@
       console.log(this.data.bannerList, 789);
     })
   },
+
+  //鏂囧瓧  jsek_aboutUs 鍏充簬鎴戜滑    
+  //jsek_contactUs  鑱旂郴鎴戜滑
   getAboutText() {
     app.MG.resource.getItem({
-      path: 'jsek_aboutUs',
+      path: this.data.types,
       fields: {
         content: []
       },
@@ -138,5 +128,8 @@
 
 
     })
+  },
+  goBack() {
+    wx.navigateBack()
   }
 })
\ No newline at end of file
diff --git a/pages/aboutUs/index.json b/pages/aboutUs/index.json
index 45f3c00..6129956 100644
--- a/pages/aboutUs/index.json
+++ b/pages/aboutUs/index.json
@@ -2,6 +2,8 @@
   "component": true,
   "usingComponents": {
     "t-swiper": "tdesign-miniprogram/swiper/swiper",
-    "t-swiper-nav": "tdesign-miniprogram/swiper-nav/swiper-nav"
-  }
+    "t-swiper-nav": "tdesign-miniprogram/swiper-nav/swiper-nav",
+    "t-icon": "tdesign-miniprogram/icon/icon"
+  },
+  "navigationStyle": "custom"
 }
\ No newline at end of file
diff --git a/pages/aboutUs/index.wxml b/pages/aboutUs/index.wxml
index f57c59d..40f4321 100644
--- a/pages/aboutUs/index.wxml
+++ b/pages/aboutUs/index.wxml
@@ -1,30 +1,19 @@
-<!--pages/aboutUs/index.wxml-->
-<!-- <text>鍏充簬鎴戜滑</text> -->
+<view style="width: 100%; height: {{barHeight}}px; "></view>
+<view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;">
+  <view>
+    <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" />
+  </view>
+  <view wx:if="{{types == 'jsek_aboutUs'}}" class="navbar-title">鍏充簬鎴戜滑</view>
+  <view wx:else class="navbar-title">鑱旂郴鎴戜滑</view>
+</view>
 
-
-
-<!-- 浜岀淮鐮佸睍绀� -->
-<!-- <view class="">
-	<canvas style="width: 200px; height: 200px;margin:0 auto" canvas-id="myQrcode"></canvas>
-</view> -->
-
-
-
-
-
-
-<!-- <view class="swiper-wrap">
-  <t-swiper list="{{bannerList}}" current="{{current}}" autoplay="{{autoplay}}" duration="{{duration}}" interval="{{interval}}" navigation="{{navigation}}" />
-</view> -->
 
 
 
 
 
 <view class="aboutUs">
-  <!-- <view class="imageBox">
-    <image src="{{swiperList}}" alt="" />
-  </view> -->
+
   <view class="aboutText">
     <rich-text nodes="{{aboutText}}"></rich-text>
   </view>
diff --git a/pages/aboutUs/index.wxss b/pages/aboutUs/index.wxss
index 5a434ed..c11d81d 100644
--- a/pages/aboutUs/index.wxss
+++ b/pages/aboutUs/index.wxss
@@ -1,4 +1,25 @@
 /* pages/aboutUs/index.wxss */
+
+
+.nacigationBar {
+  background-color: #fff;
+  display: flex;
+  align-items: center;
+
+}
+
+.navbar-title {
+  white-space: nowrap;
+  /* overflow: hidden; */
+  text-overflow: ellipsis;
+  color: #0F1214;
+
+  margin-bottom: 5rpx;
+  font-weight: bold;
+  font-size: 36rpx;
+  color: #0F1214;
+}
+
 image {
   width: 100%;
   height: 100%;
@@ -12,7 +33,6 @@
 
 .aboutUs {
   margin: 30rpx;
-
 }
 
 .aboutText {
diff --git a/pages/bibliographyList/index.js b/pages/bibliographyList/index.js
index cab19a3..d3fee23 100644
--- a/pages/bibliographyList/index.js
+++ b/pages/bibliographyList/index.js
@@ -26,13 +26,12 @@
       this.vocationalGet()
       this.teacherGet()
 
-
-      //鑾峰彇绯荤粺淇℃伅锛岀姸鎬佹爮楂樺害涓簊ysInfo['statusBarHeight'];
-      let sysInfo = wx.getSystemInfoSync();
-      let menu = wx.getMenuButtonBoundingClientRect(); //鑳跺泭淇℃伅
-      let navBarHeight = (menu.top - sysInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴� 
+      const systInfo = wx.getSystemInfoSync();
+      const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅
+      const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴�
       this.setData({
-        BarHeight: sysInfo.statusBarHeight, navBarHeight: navBarHeight
+        navBarHeight: navBarHeight,
+        barHeight: systInfo.statusBarHeight,
       })
 
 
@@ -264,6 +263,8 @@
     },
 
 
-
+    goBack() {
+      wx.navigateBack();
+    },
 
   })
\ No newline at end of file
diff --git a/pages/bibliographyList/index.json b/pages/bibliographyList/index.json
index 0edd783..a9c6aab 100644
--- a/pages/bibliographyList/index.json
+++ b/pages/bibliographyList/index.json
@@ -3,7 +3,8 @@
   "usingComponents": {
     "t-tabs": "tdesign-miniprogram/tabs/tabs",
     "t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
-    "t-search": "tdesign-miniprogram/search/search"
+    "t-search": "tdesign-miniprogram/search/search",
+    "t-icon": "tdesign-miniprogram/icon/icon"
   },
   "navigationStyle": "custom"
 }
\ No newline at end of file
diff --git a/pages/bibliographyList/index.wxml b/pages/bibliographyList/index.wxml
index 8eee1f6..630119d 100644
--- a/pages/bibliographyList/index.wxml
+++ b/pages/bibliographyList/index.wxml
@@ -1,9 +1,17 @@
 <!--pages/bibliographyList/index.wxml-->
 
-<view class="example-search">
-  <t-search model:value="{{value}}" placeholder="璇疯緭鍏ヤ功鐩悕绉�" bind:submit="onSearchSubmit" />
-</view>
 
+<view style="width: 100%; height: {{barHeight}}px; "></view>
+<view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;">
+  <view>
+    <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" />
+  </view>
+
+  <view class="example-search">
+    <t-search model:value="{{value}}" placeholder="璇疯緭鍏ヤ功鐩悕绉�" bind:submit="onSearchSubmit" />
+  </view>
+
+</view>
 
 
 
diff --git a/pages/bibliographyList/index.wxss b/pages/bibliographyList/index.wxss
index 6ee6962..8901705 100644
--- a/pages/bibliographyList/index.wxss
+++ b/pages/bibliographyList/index.wxss
@@ -6,6 +6,22 @@
 .custom-panel {
   height: 120px;
 } */
+.nacigationBar {
+  background-color: #fff;
+  display: flex;
+  align-items: center;
+
+}
+
+.navbar-title {
+  white-space: nowrap;
+  /* overflow: hidden; */
+  text-overflow: ellipsis;
+  color: #0F1214;
+  font-size: 40rpx;
+  font-weight: bold;
+  margin-bottom: 5rpx;
+}
 
 .higherBox {
   width: 220rpx;
@@ -65,7 +81,7 @@
 
 .example-search {
   background-color: #fff;
-  padding: 16rpx 32rpx;
+  /* padding: 16rpx 32rpx; */
 }
 
 
diff --git a/pages/bookExhibitionList/index.wxml b/pages/bookExhibitionList/index.wxml
index 1b0e4c6..31f662a 100644
--- a/pages/bookExhibitionList/index.wxml
+++ b/pages/bookExhibitionList/index.wxml
@@ -34,7 +34,8 @@
 
 <view class="assembleContent">
   <view class="titleBox">
-    <view class="frameBox"></view> <text class="titleTextBox"> 绾夸笂涔﹀睍</text>
+    <view class="frameBox"></view>
+     <image class="titleTextBox" src="/static/images/bookExhibitionList/zhuantitaolun.png" mode="aspectFit"/>
   </view>
   <view class="outside">
 
diff --git a/pages/bookExhibitionList/index.wxss b/pages/bookExhibitionList/index.wxss
index f094d7a..4a267d8 100644
--- a/pages/bookExhibitionList/index.wxss
+++ b/pages/bookExhibitionList/index.wxss
@@ -93,13 +93,14 @@
 
 .titleBox {
   display: flex;
+  align-items: center;
   margin: 10px;
   margin-left: 0;
   padding-top: 30rpx;
 }
 
 .frameBox {
-  width: 13rpx;
+  width: 7rpx;
   height: 54rpx;
   background: #FF6C00;
   border-radius: 0rpx 9rpx 9rpx 0rpx;
@@ -107,10 +108,13 @@
 }
 
 .titleTextBox {
-  font-size: 20px;
-  font-weight: bolder;
-  margin-left: 10px;
-  font-family: JDLangZhengTi, JDLangZhengTi;
+
+  margin-left: 5px;
+
+  width: 150rpx;
+  height: 37rpx;
+
+
 }
 
 .classification {
diff --git a/pages/bookServices/detail/components/note/note.js b/pages/bookServices/detail/components/note/note.js
index 772e741..b059f83 100644
--- a/pages/bookServices/detail/components/note/note.js
+++ b/pages/bookServices/detail/components/note/note.js
@@ -62,6 +62,7 @@
       })
     },
     openDialog() {
+      console.log(this.properties.bookInfo.name);
       this.setData({
         submitTitle: this.properties.bookInfo.name,
         showNoteDialog: true
@@ -130,7 +131,7 @@
     },
     changeLoading() {
       this.setData({
-        loading:true
+        loading: true
       })
     },
     // 鑾峰彇绗旇鍒楄〃
@@ -138,6 +139,7 @@
       // this.setData({
       //   loading: true
       // })
+      console.log(this.properties.bookInfo.id, 'this.properties.bookInfo.id');
       let topicId
       await app.MG.ugc
         .getProductUserSubmitTopic({
diff --git a/pages/cart/index.wxml b/pages/cart/index.wxml
index 4219ccc..931b46a 100644
--- a/pages/cart/index.wxml
+++ b/pages/cart/index.wxml
@@ -12,7 +12,7 @@
             <t-checkbox icon="rectangle" value=" {{item.id}}" data-item="{{item}}" checked="{{item.checked}}" bindchange="HandelItemChange" />
           </view>
           <view class="left-image">
-            <image src="{{item.imgUrl}}" class="imageStyle" mode="" />
+            <image src="{{item.imgUrl}}" class="imageStyle" mode="aspectFit" />
           </view>
         </view>
       </t-cell>
diff --git a/pages/cart/paymentPage/index.wxml b/pages/cart/paymentPage/index.wxml
index 6ba3df7..45f3e31 100644
--- a/pages/cart/paymentPage/index.wxml
+++ b/pages/cart/paymentPage/index.wxml
@@ -36,7 +36,7 @@
 
   <view class="shoppingCartList">
     <view class="cartList" wx:for="{{productList}}" wx:key="index" wx:for-item="item" wx:for-index="index">
-      <image src="{{item.paymentIcon }}" mode="" />
+      <image src="{{item.paymentIcon }}" mode="aspectFit" />
       <view class="cartListContent">
         <view class="cartListDetails">{{item.orderSaleMethod.product.name}}</view>
         <view class="textBox">鍥句功鏈嶅姟-鐢靛瓙涔�</view>
diff --git a/pages/cart/paymentPage/index.wxss b/pages/cart/paymentPage/index.wxss
index 9159e8f..5a5f81e 100644
--- a/pages/cart/paymentPage/index.wxss
+++ b/pages/cart/paymentPage/index.wxss
@@ -25,7 +25,7 @@
 }
 
 .shoppingCartList {
-  height: 1000rpx;
+  min-height: 150rpx;
   background: #FFFFFF;
   border-radius: 20px;
   margin: 30rpx 0;
diff --git a/pages/home/home.js b/pages/home/home.js
index 4575a24..c8ad668 100644
--- a/pages/home/home.js
+++ b/pages/home/home.js
@@ -4,6 +4,7 @@
 const app = getApp()
 Page({
   data: {
+    searchVal: '',
     isWhite: false,
     backUrl: null,
     userInfo: {},
@@ -513,6 +514,16 @@
       isWhite: e.scrollTop > 50 ? true : false
     })
 
+  },
+  onRetrievalPage() {
+    console.log(this.data.searchVal);
+    wx.navigateTo({
+      url: '/pages/retrievalPage/index?searchVal=' + this.data.searchVal
+
+
+    })
+
+
   }
 
 });
diff --git a/pages/home/home.wxml b/pages/home/home.wxml
index b4eec10..059232e 100644
--- a/pages/home/home.wxml
+++ b/pages/home/home.wxml
@@ -9,7 +9,7 @@
     <image src="/static/images/home/home-bg@2x.png" mode="heightFix" class="image" />
   </view>
   <view class="search">
-    <t-search t-class-input="t-search__input" t-class-input-container="t-search__input-container" placeholder="璇疯緭鍏ュ叧閿瘝/涔﹀悕/ISBN/浣滆��" leftIcon="">
+    <t-search t-class-input="t-search__input" t-class-input-container="t-search__input-container" placeholder="璇疯緭鍏ュ叧閿瘝/涔﹀悕/ISBN/浣滆��" leftIcon=""  bind:submit="onRetrievalPage" model:value="{{searchVal}}">
       <t-icon slot="left-icon" prefix="wr" name="search" size="40rpx" color="#bbb" bind:tap="navToSearchPage" />
     </t-search>
   </view>
diff --git a/pages/personalCenter/index.js b/pages/personalCenter/index.js
index 2c1760e..e7c8ee7 100644
--- a/pages/personalCenter/index.js
+++ b/pages/personalCenter/index.js
@@ -67,13 +67,13 @@
   {
     title: '鍏充簬鎴戜滑',
     icon: '/static/images/personal/about.png',
-    url: '',
+    url: '/pages/aboutUs/index?types=jsek_aboutUs',
     type: 'aboutUs',
   },
   {
     title: '鑱旂郴鎴戜滑',
     icon: '/static/images/personal/contact.png',
-    url: '',
+    url: '/pages/aboutUs/index?types=jsek_contactUs',
     type: 'contact',
   }
 ];
@@ -205,5 +205,9 @@
       isWhite: e.scrollTop > 50 ? true : false
     })
 
+  },
+  //璺宠浆鍏充簬鎴戜滑鍜岃仈绯绘垜浠�
+  onAboutUS() {
+    console.log(111);
   }
 })
\ No newline at end of file
diff --git a/pages/personalCenter/index.wxml b/pages/personalCenter/index.wxml
index 4e3b370..987cce2 100644
--- a/pages/personalCenter/index.wxml
+++ b/pages/personalCenter/index.wxml
@@ -46,8 +46,8 @@
         <text>鏇村鍔熻兘</text>
       </view>
       <view class="domainList1">
-        <view wx:for="{{moreMenu}}" wx:for-item="item" wx:for-index="index" wx:key="index" bindtap="toPages" data-info="{{item}}" class="listItem">
-          <view class="icon">
+        <view wx:for="{{moreMenu}}" wx:for-item="item" wx:for-index="index" wx:key="index" bindtap="toPages" data-info="{{item}}" class="listItem" >
+          <view class="icon"  >
             <t-image src="{{item.icon}}" mode="heightFix" class="img" />
           </view>
           <view class="label">
diff --git a/pages/resourceDetails/document/index.js b/pages/resourceDetails/document/index.js
index 6c099d4..3db416d 100644
--- a/pages/resourceDetails/document/index.js
+++ b/pages/resourceDetails/document/index.js
@@ -1,18 +1,50 @@
 // pages/resourceDetails/document/index.js
+const app = getApp()
 Page({
 
   /**
    * 椤甸潰鐨勫垵濮嬫暟鎹�
    */
   data: {
-
+    webpageSrc: '',
+    navBarHeight: '',
+    barHeight: '',
+    activeId: '',
+    bookId: '',
+    bookName: '',
+    cmsId: '',
+    parentName: '',
+    parentProductLinkPath: '',
+    productLinkPath: '',
+    showData: '',
+    titleName: '',
+    selectType: '',
+    zipData: '',
+    naturalResources: [],
+    titleName: '',
+    pdfDatA: [],
   },
-
   /**
    * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
    */
   onLoad(options) {
+    console.log(options);
+    const systInfo = wx.getSystemInfoSync();
+    const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅
+    const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴�
 
+    this.setData({
+      navBarHeight: navBarHeight,
+      barHeight: systInfo.statusBarHeight,
+      activeId: options.activeId,
+      bookId: options.bookId,
+      bookName: options.bookName,
+      cmsId: options.cmsId,
+      parentName: options.parentName,
+      parentProductLinkPath: options.parentProductLinkPath,
+      productLinkPath: options.productLinkPath
+    })
+    this.resourceDetailsData()
   },
 
   /**
@@ -62,5 +94,174 @@
    */
   onShareAppMessage() {
 
+  },
+  goBack() {
+    wx.navigateBack()
+  },
+
+  resourceDetailsData() {
+    let query = {
+      path: '*',
+      queryType: '*',
+      productId: this.data.bookId,
+      cmsPath: this.data.parentProductLinkPath,
+      itemFields: {
+        SysType: 'CmsFolder',
+        // 璧勬簮绫诲瀷锛岃瘯璇绘枃浠讹紝鏄惁鍏佽涓嬭浇绛夊弬鏁�
+        selectType: [],
+        freeFile: [],
+        file: [],
+        protectedFile: [],
+        resourcesClassification: [],
+        isDownload: [],
+        jsek_resourceBrief: [],
+        jsek_link: [],
+        jsek_questionBank: [],
+        learnSelectType: []
+      },
+      pading: {
+        start: 0,
+        size: 999
+      }
+    }
+    app.MG.store.getProductDetail(query).then((res) => {
+      console.log(res);
+      res.datas.cmsDatas[0].datas.forEach((item) => {
+
+
+
+
+        //鍒氬垰杩涙潵鐨勬椂鍊�
+        if (this.data.productLinkPath == item.productLinkPath) {
+          this.handleTeachData(item)
+          this.setData({
+            titleName: item.name,
+            selectType: item.selectType
+          })
+        }
+
+
+      })
+    })
+  },
+  //zpi鏂囦欢涓嬭浇
+  onDownloadButton() {
+    const item = this.data.zipData;
+    if (!item || !item.file) {
+      wx.showToast({
+        title: '鏂囦欢淇℃伅缂哄け',
+        icon: 'none'
+      });
+      return;
+    }
+
+    const downloadUrl = app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file;
+    wx.showLoading({
+      title: '姝e湪涓嬭浇...',
+    });
+
+    wx.downloadFile({
+      url: downloadUrl,
+      success(res) {
+        if (res.statusCode === 200) {
+          // 涓嬭浇鎴愬姛锛屽彲浠ュ湪杩欓噷杩涜涓�浜涙搷浣滐紝渚嬪棰勮銆佷繚瀛樼瓑
+          // 杩欓噷浠ヤ繚瀛樻枃浠跺埌绯荤粺涓轰緥
+          wx.saveFile({
+            tempFilePath: res.tempFilePath,
+            success(saveRes) {
+              wx.hideLoading();
+              wx.showToast({
+                title: '淇濆瓨鎴愬姛',
+              });
+              // 鑾峰彇淇濆瓨鍚庣殑鏂囦欢璺緞
+              const savedFilePath = saveRes.savedFilePath;
+              // 鍙互鍦ㄨ繖閲岃繘琛屽悗缁搷浣滐紝渚嬪鎵撳紑鏂囦欢
+              wx.openDocument({
+                filePath: savedFilePath,
+                success: function () {
+                  console.log('鎵撳紑鏂囨。鎴愬姛')
+                },
+                fail: function (error) {
+                  console.error('鎵撳紑鏂囨。澶辫触', error);
+                }
+              });
+            },
+            fail() {
+              wx.hideLoading();
+              wx.showToast({
+                title: '淇濆瓨澶辫触',
+                icon: 'none'
+              });
+            }
+          });
+        } else {
+          wx.hideLoading();
+          wx.showToast({
+            title: '涓嬭浇澶辫触',
+            icon: 'none'
+          });
+        }
+      },
+      fail() {
+        wx.hideLoading();
+        wx.showToast({
+          title: '涓嬭浇澶辫触',
+          icon: 'none'
+        });
+      }
+    });
+  },
+  //鍒氳繘鏉ョ殑鏃跺�欒皟鐢�
+  handleTeachData(item) {
+    //鍥剧墖
+    if (item.selectType == 'picture') {
+      this.setData({
+        showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file,
+
+      })
+    }
+    // 涓嬭浇鏂囦欢zip
+    if (item.selectType == 'zip') {
+      this.setData({
+        zipData: item
+      })
+    }
+    //缃戦〉
+    if (item.selectType == 'webpage') {
+      this.setData({
+        webpageSrc: item.jsek_link
+      })
+    }
+
+    //鏂囨。绛�
+    if (item.selectType == 'pdf' || item.selectType == 'document') {
+      app.MG.file.getPdfInfo({ md5: item.file }).then((res) => {
+        if (res && res.totalPages) {
+          for (let i = 0; i < res.totalPages; i++) {
+            const src = app.config.requestCtx + '/file/GetPdfPageImage?md5=' + item.file + '&index=' + (i + 1) + '&dpi=300'
+            this.data.naturalResources.push(src)
+            // console.log(this.data.naturalResources, ' this.data.naturalResources');
+          }
+        }
+      })
+
+
+
+
+    }
+  },
+
+
+
+  handleTap: function () {
+    const naturalResources = this.data.naturalResources;
+    naturalResources.forEach(function (item) {
+      // console.log(item);
+    });
   }
+
+
+
+
+
 })
\ No newline at end of file
diff --git a/pages/resourceDetails/document/index.json b/pages/resourceDetails/document/index.json
index 8835af0..1e94fa8 100644
--- a/pages/resourceDetails/document/index.json
+++ b/pages/resourceDetails/document/index.json
@@ -1,3 +1,9 @@
 {
-  "usingComponents": {}
+  "component": true,
+  "usingComponents": {
+    "t-icon": "tdesign-miniprogram/icon/icon",
+    "t-button": "tdesign-miniprogram/button/button",
+    "t-image": "tdesign-miniprogram/image/image"
+  },
+  "navigationStyle": "custom"
 }
\ No newline at end of file
diff --git a/pages/resourceDetails/document/index.wxml b/pages/resourceDetails/document/index.wxml
index ad417e7..9eae17e 100644
--- a/pages/resourceDetails/document/index.wxml
+++ b/pages/resourceDetails/document/index.wxml
@@ -1,6 +1,49 @@
-<!--pages/resourceDetails/document/index.wxml-->
-<text>pages/resourceDetails/document/index.wxml</text>
-<view>
+<view style="width: 100%; height: {{barHeight}}px; "></view>
+<view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;">
+  <view>
+    <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" />
+  </view>
+  <view class="navbar-title">璧勬簮璇︽儏</view>
+</view>
+
+<view class="titleNameBox" wx:if="{{selectType != 'webpage'}}">
+  {{titleName}}
+</view>
 
 
-</view>
\ No newline at end of file
+
+<view class="pictureBox" wx:if="{{selectType == 'picture'}}">
+  <image src="{{showData}}" mode="" />
+</view>
+
+<view wx:if="{{selectType == 'zip'}}">
+  <view class="zipImageBox">
+    <image src="/static/images/document/zip200px.png" mode="aspectFill " />
+  </view>
+  <view class="button-example">
+    <t-button size="large" bind:tap="onDownloadButton">
+      <view class="text">
+        涓嬭浇
+      </view>
+    </t-button>
+  </view>
+</view>
+
+
+<view wx:if="{{selectType == 'pdf' ||  selectType == 'document'}}">
+  <view wx:for="{{naturalResources}}" wx:key="index" wx:for-item="item" wx:for-index="index">
+
+    <image src="{{item}}" alt="" style="min-height: 550px;"></image>
+    <view class="divider">绗� {{index + 1}} 椤�</view>
+  </view>
+
+</view>
+
+
+
+
+<web-view wx:if="{{selectType == 'webpage'}}" src="{{webpageSrc}}"></web-view>
+<!-- <button bind:tap="handleTap">鐐逛綅</button> -->
+
+
+
diff --git a/pages/resourceDetails/document/index.wxss b/pages/resourceDetails/document/index.wxss
index d156ce8..9bee7b2 100644
--- a/pages/resourceDetails/document/index.wxss
+++ b/pages/resourceDetails/document/index.wxss
@@ -1 +1,76 @@
-/* pages/resourceDetails/document/index.wxss */
\ No newline at end of file
+/* pages/resourceDetails/document/index.wxss */
+.nacigationBar {
+  background-color: #fff;
+  display: flex;
+  align-items: center;
+
+}
+
+.navbar-title {
+  white-space: nowrap;
+  /* overflow: hidden; */
+  text-overflow: ellipsis;
+  color: #0F1214;
+  font-size: 40rpx;
+  font-weight: bold;
+  margin-bottom: 5rpx;
+}
+
+.button-example {
+  margin: 0 70rpx;
+
+  background-color: #ff6c00;
+  display: flex;
+  justify-content: center;
+}
+
+.button-example .text {
+  background-color: #ff6c00;
+
+}
+
+.t-button--default {
+  background-color: #ff6c00 !important;
+}
+
+.t-button {
+  --td-button-default-border-color: #ff6c00 !important;
+}
+
+.zipImageBox {
+  display: flex;
+  justify-content: center;
+}
+
+.divider {
+  text-align: center;
+  margin: 20px 0;
+}
+
+.titleNameBox {
+  height: 77rpx;
+  background: #FFFFFF;
+  box-shadow: 0rpx 9rpx 9rpx 2rpx rgba(0, 0, 0, 0.06);
+  padding: 20rpx 50rpx;
+  margin-bottom: 100rpx;
+  font-family: PingFang SC, PingFang SC;
+  font-weight: 400;
+  font-size: 29rpx;
+  color: #333333;
+}
+
+.pictureBox {
+  display: flex;
+  justify-content: center;
+
+}
+
+.pictureBox image {
+  width: 520rpx;
+  height: 800rpx;
+}
+
+image {
+  width: 750rpx;
+  height: 1200rpx;
+}
\ No newline at end of file
diff --git a/pages/resourceDetails/myAudio/index.js b/pages/resourceDetails/myAudio/index.js
index fe06808..245375a 100644
--- a/pages/resourceDetails/myAudio/index.js
+++ b/pages/resourceDetails/myAudio/index.js
@@ -1,52 +1,673 @@
-// audio.js
+// pages/resourceDetails/index.js
+const app = getApp()
+const myAudio = wx.createInnerAudioContext();
 Page({
+
+  /**
+   * 椤甸潰鐨勫垵濮嬫暟鎹�
+   */
   data: {
-    poster: 'http://y.gtimg.cn/music/photo_new/T002R300x300M000003rsKF44GyaSk.jpg?max_age=2592000',
-    name: '姝ゆ椂姝ゅ埢',
-    author: '璁稿穽',
-    src: 'http://182.92.203.7:3001/file/api/ApiDownload?md5=aa72e586dd93b7c2633bee6320bc6c76',
+    noteList: [],
     navBarHeight: '',
     barHeight: '',
+    flag: true, // 杈撳叆妗嗘槸鍚︽樉绀�
+    tabPanelstyle: 'display:flex;justify-content:center;align-items:center;',
+    activeValues: [0],
+    dialogKey: false,
+    style: 'border: 2rpx solid rgba(220,220,220,1);border-radius: 12rpx;',
+    activeId: '',
+    bookId: '',
+    bookName: '',
+    cmsId: '',
+    parentName: '',
+    parentProductLinkPath: '',
+    productLinkPath: '',
+    threeLeveData: [],
+    showData: '',
+    src: '',
+    selectedId: null,
+    topicId: '',
+    titleName: '',
+    submitTitle: "",
+    inputStyle: 'border: 2rpx solid rgba(220,220,220,1);border-radius: 12rpx; padding:16rpx',
+    textvalue: '',
+    style: 'height: 248rpx',
+    submitType: "new", //  鏂板缓 or 缂栬緫
+    noteId: '',
+    myAudioDuration: '',  // 瑙嗛鏃堕棿
+    myAudioCurrent: '',   // 褰撳墠鎾斁杩涘害
+    isplay: false, //鏄惁榛樿鎾斁,
+    selectId: '',
+    speed: 1.0,
 
   },
+  audio: null,
+  // 鏍煎紡鍖栫瑪璁版椂闂�
+  convertTimestamp(timestamp) {
+    const isoDate = new Date(timestamp)
+    const year = isoDate.getFullYear()
+    const month = String(isoDate.getMonth() + 1).padStart(2, '0')
+    const day = String(isoDate.getDate()).padStart(2, '0')
+    const hours = String(isoDate.getHours()).padStart(2, '0')
+    const minutes = String(isoDate.getMinutes()).padStart(2, '0')
+    const seconds = String(isoDate.getSeconds()).padStart(2, '0')
+    const formattedDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`
+    return formattedDate
+  },
+
+  // 鏃堕棿鏍煎紡鍖�
+  format(t) {
+    let time = Math.floor(t / 60) >= 10 ? Math.floor(t / 60) : '0' + Math.floor(t / 60);
+    t = time + ':' + ((t % 60) / 100).toFixed(2).slice(-2);
+    return t;
+  },
+
+  /**
+   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
+   */
   onLoad(options) {
+
     const systInfo = wx.getSystemInfoSync();
     const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅
     const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴�
-
+    // console.log(options, 'options');
     this.setData({
       navBarHeight: navBarHeight,
       barHeight: systInfo.statusBarHeight,
+      activeId: options.activeId,
+      bookId: options.bookId,
+      bookName: options.bookName,
+      cmsId: options.cmsId,
+      parentName: options.parentName,
+      parentProductLinkPath: options.parentProductLinkPath,
+      productLinkPath: options.productLinkPath
     })
-  },
-  onReady: function (e) {
-    // 浣跨敤 wx.createAudioContext 鑾峰彇 audio 涓婁笅鏂� context
-    this.audioCtx = wx.createAudioContext('myAudio')
+
+    this.resourceDetailsData()
+    this.getNoteList()
+
+
+
   },
 
-  audioPlay: function () {
-    this.audioCtx.play()
+  /**
+   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚
+   */
+  onReady() {
+
+
   },
-  audioPause: function () {
-    this.audioCtx.pause()
+
+  /**
+   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず
+   */
+  onShow() {
+
   },
-  audio14: function () {
-    this.audioCtx.seek(14)
+
+  /**
+   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌
+   */
+  onHide() {
+
   },
-  audioStart: function () {
-    this.audioCtx.seek(0)
+
+  /**
+   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍗歌浇
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁�
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜�
+   */
+  onShareAppMessage() {
+
+  },
+  onTabsChange(event) {
+
+  },
+
+  onTabsClick(event) {
+
+  }, handleChange(e) {
+    this.setData({
+      activeValues: e.detail.value,
+    });
+  },
+  onTakeNotes() {
+
+  },
+  showDialog(e) {
+
+    this.setData({
+      submitTitle: this.data.bookName,
+      dialogKey: true,
+      // textvalue: ''
+
+
+    });
+  },
+
+  closeDialog() {
+
+    this.setData({
+      dialogKey: false
+    });
   },
   goBack() {
-    wx.navigateBack()
+    wx.navigateBack();
   },
+  resourceDetailsData() {
 
 
-  MusicStart: function (e) {
-    var progress = parseInt((e.detail.currentTime / e.detail.duration) * 100)
-    var that = this
-    that.setData({
-      progress: progress
+    let query = {
+      path: '*',
+      queryType: '*',
+      productId: this.data.bookId,
+      cmsPath: this.data.parentProductLinkPath,
+      itemFields: {
+        SysType: 'CmsFolder',
+        // 璧勬簮绫诲瀷锛岃瘯璇绘枃浠讹紝鏄惁鍏佽涓嬭浇绛夊弬鏁�
+        selectType: [],
+        freeFile: [],
+        file: [],
+        protectedFile: [],
+        resourcesClassification: [],
+        isDownload: [],
+        jsek_resourceBrief: [],
+        jsek_link: [],
+        jsek_questionBank: [],
+        learnSelectType: []
+      },
+      pading: {
+        start: 0,
+        size: 999
+      }
+    }
+
+    app.MG.store.getProductDetail(query).then(res => {
+      res.datas.cmsDatas[0].datas.forEach((item, index) => {
+
+        if (item.selectType === "audio") {
+          this.data.threeLeveData.push(item)
+          this.setData({
+            threeLeveData: this.data.threeLeveData
+          })
+
+
+          if (this.data.productLinkPath == item.productLinkPath) {
+            console.log(item.id, 'index');
+            this.setData({
+              showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file,
+              titleName: item.name
+            })
+            this.pubulicPlayFun()
+            // this.setData({
+            //   selectedId: index
+
+            // })
+          }
+        }
+
+      })
+      this.data.threeLeveData.forEach((item) => {
+        // console.log(item.name);
+      })
     })
-    console.log('闊充箰鎾斁杩涘害涓�' + progress + '%')
   },
+  onVideo(e) {
+    const item = e.currentTarget.dataset.item
+    if (this.data.showData != '') {
+      this.setData({
+        showData: ''
+      })
+    }
+    this.setData({
+      selectedId: e.currentTarget.dataset.index,
+
+    })
+
+
+    this.setData({
+      titleName: item.name,
+      selectId: item.id
+    })
+
+    if (item.selectType == "audio") {
+      this.setData({
+        showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file
+      })
+      this.pubulicPlayFun()
+    }
+
+  },
+
+  getProductUserSubmitTopicGet() {
+    app.MG.ugc.getProductUserSubmitTopic({
+      productId: this.data.bookId,
+      appRefCode: app.config.appRefCode
+    }).then((res) => {
+      // console.log(res);
+
+      this.setData({
+        topicId: res.id
+      })
+    })
+  },
+
+
+
+  newTopicMessageGet() {
+    let query = {
+      topicIdOrRefCode: topicId + '',
+      name: titleText.value,
+      content: form.value.noteContent,
+      type: 'note',
+      cmsTypeRefCode: '',
+      newDataListRequest: []
+    }
+    app.MG.ugc.newTopicMessage(query).then(res => {
+      // console.log(res);
+    })
+  },
+
+  // 鏍囬鏀瑰彉
+  changeTitle(e) {
+    // console.log(e.currentTarget.dataset.value);
+    this.setData({
+      flag: e.currentTarget.dataset.value
+
+    })
+  },
+  // 鏍囬杈撳叆妗嗗��
+  inputChange(e) {
+    this.setData({
+      titleName: e.detail.value
+    })
+  },
+
+  confirmSuggest() {
+    if (!this.data.textvalue) {
+      return wx.showToast({
+        icon: 'error',
+        title: '璇峰~鍐欑瑪璁板唴瀹�',
+      })
+
+    } else if (!this.data.titleName) {
+      return wx.showToast({
+        icon: 'error',
+        title: '璇峰~鍐欑瑪璁版爣棰�',
+      })
+    }
+    if (this.data.submitType == 'new') {
+      this.makeNote()
+    } else if (this.data.submitType == 'edit') {
+      this.updateNote()
+    }
+    // console.log(this.data.textvalue);
+    // console.log(this.data.titleName);
+    this.setData({
+      dialogKey: false
+    });
+  },
+  onTextarea() {
+    // console.log(this.data.textvalue);
+  },
+  textareaChange(e) {
+    this.setData({
+      textvalue: e.detail.value
+    })
+  },
+
+
+  // 鑾峰彇绗旇鍒楄〃
+  async getNoteList() {
+    // this.setData({
+    //   loading: true
+    // })
+    let topicId
+    await app.MG.ugc
+      .getProductUserSubmitTopic({
+        productId: this.data.bookId,
+        appRefCode: app.config.appRefCode
+      })
+      .then((res) => {
+        if (res) {
+          topicId = res.id
+        } else {
+          return wx.showToast({
+            icon: "error",
+            title: '鏌ヨ澶辫触',
+          })
+        }
+      })
+    // loadings.value.bookResource = true
+    let query = {
+      start: 0,
+      size: 999,
+      messageType: 'note',
+      sort: {
+        type: 'Desc',
+        field: 'CreateDate'
+      },
+      appRefCode: app.config.appRefCode,
+      topicIdOrRefCode: topicId + ''
+    }
+    await app.MG.ugc.getTopicMessageList(query).then((res) => {
+      // notePage.value.total = res.totalSize
+      res.datas.forEach((item) => {
+        // item.compliceHover = false
+        // item.deleteHover = false
+        item.createDate = this.convertTimestamp(item.createDate)
+      })
+      this.setData({
+        "pageCount.total": res.totalSize,
+        noteList: res.datas,
+        loading: false
+      })
+      // console.log('绗旇鍒楄〃', res.datas);
+    })
+  },
+  // 缂栬緫鎸夐挳
+  editNote(e) {
+    const note = e.currentTarget.dataset.note
+    this.setData({
+      submitType: "edit",
+      textvalue: note.content,
+      submitTitle: note.name,
+      noteId: note.id
+    })
+    this.showDialog()
+  },
+
+  // 鍒犻櫎绗旇
+  deleteNote(e) {
+    const id = e.currentTarget.dataset.id
+    const messageIds = []
+    messageIds.push(id)
+    wx.showModal({
+      title: '鎻愮ず',
+      content: '纭鍒犻櫎璇ョ瑪璁板悧锛�',//editable濡傛灉涓簍rue锛岃繖灏辨槸杈撳叆妗嗙殑鍐呭
+      editable: false,//鏄惁鏄剧ず杈撳叆妗�
+      placeholderText: '璇疯緭鍏ュ唴瀹瑰惂',//杈撳叆妗嗙殑榛樿鍐呭
+      success: (res) => {
+        if (res.confirm) {
+          app.MG.ugc
+            .delTopicMessage({ messageIds })
+            .then((res) => {
+              wx.showToast({
+                title: '鍒犻櫎鎴愬姛',
+              })
+              // if ((notePage.value.total % 3) - 1 == 0) {
+              //   notePage.value.page -= 1
+              // }
+              this.getNoteList()
+            })
+        } else if (res.cancel) {
+          // console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷')
+        }
+      }
+    })
+  },
+  // 鏂板缓绗旇鎺ュ彛
+  async makeNote() {
+    const token = wx.getStorageSync('jsek-token')
+    if (!token) {
+      return wx.getUserProfile({
+        desc: '鐢ㄦ埛鐧诲綍',
+        success: (res) => {
+          // console.log(res);
+        }
+      })
+    }
+    let topicId
+    await app.MG.ugc
+      .getProductUserSubmitTopic({
+        productId: this.data.bookId,
+        appRefCode: app.config.appRefCode
+      })
+      .then((res) => {
+        if (res) {
+          topicId = res.id
+        } else {
+          return wx.showToast({
+            icon: 'error',
+            title: '鏂板缓澶辫触',
+          })
+        }
+      })
+    let query = {
+      topicIdOrRefCode: topicId + '',
+      name: this.data.submitTitle,
+      content: this.data.textvalue,
+      type: 'note',
+      cmsTypeRefCode: '',
+      newDataListRequest: []
+    }
+    await app.MG.ugc.newTopicMessage(query).then((res) => {
+      wx.showToast({
+        title: '鏂板缓鎴愬姛',
+      })
+      this.closeDialog()
+      this.getNoteList()
+    })
+  },
+  // 缂栬緫绗旇鎺ュ彛
+  updateNote() {
+    const token = wx.getStorageSync('jsek-token')
+    if (!token) {
+      return wx.getUserProfile({
+        desc: '鐢ㄦ埛鐧诲綍',
+        success: (res) => {
+          // console.log(res);
+        }
+      })
+    }
+    if (!this.data.submitTitle) {
+      return wx.showToast({
+        icon: 'error',
+        title: '璇峰~鍐欑瑪璁版爣棰�',
+      })
+    } else if (!this.data.textvalue) {
+      return wx.showToast({
+        icon: 'error',
+        title: '璇峰~鍐欑瑪璁板唴瀹�',
+      })
+    }
+    let query = {
+      id: this.data.noteId,
+      name: this.data.submitTitle,
+      description: 'string',
+      icon: 'string',
+      type: 'note',
+      content: this.data.textvalue,
+      newDataRequests: [],
+      updateDataRequests: []
+    }
+    app.MG.ugc.updateTopicMessage(query).then((res) => {
+      wx.showToast({
+        title: '缂栬緫鎴愬姛',
+      })
+      this.closeDialog()
+      this.getNoteList()
+    })
+    this.setData({
+      submitType: "new"
+    })
+  },
+  // 鎾斁鍏叡浠g爜
+  pubulicPlayFun() {
+
+
+    myAudio.src = this.data.showData
+    console.log(myAudio.src);
+    // 鍦╫nCanplay閲岃幏鍙栧苟璁剧疆闊抽鏃堕暱鍜屾挱鏀捐繘搴�
+    myAudio.onCanplay(() => {
+      myAudio.duration; //蹇呴』鍐欙紝涓嶇劧鑾峰彇涓嶅埌銆傘�傘��
+      setTimeout(() => {
+        console.log(myAudio.duration);
+        this.setData({
+          myAudioDuration: this.format(myAudio.duration),
+          myAudioCurrent: this.format(myAudio.currentTime)
+        });
+      }, 1000);
+    });
+
+
+    // 鎾斁瀹屾垚澶勭悊锛屾寜閽彉涓�涓�
+    myAudio.onEnded((res) => {
+      this.setData({
+        isplay: false
+      })
+    });
+
+
+    //杩涘害鏉″彉鍖�   
+    myAudio.onTimeUpdate(() => {
+      this.setData({
+        myAudioPos: myAudio.currentTime / myAudio.duration * 100,
+        myAudioCurrent: this.format(myAudio.currentTime)
+      });
+    })
+  },
+
+
+  //鎾斁  
+  play() {
+    console.log(22222);
+    myAudio.startTime = this.data.myAudioCurrent; //鑰冭檻鍒拌繘搴︽潯琚嫋鍔紝涓嶄竴瀹氫粠00:00:00寮�濮�
+    myAudio.play();
+    this.setData({
+      isplay: true
+    });
+
+
+  },
+
+  // 鍋滄
+  stop() {
+    console.log(11111);
+    myAudio.pause();
+    this.setData({
+      isplay: false
+    });
+  },
+  adsfhaewlf() {
+
+    myAudio.pause();
+    this.setData({
+      isplay: false
+    });
+  },
+
+  //鍙冲垏鎹�
+  onLeftSwitch() {
+    this.setData({
+      speed: 1.0,
+      myAudioCurrent: 0
+    })
+    const index = this.data.threeLeveData.findIndex((item) => item.id == this.data.selectId)
+    if (this.data.threeLeveData[index - 1]) {
+      this.changeItem(this.data.threeLeveData[index - 1])
+      this.setData({
+        selectedId: index - 1,
+
+      })
+    } else {
+      console.log('宸茬粡鏄涓�棣栦簡');
+    }
+
+  },
+
+  //鍙冲垏鎹�
+  onRightSwitch() {
+    this.setData({
+      speed: 1.0,
+      myAudioCurrent: 0
+    })
+    console.log('鍙冲垏鎹�');
+    const index = this.data.threeLeveData.findIndex((item) => item.id == this.data.selectId)
+    if (this.data.threeLeveData[index + 1]) {
+      this.changeItem(this.data.threeLeveData[index + 1])
+      this.setData({
+        selectedId: index + 1,
+
+      })
+    } else {
+      console.log('宸茬粡鏄渶鍚庝竴棣栦簡');
+    }
+  },
+
+
+  changeItem(item) {
+    console.log(item);
+
+    if (this.data.showData != '') {
+      this.setData({
+        showData: ''
+      })
+    }
+    this.setData({
+      titleName: item.name,
+      selectId: item.id
+    })
+
+    if (item.selectType == "audio") {
+      this.setData({
+        showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file
+      })
+      this.pubulicPlayFun()
+    }
+  },
+  // 鎾斁鍊嶉��
+  onSpeed() {
+    let c = this.data.speed;
+    c += 0.5;
+    if (c <= 2) {
+      this.setData({
+        speed: c,
+      })
+    } else {
+      c = 0.5;
+      this.setData({
+        speed: c,
+      })
+    }
+
+    setTimeout(() => {
+      myAudio.startTime = this.data.myAudioDuration  //寮�濮嬫椂闂�  
+      myAudio.playbackRate = this.data.speed; //  鎾斁閫熺巼
+    }, 200);
+  },
+  handleChange(e) {
+    console.log(e.detail.value);
+  },
+  // 鎷栧姩杩涘害鏉★紝鍒版寚瀹氫綅缃�
+  hanle_slider_change(e) {
+    const position = e.detail.value;
+    var currentTime = position / 100 * myAudio.duration;
+    myAudio.seek(currentTime);
+    this.setData({
+      myAudioPos: position,
+      myAudioCurrent: this.format(currentTime)
+    })
+  }
+
+
 })
\ No newline at end of file
diff --git a/pages/resourceDetails/myAudio/index.json b/pages/resourceDetails/myAudio/index.json
index 02871f3..60b450d 100644
--- a/pages/resourceDetails/myAudio/index.json
+++ b/pages/resourceDetails/myAudio/index.json
@@ -1,6 +1,19 @@
 {
+  "component": true,
   "usingComponents": {
-    "t-icon": "tdesign-miniprogram/icon/icon"
+    "t-icon": "tdesign-miniprogram/icon/icon",
+    "t-tabs": "tdesign-miniprogram/tabs/tabs",
+    "t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
+    "t-collapse": "tdesign-miniprogram/collapse/collapse",
+    "t-collapse-panel": "tdesign-miniprogram/collapse-panel/collapse-panel",
+    "t-button": "tdesign-miniprogram/button/button",
+    "t-dialog": "tdesign-miniprogram/dialog/dialog",
+    "t-input": "tdesign-miniprogram/input/input",
+    "t-image": "tdesign-miniprogram/image/image",
+    "t-textarea": "tdesign-miniprogram/textarea/textarea",
+    "t-loading": "tdesign-miniprogram/loading/loading",
+    "t-popup": "tdesign-miniprogram/popup/popup",
+    "t-slider": "tdesign-miniprogram/slider/slider"
   },
   "navigationStyle": "custom"
 }
\ No newline at end of file
diff --git a/pages/resourceDetails/myAudio/index.wxml b/pages/resourceDetails/myAudio/index.wxml
index 4449e6d..ddf7634 100644
--- a/pages/resourceDetails/myAudio/index.wxml
+++ b/pages/resourceDetails/myAudio/index.wxml
@@ -3,37 +3,135 @@
   <view>
     <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" />
   </view>
-  <view class="navbar-title">璧勬簮璇︽儏-闊抽</view>
+  <view class="navbar-title">璧勬簮璇︽儏-瑙嗛</view>
 </view>
 
 
 
 
-<view class="audioBox">
-  <view class="">
-    <image class="imageFront" src="/static/images/resourceDetailsMyAudio/cd.png" mode="aspectFit" />
-    <image class=" imageAfter" src="/static/images/resourceDetailsMyAudio/video-bg.png" mode="aspectFit" />
+<view class="audioPlayerBox">
+  <view class="audioBackground" style="background-image: url('/static/images/resourceDetailsMyAudio/video-bg.png');">
+
+    <image src="/static/images/resourceDetailsMyAudio/cd.png" alt="" />
   </view>
-  <view class="controlBox">
-
-    <image src="/static/images/resourceDetailsMyAudio/shangyizhang.png" mode="" />
-    <image bindtap="audioPlay" src="/static/images/resourceDetailsMyAudio/zanting.png" mode="" />
-    <image bindtap="audioPause" src="/static/images/resourceDetailsMyAudio/xiayizhang.png" mode="" />
+  <slider class="mp-slider-bar" block-size="16" value="{{myAudioPos}}" bindchange="hanle_slider_change"></slider>
+  <!-- 瑙嗛鎾斁鐨勬寜閽� -->
+  <view class="functionBox">
 
 
-    <image src="/static/images/resourceDetailsMyAudio/Full screen.png" mode="" />
-    <!-- <view class="free-MusicProgress">
-      <view style="width:{{progress}}%;"></view>
-    </view> -->
+    <!-- 宸﹀垏鎹� -->
+    <view class="leftSwitchBox  color" bind:tap="onLeftSwitch">
+      <t-icon name="previous" size="24" />
+    </view>
+
+    <!-- 鏆傚仠鎾斁 -->
+    <view class="audioIconBox color">
+      <view wx:if="{{!isplay}}" bind:tap='play'>
+        <t-icon name="play-circle-stroke" size="24" />
+      </view>
+      <view wx:else bind:tap="stop">
+        <t-icon name="pause-circle-stroke" size="24" />
+      </view>
+    </view>
+
+    <!-- 鍙冲垏鎹� -->
+    <view class="rightSwitchBox color" bind:tap="onRightSwitch">
+      <t-icon name="next" size="24" />
+    </view>
+
+    <view class="current-time color">{{myAudioCurrent}} </view>
+    <view class="color" style="margin: 0 10rpx;">/</view>
+    <view class="duration-time color"> {{myAudioDuration}} </view>
+
+    <view class="publicBtn color" style="margin-left:100rpx ;" bind:tap="onSpeed">
+
+      <text class="publicText">{{"x "+speed}}</text>
+    </view>
   </view>
-
-
 </view>
-<audio wx:if="{{false}}" bindtimeupdate="MusicStart" poster="{{poster}}" name="{{name}}" author="{{author}}" src="{{src}}" id="myAudio" controls loop>
+
+<!-- 鏍囬 -->
+<view class="titleBox">{{titleName}}</view>
+
+<view class="contentBox">
+  <t-tabs defaultValue="{{0}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs" t-class-content="custom-panel">
+    <!-- 璧勬簮鍒楄〃 -->
+    <t-tab-panel label="璧勬簮鍒楄〃" value="0" style="{{tabPanelstyle}}" style="width: 750rpx;">
+      <view class="wrapper">
+        <t-collapse value="{{activeValues}}" bind:change="handleChange">
+          <t-collapse-panel header="{{parentName}}" value="{{0}}" expandIcon>
+            <view class="detailsName" wx:for="{{threeLeveData}}" wx:key="index" wx:for-item="item" wx:for-index="index" bind:tap="onVideo" data-item="{{item}}" data-index="{{index}}">
+              <view style="color: {{selectedId == index ? '#ff6c00' : '#000'}}">{{item.name}}</view>
+            </view>
+          </t-collapse-panel>
+        </t-collapse>
+      </view>
+    </t-tab-panel>
+    <!-- 绗旇灞曠ず -->
+    <t-tab-panel label="绗旇" value="1" style="{{tabPanelstyle}}">
+      <view class="wrapper">
+        <t-collapse value="{{activeValues}}" bind:change="handleChange">
+          <t-collapse-panel value="{{item.id}}" expandIcon wx:for="{{noteList}}">
+            <view slot="header" class="collapse-header">
+              <t-image class="note-icon" src="/static/images/bookService/detail/note-icon.png"></t-image>
+              <view class="header-name">{{item.name}}</view>
+            </view>
+            <view>
+              <view class="note-content">{{item.content}}</view>
+              <view class="note-bottom">
+                <view class="note-time">{{item.createDate}}</view>
+                <view class="bottom-btn">
+                  <t-image src="/static/images/bookService/detail/compliceHover.png" class="complice" bind:tap="editNote" data-note="{{item}}"></t-image>
+                  <view></view>
+                  <t-image src="/static/images/bookService/detail/deleteHover.png" class="delete" bind:tap="deleteNote" data-id="{{item.id}}"></t-image>
+                </view>
+              </view>
+            </view>
+          </t-collapse-panel>
+        </t-collapse>
+      </view>
+    </t-tab-panel>
+  </t-tabs>
+
+  <!-- 璁扮瑪璁� -->
+  <view class="takeNotes" data-key="showCloseBtn" bind:tap="showDialog">
+    <view class="takeNotesLining">
+      <image src="/static/images/resourceDetails/jibijii.png" mode="" /> 璁扮瑪璁�
+    </view>
+  </view>
+</view>
 
 
-</audio>
-<!-- <button type="primary" >鎾斁</button>
-<button type="primary">鏆傚仠</button>
-<button type="primary" bindtap="audio14">璁剧疆褰撳墠鎾斁鏃堕棿涓�14绉�</button>
-<button type="primary" bindtap="audioStart">鍥炲埌寮�澶�</button> -->
\ No newline at end of file
+<!-- 璁扮瑪璁板脊绐� -->
+<t-popup visible="{{dialogKey}}" bind:visible-change="onVisibleChange" placement="center">
+  <view class="popup">
+    <view slot="title">
+      <view class="title-text" wx:if="{{!flag}}">
+        <text class="note-title">{{titleName}}</text>
+        <t-image src="/static/images/bookService/detail/edit.png" class="edit-icon" bind:tap="changeTitle" data-value="{{true}}"></t-image>
+      </view>
+      <view wx:else>
+        <t-input value="{{titleName}}" style="{{inputStyle}}" data-value="{{false}}" bind:enter="changeTitle" bind:blur="changeTitle" maxlength="{{50}}" bind:change="inputChange"></t-input>
+      </view>
+    </view>
+
+
+
+
+    <view slot='content'>
+      <view class="textarea-example">
+        <text class="textarea-example__label">鍐呭:</text>
+        <t-textarea value="{{textvalue}}" t-class="external-class" placeholder="璇疯緭鍏ユ枃瀛�" bordered maxlength="500" disableDefaultPadding="{{true}}" indicator style="{{inputStyle}}" bind:change="textareaChange" />
+      </view>
+
+
+      <view class="submit-btn">
+        <t-button theme="primary" size="large" block bind:tap="confirmSuggest">鎻愪氦</t-button>
+      </view>
+    </view>
+
+
+
+  </view>
+  <t-icon t-class="close-btn" name="close-circle" size="32" color="#fff" bind:tap="closeDialog" />
+</t-popup>
\ No newline at end of file
diff --git a/pages/resourceDetails/myAudio/index.wxss b/pages/resourceDetails/myAudio/index.wxss
index 498b3dc..e7ae00d 100644
--- a/pages/resourceDetails/myAudio/index.wxss
+++ b/pages/resourceDetails/myAudio/index.wxss
@@ -1,4 +1,4 @@
-/* pages/resourceDetails/myAudio/index.wxss */
+/* pages/resourceDetails/index.wxss */
 .nacigationBar {
   background-color: #fff;
   display: flex;
@@ -16,51 +16,317 @@
   margin-bottom: 5rpx;
 }
 
-.audioBox {
-  width: 100%;
-  height: 350rpx;
+
+
+.titleBox {
+  margin: 30rpx;
+  border-bottom: 1px #f4f4f4 solid;
+  padding-bottom: 20rpx;
+  font-weight: bold;
+
 }
 
-.imageFront {
-  width: 300rpx;
-  height: 300rpx;
-  position: absolute;
-  top: 150rpx;
-  left: 250rpx;
+.contentBox {
+  position: relative;
 }
 
-.imageAfter {
-  width: 100%;
+.contentBox .custom-tabs {
+  /* margin-bottom: 32rpx; */
+  width: 400rpx;
 }
 
-.controlBox {
+
+.t-tabs__content {
+  width: 750rpx !important;
+  overflow: auto !important;
+}
+
+
+.custom-panel {
+  /* height: 120px; */
   width: 750rpx;
+  /* height: 200rpx; */
+
+}
+
+.contentBox .takeNotes {
+
+  position: absolute;
+  top: 5rpx;
+  right: 0;
+  width: 350rpx;
+  border-bottom: 1px solid #f4f4f4;
+
+}
+
+.takeNotes image {
+  width: 30rpx;
+  height: 30rpx;
+  margin-top: 10rpx;
+  margin-right: 10rpx;
+}
+
+.takeNotesLining {
+  margin: 25rpx;
+  display: flex;
+  justify-content: flex-end;
+}
+
+.operateBox {
+  display: flex;
+  align-items: flex-end;
+  justify-content: space-between;
+
+}
+
+.iconBox {
+  display: flex;
+}
+
+.iconBox image {
+  width: 26rpx;
+  height: 26rpx;
+  margin: 0 10rpx;
+}
+
+.t-dialog__content {
+  padding: 0 !important;
+}
+
+.titleImageBox {
+  width: 40rpx;
+  height: 40rpx;
+  margin-left: 20rpx;
+}
+
+.dialogTitleBox {
+  margin: 30rpx;
+  border-bottom: 1px #f4f4f4 solid;
+  padding-bottom: 20rpx;
+  font-weight: bold;
+  display: flex;
+  align-items: center;
+}
+
+.input-example {
+  --td-input-vertical-padding: 24rpx;
+
+  background-color: #fff;
+  padding: 32rpx 32rpx 16rpx;
+}
+
+.input-example__label {
+  color: rgba(0, 0, 0, 0.9);
+  font-size: 24rpx;
+  line-height: 40rpx;
+  margin: 0 8rpx 16rpx;
+}
+
+.buttonBox {
+  display: flex;
+  /* justify-content: flex-end; */
+  justify-content: center;
+
+}
+
+/* .inputBox {
+  height: 500rpx;
+} */
+
+
+.detailsName {
+  margin: 30rpx;
+  width: 90%;
+  height: 60rpx;
+  display: flex;
+  align-items: center;
+
+  padding-left: 20rpx;
+  background-color: #FFF6F0
+}
+
+.detailsName:hover {
+  background-color: #fff0e6;
+  width: 90%;
+  height: 60rpx;
+  color: #ff6c00;
+}
+
+.audioBox {
+  width: 750rpx;
+  height: 200rpx;
+}
+
+.title-text {
+  display: flex;
+  align-items: center;
+}
+
+.note-title {
+  width: 80%;
+  height: 84rpx;
+  line-height: 84rpx;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+  padding: 10rpx;
+  margin-left: 20rpx;
+}
+
+.edit-icon {
+  margin-left: 10rpx;
+  width: 30rpx;
+  height: 30rpx;
+}
+
+.submit-btn {
+  padding: 40rpx;
+  --td-button-border-radius: 60rpx;
+  --td-button-primary-bg-color: #ff6c00;
+  --td-button-primary-border-color: #ff6c00;
+  --td-button-primary-active-bg-color: #ff984d;
+  --td-button-primary-active-border-color: #ff984d;
+}
+
+.edit-icon {
+  margin-left: 10rpx;
+  width: 30rpx;
+  height: 30rpx;
+}
+
+.textarea-example {
+  padding: 32rpx 32rpx 48rpx;
+  background-color: #fff;
+}
+
+.external-class {
+  padding-top: 24rpx !important;
+  padding-bottom: 24rpx !important;
+}
+
+.textarea-example__label {
+  display: block;
+  color: rgba(0, 0, 0, 0.9);
+  font-size: 24rpx;
+  line-height: 40rpx;
+  padding-bottom: 16rpx;
+}
+
+.dialogIconBox {
+  /* width: 500rpx;
+  height: 300rpx;
+  color: #000;
+  background-color: ccc; */
+}
+
+.popup {
+  padding: 40rpx;
+  width: 600rpx;
+
+}
+
+.close-btn {
+  position: absolute;
+  left: 50%;
+  margin-left: -32rpx;
+  bottom: calc(-1 * (48rpx + 64rpx));
+}
+
+.collapse-header {
+  display: flex;
+}
+
+.collapse-header .header-name {
+  font-size: 32rpx;
+  width: 500rpx;
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+
+.note-icon {
+  width: 44rpx;
+  height: 48rpx;
+  margin-right: 20rpx;
+}
+
+.note-content {
+  height: min-content;
+  font-size: 28rpx;
+  color: #949494;
+  margin-bottom: 20rpx;
+  max-height: 600rpx;
+  text-align: justify;
+  /* padding-bottom: 200rpx; */
+}
+
+.note-bottom {
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+}
+
+.note-time {
+  color: #D9D9D9;
+}
+
+.bottom-btn {
+  height: 40rpx;
+  display: flex;
+  align-items: center;
+}
+
+.complice,
+.delete {
+  width: 30rpx;
+  height: 30rpx;
+  margin: 0 15rpx;
+}
+
+.audioPlayerBox {
+  width: 100%;
+  height: 460rpx;
+  display: flex;
+  flex-direction: column;
+}
+
+.audioBackground {
+  flex: 1;
+  background-size: 100% 110%;
+
+  /* background-repeat: no-repeat;
+  background-position: center center; */
+  background-color: #f9f9f9;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+}
+
+.audioBackground image {
+  width: 270rpx;
+  height: 280rpx;
+
+}
+
+.functionBox {
   height: 96rpx;
   background: #000000;
-  border-radius: 0rpx 0rpx 0rpx 0rpx;
   opacity: 0.6;
-  position: relative;
+  display: flex;
+  align-items: center;
 }
 
-.controlBox image {
-  width: 45rpx;
-  height: 45rpx;
-  margin: 20rpx 35rpx;
+.functionBox .audioIconBox {}
+
+.functionBox .color {
+  color: #fff;
+
 }
 
-audio {
-  position: relative;
+.rightSwitchBox {
+  margin: 0 30rpx;
 }
 
-.free-MusicProgress {
-  position: absolute;
-  width: 78%;
-  left: 21.7%;
-  bottom: 1px;
-  background: #C3C3C3;
-}
-
-.free-MusicProgress>view {
-  background: #48c23d;
-  height: 5px;
+.leftSwitchBox {
+  margin: 0 30rpx;
 }
\ No newline at end of file
diff --git a/pages/resourceDetails/myVideo/index.js b/pages/resourceDetails/myVideo/index.js
index a954285..0606bf4 100644
--- a/pages/resourceDetails/myVideo/index.js
+++ b/pages/resourceDetails/myVideo/index.js
@@ -7,12 +7,13 @@
    * 椤甸潰鐨勫垵濮嬫暟鎹�
    */
   data: {
+    noteList: [],
     navBarHeight: '',
     barHeight: '',
-
+    flag: true, // 杈撳叆妗嗘槸鍚︽樉绀�
     tabPanelstyle: 'display:flex;justify-content:center;align-items:center;',
     activeValues: [0],
-    dialogKey: true,
+    dialogKey: false,
     style: 'border: 2rpx solid rgba(220,220,220,1);border-radius: 12rpx;',
     activeId: '',
     bookId: '',
@@ -25,18 +26,36 @@
     showData: '',
     src: '',
     selectedId: null,
-    topicId: ''
+    topicId: '',
+    titleName: '',
+    submitTitle: "",
+    inputStyle: 'border: 2rpx solid rgba(220,220,220,1);border-radius: 12rpx; padding:16rpx',
+    textvalue: '',
+    style: 'height: 248rpx',
+    submitType: "new", //  鏂板缓 or 缂栬緫
+    noteId: '',
   },
-
+  // 鏍煎紡鍖栫瑪璁版椂闂�
+  convertTimestamp(timestamp) {
+    const isoDate = new Date(timestamp)
+    const year = isoDate.getFullYear()
+    const month = String(isoDate.getMonth() + 1).padStart(2, '0')
+    const day = String(isoDate.getDate()).padStart(2, '0')
+    const hours = String(isoDate.getHours()).padStart(2, '0')
+    const minutes = String(isoDate.getMinutes()).padStart(2, '0')
+    const seconds = String(isoDate.getSeconds()).padStart(2, '0')
+    const formattedDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`
+    return formattedDate
+  },
   /**
    * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
    */
   onLoad(options) {
-    console.log(this.data.dialogKey, 'dialogKey');
+
     const systInfo = wx.getSystemInfoSync();
     const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅
     const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴�
-
+    console.log(options, 'options');
     this.setData({
       navBarHeight: navBarHeight,
       barHeight: systInfo.statusBarHeight,
@@ -48,8 +67,9 @@
       parentProductLinkPath: options.parentProductLinkPath,
       productLinkPath: options.productLinkPath
     })
-    console.log(this.data.parentProductLinkPath, 'parentProductLinkPath');
+
     this.resourceDetailsData()
+    this.getNoteList()
   },
 
   /**
@@ -115,8 +135,14 @@
 
   },
   showDialog(e) {
-    const { key } = e.currentTarget.dataset;
-    this.setData({ [key]: true, dialogKey: key });
+
+    this.setData({
+      submitTitle: this.data.bookName,
+      dialogKey: true,
+      // textvalue: ''
+
+
+    });
   },
 
   closeDialog() {
@@ -157,47 +183,44 @@
     }
 
     app.MG.store.getProductDetail(query).then(res => {
-      console.log(res, 'res');
-
-      const list = []
-
       res.datas.cmsDatas[0].datas.forEach((item) => {
-        this.data.threeLeveData.push(item)
-        list.push(item)
-        this.setData({
-          threeLeveData: list
-        })
-
-        if (this.data.productLinkPath == item.productLinkPath) {
-          console.log(item, 'item');
+        if (item.selectType === "video") {
+          this.data.threeLeveData.push(item)
           this.setData({
-            showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file
+            threeLeveData: this.data.threeLeveData
           })
         }
-        // console.log(this.data.threeLeveData, 'threeLeveData');
-      })
+        if (this.data.productLinkPath == item.productLinkPath) {
+          this.setData({
+            showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file,
+            titleName: item.name
+          })
+        }
 
+      })
+      this.data.threeLeveData.forEach((item) => {
+        console.log(item.name);
+      })
     })
   },
   onVideo(e) {
-
+    if (this.data.showData != '') {
+      this.setData({
+        showData: ''
+      })
+    }
     this.setData({
       selectedId: e.currentTarget.dataset.index,
     })
-
-
-
-    // console.log(e);
     const item = e.currentTarget.dataset.item
-    // console.log(item);
+    this.setData({
+      titleName: item.name
+    })
+
     if (item.selectType == "video") {
-      console.log(item.file);
       this.setData({
         showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file
       })
-      console.log(this.data.showData);
-    } else {
-      console.log(app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file);
     }
   },
 
@@ -229,15 +252,230 @@
       console.log(res);
     })
   },
-  // currentTarget
-  onConfirm() {
-    console.log(1111);
 
+  // 鏍囬鏀瑰彉
+  changeTitle(e) {
+    console.log(e.currentTarget.dataset.value);
+    this.setData({
+      flag: e.currentTarget.dataset.value
+
+    })
   },
-  onCancellation() {
-    console.log(222);
+  // 鏍囬杈撳叆妗嗗��
+  inputChange(e) {
+    this.setData({
+      titleName: e.detail.value
+    })
+  },
 
-    this.data.dialogKey = false
+  confirmSuggest() {
+    if (!this.data.textvalue) {
+      return wx.showToast({
+        icon: 'error',
+        title: '璇峰~鍐欑瑪璁板唴瀹�',
+      })
 
-  }
+    } else if (!this.data.titleName) {
+      return wx.showToast({
+        icon: 'error',
+        title: '璇峰~鍐欑瑪璁版爣棰�',
+      })
+    }
+    if (this.data.submitType == 'new') {
+      this.makeNote()
+    } else if (this.data.submitType == 'edit') {
+      this.updateNote()
+    }
+    console.log(this.data.textvalue);
+    console.log(this.data.titleName);
+    this.setData({
+      dialogKey: false
+    });
+  },
+  onTextarea() {
+    console.log(this.data.textvalue);
+  },
+  textareaChange(e) {
+    this.setData({
+      textvalue: e.detail.value
+    })
+  },
+
+
+  // 鑾峰彇绗旇鍒楄〃
+  async getNoteList() {
+    // this.setData({
+    //   loading: true
+    // })
+    let topicId
+    await app.MG.ugc
+      .getProductUserSubmitTopic({
+        productId: this.data.bookId,
+        appRefCode: app.config.appRefCode
+      })
+      .then((res) => {
+        if (res) {
+          topicId = res.id
+        } else {
+          return wx.showToast({
+            icon: "error",
+            title: '鏌ヨ澶辫触',
+          })
+        }
+      })
+    // loadings.value.bookResource = true
+    let query = {
+      start: 0,
+      size: 999,
+      messageType: 'note',
+      sort: {
+        type: 'Desc',
+        field: 'CreateDate'
+      },
+      appRefCode: app.config.appRefCode,
+      topicIdOrRefCode: topicId + ''
+    }
+    await app.MG.ugc.getTopicMessageList(query).then((res) => {
+      // notePage.value.total = res.totalSize
+      res.datas.forEach((item) => {
+        // item.compliceHover = false
+        // item.deleteHover = false
+        item.createDate = this.convertTimestamp(item.createDate)
+      })
+      this.setData({
+        "pageCount.total": res.totalSize,
+        noteList: res.datas,
+        loading: false
+      })
+      console.log('绗旇鍒楄〃', res.datas);
+    })
+  },
+  // 缂栬緫鎸夐挳
+  editNote(e) {
+    const note = e.currentTarget.dataset.note
+    this.setData({
+      submitType: "edit",
+      textvalue: note.content,
+      submitTitle: note.name,
+      noteId: note.id
+    })
+    this.showDialog()
+  },
+
+  // 鍒犻櫎绗旇
+  deleteNote(e) {
+    const id = e.currentTarget.dataset.id
+    const messageIds = []
+    messageIds.push(id)
+    wx.showModal({
+      title: '鎻愮ず',
+      content: '纭鍒犻櫎璇ョ瑪璁板悧锛�',//editable濡傛灉涓簍rue锛岃繖灏辨槸杈撳叆妗嗙殑鍐呭
+      editable: false,//鏄惁鏄剧ず杈撳叆妗�
+      placeholderText: '璇疯緭鍏ュ唴瀹瑰惂',//杈撳叆妗嗙殑榛樿鍐呭
+      success: (res) => {
+        if (res.confirm) {
+          app.MG.ugc
+            .delTopicMessage({ messageIds })
+            .then((res) => {
+              wx.showToast({
+                title: '鍒犻櫎鎴愬姛',
+              })
+              // if ((notePage.value.total % 3) - 1 == 0) {
+              //   notePage.value.page -= 1
+              // }
+              this.getNoteList()
+            })
+        } else if (res.cancel) {
+          console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷')
+        }
+      }
+    })
+  },
+  // 鏂板缓绗旇鎺ュ彛
+  async makeNote() {
+    const token = wx.getStorageSync('jsek-token')
+    if (!token) {
+      return wx.getUserProfile({
+        desc: '鐢ㄦ埛鐧诲綍',
+        success: (res) => {
+          console.log(res);
+        }
+      })
+    }
+    let topicId
+    await app.MG.ugc
+      .getProductUserSubmitTopic({
+        productId: this.data.bookId,
+        appRefCode: app.config.appRefCode
+      })
+      .then((res) => {
+        if (res) {
+          topicId = res.id
+        } else {
+          return wx.showToast({
+            icon: 'error',
+            title: '鏂板缓澶辫触',
+          })
+        }
+      })
+    let query = {
+      topicIdOrRefCode: topicId + '',
+      name: this.data.submitTitle,
+      content: this.data.textvalue,
+      type: 'note',
+      cmsTypeRefCode: '',
+      newDataListRequest: []
+    }
+    await app.MG.ugc.newTopicMessage(query).then((res) => {
+      wx.showToast({
+        title: '鏂板缓鎴愬姛',
+      })
+      this.closeDialog()
+      this.getNoteList()
+    })
+  },
+  // 缂栬緫绗旇鎺ュ彛
+  updateNote() {
+    const token = wx.getStorageSync('jsek-token')
+    if (!token) {
+      return wx.getUserProfile({
+        desc: '鐢ㄦ埛鐧诲綍',
+        success: (res) => {
+          console.log(res);
+        }
+      })
+    }
+    if (!this.data.submitTitle) {
+      return wx.showToast({
+        icon: 'error',
+        title: '璇峰~鍐欑瑪璁版爣棰�',
+      })
+    } else if (!this.data.textvalue) {
+      return wx.showToast({
+        icon: 'error',
+        title: '璇峰~鍐欑瑪璁板唴瀹�',
+      })
+    }
+    let query = {
+      id: this.data.noteId,
+      name: this.data.submitTitle,
+      description: 'string',
+      icon: 'string',
+      type: 'note',
+      content: this.data.textvalue,
+      newDataRequests: [],
+      updateDataRequests: []
+    }
+    app.MG.ugc.updateTopicMessage(query).then((res) => {
+      wx.showToast({
+        title: '缂栬緫鎴愬姛',
+      })
+      this.closeDialog()
+      this.getNoteList()
+    })
+    this.setData({
+      submitType: "new"
+    })
+  },
+
 })
\ No newline at end of file
diff --git a/pages/resourceDetails/myVideo/index.json b/pages/resourceDetails/myVideo/index.json
index c22808e..adaa91b 100644
--- a/pages/resourceDetails/myVideo/index.json
+++ b/pages/resourceDetails/myVideo/index.json
@@ -8,7 +8,11 @@
     "t-collapse-panel": "tdesign-miniprogram/collapse-panel/collapse-panel",
     "t-button": "tdesign-miniprogram/button/button",
     "t-dialog": "tdesign-miniprogram/dialog/dialog",
-    "t-input": "tdesign-miniprogram/input/input"
+    "t-input": "tdesign-miniprogram/input/input",
+    "t-image": "tdesign-miniprogram/image/image",
+    "t-textarea": "tdesign-miniprogram/textarea/textarea",
+    "t-loading": "tdesign-miniprogram/loading/loading",
+    "t-popup": "tdesign-miniprogram/popup/popup"
   },
   "navigationStyle": "custom"
 }
\ No newline at end of file
diff --git a/pages/resourceDetails/myVideo/index.wxml b/pages/resourceDetails/myVideo/index.wxml
index 4986c71..8c8a0b4 100644
--- a/pages/resourceDetails/myVideo/index.wxml
+++ b/pages/resourceDetails/myVideo/index.wxml
@@ -5,14 +5,15 @@
   </view>
   <view class="navbar-title">璧勬簮璇︽儏-瑙嗛</view>
 </view>
-<!-- 瑙嗛 绛� -->
+<!-- 瑙嗛  -->
 <view class="videoBox">
+  <!-- autoplay='false' 鏄惁鑷姩鎾斁 -->
   <video src="{{showData}}" play-btn-position='center' object-fit='fill' controls enable-play-gesture enable-auto-rotation></video>
 
 </view>
 
 <!-- 鏍囬 -->
-<view class="titleBox">鍩虹鏁欒偛鐮旂┒鑳屾櫙鎬讳綋璁捐</view>
+<view class="titleBox">{{titleName}}</view>
 
 <view class="contentBox">
   <t-tabs defaultValue="{{0}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs" t-class-content="custom-panel">
@@ -33,15 +34,23 @@
     </t-tab-panel>
     <!-- 绗旇灞曠ず -->
     <t-tab-panel label="绗旇" value="1" style="{{tabPanelstyle}}">
+
       <view class="wrapper">
         <t-collapse value="{{activeValues}}" bind:change="handleChange">
-          <t-collapse-panel header="绗�1绗�1璇炬椂 璇剧▼瑙嗛" value="{{0}}" expandIcon>
-            <view> 姝ゅ鍙嚜瀹氫箟鍐呭姝ゅ鍙嚜瀹氫箟鍐呭姝ゅ鍙嚜瀹氫箟鍐呭姝ゅ鍙嚜瀹氫箟鍐呭姝ゅ鍙嚜瀹氫箟鍐呭姝ゅ鍙嚜瀹氫箟鍐呭姝ゅ鍙嚜瀹氫箟鍐呭姝ゅ鍙嚜瀹氫箟鍐呭</view>
-            <view class="operateBox">
-              <view>2023-08-29</view>
-              <view class="iconBox">
-                <image src="/static/images/resourceDetails/jibijiicon2.png" mode="" />
-                <image src="/static/images/resourceDetails/jibijiicon3.png" mode="" />
+          <t-collapse-panel value="{{item.id}}" expandIcon wx:for="{{noteList}}">
+            <view slot="header" class="collapse-header">
+              <t-image class="note-icon" src="/static/images/bookService/detail/note-icon.png"></t-image>
+              <view class="header-name">{{item.name}}</view>
+            </view>
+            <view>
+              <view class="note-content">{{item.content}}</view>
+              <view class="note-bottom">
+                <view class="note-time">{{item.createDate}}</view>
+                <view class="bottom-btn">
+                  <t-image src="/static/images/bookService/detail/compliceHover.png" class="complice" bind:tap="editNote" data-note="{{item}}"></t-image>
+                  <view></view>
+                  <t-image src="/static/images/bookService/detail/deleteHover.png" class="delete" bind:tap="deleteNote" data-id="{{item.id}}"></t-image>
+                </view>
               </view>
             </view>
           </t-collapse-panel>
@@ -60,20 +69,35 @@
 
 
 <!-- 璁扮瑪璁板脊绐� -->
-<t-dialog visible="{{showCloseBtn}}" close-btn bind:confirm="closeDialog" bind:cancel="closeDialog">
-  <view slot='title' class="dialogTitleBox">涓�銆侀亾寰蜂笌鍝佸痉鐨勫叧绯�-鏈夎瘯鐪�
-    <image class="titleImageBox" src="/static/images/resourceDetails/edit.png" alt="" />
-  </view>
-  <view slot='content'>
-    <view class="input-example">
-      <view class="input-example__label"> 鍐呭 </view>
-      <t-input class="inputBox" placeholder="璇疯緭鍏ユ枃瀛�" borderless="{{true}}" style="{{style}}" />
-    </view>
-    <view class="buttonBox">
-      <view>
-        <t-button bind:tap="onCancellation" style="margin: 20rpx 30rpx;" variant="outline" size="extra-small">鍙栨秷</t-button>
-        <t-button bind:tap="onConfirm" style="margin: 20rpx 30rpx;" theme="primary" size="extra-small">纭</t-button>
+<t-popup visible="{{dialogKey}}" bind:visible-change="onVisibleChange" placement="center">
+  <view class="popup">
+    <view slot="title">
+      <view class="title-text" wx:if="{{!flag}}">
+        <text class="note-title">{{titleName}}</text>
+        <t-image src="/static/images/bookService/detail/edit.png" class="edit-icon" bind:tap="changeTitle" data-value="{{true}}"></t-image>
+      </view>
+      <view wx:else>
+        <t-input value="{{titleName}}" style="{{inputStyle}}" data-value="{{false}}" bind:enter="changeTitle" bind:blur="changeTitle" maxlength="{{50}}" bind:change="inputChange"></t-input>
       </view>
     </view>
+
+
+
+
+    <view slot='content'>
+      <view class="textarea-example">
+        <text class="textarea-example__label">鍐呭:</text>
+        <t-textarea value="{{textvalue}}" t-class="external-class" placeholder="璇疯緭鍏ユ枃瀛�" bordered maxlength="500" disableDefaultPadding="{{true}}" indicator style="{{inputStyle}}" bind:change="textareaChange" />
+      </view>
+
+
+      <view class="submit-btn">
+        <t-button theme="primary" size="large" block bind:tap="confirmSuggest">鎻愪氦</t-button>
+      </view>
+    </view>
+
+
+
   </view>
-</t-dialog>
\ No newline at end of file
+  <t-icon t-class="close-btn" name="close-circle" size="32" color="#fff" bind:tap="closeDialog" />
+</t-popup>
\ No newline at end of file
diff --git a/pages/resourceDetails/myVideo/index.wxss b/pages/resourceDetails/myVideo/index.wxss
index a338176..420db58 100644
--- a/pages/resourceDetails/myVideo/index.wxss
+++ b/pages/resourceDetails/myVideo/index.wxss
@@ -130,7 +130,8 @@
 
 .buttonBox {
   display: flex;
-  justify-content: flex-end;
+  /* justify-content: flex-end; */
+  justify-content: center;
 
 }
 
@@ -145,8 +146,9 @@
   height: 60rpx;
   display: flex;
   align-items: center;
-  background: #F4F4F4;
+
   padding-left: 20rpx;
+  background-color: #FFF6F0
 }
 
 .detailsName:hover {
@@ -159,4 +161,130 @@
 .audioBox {
   width: 750rpx;
   height: 200rpx;
+}
+
+.title-text {
+  display: flex;
+  align-items: center;
+}
+
+.note-title {
+  width: 80%;
+  height: 84rpx;
+  line-height: 84rpx;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+  padding: 10rpx;
+  margin-left: 20rpx;
+}
+
+.edit-icon {
+  margin-left: 10rpx;
+  width: 30rpx;
+  height: 30rpx;
+}
+
+.submit-btn {
+  padding: 40rpx;
+  --td-button-border-radius: 60rpx;
+  --td-button-primary-bg-color: #ff6c00;
+  --td-button-primary-border-color: #ff6c00;
+  --td-button-primary-active-bg-color: #ff984d;
+  --td-button-primary-active-border-color: #ff984d;
+}
+
+.edit-icon {
+  margin-left: 10rpx;
+  width: 30rpx;
+  height: 30rpx;
+}
+
+.textarea-example {
+  padding: 32rpx 32rpx 48rpx;
+  background-color: #fff;
+}
+
+.external-class {
+  padding-top: 24rpx !important;
+  padding-bottom: 24rpx !important;
+}
+
+.textarea-example__label {
+  display: block;
+  color: rgba(0, 0, 0, 0.9);
+  font-size: 24rpx;
+  line-height: 40rpx;
+  padding-bottom: 16rpx;
+}
+
+.dialogIconBox {
+  /* width: 500rpx;
+  height: 300rpx;
+  color: #000;
+  background-color: ccc; */
+}
+
+.popup {
+  padding: 40rpx;
+  width: 600rpx;
+
+}
+
+.close-btn {
+  position: absolute;
+  left: 50%;
+  margin-left: -32rpx;
+  bottom: calc(-1 * (48rpx + 64rpx));
+}
+
+.collapse-header {
+  display: flex;
+}
+
+.collapse-header .header-name {
+  font-size: 32rpx;
+  width: 500rpx;
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+
+.note-icon {
+  width: 44rpx;
+  height: 48rpx;
+  margin-right: 20rpx;
+}
+
+.note-content {
+  height: min-content;
+  font-size: 28rpx;
+  color: #949494;
+  margin-bottom: 20rpx;
+  max-height: 600rpx;
+  text-align: justify;
+  /* padding-bottom: 200rpx; */
+}
+
+.note-bottom {
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+}
+
+.note-time {
+  color: #D9D9D9;
+}
+
+.bottom-btn {
+  height: 40rpx;
+  display: flex;
+  align-items: center;
+}
+
+.complice,
+.delete {
+  width: 30rpx;
+  height: 30rpx;
+  margin: 0 15rpx;
 }
\ No newline at end of file
diff --git a/pages/retrievalPage/index.js b/pages/retrievalPage/index.js
index 1e532af..72634ee 100644
--- a/pages/retrievalPage/index.js
+++ b/pages/retrievalPage/index.js
@@ -38,7 +38,7 @@
 
       navBarHeight: navBarHeight,
       barHeight: systInfo.statusBarHeight,
-
+      searchVal: options.searchVal
     })
 
 
@@ -517,6 +517,15 @@
     console.log(this.data.searchVal);
     this.retrievalPageGet()
     this.bibliographyGet()
+  },
+  onBook(e) {
+    console.log(e.currentTarget.dataset.item);
+    const item = e.currentTarget.dataset.item
+    wx.navigateTo({
+      url: '/pages/bookServices/detail/index?id=' + item.id + '&name' + item.name
+
+
+    })
   }
 
 })
\ No newline at end of file
diff --git a/pages/retrievalPage/index.wxml b/pages/retrievalPage/index.wxml
index bbd2708..132654a 100644
--- a/pages/retrievalPage/index.wxml
+++ b/pages/retrievalPage/index.wxml
@@ -22,7 +22,7 @@
     <view class="bookDataBox">
 
 
-      <view class="bookDataForBox" wx:for="{{bookData}}" wx:key="index" wx:for-item="item" wx:for-index="index">
+      <view  class="bookDataForBox" wx:for="{{bookData}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="onBook">
         <view class="imageBox">
           <image src="{{item.icon}}" mode="aspectFill" />
         </view>
diff --git a/static/images/bookExhibitionList/zhuantitaolun.png b/static/images/bookExhibitionList/zhuantitaolun.png
new file mode 100644
index 0000000..626fa37
--- /dev/null
+++ b/static/images/bookExhibitionList/zhuantitaolun.png
Binary files differ
diff --git a/static/images/document/zip.png b/static/images/document/zip.png
new file mode 100644
index 0000000..aee1c67
--- /dev/null
+++ b/static/images/document/zip.png
Binary files differ
diff --git a/static/images/document/zip200px.png b/static/images/document/zip200px.png
new file mode 100644
index 0000000..2a35d90
--- /dev/null
+++ b/static/images/document/zip200px.png
Binary files differ
diff --git a/static/images/document/zip200px@2x.png b/static/images/document/zip200px@2x.png
new file mode 100644
index 0000000..ae187e8
--- /dev/null
+++ b/static/images/document/zip200px@2x.png
Binary files differ

--
Gitblit v1.9.1