From abe52e53bee051e3f801d001c4de58d34a3fefd7 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期三, 23 十月 2024 09:54:09 +0800
Subject: [PATCH] wj

---
 packageDomain/pages/resourceDetails/document/index.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/packageDomain/pages/resourceDetails/document/index.js b/packageDomain/pages/resourceDetails/document/index.js
index f887867..00cbcfa 100644
--- a/packageDomain/pages/resourceDetails/document/index.js
+++ b/packageDomain/pages/resourceDetails/document/index.js
@@ -286,7 +286,6 @@
   //鍒氳繘鏉ョ殑鏃跺�欒皟鐢�
   handleTeachData(item) {
     //鍥剧墖
-
     if (item.selectType == 'picture') {
       this.setData({
         showData: item.file ? app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file : app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.freeFile,
@@ -309,13 +308,14 @@
     }
     //鏂囨。绛�
     if (item.selectType == 'pdf' || item.selectType == 'document') {
+      let md5 = item.file ? item.file : item.freeFile
       app.MG.file.getPdfInfo({
-        md5: item.file
+        md5: md5
       }).then((res) => {
         let naturalResources = []
         if (res && res.totalPages) {
           for (let i = 0; i < res.totalPages; i++) {
-            const src = app.config.requestCtx + '/file/GetPdfPageImage?md5=' + item.file + '&index=' + (i + 1) + '&dpi=300'
+            const src = app.config.requestCtx + '/file/GetPdfPageImage?md5=' + md5 + '&index=' + (i + 1) + '&dpi=300'
             naturalResources.push(src)
           }
         }

--
Gitblit v1.9.1