diff --git a/src/api/business/home/home.js b/src/api/business/home/home.js index 24edc22..83e60b2 100644 --- a/src/api/business/home/home.js +++ b/src/api/business/home/home.js @@ -14,3 +14,17 @@ export function home_noticeList(query) { params: query }) } +export function home_noticeRead(data) { + return request({ + url: '/system/business/home/noticeRead', + method: 'post', + data + }) +} +export function home_noticeCount(query) { + return request({ + url: '/system/business/home/noticeCount', + method: 'get', + params: query + }) +} diff --git a/src/lang/en/business/home/home.js b/src/lang/en/business/home/home.js index 4753b35..24335bd 100644 --- a/src/lang/en/business/home/home.js +++ b/src/lang/en/business/home/home.js @@ -5,5 +5,6 @@ export default { bzxzsy: 'Weekly New Study', ywcsy: 'Completed Study', - xttz: 'Notification' + xttz: 'Notification', + xx: 'Message' } diff --git a/src/lang/zh/business/home/home.js b/src/lang/zh/business/home/home.js index ab6d702..9cd14cf 100644 --- a/src/lang/zh/business/home/home.js +++ b/src/lang/zh/business/home/home.js @@ -5,5 +5,6 @@ export default { bzxzsy: '本周新增试验', ywcsy: '已完成试验', - xttz: '系统通知' + xttz: '系统通知', + xx: '消息' } diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index c996c4a..fca8e28 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -20,6 +20,8 @@ --> + +
{{$t('page.business.home.xx')}}
@@ -35,6 +37,7 @@ +
@@ -42,7 +45,7 @@