From 5e782ca0358af8a10998b5aa131af8b744f3ff0d Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期五, 13 十二月 2024 15:58:01 +0800
Subject: [PATCH] feat:电子磅单司机下载历史

---
 pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
index 5a89d06..a453e3b 100644
--- a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
+++ b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -1110,12 +1110,12 @@
 					const result =    res.data.url;
 					let that = this;
 					const fileExtName = ".pdf";
-					const randfile = new Date().getTime() +res.data.fileExtName;
+					const randfile = new Date().getTime() +res.data.fileName;
 					const newPath = `${wx.env.USER_DATA_PATH}/${randfile}`;
 					if(result){
 								wx.downloadFile({
 								url: `${BaseUrl}${result}`,
-								filePath:newPath,
+								filePath:wx.env.USER_DATA_PATH+`/${randfile}`,
 								header: {
 									Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'),
 									CLIENT_TOC: 'Y'
@@ -1123,7 +1123,7 @@
 								success(res){
 									const filePath = res.tempFilePath;
 									wx.openDocument({
-									filePath: newPath,
+									filePath: res.filePath,
 									showMenu: true,
 									fileType: 'pdf',
 									success: function (res) {}
@@ -1146,9 +1146,9 @@
 									// 			wx.showModal({
 									// 				title: '鏂囦欢宸蹭繚瀛樺埌鎵嬫満鐩稿唽',
 									// 				content: '浣嶄簬tencent/MicroMsg/WeiXin涓� \r\n灏嗕繚瀛樼殑鏂囦欢閲嶅懡鍚嶆敼涓篬 .pdf ]鍚庣紑鍗冲彲',
-									// 				confirmColor: '#0bc183',
-									// 				confirmText: '鐭ラ亾浜�',
-									// 				showCancel: false
+									// 			confirmText: '鐭ラ亾浜�',
+									// 				s	confirmColor: '#0bc183',
+									// 				howCancel: false
 									// 			})
 									// 		},
 									// 		fail(res) {

--
Gitblit v1.9.1