From a82b8c09ca795a4b6273b03a79ba488f6cce5eb0 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 11 八月 2022 15:54:21 +0800
Subject: [PATCH] 微信一键登录
---
pages/home/home.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/pages/home/home.js b/pages/home/home.js
index c8044e1..d77d1db 100644
--- a/pages/home/home.js
+++ b/pages/home/home.js
@@ -154,11 +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: 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