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'
+ }
+}
+
+
+
+
+
+
+
+
+ {{ item.title }}
+ {{ item.content }}
+
+ {{ item.author }}
+ {{ item.date }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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'
+ }
+}
+
+
+
+
+
+
+
+
+ 公告管理
+
+
+ 公告栏
+
+
+
+
+
+ 若需发布图片、视频公告,请在web端发布
+
+
+
+
+
+
+ {{ item.title }}
+ {{ item.content }}
+
+ {{ item.author }}
+ {{ item.date }}
+
+ {{ item.status }}
+
+
+
+
+
+
+ {{ item.title }}
+ {{ item.content }}
+
+ {{ item.author }}
+ {{ item.date }}
+
+ {{ item.status }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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" |