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/document/index.wxml |   69 +++++++++++++++++++++++++---------
 1 files changed, 51 insertions(+), 18 deletions(-)

diff --git a/packageDomain/pages/resourceDetails/document/index.wxml b/packageDomain/pages/resourceDetails/document/index.wxml
index 7b7b5ca..f4e3b5a 100644
--- a/packageDomain/pages/resourceDetails/document/index.wxml
+++ b/packageDomain/pages/resourceDetails/document/index.wxml
@@ -1,19 +1,13 @@
-<!-- <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="navbar-title">璧勬簮璇︽儏</view>
-</view>
-
--->
-
-<view class="titleNameBox" wx:if="{{selectType != 'webpage'}}">
+<view
+  class="titleNameBox"
+  wx:if="{{selectType != 'webpage' && learnSelectType != 'webpage'}}"
+>
   {{titleName}}
 </view>
-<!-- bind:tap="onClick" -->
-<view class="pictureBox" wx:if="{{selectType == 'picture'}}">
-  <!-- style="width: {{(newScale <= 5 ? newScale: 5) * 100}}%;" -->
+<view
+  class="pictureBox"
+  wx:if="{{selectType == 'picture' || learnSelectType == 'picture'}}"
+>
   <image
     src="{{showData}}"
     mode="widthFix"
@@ -22,7 +16,7 @@
   />
 </view>
 
-<view wx:if="{{selectType == 'zip'}}">
+<view wx:if="{{selectType == 'zip' || learnSelectType == 'zip'}}">
   <view class="zipImageBox">
     <image src="/static/images/document/zip200px.png" mode="aspectFill" />
   </view>
@@ -34,7 +28,34 @@
   </view>
 </view>
 
-<view wx:if="{{selectType == 'pdf' ||  selectType == 'document'}}">
+<view
+  wx:if="{{(selectType == 'document' || learnSelectType == 'document') && selectTypeData == 'excel'}}"
+  class="excelBox"
+>
+  <view
+    wx:for="{{naturalResources}}"
+    wx:key="key"
+    wx:for-item="item"
+    wx:for-index="index"
+    class="textBox"
+  >
+    <view
+      class="textWidth"
+      wx:for="{{item}}"
+      wx:key="key1"
+      wx:for-index="index1"
+      wx:for-item="item1"
+      >{{item1}}</view
+    >
+  </view>
+</view>
+
+<scroll-view
+  wx:if="{{(selectType == 'pdf' ||  selectType == 'document' || learnSelectType == 'pdf' ||  learnSelectType == 'document') && selectTypeData != 'excel'}}"
+  scroll-y="{{true}}"
+  bindscrolltolower="scrolltolower"
+  class="scrollBox"
+>
   <view
     wx:for="{{naturalResources}}"
     wx:key="index"
@@ -53,9 +74,12 @@
     <view class="divider">绗� {{index + 1}} 椤�</view>
   </view>
   <!-- <web-view src="{{pdfSrc}}" id="web-view-pdf" /> -->
-</view>
+</scroll-view>
 
-<web-view wx:if="{{selectType == 'webpage'}}" src="{{webpageSrc}}"></web-view>
+<web-view
+  wx:if="{{selectType == 'webpage' || learnSelectType == 'webpage'}}"
+  src="{{webpageSrc}}"
+></web-view>
 <!-- <button bind:tap="handleTap">鐐逛綅</button> -->
 
 <!-- <t-button theme="primary" size="large" variant="outline" block>鍩虹鍥剧墖棰勮</t-button> -->
@@ -71,3 +95,12 @@
   bind:delete="onDelete"
   bind:close="onClose"
 ></t-image-viewer>
+
+<t-dialog
+  class="prompDialog"
+  visible="{{promptVisable}}"
+  title="鎻愮ず"
+  content="璇曠湅缁撴潫锛岃璐拱姝e紡璧勬簮"
+  confirm-btn="{{ confirmBtn }}"
+  bind:confirm="closePromapDialog"
+/>

--
Gitblit v1.9.1