diff --git a/src/api/announcement.js b/src/api/announcement.js index 1b062f3..af283ff 100644 --- a/src/api/announcement.js +++ b/src/api/announcement.js @@ -23,3 +23,27 @@ export function updateAnnc(data) { data }) } + +export function addIngameAnnc(data) { + return request({ + url: '/annc/addIngameAnnc', + method: 'post', + data + }) +} + +export function getIngameAnncList(data) { + return request({ + url: '/annc/anncIngameList', + method: 'get', + data + }) +} + +export function updateIngameAnnc(data) { + return request({ + url: '/annc/updateIngameAnnc/' + data.idx, + method: 'put', + data + }) +} diff --git a/src/router/index.js b/src/router/index.js index 79b8084..3169f26 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -160,6 +160,8 @@ export const asyncRoutes = [ component: Layout, redirect: '/index', meta: { + icon: 'documentation', + title: '公告', pername: 'announcement' }, children: [ @@ -167,7 +169,13 @@ export const asyncRoutes = [ path: 'index', component: () => import('@/views/announcement/index'), name: 'Announcement', - meta: { title: '公告', icon: 'documentation', pername: 'announcement' } + meta: { title: '登录公告', pername: 'announcement' } + }, + { + path: 'ingame', + component: () => import('@/views/ingameannouncement/index'), + name: 'IngameAnnouncement', + meta: { title: '游戏内公告', pername: 'announcement' } } ] }, { diff --git a/src/views/ingameannouncement/index.vue b/src/views/ingameannouncement/index.vue new file mode 100644 index 0000000..eafc847 --- /dev/null +++ b/src/views/ingameannouncement/index.vue @@ -0,0 +1,241 @@ + + +