From ee2d7ec6772c4d9882d81289e41d1859051dbc22 Mon Sep 17 00:00:00 2001 From: ZhaoTongYao <531131322@qq.com> Date: Fri, 11 Sep 2020 16:49:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E7=A0=81=E9=94=A6=E6=B0=B4=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=94=A6=E6=B0=B4=E5=AF=BC=E8=88=AA=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subpages/understandJs/pages/index/index.js | 4 ++++ subpages/understandJs/pages/noticeDetail/noticeDetail.js | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/subpages/understandJs/pages/index/index.js b/subpages/understandJs/pages/index/index.js index 2eb502b..6bccb8a 100644 --- a/subpages/understandJs/pages/index/index.js +++ b/subpages/understandJs/pages/index/index.js @@ -85,6 +85,10 @@ Page({ wx.navigateTo({ url: `../sclerotia/sclerotia?modulecode=${e.currentTarget.dataset.modulecode}` }) + } else if (e.currentTarget.dataset.modulecode == 'notice_jsdh') { + wx.navigateTo({ + url: `../noticeDetail/noticeDetail?modulecode=${e.currentTarget.dataset.modulecode}` + }) } } }) \ No newline at end of file diff --git a/subpages/understandJs/pages/noticeDetail/noticeDetail.js b/subpages/understandJs/pages/noticeDetail/noticeDetail.js index 684cd29..5741b70 100644 --- a/subpages/understandJs/pages/noticeDetail/noticeDetail.js +++ b/subpages/understandJs/pages/noticeDetail/noticeDetail.js @@ -51,6 +51,14 @@ Page({ title: '锦水硬核' }) this.noticeDetail(options.id) + } else if(options.modulecode == 'notice_jsdh'){ + wx.setNavigationBarTitle({ + title: '锦水导航' + }) + this.setData({ + isNeedBanner: false + }) + this.noticelist() } else if(options.modulecode == 'notice_warning'){ wx.setNavigationBarTitle({ title: "锦水警事"