From 03f2d55a04d086e49a0a0ef484b0984887615650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Thu, 25 Sep 2025 17:18:41 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=EF=BC=9A=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../image-preview/preview-detail-ios.vue | 301 ++++++++++++++++++ src/pages/index/dialog.vue | 9 +- 2 files changed, 309 insertions(+), 1 deletion(-) create mode 100644 src/components/image-preview/preview-detail-ios.vue diff --git a/src/components/image-preview/preview-detail-ios.vue b/src/components/image-preview/preview-detail-ios.vue new file mode 100644 index 00000000..837b7ed4 --- /dev/null +++ b/src/components/image-preview/preview-detail-ios.vue @@ -0,0 +1,301 @@ + + + + + diff --git a/src/pages/index/dialog.vue b/src/pages/index/dialog.vue index cccefe25..c4a56fe3 100644 --- a/src/pages/index/dialog.vue +++ b/src/pages/index/dialog.vue @@ -403,6 +403,7 @@ talkingList.value[talkingList.value.length - 1].talkingText = answerText.value; }; + const isDownloading = ref(false) const stopAnswerCallBack = ref(null); const talkItemEvents = ({ type, data, id, info = {} }) => { switch (type) { @@ -482,9 +483,11 @@ if (getPhoneEnvBool('AND')) { common.navigateTo('/pages/index/preview?fileId=' + info.docId); } else { + if(isDownloading.value) return const base_url = get_base_url('/traask/traFilePreview/'); let fileUrl = base_url + '/traask/traFilePreview/' + info.docId + userParams; const localFilePath = '_doc/pdf_view/' + info.docName + '.pdf'; + isDownloading.value = true downloadAndSaveAvatar(fileUrl, localFilePath).then((res) => { uni.openDocument({ filePath: res, @@ -492,7 +495,11 @@ success: function () { console.log('打开文档成功'); } - }); + }) + }).finally(()=>{ + setTimeout(()=>{ + isDownloading.value = false + },1000) }); // uni.downloadFile({ // url: fileUrl, From e911b2cb8212f5ff46ff80128a3f156844b57b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Thu, 25 Sep 2025 18:46:48 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=EF=BC=9A=20bugf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/pages/index/dialog.vue | 2 +- src/pages/index/preview.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.development b/.env.development index bc0a284c..7c92ace5 100644 --- a/.env.development +++ b/.env.development @@ -25,6 +25,6 @@ VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' # VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601' # VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602' -# VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605' +VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605' diff --git a/src/pages/index/dialog.vue b/src/pages/index/dialog.vue index c4a56fe3..da26415d 100644 --- a/src/pages/index/dialog.vue +++ b/src/pages/index/dialog.vue @@ -175,7 +175,7 @@ const watermarkRef = ref(); const userInfo = ref(getUserInfo()); const luimgAddr = computed(()=> unref(userInfo)?.mascotInfo?.imgAddr || '') - const userParams = '/' + (unref(userInfo)?.userName??'') + ' ' + (unref(userInfo)?.loginName??''); + const userParams = '/' + (unref(userInfo)?.userName??'') + '/' + (unref(userInfo)?.loginName??''); const questionList = ref([ // '对公小程序开户流程?', // '厅堂服务经理2025年管理办法?', diff --git a/src/pages/index/preview.vue b/src/pages/index/preview.vue index f3c8e8b2..d64637f0 100644 --- a/src/pages/index/preview.vue +++ b/src/pages/index/preview.vue @@ -37,7 +37,7 @@ export default { onLoad(params) { this.fileId = params.fileId || '' const userInfo = getUserInfo(); - this.userParams = '/' + (userInfo?.userName??'') + ' ' + (userInfo?.loginName??''); + this.userParams = '/' + (userInfo?.userName??'') + '/' + (userInfo?.loginName??''); }, onShow() { if (getPhoneEnvBool('AND')) {