From c99f9976a5ef9d8974105feb8fc0580a10adf98c Mon Sep 17 00:00:00 2001
From: QYF-GitLab1 <1940665526@qq.com>
Date: 星期一, 23 十二月 2024 14:58:49 +0800
Subject: [PATCH] 111

---
 packageDomain/pages/resourceDetails/myVideo/index.wxml |  280 ++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 182 insertions(+), 98 deletions(-)

diff --git a/packageDomain/pages/resourceDetails/myVideo/index.wxml b/packageDomain/pages/resourceDetails/myVideo/index.wxml
index 619fc9d..6046aab 100644
--- a/packageDomain/pages/resourceDetails/myVideo/index.wxml
+++ b/packageDomain/pages/resourceDetails/myVideo/index.wxml
@@ -1,109 +1,193 @@
-<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="videoBox" wx:if="{{videoChange}}">
+    <!-- autoplay='false' 鏄惁鑷姩鎾斁 -->
+    <!-- <video binderror="videoErrorCallback" src="{{showData}}" play-btn-position='center' object-fit='fill' controls enable-play-gesture enable-auto-rotation></video> -->
+    <view wx:if="{{videoLoading}}" class="video-loading">
+      <t-loading
+        theme="circular"
+        size="60rpx"
+        class="wrapper"
+        loading="{{videoLoading}}"
+      />
+    </view>
+    <t-video
+      id="tvd"
+      src="{{showDataVod}}"
+      style="width: 100%"
+      bindvideoloaded="loadedmetadata"
+      bindtimeupdate="timeUpdate"
+      wx:if="{{!videoLoading}}"
+    >
+    </t-video>
   </view>
-  <view class="navbar-title">璧勬簮璇︽儏-瑙嗛</view>
-</view>
-<!-- 瑙嗛  -->
-<view class="videoBox" wx:if="{{videoChange}}">
-  <!-- autoplay='false' 鏄惁鑷姩鎾斁 -->
-  <video binderror="videoErrorCallback" src="{{showData}}" play-btn-position='center' object-fit='fill' controls enable-play-gesture enable-auto-rotation></video>
 
-</view>
+  <view wx:if="{{!videoChange}}" class="videoSubsidiaryBox">
+    <view class="videoNoData">鏆傛棤鏁版嵁</view>
+  </view>
 
-<view wx:if="{{!videoChange}}" class="videoSubsidiaryBox">
-
-  <view class="videoNoData">鏆傛棤鏁版嵁</view>
-
-</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">
-    <!-- 璧勬簮鍒楄〃 -->
-    <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">
-        <view wx:if="{{!noteList.length}}" class="noData">
-          <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" />
-
+  <!-- 鏍囬 -->
+  <view class="titleBox">{{titleName}}</view>
+  <view class="contentBox">
+    <t-tabs
+      defaultValue="{{0}}"
+      bind:change="onTabsChange"
+      t-class="custom-tabs"
+      t-class-content="custom-panel"
+      split="{{false}}"
+    >
+      <!-- 璧勬簮鍒楄〃 -->
+      <t-tab-panel
+        label="璧勬簮鍒楄〃"
+        value="0"
+        style="{{tabPanelstyle}}"
+        style="width: 750rpx"
+      >
+        <view class="demo-section__content" wx:if="{{loading}}">
+          <t-skeleton
+            theme="paragraph"
+            animation="gradient"
+            loading="true"
+          ></t-skeleton>
         </view>
-        <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">{{titleName}}</view>
+        <view class="wrapper" wx:if="{{!loading}}">
+          <view class="outsideDetailsName">
+            <view class="titleBox">{{parentName}}</view>
+            <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>
-            <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>
+      </t-tab-panel>
+      <!-- 绗旇灞曠ず -->
+      <t-tab-panel label="绗旇" value="1" style="{{tabPanelstyle}}">
+        <view class="wrapper">
+          <view wx:if="{{!noteList.length}}" class="noData">
+            <!-- <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> -->
+            <empty />
+          </view>
+          <t-collapse value="{{activeValues}}" bind:change="handleChange">
+            <t-collapse-panel
+              value="{{item.id}}"
+              expandIcon
+              wx:for="{{noteList}}"
+              wx:key="id"
+            >
+              <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>
-            </view>
-          </t-collapse-panel>
-        </t-collapse>
-      </view>
-    </t-tab-panel>
-  </t-tabs>
+            </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 class="takeNotes" data-key="showCloseBtn" bind:tap="showDialog">
+      <view class="takeNotesLining">
+        <image
+          src="/static/images/resourceDetails/jibiji锛廼con@2x.png"
+          mode=""
+        />
+        璁扮瑪璁�
+      </view>
     </view>
+    <view class="buttonBox"></view>
   </view>
+
+  <!-- 璁扮瑪璁板脊绐� -->
+  <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">{{submitTitle}}</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="{{submitTitle}}"
+            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>
 </view>
-
-
-<!-- 璁扮瑪璁板脊绐� -->
-<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

--
Gitblit v1.9.1