From 5cb1449692f97356fefd1b80c0be61087d845663 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Thu, 29 Sep 2022 11:05:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=93=8D=E5=BA=94=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/ellipsis.scss | 20 + src/assets/styles/portal-index.scss | 893 ++++++++++++++++++++++++++++ src/assets/styles/portal.scss | 12 +- src/views/Index.vue | 222 ++++--- 4 files changed, 1021 insertions(+), 126 deletions(-) diff --git a/src/assets/styles/ellipsis.scss b/src/assets/styles/ellipsis.scss index f5aae67c..d27f1fb8 100644 --- a/src/assets/styles/ellipsis.scss +++ b/src/assets/styles/ellipsis.scss @@ -20,6 +20,26 @@ -webkit-box-orient: vertical; -webkit-line-clamp: 2; } +.index-one-line-ellipsis{ + display: -webkit-box; + // white-space:pre-wrap; + word-wrap: break-word; + word-break:break-all; + overflow: hidden; + text-overflow:ellipsis; + -webkit-box-orient: vertical; + -webkit-line-clamp:1; +} +.index-tive-line-ellipsis{ + display: -webkit-box; + // white-space:pre-wrap; + word-wrap: break-word; + word-break:break-all; + overflow: hidden; + text-overflow:ellipsis; + -webkit-box-orient: vertical; + -webkit-line-clamp:8; +} p{ margin: 0; } diff --git a/src/assets/styles/portal-index.scss b/src/assets/styles/portal-index.scss index d296979d..c15ebb79 100644 --- a/src/assets/styles/portal-index.scss +++ b/src/assets/styles/portal-index.scss @@ -217,3 +217,896 @@ background-color: #fff; box-shadow: 0px 8px 20px 0px rgba(0,35,114,0.1); } +// boe-index +@media screen and (max-width: 1366px){ + .xcontent{ + // width: 1000px; + // margin: 0px auto; + margin: 0px 5%; +} + .portal-content { + margin: 26px 87px 0px 87px; + // width: 100%; + .breadcrumb-nav { + margin-bottom: 15px; + font-size: 14px; + font-weight: normal; + color: #666666; + } + } + + .portal-right-box{ + width: 344px; + // height: 544px; + // overflow-y: auto; + .course-index-list{ + height: 410px; + overflow-y: auto; + } + .case-index-list{ + height: 114px; + overflow-y: auto; + } + .anking-index-list{ + height: 320px; + overflow-y: auto; + } + .qa-index-qa{ + height: 64px; + overflow-y: auto; + } + } + .boe-index{ + width: 235px; + padding: 20px; + margin-right: 20px; + margin-bottom: 20px; + .course-image-box{ + width: 200px; + height: 114px; + ::v-deep .course-image{ + height: 100% !important; + } + } + // .course-image-box :hover .el-image{ + // z-index: 999; + // position: absolute; + // top: 0px; + // left: 0px; + // width: 195px !important; + // height: 92px !important; + // } + } + .case-inter{ + left: 20px; + bottom:20px; + .interact-bar-index{ + display: none !important; + } + ::v-deep .el-avatar--small{ + width: 22px; + height: 22px; + } + } + .modules-list{ + margin-right: 20px; + } + .boe-case-index{ + width: 235px; + height: 246px; + margin-right: 20px; + .case-top{ + height: 69px; + } + .case-conent{ + width: 200px; + height: 169px; + top:20px; + left:20px; + padding: 17px; + .time-one{ + padding:3px 3px; + } + .cast-time{ + margin-bottom: 12px; + } + .case-title{ + font-size: 14px; + height: 40px; + line-height: 18px; + } + .case-text{ + height: 42px; + font-size: 12px; + line-height: 14px; + } + + } + } + .boe-qa-index{ + width: 171px; + height: 194px; + margin-right: 20px; + padding: 17px 12px 16px 12px; + .qa-center{ + height: 88px; + margin-top: 10px; + padding: 10px; + .boe-qa-sum{ + font-size: 12px; + line-height: 14px; + } + .qa-views{ + left: 10px; + bottom: 6px; + } + } + .qa-char{ + margin-top: 10px; + display: flex; + ::v-deep img{ + width: 24px; + height: 24px; + } + ::v-deep .item-author div{ + width: 30px !important; + height: 30px !important; + } + .el-avatar{ + width: 26px !important; + height: 26px !important; + } + .info-name{ + font-size: 12px; + color: #6E7B84; + margin-left: 10px; + } + } + .qa-top{ + & span:first-child{ + // height: 24px; + background: rgba($color: #387DF7, $alpha: 0.05); + padding: 3px 3px; + border-radius: 4px; + font-size: 12px; + color: #387DF7; + // margin-right: 46px; + } + span{ + font-size: 10px; + color: #6E7B84; + } + } + } + .boe-article-index{ + padding: 17px; + .article-card-left{ + width: 200px; + .article-info-index-summary{ + font-size: 12px; + font-weight: 400; + color: #6E7B84; + line-height: 14px; + } + .article-info-image-box{ + width: 200px; + height: 112px; + + } + .el-avatar{ + width: 26px !important; + height: 26px !important; + } + } + .article-card-right{ + .article-li{ + display: flex; + width: 100%; + .article-img{ + width: 144px; + height: 81px; + border-radius: 4px; + margin-right: 10px; + img{ + width: 144px; + height: 81px; + border-radius: 4px; + } + } + .article-right{ + width: 100%; + .article-info-title{ + font-size: 16px; + font-weight: 600; + color: #00253E; + // margin-bottom: 9px; + // width: 50%; + } + .article-info-summary{ + font-size: 12px; + font-weight: 400; + color: #6E7B84; + // margin-bottom: 15px; + } + .article-bottom{ + display: flex; + justify-content: space-between; + ::v-deep .uavatar{ + width: 22px; + height: 22px; + } + .el-avatar{ + width: 26px; + height: 26px; + } + } + .article-info-time{ + display: none; + } + } + + } + } + } +} + @media screen and (max-width: 1680px) and (min-width:1367px){ + .xcontent{ + // width: 1000px; + // margin: 0px auto; + margin: 0px 5%; + } + .portal-content { + // margin: 26px 87px 0px 87px; + // width: 100%; + .breadcrumb-nav { + margin-bottom: 15px; + font-size: 14px; + font-weight: normal; + color: #666666; + } + } + + .portal-right-box{ + width: 344px; + .course-index-list{ + height: 548px; + overflow-y: auto; + } + .case-index-list{ + height: 230px; + overflow-y: auto; + } + .anking-index-list{ + height: 448px; + overflow-y: auto; + } + .qa-index-qa{ + height: 145px; + overflow-y: auto; + } + } + .boe-index{ + width: 350px; + padding: 25px; + margin-right: 20px; + margin-bottom: 20px; + .course-image-box{ + width: 300px; + height: 170px; + ::v-deep .course-image{ + height: 100% !important; + } + } + } + .case-inter{ + left: 20px; + bottom:20px; + // .interact-bar-index{ + // display: none !important; + // } + ::v-deep .el-avatar--small{ + width: 32px; + height: 32px; + } + } + .modules-list{ + margin-right: 30px; + } + .boe-case-index{ + width: 350px; + height: 361px; + margin-right: 36px; + .case-top{ + height: 69px; + } + .case-conent{ + width: 290px; + height: 250px; + top:30px; + left:30px; + padding: 20px; + .time-one{ + padding:3px 10px; + } + .cast-time{ + margin-bottom: 12px; + } + .case-title{ + font-size: 16px; + height: 48px; + line-height: 24px; + margin-top: 20px; + } + .case-text{ + height: 60px; + font-size: 14px; + line-height: 20px; + margin-bottom: 30px; + } + + } + } + .boe-qa-index{ + width: 254px; + height: 276px; + margin-right: 36px; + padding: 30px; + .qa-center{ + height: 130px; + margin-top: 10px; + padding: 20px 18px; + .boe-qa-sum{ + font-size: 14px; + line-height: 22px; + margin-top: 4px; + } + .qa-views{ + left: 18px; + bottom: 18px; + } + } + .qa-char{ + margin-top: 20px; + display: flex; + ::v-deep img{ + width: 34px; + height: 34px; + } + .info-name{ + font-size: 12px; + color: #6E7B84; + margin-left: 10px; + } + } + .qa-top{ + display: flex; + justify-content: space-between; + & span:first-child{ + background: rgba($color: #387DF7, $alpha: 0.05); + padding: 3px 10px; + border-radius: 4px; + font-size: 12px; + color: #387DF7; + } + span{ + font-size: 14px; + color: #6E7B84; + } + } + } + .boe-article-index{ + padding: 30px; + .article-card-left{ + width: 250px; + .article-info-index-summary{ + font-size: 14px; + font-weight: 400; + color: #6E7B84; + line-height: 20px; + } + .article-info-image-box{ + width: 250px; + height: 162px; + + } + // .el-avatar{ + // width: 26px !important; + // height: 26px !important; + // } + } + .article-card-right{ + .article-li{ + // height: 160px; + display: flex; + width: 100%; + .article-img{ + width: 252px; + height: 142px; + border-radius: 4px; + margin-right: 10px; + img{ + width: 144px; + height: 81px; + border-radius: 4px; + } + } + .article-right{ + width: 100%; + .article-info-title{ + font-size: 16px; + font-weight: 600; + color: #00253E; + margin-bottom: 12px; + margin-top: 10px; + // width: 50%; + } + .article-info-summary{ + font-size: 14px; + font-weight: 400; + color: #6E7B84; + // margin-bottom: 15px; + } + .article-bottom{ + display: flex; + justify-content: space-between; + ::v-deep .uavatar{ + width:34px; + height: 34px; + } + .el-avatar{ + width: 34px; + height: 34px; + } + } + } + + } + } + } + } + + @media screen and (max-width: 1920px) and (min-width: 1681px){ + .xcontent{ + // width: 1000px; + // margin: 0px auto; + // margin: 0px 5%; + } + .portal-content { + margin: 26px 87px 0px 87px; + // width: 100%; + .breadcrumb-nav { + margin-bottom: 15px; + font-size: 14px; + font-weight: normal; + color: #666666; + } + } + + .portal-right-box{ + width: 410px; + .course-index-list{ + height: 548px; + overflow-y: auto; + } + .case-index-list{ + height: 262px; + overflow-y: auto; + } + .anking-index-list{ + height: 425px; + overflow-y: auto; + } + .qa-index-qa{ + height: 188px; + overflow-y: auto; + } + } + .boe-index{ + width: 410px; + padding: 30px; + margin-right: 36px; + margin-bottom: 36px; + border-radius: 8px; + .course-image-box{ + width: 350px; + height: 196x; + ::v-deep .course-image{ + height: 100% !important; + } + } + } + .case-inter{ + left: 20px; + bottom:20px; + // .interact-bar-index{ + // display: none !important; + // } + ::v-deep .el-avatar--small{ + width: 32px; + height: 32px; + } + } + .modules-list{ + margin-right: 36px; + } +.boe-case-index{ + width: 410px; + height: 396px; + margin-right: 36px; + .case-top{ + height: 120px; + } + .case-conent{ + width: 350px; + height: 274px; + top:30px; + left:30px; + padding: 30px; + .time-one{ + padding:3px 10px; + } + .cast-time{ + margin-bottom: 14px; + } + .case-title{ + font-size: 16px; + height: 48px; + line-height: 24px; + margin-top: 20px; + } + .case-text{ + height: 60px; + font-size: 14px; + line-height: 20px; + margin-bottom: 30px; + } + + } +} +.boe-qa-index{ + width: 298px; + height: 320px; + margin-right: 36px; + padding: 30px; + .qa-center{ + height: 152px; + margin-top: 10px; + padding: 20px; + .portal-index-title{ + font-weight: 600; + margin-bottom: 6px; + } + .boe-qa-sum{ + font-size: 14px; + line-height: 22px; + margin-top: 4px; + } + .qa-views{ + left: 20px; + bottom: 20px; + } + } + .qa-char{ + margin-top: 20px; + display: flex; + ::v-deep img{ + width: 34px; + height: 34px; + } + .info-name{ + font-size: 12px; + color: #6E7B84; + margin-left: 10px; + } + } + .qa-top{ + display: flex; + justify-content: space-between; + & span:first-child{ + background: rgba($color: #387DF7, $alpha: 0.05); + padding: 3px 10px; + border-radius: 4px; + font-size: 12px; + color: #387DF7; + } + span{ + font-size: 14px; + color: #6E7B84; + } + } +} +.boe-article-index{ + padding: 30px; + .article-card-left{ + width: 352px; + .article-info-index-summary{ + font-size: 14px; + font-weight: 400; + color: #6E7B84; + line-height: 20px; + } + .article-info-image-box{ + width: 352px; + height: 196px; + + } + .el-avatar{ + width: 32px !important; + height: 32px !important; + } + } + .article-card-right{ + .article-li{ + // height: 160px; + display: flex; + width: 100%; + .article-img{ + flex: 43%; + width: 252px; + height: 144px; + border-radius: 4px; + margin-right: 10px; + img{ + width: 252px; + height: 144px; + border-radius: 4px; + } + } + .article-right{ + flex: 100%; + .article-info-title{ + font-size: 16px; + font-weight: 600; + color: #00253E; + margin-bottom: 12px; + margin-top: 10px; + // width: 50%; + } + .article-info-summary{ + font-size: 14px; + font-weight: 400; + color: #6E7B84; + // margin-bottom: 15px; + } + .article-bottom{ + display: flex; + justify-content: space-between; + ::v-deep .uavatar{ + width:34px; + height: 34px; + } + .el-avatar{ + width: 34px; + height: 34px; + } + } + } + + } + } +} + } + + @media screen and (min-width: 1921px){ + .xcontent{ + // width: 1000px; + // margin: 0px auto; + margin: 0px 8%; + } + +.portal-content { + // margin: 26px 87px 0px 87px; + width: 1746px; + margin: 0 auto; + .breadcrumb-nav { + margin-bottom: 15px; + font-size: 14px; + font-weight: normal; + color: #666666; + } +} + + .portal-right-box{ + width: 410px; + .course-index-list{ + height: 548px; + overflow-y: auto; + } + .case-index-list{ + height: 262px; + overflow-y: auto; + } + .anking-index-list{ + height: 425px; + overflow-y: auto; + } + .qa-index-qa{ + height: 188px; + overflow-y: auto; + } + } + .boe-index{ + width: 410px; + padding: 30px; + margin-right: 36px; + margin-bottom: 36px; + border-radius: 8px; + .course-image-box{ + width: 350px; + height: 196x; + ::v-deep .course-image{ + height: 100% !important; + } + } + } + .case-inter{ + left: 20px; + bottom:20px; + // .interact-bar-index{ + // display: none !important; + // } + ::v-deep .el-avatar--small{ + width: 32px; + height: 32px; + } + } + .modules-list{ + margin-right: 36px; + } +.boe-case-index{ + width: 410px; + height: 396px; + margin-right: 36px; + .case-top{ + height: 120px; + } + .case-conent{ + width: 350px; + height: 274px; + top:30px; + left:30px; + padding: 30px; + .time-one{ + padding:3px 10px; + } + .cast-time{ + margin-bottom: 14px; + } + .case-title{ + font-size: 16px; + height: 48px; + line-height: 24px; + margin-top: 20px; + } + .case-text{ + height: 60px; + font-size: 14px; + line-height: 20px; + margin-bottom: 30px; + } + + } +} +.boe-qa-index{ + width: 298px; + height: 320px; + margin-right: 36px; + padding: 30px; + .qa-center{ + height: 152px; + margin-top: 10px; + padding: 20px; + .portal-index-title{ + font-weight: 600; + margin-bottom: 6px; + } + .boe-qa-sum{ + font-size: 14px; + line-height: 22px; + margin-top: 4px; + } + .qa-views{ + left: 20px; + bottom: 20px; + } + } + .qa-char{ + margin-top: 20px; + display: flex; + ::v-deep img{ + width: 34px; + height: 34px; + } + .info-name{ + font-size: 12px; + color: #6E7B84; + margin-left: 10px; + } + } + .qa-top{ + display: flex; + justify-content: space-between; + & span:first-child{ + background: rgba($color: #387DF7, $alpha: 0.05); + padding: 3px 10px; + border-radius: 4px; + font-size: 12px; + color: #387DF7; + } + span{ + font-size: 14px; + color: #6E7B84; + } + } +} +.boe-article-index{ + padding: 30px; + .article-card-left{ + width: 352px; + .article-info-index-summary{ + font-size: 14px; + font-weight: 400; + color: #6E7B84; + line-height: 20px; + } + .article-info-image-box{ + width: 352px; + height: 196px; + + } + .el-avatar{ + width: 32px !important; + height: 32px !important; + } + } + .article-card-right{ + .article-li{ + // height: 160px; + display: flex; + width: 100%; + .article-img{ + flex: 43%; + width: 252px; + height: 144px; + border-radius: 4px; + margin-right: 10px; + img{ + width: 252px; + height: 144px; + border-radius: 4px; + } + } + .article-right{ + flex: 100%; + .article-info-title{ + font-size: 16px; + font-weight: 600; + color: #00253E; + margin-bottom: 12px; + margin-top: 10px; + // width: 50%; + } + .article-info-summary{ + font-size: 14px; + font-weight: 400; + color: #6E7B84; + // margin-bottom: 15px; + } + .article-bottom{ + display: flex; + justify-content: space-between; + ::v-deep .uavatar{ + width:34px; + height: 34px; + } + .el-avatar{ + width: 34px; + height: 34px; + } + } + } + + } + } +} + } diff --git a/src/assets/styles/portal.scss b/src/assets/styles/portal.scss index 146cf49e..6cb81521 100644 --- a/src/assets/styles/portal.scss +++ b/src/assets/styles/portal.scss @@ -10,7 +10,7 @@ body { .xcontent{ // width: 1000px; // margin: 0px auto; - margin: 0px 5%; + // margin: 0px 5%; } .index-course{ // width: 25%; @@ -122,13 +122,3 @@ body { } } -.portal-content { - margin: 26px 87px 0px 87px; - // width: 100%; - .breadcrumb-nav { - margin-bottom: 15px; - font-size: 14px; - font-weight: normal; - color: #666666; - } -} diff --git a/src/views/Index.vue b/src/views/Index.vue index 4d483ca9..28e85e2b 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -57,11 +57,11 @@
课程排行榜
-
{{ca.title}}
++ {{ca.title}} +
{{ca.summary}}
{{ article.title }}
+{{ article.title }}
{{ article.summary }}
文章排行榜
-{{qa.views}}正在关注{{ qa.sysCreateTime.substring(0, 10) }}
{{ qa.title }}
-{{ qa.content }}
+{{ qa.content }}
查看详情
{{qa.authorInfo.name}}
-问答排行榜
-