From 4c8f214839337f512a1f4606b9bde9fae736f228 Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Mon, 24 Aug 2026 11:24:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=BF=E4=B8=8A=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/home.vue | 23 +++++++++++-------- .../pages/activity-detail/activity-detail.vue | 2 +- subpkg/pages/activity-list/activity-list.vue | 2 +- .../pages/activity-record/activity-record.vue | 18 ++++++++++++--- subpkg/pages/book-list/book-list.vue | 13 +++++++---- subpkg/pages/user-info/user-info.vue | 7 +++--- utils/config.js | 6 ++--- 7 files changed, 45 insertions(+), 26 deletions(-) diff --git a/pages/home/home.vue b/pages/home/home.vue index 5889454..c5d8e83 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -246,8 +246,9 @@ export default { async getScreenSetting() { const res = await FetchInitScreenSetting({ libcode: config.LIB_CODE }); - if (res.data.wechar_qr_code && res.data.wechar_qr_code.context) { - const imageUrl = this.baseUrl + '/api/fileRelevant/getImg?imgType=1&imgId=' + res.data.wechar_qr_code.context; + if (res.data.wechat_qr_code && res.data.wechat_qr_code.context) { + // const imageUrl = this.baseUrl + '/api/fileRelevant/getImg?imgType=1&imgId=' + res.data.wechat_qr_code.context; + const imageUrl = this.baseUrl + '/files/' + res.data.wechat_qr_code.context; try { const base64 = await this.urlToBase64(imageUrl); this.wecharQRCode = base64; @@ -367,15 +368,17 @@ export default { for (let i = 0; i < displayBooks.length; i++) { let item = displayBooks[i]; - if (item.imgPath) { - const imageUrl = this.baseUrl + '/api/fileRelevant/getImg?imgType=2&imgId=' + item.imgPath; + if (item.imgVxPath) { + // const imageUrl = this.baseUrl + '/api/fileRelevant/getImg?imgType=2&imgId=' + item.imgPath; + const imageUrl = this.baseUrl + '/files/' + item.imgVxPath; console.log('imageUrl:', imageUrl); - try { - const base64 = await this.urlToBase64(imageUrl); - item.base64Cover = base64; - } catch (err) { - item.base64Cover = ''; - } + item.base64Cover = imageUrl; + // try { + // const base64 = await this.urlToBase64(imageUrl); + // item.base64Cover = base64; + // } catch (err) { + // item.base64Cover = ''; + // } } else { item.base64Cover = ''; } diff --git a/subpkg/pages/activity-detail/activity-detail.vue b/subpkg/pages/activity-detail/activity-detail.vue index 511d65c..2eda40e 100644 --- a/subpkg/pages/activity-detail/activity-detail.vue +++ b/subpkg/pages/activity-detail/activity-detail.vue @@ -1,6 +1,6 @@