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('打开文档成功') }