From d7b7435558c15789e9a2c650389cd28ce88d443b Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期二, 06 五月 2025 15:05:42 +0800
Subject: [PATCH] 资源查看判断是否购买

---
 packageDomain/pages/resourceDetails/myAudio/index.wxml |   78 ++++++++++++++++++++++-----------------
 1 files changed, 44 insertions(+), 34 deletions(-)

diff --git a/packageDomain/pages/resourceDetails/myAudio/index.wxml b/packageDomain/pages/resourceDetails/myAudio/index.wxml
index 394c188..14764ec 100644
--- a/packageDomain/pages/resourceDetails/myAudio/index.wxml
+++ b/packageDomain/pages/resourceDetails/myAudio/index.wxml
@@ -2,7 +2,7 @@
 <template is="skeleton" wx:if="{{loading}}" />
 
 <view wx:if="{{!hidden}}">
-  <view style="width: 100%; height: {{barHeight}}px; "></view>
+  <!-- <view style="width: 100%; height: {{barHeight}}px; "></view>
   <view class="nacigationBar" style="width: 100%; height: {{navBarHeight}}px;">
     <view>
       <t-icon
@@ -13,23 +13,18 @@
       />
     </view>
     <view class="navbar-title">璧勬簮璇︽儏-闊抽</view>
-  </view>
+  </view> -->
 
   <view class="audioPlayerBox">
     <view
       class="audioBackground"
-      style="background-image: url('https://jsek.bnuic.com/home/image/video-bg.png');"
+      style="background-image: url('https://jsek.bnuic.com/home/image/video-bg.png')"
     >
       <image src="/static/images/resourceDetailsMyAudio/cd.png" alt="" />
     </view>
     <!-- 瑙嗛鎾斁鐨勬寜閽� -->
     <view class="bigFunctionBox">
       <view class="functionBox">
-        <!-- 宸﹀垏鎹� -->
-        <!-- <view class="leftSwitchBox  color" bind:tap="onLeftSwitch">
-        <t-icon name="previous" size="24" />
-      </view> -->
-
         <!-- 鏆傚仠鎾斁 -->
         <view
           class="audioIconBox color"
@@ -58,10 +53,6 @@
           value="{{myAudioPos}}"
           bindchange="hanle_slider_change"
         ></slider>
-        <!-- 鍙冲垏鎹� -->
-        <!-- <view class="rightSwitchBox color" bind:tap="onRightSwitch">
-        <t-icon name="next" size="24" />
-      </view> -->
 
         <!-- 鏃堕棿 -->
         <view class="timeBox">
@@ -138,36 +129,46 @@
         style="{{tabPanelstyle}}"
         style="width: 750rpx"
       >
-        <view class="wrapper">
-          <t-collapse value="{{activeValues}}" bind:change="handleChange">
+        <scroll-view
+          style="height: 700rpx"
+          scroll-y
+          scroll-into-view="{{toView}}"
+        >
+          <view class="wrapper">
+            <!-- <t-collapse value="{{activeValues}}" bind:change="handleChange">
             <t-collapse-panel header="{{parentName}}" value="{{0}}" expandIcon>
-              <view class="outsideDetailsName">
-                <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>
+        
             </t-collapse-panel>
-          </t-collapse>
-        </view>
+          </t-collapse> -->
+            <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}}"
+                id="{{selectedId == index ? 'activeName'+index : ''}}"
+              >
+                <view
+                  style="color: {{selectedId == index ? '#ff6c00' : '#000'}} "
+                  >{{item.name}}</view
+                >
+              </view>
+            </view>
+          </view>
+        </scroll-view>
       </t-tab-panel>
       <!-- 绗旇灞曠ず -->
       <t-tab-panel label="绗旇" value="1" style="{{tabPanelstyle}}">
         <view class="wrapper">
           <t-collapse value="{{activeValues}}" bind:change="handleChange">
             <view wx:if="{{noteList.length == 0}}" class="noData">
-              <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" />
+              <!-- <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> -->
+              <empty />
             </view>
 
             <t-collapse-panel
@@ -283,3 +284,12 @@
     />
   </t-popup>
 </view>
+
+<t-dialog
+class="prompDialog"
+  visible="{{promptVisable}}"
+  title="鎻愮ず"
+  content="璇曞惉缁撴潫锛岃璐拱姝e紡璧勬簮"
+  confirm-btn="{{ confirmBtn }}"
+  bind:confirm="closePromapDialog"
+/>

--
Gitblit v1.9.1