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 1/4] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=8F=91=E5=B8=83=E3=80=81=E5=B9=BF=E6=92=AD=E3=80=81?= =?UTF-8?q?=E5=85=AC=E5=91=8A=E5=85=A5=E5=8F=A3=E5=8F=8A=E5=85=AC=E5=91=8A?= =?UTF-8?q?=E9=A1=B5=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" | From 07ad350e0dda39458f8a124a144f0041a40a4ccf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CDaisyWu=E2=80=9D?= <“18682150237@163.com”> Date: Tue, 7 Jan 2025 17:01:09 +0800 Subject: [PATCH 2/4] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=85=AC?= =?UTF-8?q?=E5=91=8A=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/info-publish/announce-notice.vue | 170 +++++++++++++++++++++ src/pages/info-publish/notice.vue | 3 + 2 files changed, 173 insertions(+) create mode 100644 src/pages/info-publish/announce-notice.vue diff --git a/src/pages/info-publish/announce-notice.vue b/src/pages/info-publish/announce-notice.vue new file mode 100644 index 0000000..25a3d34 --- /dev/null +++ b/src/pages/info-publish/announce-notice.vue @@ -0,0 +1,170 @@ + +{ + layout: 'default', + style: { + navigationStyle: 'custom' + } +} + + + + + + + diff --git a/src/pages/info-publish/notice.vue b/src/pages/info-publish/notice.vue index 261a1e2..ce4945c 100644 --- a/src/pages/info-publish/notice.vue +++ b/src/pages/info-publish/notice.vue @@ -137,6 +137,9 @@ // 处理发布公告按钮点击 const handlePublish = () => { // 跳转到发布公告页面 + uni.navigateTo({ + url: '/pages/info-publish/announce-notice' + }) } From d4635349a65484e54a61e12cd157eb8c85ece8d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CDaisyWu=E2=80=9D?= <“18682150237@163.com”> Date: Wed, 8 Jan 2025 17:50:29 +0800 Subject: [PATCH 3/4] =?UTF-8?q?feat:=201=E8=B0=83=E6=95=B4=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=91=BD=E5=90=8D=202=E6=96=B0=E5=A2=9E=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E5=85=AC=E5=91=8A=E9=A1=B5=E9=9D=A2UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 14 ++++++- src/pages/info-publish/announce-notice.vue | 40 ++++++++++++------- src/pages/info-publish/basic-info.vue | 0 .../{notice.vue => notice-manage.vue} | 0 4 files changed, 38 insertions(+), 16 deletions(-) create mode 100644 src/pages/info-publish/basic-info.vue rename src/pages/info-publish/{notice.vue => notice-manage.vue} (100%) diff --git a/src/pages.json b/src/pages.json index cd9bf80..de9d834 100644 --- a/src/pages.json +++ b/src/pages.json @@ -81,6 +81,18 @@ }, "needLogin": false }, + { + "path": "pages/info-publish/announce-notice", + "type": "page", + "layout": "default", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "pages/info-publish/basic-info", + "type": "page" + }, { "path": "pages/info-publish/info-publish", "type": "page" @@ -94,7 +106,7 @@ } }, { - "path": "pages/info-publish/notice", + "path": "pages/info-publish/notice-manage", "type": "page", "layout": "default", "style": { diff --git a/src/pages/info-publish/announce-notice.vue b/src/pages/info-publish/announce-notice.vue index 25a3d34..eb6aa66 100644 --- a/src/pages/info-publish/announce-notice.vue +++ b/src/pages/info-publish/announce-notice.vue @@ -41,9 +41,9 @@ -
- -
+ + + @@ -153,18 +153,28 @@ text-align: right; } - .bottom-button { - padding: 15px; - background: #ff4d4f; - } + .bottom-btns { + position: fixed; + right: 0; + bottom: 0; + left: 0; + display: flex; + padding: 10px 15px; + background-color: #fff; + box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05); - .next-step { - width: 100%; - height: 44px; - font-size: 16px; - color: #fff; - background: #4080ff; - border: none; - border-radius: 16px; + .nextstep-btn { + flex: 1; + height: 40px; + font-size: 14px; + line-height: 40px; + text-align: center; + border-radius: 4px; + } + + .nextstep-btn { + color: #fff; + background-color: #007aff; + } } diff --git a/src/pages/info-publish/basic-info.vue b/src/pages/info-publish/basic-info.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/info-publish/notice.vue b/src/pages/info-publish/notice-manage.vue similarity index 100% rename from src/pages/info-publish/notice.vue rename to src/pages/info-publish/notice-manage.vue From c91cbf4550e45eb73ff50fa64225242bd5d1c5f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CDaisyWu=E2=80=9D?= <“18682150237@163.com”> Date: Fri, 10 Jan 2025 15:51:41 +0800 Subject: [PATCH 4/4] =?UTF-8?q?feat:=201.=E6=98=9F=E5=8B=A4=EF=BC=9A?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=8F=91=E5=B8=83=E6=A8=A1=E5=9D=97=E2=80=94?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=8D=89=E7=A8=BF=E7=AE=B1=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=B8=83=E5=B1=80=202.=E6=98=9F=E5=8B=A4=EF=BC=9A=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=8F=91=E5=B8=83=E6=A8=A1=E5=9D=97=E2=80=94=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=B7=B2=E6=9C=89=E5=85=AC=E5=91=8A=E5=90=84=E4=B8=AA?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=80=BB=E8=BE=91=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/home/home.vue | 6 +- src/pages/info-publish/announce-notice.vue | 14 +- src/pages/info-publish/basic-info.vue | 349 +++++++++++++++++++++ src/pages/info-publish/drafts-list.vue | 107 +++++++ src/pages/info-publish/notice-manage.vue | 3 + 5 files changed, 468 insertions(+), 11 deletions(-) create mode 100644 src/pages/info-publish/drafts-list.vue diff --git a/src/pages/home/home.vue b/src/pages/home/home.vue index 0107281..c7f32e1 100644 --- a/src/pages/home/home.vue +++ b/src/pages/home/home.vue @@ -275,7 +275,8 @@ { id: 309, icon: 'https://file.hikmall.com/prod/image/0706b7ff1e044928872839c61be74d54.png', - name: '公告' + name: '公告', + url: '/pages/info-publish/notice-manage' }, { id: 6093, @@ -336,5 +337,8 @@ const clickItem = item => { console.log(item) + uni.navigateTo({ + url: item.url + }) } diff --git a/src/pages/info-publish/announce-notice.vue b/src/pages/info-publish/announce-notice.vue index eb6aa66..0826981 100644 --- a/src/pages/info-publish/announce-notice.vue +++ b/src/pages/info-publish/announce-notice.vue @@ -42,14 +42,13 @@ - + + diff --git a/src/pages/info-publish/drafts-list.vue b/src/pages/info-publish/drafts-list.vue new file mode 100644 index 0000000..50e6778 --- /dev/null +++ b/src/pages/info-publish/drafts-list.vue @@ -0,0 +1,107 @@ + +{ + layout: 'default', + style: { + navigationStyle: 'custom' + } +} + + + + + + + diff --git a/src/pages/info-publish/notice-manage.vue b/src/pages/info-publish/notice-manage.vue index ce4945c..b59e790 100644 --- a/src/pages/info-publish/notice-manage.vue +++ b/src/pages/info-publish/notice-manage.vue @@ -132,6 +132,9 @@ // 处理草稿箱按钮点击 const handleDraft = () => { // 跳转到草稿箱页面 + uni.navigateTo({ + url: '/pages/info-publish/drafts-list' + }) } // 处理发布公告按钮点击