From b55024ee2f42aa93e0ecaa3113bdeb286f6e59ac Mon Sep 17 00:00:00 2001
From: QYF-GitLab1 <1940665526@qq.com>
Date: 星期二, 29 七月 2025 18:01:55 +0800
Subject: [PATCH] 优化按钮显示,教学互动

---
 packageDomain/pages/resourceDetails/myVideo/index.wxml |   33 +++++++++++++++------------------
 1 files changed, 15 insertions(+), 18 deletions(-)

diff --git a/packageDomain/pages/resourceDetails/myVideo/index.wxml b/packageDomain/pages/resourceDetails/myVideo/index.wxml
index 9f7d46c..0480a2f 100644
--- a/packageDomain/pages/resourceDetails/myVideo/index.wxml
+++ b/packageDomain/pages/resourceDetails/myVideo/index.wxml
@@ -1,19 +1,13 @@
 <view>
-  <!-- <view style="width: 100%; height: {{barHeight}}px; "></view>
-  <view class="nacigationBar" style="width: 100%; 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="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="{{videoLoaidng}}" class="video-loading">
-      <t-loading theme="circular" size="60rpx" class="wrapper" loading="{{videoLoaidng}}" />
+    <view wx:if="{{videoLoading}}" class="video-loading">
+      <t-loading theme="circular" size="60rpx" class="wrapper" loading="{{videoLoading}}" />
     </view>
-    <video show-center-play-btn="{{false}}" src="{{showData}}" bindloadedmetadata="loadedmetadata" bindtimeupdate="timeUpdate"></video>
+    <t-video id="tvd" src="{{showDataVod}}" style="width: 100%" bindvideoloaded="loadedmetadata" bindEnded="videoEnd" bindTimeupdate="timeUpdate" wx:if="{{!videoLoading}}">
+    </t-video>
   </view>
 
   <view wx:if="{{!videoChange}}" class="videoSubsidiaryBox">
@@ -29,15 +23,16 @@
         <view class="demo-section__content" wx:if="{{loading}}">
           <t-skeleton theme="paragraph" animation="gradient" loading="true"></t-skeleton>
         </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>
+        <scroll-view style="height: 700rpx" scroll-y scroll-into-view="{{toView}}">
+          <view class="wrapper" wx:if="{{!loading}}">
+            <view class="outsideDetailsName">
+              <!-- <view class="titleBox">{{parentName}}</view> -->
+              <view wx:for="{{threeLeveData}}" wx:key="index" wx:for-item="item" wx:for-index="index" bind:tap="onVideo" data-item="{{item}}" data-index="{{index}}" class="detailsName" id="{{selectedId == index ? 'activeName'+index : ''}}">
+                <view style="color: {{selectedId == index ? '#ff6c00' : '#000'}}">{{item.name}}</view>
+              </view>
             </view>
           </view>
-        </view>
-
+        </scroll-view>
       </t-tab-panel>
       <!-- 绗旇灞曠ず -->
       <t-tab-panel label="绗旇" value="1" style="{{tabPanelstyle}}">
@@ -103,4 +98,6 @@
     </view>
     <t-icon t-class="close-btn" name="close-circle" size="32" color="#fff" bind:tap="closeDialog" />
   </t-popup>
-</view>
\ No newline at end of file
+</view>
+
+<t-dialog class="prompDialog" visible="{{promptVisable}}" title="鎻愮ず" content="璇曠湅缁撴潫锛岃璐拱姝e紡璧勬簮" confirm-btn="{{ confirmBtn }}" bind:confirm="closePromapDialog" />
\ No newline at end of file

--
Gitblit v1.9.1