From 578652d6e1695779a23e5bbe5534e4f0ff285b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CDaisyWu=E2=80=9D?= <“18682150237@163.com”> Date: Fri, 3 Jan 2025 15:41:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E3=80=81=E5=B9=BF=E6=92=AD=E3=80=81=E5=85=AC?= =?UTF-8?q?=E5=91=8A=E5=85=A5=E5=8F=A3=E5=8F=8A=E5=85=AC=E5=91=8A=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=83=A8=E5=88=86=E5=B8=83=E5=B1=80UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 首页新增信息发布、广播、公告入口 2. 信息发布模块新增公告页面部分布局UI --- src/pages.json | 20 ++ src/pages/home/home.vue | 32 ++- src/pages/info-publish/info-publish.vue | 7 + src/pages/info-publish/notice-details.vue | 151 ++++++++++++ src/pages/info-publish/notice.vue | 288 ++++++++++++++++++++++ src/types/uni-pages.d.ts | 3 + 6 files changed, 494 insertions(+), 7 deletions(-) create mode 100644 src/pages/info-publish/info-publish.vue create mode 100644 src/pages/info-publish/notice-details.vue create mode 100644 src/pages/info-publish/notice.vue diff --git a/src/pages.json b/src/pages.json index 830b295..01f83bf 100644 --- a/src/pages.json +++ b/src/pages.json @@ -78,6 +78,26 @@ "disableScroll": true } }, + { + "path": "pages/info-publish/info-publish", + "type": "page" + }, + { + "path": "pages/info-publish/notice-details", + "type": "page", + "layout": "default", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "pages/info-publish/notice", + "type": "page", + "layout": "default", + "style": { + "navigationStyle": "custom" + } + }, { "path": "pages/login/login", "type": "page", diff --git a/src/pages/home/home.vue b/src/pages/home/home.vue index 72aaa46..e649d5c 100644 --- a/src/pages/home/home.vue +++ b/src/pages/home/home.vue @@ -180,21 +180,21 @@ ] }, { - title: '其他', + title: '信息发布', list: [ { - id: 0, - title: '其他中心', + id: 70, + title: '广播', icon: '/static/logo.png' }, { - id: 1, - title: '其他中心', + id: 71, + title: '公告', icon: '/static/logo.png' }, { - id: 2, - title: '其他中心', + id: 72, + title: '信息发布', icon: '/static/logo.png' } ] @@ -241,8 +241,26 @@ }) } + const toNotice = () => { + uni.navigateTo({ + url: '/pages/info-publish/notice' + }) + } + + const toInfoPublish = () => { + uni.navigateTo({ + url: '/pages/info-publish/info-publish' + }) + } + const clickItem = item => { console.log(item) + if (item.id === 71) { + toNotice() + } + if (item.id === 72) { + toInfoPublish() + } } diff --git a/src/pages/info-publish/info-publish.vue b/src/pages/info-publish/info-publish.vue new file mode 100644 index 0000000..126a836 --- /dev/null +++ b/src/pages/info-publish/info-publish.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/src/pages/info-publish/notice-details.vue b/src/pages/info-publish/notice-details.vue new file mode 100644 index 0000000..9572730 --- /dev/null +++ b/src/pages/info-publish/notice-details.vue @@ -0,0 +1,151 @@ + +{ + layout: 'default', + style: { + navigationStyle: 'custom' + } +} + + + + + + + diff --git a/src/pages/info-publish/notice.vue b/src/pages/info-publish/notice.vue new file mode 100644 index 0000000..261a1e2 --- /dev/null +++ b/src/pages/info-publish/notice.vue @@ -0,0 +1,288 @@ + +{ + layout: 'default', + style: { + navigationStyle: 'custom' + } +} + + + + + + + diff --git a/src/types/uni-pages.d.ts b/src/types/uni-pages.d.ts index afa4b3b..0482d5d 100644 --- a/src/types/uni-pages.d.ts +++ b/src/types/uni-pages.d.ts @@ -8,6 +8,9 @@ interface NavigateToOptions { "/pages/application-list/application-list" | "/pages/code/code" | "/pages/get-code/get-code" | + "/pages/info-publish/info-publish" | + "/pages/info-publish/notice-details" | + "/pages/info-publish/notice" | "/pages/login/login" | "/pages/mine/mine" | "/pages/notification/notification" |