flx:考试培训下载预览增加下载中提示

This commit is contained in:
X_Rian 2024-07-27 13:59:17 +08:00
parent e9e3ec3264
commit 04bbfdc5e6
2 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,7 @@
"appid" : "__UNI__4AA4101",
"description" : "",
"versionName" : "1.6.7",
"versionCode" : 166,
"versionCode" : 167,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@ -126,6 +126,10 @@
let that = this;
let url = val.url
console.log(val)
uni.showLoading({
icon: 'loading',
title: '下载中...'
});
uni.downloadFile({
url: url,
success: function(res) {
@ -166,6 +170,7 @@
filePath: filePath,
success: function(res) {
console.log('打开文档成功');
uni.hideLoading();
that.dataList[index].isFileOver = true;
console.log(that.dataList);
}