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 |  213 ++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 177 insertions(+), 36 deletions(-)

diff --git a/packageDomain/pages/resourceDetails/myAudio/index.wxml b/packageDomain/pages/resourceDetails/myAudio/index.wxml
index cd941e2..14764ec 100644
--- a/packageDomain/pages/resourceDetails/myAudio/index.wxml
+++ b/packageDomain/pages/resourceDetails/myAudio/index.wxml
@@ -16,27 +16,43 @@
   </view> -->
 
   <view class="audioPlayerBox">
-    <view class="audioBackground" style="background-image: url('https://jsek.bnuic.com/home/image/video-bg.png');">
+    <view
+      class="audioBackground"
+      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="audioIconBox color" style="margin-left: 30rpx; margin-right: 10rpx">
+        <view
+          class="audioIconBox color"
+          style="margin-left: 30rpx; margin-right: 10rpx"
+        >
           <view wx:if="{{isplay}}" bind:tap="play" class="pauseCircleBox">
             <!-- <t-icon name="play-circle-stroke" size="24" /> -->
-            <image src="/static/images/resourceDetailsMyAudio/play@2x.png" mode="" />
+            <image
+              src="/static/images/resourceDetailsMyAudio/play@2x.png"
+              mode=""
+            />
           </view>
           <view wx:if="{{!isplay}}" bind:tap="stop" class="pauseCircleBox">
             <!-- <t-icon name="pause-circle-stroke" size="24" /> -->
-            <image src="/static/images/resourceDetailsMyAudio/zanting@2x.png" mode="" />
+            <image
+              src="/static/images/resourceDetailsMyAudio/zanting@2x.png"
+              mode=""
+            />
           </view>
         </view>
-        <slider style="width: 300rpx" activeColor="#FF6C00" class="mp-slider-bar" block-size="16" value="{{myAudioPos}}" bindchange="hanle_slider_change"></slider>
-
+        <slider
+          style="width: 300rpx"
+          activeColor="#FF6C00"
+          class="mp-slider-bar"
+          block-size="16"
+          value="{{myAudioPos}}"
+          bindchange="hanle_slider_change"
+        ></slider>
 
         <!-- 鏃堕棿 -->
         <view class="timeBox">
@@ -49,14 +65,46 @@
         <view class="publicBtn color">
           <view class="publicText" bind:tap="toggleDropdown">
             <view> {{"x "+speed}} </view>
-            <t-icon style="margin-top: 10rpx" wx:if="{{showDropdown}}" name="caret-up-small" size="14" bind:click="onIconTap" />
-            <t-icon style="margin-top: 10rpx" wx:else name="caret-down-small" size="14" bind:click="onIconTap" />
+            <t-icon
+              style="margin-top: 10rpx"
+              wx:if="{{showDropdown}}"
+              name="caret-up-small"
+              size="14"
+              bind:click="onIconTap"
+            />
+            <t-icon
+              style="margin-top: 10rpx"
+              wx:else
+              name="caret-down-small"
+              size="14"
+              bind:click="onIconTap"
+            />
           </view>
           <view class="multipleBox" wx:if="{{showDropdown}}">
-            <view style="margin: 10rpx 0" wx:if="{{speed != 0.5}}" bind:tap="smallSpeed">x0.5</view>
-            <view style="margin: 10rpx 0" wx:if="{{speed != 1}}" bind:tap="smallSpeeDmultiple">x1</view>
-            <view style="margin: 10rpx 0" wx:if="{{speed != 1.5}}" bind:tap="centreSpeed">x1.5</view>
-            <view style="margin: 10rpx 0" wx:if="{{speed != 2}}" bind:tap="bigSpeed">x2</view>
+            <view
+              style="margin: 10rpx 0"
+              wx:if="{{speed != 0.5}}"
+              bind:tap="smallSpeed"
+              >x0.5</view
+            >
+            <view
+              style="margin: 10rpx 0"
+              wx:if="{{speed != 1}}"
+              bind:tap="smallSpeeDmultiple"
+              >x1</view
+            >
+            <view
+              style="margin: 10rpx 0"
+              wx:if="{{speed != 1.5}}"
+              bind:tap="centreSpeed"
+              >x1.5</view
+            >
+            <view
+              style="margin: 10rpx 0"
+              wx:if="{{speed != 2}}"
+              bind:tap="bigSpeed"
+              >x2</view
+            >
           </view>
         </view>
       </view>
@@ -66,23 +114,52 @@
   <!-- 鏍囬 -->
   <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" split="{{false}}">
+    <t-tabs
+      defaultValue="{{0}}"
+      bind:change="onTabsChange"
+      bind:click="onTabsClick"
+      t-class="custom-tabs"
+      t-class-content="custom-panel"
+      split="{{false}}"
+    >
       <!-- 璧勬簮鍒楄〃 -->
-      <t-tab-panel label="璧勬簮鍒楄〃" value="0" style="{{tabPanelstyle}}" style="width: 750rpx">
-        <scroll-view style="height:700rpx" scroll-y scroll-into-view="{{toView}}">
-        <view class="wrapper">
-          <!-- <t-collapse value="{{activeValues}}" bind:change="handleChange">
+      <t-tab-panel
+        label="璧勬簮鍒楄〃"
+        value="0"
+        style="{{tabPanelstyle}}"
+        style="width: 750rpx"
+      >
+        <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>
         
             </t-collapse-panel>
           </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 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>
-        </view>
         </scroll-view>
       </t-tab-panel>
       <!-- 绗旇灞曠ず -->
@@ -94,9 +171,16 @@
               <empty />
             </view>
 
-            <t-collapse-panel value="{{item.id}}" expandIcon wx:for="{{noteList}}">
+            <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>
+                <t-image
+                  class="note-icon"
+                  src="/static/images/bookService/detail/note-icon.png"
+                ></t-image>
                 <view class="header-name">{{item.name}}</view>
               </view>
               <view>
@@ -104,9 +188,19 @@
                 <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>
+                    <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>
+                    <t-image
+                      src="/static/images/bookService/detail/deleteHover.png"
+                      class="delete"
+                      bind:tap="deleteNote"
+                      data-id="{{item.id}}"
+                    ></t-image>
                   </view>
                 </view>
               </view>
@@ -119,7 +213,10 @@
     <!-- 璁扮瑪璁� -->
     <view class="takeNotes" data-key="showCloseBtn" bind:tap="showDialog">
       <view class="takeNotesLining">
-        <image src="/static/images/resourceDetails/jibiji锛廼con@2x.png" mode="" />
+        <image
+          src="/static/images/resourceDetails/jibiji锛廼con@2x.png"
+          mode=""
+        />
         璁扮瑪璁�
       </view>
     </view>
@@ -127,28 +224,72 @@
   </view>
 
   <!-- 璁扮瑪璁板脊绐� -->
-  <t-popup visible="{{dialogKey}}" bind:visible-change="onVisibleChange" placement="center">
+  <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>
+          <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>
+          <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" />
+          <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>
+          <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-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"
+/>

--
Gitblit v1.9.1