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/resourceDetails/myVideo/index.wxml |   70 +++++++++++++++++++++++-----------
 1 files changed, 47 insertions(+), 23 deletions(-)

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

--
Gitblit v1.9.1