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..8393bb6b 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; @@ -272,12 +272,12 @@ color: #333333; line-height: 22px; } -.portal-index-title{ - font-size: 16px; - font-weight: 500; - color: #00253E; - line-height: 22px; -} +// .portal-index-title{ +// font-size: 16px; +// font-weight: 500; +// color: #00253E; +// line-height: 22px; +// } .portal-index-summary{ font-size: 14px; font-weight: 400; @@ -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; @@ -449,6 +437,13 @@ } // boe-index @media screen and (max-width: 1366px){ + .portal-index-title{ + font-size: 14px; + font-weight: 500; + color: #00253E; + margin-bottom: 4px; + // line-height: 22px; +} .portal-input{ width: 260px; } @@ -592,6 +587,7 @@ line-height: 14px; } .qa-views{ + font-size: 12px !important; left: 10px; bottom: 6px; } @@ -717,7 +713,12 @@ .case-inter-orgin{ width: 47%; } - + .portal-index-title{ + font-size: 16px; + font-weight: 500; + color: #00253E; + line-height: 22px; +} .portal-input{ width: 280px; } @@ -856,6 +857,7 @@ .qa-views{ left: 18px; bottom: 18px; + font-size: 14px; } } .qa-char{ @@ -986,7 +988,12 @@ } @media screen and (max-width: 1920px) and (min-width: 1681px){ - + .portal-index-title{ + font-size: 16px; + font-weight: 500; + color: #00253E; + line-height: 22px; +} .case-inter-orgin{ width: 60%; } @@ -1138,6 +1145,7 @@ .qa-views{ left: 20px; bottom: 20px; + font-size: 14px; } } .qa-char{ @@ -1246,6 +1254,12 @@ } @media screen and (min-width: 1921px){ + .portal-index-title{ + font-size: 16px; + font-weight: 500; + color: #00253E; + line-height: 22px; +} .case-inter-orgin{ width: 60%; } @@ -1393,6 +1407,7 @@ .qa-views{ left: 20px; bottom: 20px; + font-size: 14px; } } .qa-char{ diff --git a/src/assets/styles/portal.scss b/src/assets/styles/portal.scss index 336afc6d..73501e1f 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: 10px; + 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: 12px; + width: 12px; +} + + //定义全局的核心区域宽度 .xcontent{ min-width: 1100px; diff --git a/src/components/Course/weikeContent.vue b/src/components/Course/weikeContent.vue index dc0ccf43..b406eb8a 100644 --- a/src/components/Course/weikeContent.vue +++ b/src/components/Course/weikeContent.vue @@ -737,7 +737,6 @@ this.homework.info.id=''; this.exam.content={id:'',contentType:61,sortIndex:3}; this.exam.show=1; - this.exam.content=''; this.exam.paperJson={items:[]}; this.exam.info.id=''; this.exam.info.paperContent=''; diff --git a/src/components/HomePage/answerList.vue b/src/components/HomePage/answerList.vue index 227b5e7f..0dee5e93 100644 --- a/src/components/HomePage/answerList.vue +++ b/src/components/HomePage/answerList.vue @@ -11,10 +11,10 @@

{{item.contentInfo}} - +

{{displayAll(item)}} diff --git a/src/components/HomePage/articleList.vue b/src/components/HomePage/articleList.vue index 355ece57..e6623838 100644 --- a/src/components/HomePage/articleList.vue +++ b/src/components/HomePage/articleList.vue @@ -11,10 +11,10 @@

{{item.info.title || item.contentInfo}} - +
diff --git a/src/components/HomePage/caseList.vue b/src/components/HomePage/caseList.vue index 6179217c..b3f40ec6 100644 --- a/src/components/HomePage/caseList.vue +++ b/src/components/HomePage/caseList.vue @@ -17,10 +17,10 @@ - +
diff --git a/src/components/HomePage/courseList.vue b/src/components/HomePage/courseList.vue index ade382a9..ed94fba3 100644 --- a/src/components/HomePage/courseList.vue +++ b/src/components/HomePage/courseList.vue @@ -26,10 +26,10 @@

最新一次学习时间:{{item.eventTime}}

-