From 08034968491f4c18a0b6add2ff9531630ebc106e Mon Sep 17 00:00:00 2001 From: kola-web Date: Tue, 12 Aug 2025 09:22:02 +0800 Subject: [PATCH] =?UTF-8?q?1.3bug=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/information/index.ts | 9 +++++++++ src/pages/informationDetail/index.ts | 5 +++-- src/pages/informationDetail/index.wxml | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/pages/information/index.ts b/src/pages/information/index.ts index aed003f..59c8a22 100644 --- a/src/pages/information/index.ts +++ b/src/pages/information/index.ts @@ -10,6 +10,15 @@ Page({ pages: 1, count: 1, }, + fileLabelIcon: { + pdf: 'file-label1', + doc: 'file-label2', + docx: 'file-label3', + pptx: 'file-label4', + xls: 'file-label5', + xlsx: 'file-label6', + ppt: 'file-label7', + }, }, onShow() { app.waitLogin({ type: 2 }).then(() => { diff --git a/src/pages/informationDetail/index.ts b/src/pages/informationDetail/index.ts index ddbb20c..21044e7 100644 --- a/src/pages/informationDetail/index.ts +++ b/src/pages/informationDetail/index.ts @@ -13,6 +13,7 @@ Page({ pageShow: false, empty1: false, empty2: false, + empty3: false, errorMsg: '', Timestamp: '', @@ -57,7 +58,7 @@ Page({ wx.hideShareMenu(); wx.offCopyUrl(); wx.setNavigationBarTitle({ - title: '通知详情', + title: '通知详情页', }); } this.setData({ @@ -70,7 +71,6 @@ Page({ }); }) .catch((err) => { - console.log(err); const { errorCode, errorMsg } = err.data.data; const empty1 = errorCode === '1'; const empty2 = errorCode === '2'; @@ -79,6 +79,7 @@ Page({ errorMsg, empty1, empty2, + empty3: !empty1 && !empty2, }); }); }, diff --git a/src/pages/informationDetail/index.wxml b/src/pages/informationDetail/index.wxml index 11d700b..c1559c2 100644 --- a/src/pages/informationDetail/index.wxml +++ b/src/pages/informationDetail/index.wxml @@ -39,7 +39,7 @@ 内容不存在 回首页 - + {{errorMsg}} 回首页