flx:考试培训下载预览增加下载中提示
This commit is contained in:
parent
e9e3ec3264
commit
04bbfdc5e6
@ -3,7 +3,7 @@
|
||||
"appid" : "__UNI__4AA4101",
|
||||
"description" : "",
|
||||
"versionName" : "1.6.7",
|
||||
"versionCode" : 166,
|
||||
"versionCode" : 167,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user