From 7aeb036a76980f5b3eeec589e323db4ff9f82fb9 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Fri, 29 Apr 2022 13:50:45 +0800 Subject: [PATCH] 29414 --- src/apps/AppInfotainment/newsDetail.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps/AppInfotainment/newsDetail.vue b/src/apps/AppInfotainment/newsDetail.vue index 6f8609c1..c871cb16 100644 --- a/src/apps/AppInfotainment/newsDetail.vue +++ b/src/apps/AppInfotainment/newsDetail.vue @@ -256,7 +256,7 @@ index: 0, url: file.accessUrl }] - if(file.postfix == ".png" || file.postfix == "jpg") { + if(file.postfix == ".png" || file.postfix == ".jpg") { uni.previewImage({ urls: fileList.map(v => v.url), current: file.accessUrl @@ -265,9 +265,10 @@ uni.downloadFile({ url: file.accessUrl, success: function (res) { - const filePath = res.tempFilePath + var filePath = res.tempFilePath uni.openDocument({ filePath: filePath, + showMenu: true, success: function (res) { console.log('打开文档成功') }