From d3aece767827001fe980207b4151808cd16814d5 Mon Sep 17 00:00:00 2001 From: zhouwenxuan <1175765986@qq.com> Date: 星期二, 20 六月 2023 17:15:41 +0800 Subject: [PATCH] 文件预览 --- pages/tabBar/notice/detail.vue | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/pages/tabBar/notice/detail.vue b/pages/tabBar/notice/detail.vue index 08871d0..922e911 100644 --- a/pages/tabBar/notice/detail.vue +++ b/pages/tabBar/notice/detail.vue @@ -113,8 +113,6 @@ item.attachementName = this.detailData.attachment[index].attachmentName; }) } - - } this.detailData.disaster = test.disasterType == 1 ? '地震': test.disasterType == 2 ? '洪涝' : test.disasterType == 3 ? '气象' : test.disasterType == 4 ? '泥石流': test.disasterType == 5 ? '水旱': '森林草原火灾'; }, @@ -153,14 +151,10 @@ }else { fileUrl = VUE_APP_BASE_URL + item.attachement; } - console.log("urlllllllllllll",fileUrl) + console.log("urlllllllll",fileUrl) uni.downloadFile({ url: fileUrl, - header: { - - // 'tk':uni.getStorageSync('tk'), - // 'uid': uni.getStorageSync('uid'), - }, + header: {}, success:function(res){ console.log("下载res",res); var filePath = res.tempFilePath; -- Gitblit v1.9.2