From e5f45ec9c2eabaa3e4241caad2d49c3629eaf0c8 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期一, 30 九月 2024 14:18:40 +0800
Subject: [PATCH] loading

---
 packageDomain/pages/resourceDetails/document/index.js |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/packageDomain/pages/resourceDetails/document/index.js b/packageDomain/pages/resourceDetails/document/index.js
index 13930df..c33b79b 100644
--- a/packageDomain/pages/resourceDetails/document/index.js
+++ b/packageDomain/pages/resourceDetails/document/index.js
@@ -166,6 +166,9 @@
   },
 
   resourceDetailsData() {
+    wx.showLoading({
+      title: '姝e湪鍔犺浇...',
+    });
     let query = {
       path: '*',
       queryType: '*',
@@ -283,23 +286,26 @@
   //鍒氳繘鏉ョ殑鏃跺�欒皟鐢�
   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,
       })
-      console.log(this.data.showData, 'showData');
+      wx.hideLoading();
     }
     // 涓嬭浇鏂囦欢zip
     if (item.selectType == 'zip') {
       this.setData({
         zipData: item
       })
+      wx.hideLoading();
     }
     //缃戦〉
     if (item.selectType == 'webpage') {
       this.setData({
         webpageSrc: item.jsek_link
       })
+      wx.hideLoading();
     }
     //鏂囨。绛�
     if (item.selectType == 'pdf' || item.selectType == 'document') {
@@ -316,9 +322,10 @@
         this.setData({
           naturalResources
         })
-        console.log('ppt', this.data.naturalResources);
+        wx.hideLoading();
       })
     }
+
   },
 
   handleTap: function () {

--
Gitblit v1.9.1