From 5656daeb79c6d4d3f9fc78f981c7faf96582d2f1 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 11 八月 2022 14:24:29 +0800
Subject: [PATCH] 登录注册模块、

---
 pages/home/home.js |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/pages/home/home.js b/pages/home/home.js
index 1b765f9..d77d1db 100644
--- a/pages/home/home.js
+++ b/pages/home/home.js
@@ -141,8 +141,8 @@
         break;
       case "2":
         //鏅鸿兘鍦ㄧ嚎鍜ㄨ
-        url = ""
-        return;
+        url = "/pages/module_consult/consulthome/consulthome"
+        break;
       case "3":
         //鍦ㄧ嚎瀹堟硶瀛︿範
         
@@ -154,12 +154,15 @@
         // url = "/pages/text/text"
         let bodyUrl = e.currentTarget.dataset.url
         let fileType = e.currentTarget.dataset.filetype
+        wx.showLoading({
+          title: ' 鏂囦欢涓嬭浇涓�',
+          mask: true,
+        })
         wx.downloadFile({
-          // 绀轰緥 url锛屽苟闈炵湡瀹炲瓨鍦�
           url: bodyUrl,
           success: function (res) {
+            wx.hideLoading()
             const filePath = res.tempFilePath
-            var t = filePath.split('.')[filePath.split('.').length - 1]
             wx.openDocument({
               filePath: filePath,
               success: function (res) {

--
Gitblit v1.9.3