diff --git a/src/api/system/message.js b/src/api/system/message.js index 9ab42695..85d2ecc4 100644 --- a/src/api/system/message.js +++ b/src/api/system/message.js @@ -42,11 +42,24 @@ const isRead=function(){ const updateIsRead=function(ids){ return ajax.postJson('/xboe/sys/message/updateIsRead',ids) } + +/**把当前人所有未读消息设置为已读*/ +const readAll=function(){ + return ajax.postJson('/xboe/sys/message/readall') +} + +/**清空当前人的接收到的所有的消息*/ +const cleanAll=function(){ + return ajax.postJson('/xboe/sys/message/clearall') +} + export default{ list, del, detail, save, isRead, - updateIsRead + updateIsRead, + readAll, + cleanAll } diff --git a/src/assets/styles/portal-index.scss b/src/assets/styles/portal-index.scss index d094e37d..51d53f7a 100644 --- a/src/assets/styles/portal-index.scss +++ b/src/assets/styles/portal-index.scss @@ -244,7 +244,7 @@ font-size: 24px; font-family: JCHEadA; color: #D9D9D9; - + margin-right: 10px; img{ vertical-align: top; @@ -359,21 +359,9 @@ // padding: 2px 12px; line-height: 24px; } - /**滚动条的宽度*/ -::-webkit-scrollbar { - width: 5px; - height: 5px; -} -/*滚动条的滑块*/ -::-webkit-scrollbar-thumb { - background-color: #D8D8D8; - border-radius: 5px; -} -::-webkit-scrollbar-thumb:hover { - background: #D8D8D8; -} + @keyframes ubAddBlock { // from { // bottom: 0; diff --git a/src/assets/styles/portal.scss b/src/assets/styles/portal.scss index 336afc6d..5af99099 100644 --- a/src/assets/styles/portal.scss +++ b/src/assets/styles/portal.scss @@ -2,6 +2,29 @@ * 门户页面的一些通用样式定义在这里面 */ body {margin: 0px;padding: 0px;} + +/**滚动条的宽度*/ +::-webkit-scrollbar { + width: 8px; + height: 24px; + scrollbar-color: #009cea #f7f7f9; /* 滑块颜色 滚动条背景颜色 */ + scrollbar-width: thin; /* 滚动条宽度有三种:thin、auto、none */ +} + +/*滚动条的滑块*/ +::-webkit-scrollbar-thumb { + //background-color: #D8D8D8; + border-radius: 3px; + background-color: rgb(103, 197, 255); +} + +::-webkit-scrollbar-thumb:hover { + background: #D8D8D8; + height: 24px; + width: 12px; +} + + //定义全局的核心区域宽度 .xcontent{ min-width: 1100px; diff --git a/src/views/portal/user/Message.vue b/src/views/portal/user/Message.vue index b9515691..a675cb16 100644 --- a/src/views/portal/user/Message.vue +++ b/src/views/portal/user/Message.vue @@ -17,7 +17,7 @@ -->