From 08034968491f4c18a0b6add2ff9531630ebc106e Mon Sep 17 00:00:00 2001 From: kola-web Date: Tue, 12 Aug 2025 09:22:02 +0800 Subject: [PATCH 1/2] =?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}} 回首页 From da25d3933593f6547775911ee302d4b331316aca Mon Sep 17 00:00:00 2001 From: kola-web Date: Wed, 13 Aug 2025 17:49:55 +0800 Subject: [PATCH 2/2] =?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 --- project.config.json | 2 +- src/app.ts | 12 ++++++------ src/pages/home/index.ts | 1 + src/pages/information/index.ts | 1 + 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/project.config.json b/project.config.json index 4a3111e..5634447 100644 --- a/project.config.json +++ b/project.config.json @@ -71,5 +71,5 @@ } ] }, - "appid": "wxf9ce8010f1ad24aa" + "appid": "wx71ac9c27c3c3e3f4" } \ No newline at end of file diff --git a/src/app.ts b/src/app.ts index 0526c95..f293c9d 100644 --- a/src/app.ts +++ b/src/app.ts @@ -16,15 +16,15 @@ App({ // 测试号 wx2b0bb13edf717c1d // dev // appid:wxf9ce8010f1ad24aa - url: 'https://m.xd.hbraas.com', - upFileUrl: 'https://m.xd.hbraas.com/', - imageUrl: 'https://m.xd.hbraas.com/xd/', + // url: 'https://m.xd.hbraas.com', + // upFileUrl: 'https://m.xd.hbraas.com/', + // imageUrl: 'https://m.xd.hbraas.com/xd/', // pro // appid:wx71ac9c27c3c3e3f4 - // url: 'https://m.xd.hbsaas.com', - // upFileUrl: 'https://m.xd.hbsaas.com/', - // imageUrl: 'https://m.xd.hbsaas.com/api/xd/', + url: 'https://m.xd.hbsaas.com', + upFileUrl: 'https://m.xd.hbsaas.com/', + imageUrl: 'https://m.xd.hbsaas.com/api/xd/', loginState: '', isLogin: 0, diff --git a/src/pages/home/index.ts b/src/pages/home/index.ts index 3bf9056..99bb6b2 100644 --- a/src/pages/home/index.ts +++ b/src/pages/home/index.ts @@ -234,6 +234,7 @@ Page({ const { id, index } = e.currentTarget.dataset; const params = this.data.list[index]; if (params.ContentType === '5' && params.FileList[0]) { + app.mpBehavior({ PositionId: '1', OperateType: '1', OperateId: id as string }); this.handleFile(params.FileList[0]); } else { wx.navigateTo({ diff --git a/src/pages/information/index.ts b/src/pages/information/index.ts index 59c8a22..ec3b305 100644 --- a/src/pages/information/index.ts +++ b/src/pages/information/index.ts @@ -60,6 +60,7 @@ Page({ const { id, index } = e.currentTarget.dataset; const params = this.data.list[index]; if (params.ContentType === '5' && params.FileList[0]) { + app.mpBehavior({ PositionId: '1', OperateType: '1', OperateId: id as string }); this.handleFile(params.FileList[0]); } else { wx.navigateTo({