flx:考试培训下载预览增加下载中提示
This commit is contained in:
parent
e9e3ec3264
commit
04bbfdc5e6
@ -3,7 +3,7 @@
|
|||||||
"appid" : "__UNI__4AA4101",
|
"appid" : "__UNI__4AA4101",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.6.7",
|
"versionName" : "1.6.7",
|
||||||
"versionCode" : 166,
|
"versionCode" : 167,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|||||||
@ -126,6 +126,10 @@
|
|||||||
let that = this;
|
let that = this;
|
||||||
let url = val.url
|
let url = val.url
|
||||||
console.log(val)
|
console.log(val)
|
||||||
|
uni.showLoading({
|
||||||
|
icon: 'loading',
|
||||||
|
title: '下载中...'
|
||||||
|
});
|
||||||
uni.downloadFile({
|
uni.downloadFile({
|
||||||
url: url,
|
url: url,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
@ -166,6 +170,7 @@
|
|||||||
filePath: filePath,
|
filePath: filePath,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
console.log('打开文档成功');
|
console.log('打开文档成功');
|
||||||
|
uni.hideLoading();
|
||||||
that.dataList[index].isFileOver = true;
|
that.dataList[index].isFileOver = true;
|
||||||
console.log(that.dataList);
|
console.log(that.dataList);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user