diff --git a/public/images/homeWu/Pending.png b/public/images/homeWu/Pending.png new file mode 100644 index 00000000..27d97faf Binary files /dev/null and b/public/images/homeWu/Pending.png differ diff --git a/public/images/homeWu/agency.png b/public/images/homeWu/agency.png index 10b3865e..6ce31d54 100644 Binary files a/public/images/homeWu/agency.png and b/public/images/homeWu/agency.png differ diff --git a/public/images/homeWu/personal-bgimg.png b/public/images/homeWu/personal-bgimg.png new file mode 100644 index 00000000..ec836495 Binary files /dev/null and b/public/images/homeWu/personal-bgimg.png differ diff --git a/src/api/system/organiza.js b/src/api/system/organiza.js index 67bf0541..0934f54d 100644 --- a/src/api/system/organiza.js +++ b/src/api/system/organiza.js @@ -21,8 +21,14 @@ const treeList = function (query) { const listByParent = function (parentId) { return ajax.get('/xboe/org/list-by-parent?parentId='+parentId); } -export default { - treeList, - listByParent + +const getSimple = function (id) { + return ajax.get('/xboe/org/simple?id='+id); +} + +export default { + treeList, + listByParent, + getSimple } diff --git a/src/assets/logo/logo-white.png b/src/assets/logo/logo-white.png new file mode 100644 index 00000000..aa37821f Binary files /dev/null and b/src/assets/logo/logo-white.png differ diff --git a/src/assets/styles/ellipsis.scss b/src/assets/styles/ellipsis.scss index d27f1fb8..e5f1dd3d 100644 --- a/src/assets/styles/ellipsis.scss +++ b/src/assets/styles/ellipsis.scss @@ -18,7 +18,7 @@ overflow: hidden; text-overflow:ellipsis; -webkit-box-orient: vertical; - -webkit-line-clamp: 2; + -webkit-line-clamp:2; } .index-one-line-ellipsis{ display: -webkit-box; diff --git a/src/assets/styles/portal-index.scss b/src/assets/styles/portal-index.scss index c0091a57..820b4522 100644 --- a/src/assets/styles/portal-index.scss +++ b/src/assets/styles/portal-index.scss @@ -3,11 +3,10 @@ //首页版心内容区域 .xindex-content { font-family: 'Noto Sans SC'; + padding-top: 20px; margin: 26px auto; } -.xindex-row{ - display: inline-block; -} + // 课程卡片 .xindex-course{ display: inline-block; @@ -20,7 +19,7 @@ box-sizing: border-box; position: relative; background-color: #ffffff; - + border-radius: 8px; .cor-praises { position: absolute; right: 50px; @@ -93,19 +92,6 @@ } } } - - // .cor-icon { - // position: absolute; - // left: 100px; - // top: 54px; - // border-radius: 50%; - // background: rgba(88, 138, 252, 0.37); - - // .el-icon-caret-right { - // font-size: 36px; - // color: #588afc; - // } - // } .course-title { margin: 16px 0 16px 0; height: 44px; @@ -155,92 +141,89 @@ } } } - .course-score-no { - text-align: right; - font-size: 14px; - color: #6B7C85; - line-height: 30px; - -moz-user-select: none; /*火狐*/ - -webkit-user-select: none; /*webkit浏览器*/ - -ms-user-select: none; /*IE10*/ - -khtml-user-select: none; /*早期浏览器*/ - user-select: none; - } - .course-score-value { - font-size: 14px; - // margin-top: 5px; - margin-left: 32px; - line-height: 30px; - color: #FA6400; - font-family: 'Arial'; - -moz-user-select: none; /*火狐*/ - -webkit-user-select: none; /*webkit浏览器*/ - -ms-user-select: none; /*IE10*/ - -khtml-user-select: none; /*早期浏览器*/ - user-select: none; - // font-size: 30px; - } - .cardmark { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: rgba(101, 101, 101, 0.8); - pointer-events: none; - border-radius: 5px; - padding: 10px; - opacity: 0; - -webkit-transition: all 1.5s; - -moz-transition: all 1.5s; - -ms-transition: all 1.5s; - -o-transition: all 1.5s; - transition: all 1.5s; - .cardmark-name { - font-size: 18px; - line-height: 30px; - font-weight: 600; - color: #fff; - } - .cardmark-info { - color: #fff; - font-size: 14px; - line-height: 20px; - } +.course-score-no { + text-align: right; + font-size: 14px; + color: #6B7C85; + line-height: 30px; + -moz-user-select: none; /*火狐*/ + -webkit-user-select: none; /*webkit浏览器*/ + -ms-user-select: none; /*IE10*/ + -khtml-user-select: none; /*早期浏览器*/ + user-select: none; +} +.course-score-value { + font-size: 14px; + // margin-top: 5px; + margin-left: 32px; + line-height: 30px; + color: #FA6400; + font-family: 'Arial'; + -moz-user-select: none; /*火狐*/ + -webkit-user-select: none; /*webkit浏览器*/ + -ms-user-select: none; /*IE10*/ + -khtml-user-select: none; /*早期浏览器*/ + user-select: none; + // font-size: 30px; +} +//以下是几种右边排行内容,因为高度需要变化不同,所以需要单独宝义 +.xindex-ranking-li{ + cursor: pointer; + line-height: 30px; + display: flex; + position: relative; + .span { + display: flex; } - -.xindex-course:hover .cardmark { - opacity: 1; +} +.xindex-ranking-li:hover .list-active { + // transition: all 0.5s; + display: block; +} + + + + +.xindex-ranking-course{ + margin: 0px; + padding: 0px; + //overflow-y: auto; +} + +.xindex-ranking-case{ + //height: 114px; + margin: 0px; + padding: 0px; + overflow-y: auto; +} + +.xindex-ranking-article{ + margin: 0px; + padding: 0px; + overflow-y: auto; +} + +.xindex-ranking-qa{ + margin: 0px; + padding: 0px; + overflow-y: auto; +} + +//每块区域 +.xindex-case { + display: inline-block; + vertical-align: top; + width: 33.33%; + padding-right: 20px; +} + +.xindex-qa { + display: inline-block; + vertical-align: top; + width: 25%; + padding-right: 20px; } -.xindex-ranking{ - min-width: 300px; - border-radius: 8px; - padding: 30px; - .xindex-ranking-title{ - font-size: 24px; - font-family: FZLTCHJW--GB1-0, FZLTCHJW--GB1; - font-weight: 600; - color: #000000; - line-height: 28px; - } - .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; - } - } .nav-bottbor{ width: 75%; height: 4px; @@ -249,17 +232,17 @@ position: absolute; top: 75%; left: 13%; - } - .current-nav { - color: #387DF7; - font-weight: 700; - >a{ - color:#387DF7; +} +.current-nav { + color: #387DF7; + font-weight: 700; + >a{ + color:#387DF7; - } - // background: #588afc; - // border-bottom: 4px solid; } + // background: #588afc; + // border-bottom: 4px solid; +} .portal-right-text{ font-size: 24px; font-family: JCHEadA; @@ -355,22 +338,21 @@ .pink-three{ color: #EE4685; } -.list-bg{ - background: url('/images/qa-box.png') no-repeat 100% / 100%; - // background: linear-gradient(180deg, #C3DEF8 0%, #FFFFFF 37%); -} -.list-bg1{ - background: url('/images/list-or.png') no-repeat 100% / 100%; -} -.list-bg2{ - background: url('/images/list-pink.png') no-repeat 100% / 100%; -} -.art-bgimg{ - background: url('/images/contribute.png') no-repeat 100% / 100%; - background-position:top; - } +// .list-bg{ +// background: url('/images/qa-box.png') no-repeat 100% / 100%; +// // background: linear-gradient(180deg, #C3DEF8 0%, #FFFFFF 37%); +// } +// .list-bg1{ +// background: url('/images/list-or.png') no-repeat 100% / 100%; +// } +// .list-bg2{ +// background: url('/images/list-pink.png') no-repeat 100% / 100%; +// } +// .art-bgimg{ +// background: url('/images/contribute.png') no-repeat top left; +// background-size: cover; +// } .portal-images-title{ - display: inline-block; vertical-align: top; padding: 2px 12px; line-height: 24px; @@ -458,10 +440,21 @@ @media screen and (max-width: 1366px){ .xindex-content{ width: 1100px; + } + .personal-panel{ + width: 300px; + height: 320px; + padding: 25px 40px; + .personal-box { + margin-left: 0px; + margin-top: 0px; + margin-bottom: 0px; + } + } //课程卡片样式 .xindex-course{ - width: 240px; + width: 255px; padding: 20px; margin-right: 20px; margin-bottom: 20px; @@ -470,53 +463,64 @@ bottom: 16px; } .course-image-box{ - width: 200px; - height: 114px; + width: 220px; + height: 123px; ::v-deep .course-image{ height: 100% !important; } } } - .xindex-ranking{ - width: 300px; + .xindex-ranking-li{ + margin-top:15px; } - .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; - } + .xindex-ranking-course{ + height: 450px; + } + + .xindex-ranking-case{ + height: 170px; + } + + .xindex-ranking-article{ + height: 375px; + } + + .xindex-ranking-qa{ + height:124px; + } + + .xindex-case { + padding-right: 20px; + } + // .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; + // } + // } + + // } + .case-inter{ + left: 20px; + bottom:20px; + .interact-bar-index{ + display: none !important; } - // .course-image-box :hover .el-image{ - // z-index: 999; - // position: absolute; - // top: 0px; - // left: 0px; - // width: 195px !important; - // height: 92px !important; - // } + ::v-deep .el-avatar--small{ + width: 22px; + height: 22px; } - .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; - } + } + .modules-list{ + margin-right: 20px; + } .boe-case-index{ - width: 235px; height: 246px; margin-right: 20px; .case-top{ @@ -548,7 +552,6 @@ } } .boe-qa-index{ - width: 171px; height: 194px; margin-right: 20px; padding: 17px 12px 16px 12px; @@ -676,9 +679,19 @@ @media screen and (max-width: 1680px) and (min-width:1367px){ .xindex-content{ width: 1366px; + } + .personal-panel{ + width: 356px; + height: 370px; + padding: 30px 45px; + .personal-box{ + // margin-left: 16px; + margin-top: 20px; + margin-bottom: 28px; + } } .xindex-course{ - width: 330px; + width: 320px; padding: 25px; margin-right: 20px; margin-bottom: 20px; @@ -694,56 +707,46 @@ } } } - .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; - } + + .xindex-ranking-li{ + margin-top:20px; + } + .xindex-ranking-course{ + height: 535px; + } + + .xindex-ranking-case{ + height: 260px; + } + + .xindex-ranking-article{ + height: 445px; + } + + .xindex-ranking-qa{ + height:175px; + } + + .xindex-case { + padding-right: 20px; + } + + .case-inter{ + left: 20px; + bottom:20px; + // .interact-bar-index{ + // display: none !important; + // } + ::v-deep .el-avatar--small{ + width: 32px; + height: 32px; } - .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; - } + } + .modules-list{ + margin-right: 10px; + } .boe-case-index{ - width: 350px; height: 361px; - margin-right: 36px; .case-top{ height: 69px; } @@ -775,7 +778,7 @@ } } .boe-qa-index{ - width: 254px; + height: 276px; margin-right: 36px; padding: 30px; @@ -895,60 +898,58 @@ @media screen and (max-width: 1920px) and (min-width: 1681px){ .xindex-content{ - width: 1640px; + width: 1690px; + } + .personal-panel{ + width: 356px; + height: 370px; + padding: 30px 45px; + .personal-box{ + margin-top: 20px; + margin-bottom: 28px; + } } .xindex-course{ - width: 410px; - padding: 30px; - margin-right: 36px; - margin-bottom: 36px; - border-radius: 8px; - .cor-praises { - right: 50px; - bottom: 26px; - } - .course-image-box{ - width: 350px; - height: 196x; - ::v-deep .course-image{ - height: 100% !important; - } - } + width: 400px; + padding: 30px; + margin-right: 30px; + margin-bottom: 30px; + border-radius: 8px; + .cor-praises { + right: 50px; + bottom: 26px; + } + .course-image-box{ + width: 340px; + height: 191x; + ::v-deep .course-image{ + height: 100% !important; + } + } + } + .xindex-ranking-li{ + margin-top:30px; + } + .xindex-ranking-course{ + height: 646px; } - .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; - } + .xindex-ranking-case{ + height: 300px; } - .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; - } - } + + .xindex-ranking-article{ + height: 455px; } + + .xindex-ranking-qa{ + height:220px; + } + + .xindex-case { + padding-right: 30px; + } + .case-inter{ left: 20px; bottom:20px; @@ -959,166 +960,164 @@ 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; - } - + .modules-list{ + margin-right: 36px; } -} -.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; - } + .boe-case-index{ + height: 396px; + .case-top{ + height: 120px; } - .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; + .case-conent{ + width: 350px; + height: 274px; + top:30px; + left:30px; + padding: 30px; + .time-one{ + padding:3px 10px; } - } - .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{ + .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{ + + 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; - // margin-bottom: 15px; - } - .article-bottom{ - display: flex; - justify-content: space-between; - ::v-deep .uavatar{ - width:34px; - height: 34px; - } - .el-avatar{ - width: 34px; - height: 34px; - } - } + 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){ @@ -1144,39 +1143,28 @@ } } - .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; - } + .xindex-ranking-li{ + margin-top:30px; } - .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; - } - } + .xindex-ranking-course{ + height: 610px; } + + .xindex-ranking-case{ + height: 260px; + } + + .xindex-ranking-article{ + height: 420px; + } + + .xindex-ranking-qa{ + height:188px; + } + .xindex-case { + padding-right: 30px; + } + .case-inter{ left: 20px; bottom:20px; @@ -1187,18 +1175,16 @@ 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{ + .modules-list{ + margin-right: 36px; + } + .boe-case-index{ + height: 396px; + .case-top{ + height: 120px; + } + .case-conent{ width: 350px; height: 274px; top:30px; @@ -1210,141 +1196,141 @@ .cast-time{ margin-bottom: 14px; } - .case-title{ - font-size: 16px; - height: 48px; - line-height: 24px; - margin-top: 20px; - } - .case-text{ + .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; + } + .boe-qa-index{ - } - .el-avatar{ - width: 32px !important; - height: 32px !important; + 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; + } + } } - .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{ + .boe-article-index{ + padding: 30px; + .article-card-left{ + width: 352px; + .article-info-index-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; - } - } + 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 2a969300..1f016b50 100644 --- a/src/assets/styles/portal.scss +++ b/src/assets/styles/portal.scss @@ -2,7 +2,11 @@ * 门户页面的一些通用样式定义在这里面 */ body {margin: 0px;padding: 0px;} - +//定义全局的核心区域宽度 +.xcontent{ + min-width: 1100px; + margin: 0px auto; +} //[文章,案例,问答]详细页面内容部分 .xpage-detail-content{ padding: 50px; @@ -24,6 +28,35 @@ body {margin: 0px;padding: 0px;} color:#3d3d3d; } } +//课程详细页面banner部分 + .xpage-coures-banner{ + width: 100%; + height: 200px; + background-image: url('../../../public/images/couresdetail.png'); + background-size: cover; + .bcourse-title{ + color: #fff; + margin-top: 20px; + font-size: 20px; + } + .bcourse-score{ + margin-left: 30px; + font-size: 16px; + } + .banner-crumbs{ + color: #fff; + margin-top:40px; + .crumbs-first{ + font-size: 16px; + } + .crumbs-line{ + margin: 0px 10px; + } + .crumbs-last{ + font-size: 18px; + } + } + } //原样式,未修改 .portal-model-btn{// 写文章,发课程等按钮 @@ -56,9 +89,33 @@ body {margin: 0px;padding: 0px;} .ranking-data{ min-height: 246px; margin: 0px; - // overflow-y: auto; + overflow-y: auto; } } + +.portal-ranking-list{ + border-radius: 8px; + padding: 30px; + // height: 544px; + // overflow-y: auto; + .ranking-title{ + font-size: 24px; + font-family: FZLTCHJW--GB1-0, FZLTCHJW--GB1; + font-weight: 600; + color: #000000; + line-height: 28px; + padding-bottom:12px + } + .ranking-data{ + min-height: 246px; + margin: 0px; + // overflow-y: auto; + } +} + + + + //排行块的背景 .ranking-bg{ background: url('/images/qa-box.png') no-repeat top left; @@ -180,18 +237,13 @@ body {margin: 0px;padding: 0px;} user-select: none; } .course-info { //图片下面的一行信息 - // margin: 5px 15px; - // padding-bottom: 10px; display: flex; justify-content: space-between; line-height: 30px; .course-info-user{ font-size: 14px; color: #6E7B84; - width: 60%; - .course-info-author{ - - } + flex: 1; .course-info-studys { margin-left: 12px; -moz-user-select: none; /*火狐*/ @@ -203,7 +255,7 @@ body {margin: 0px;padding: 0px;} } .course-info-score{ display:flex; - width: 40%; + margin-left: auto; ::v-deep .cor-praises { // position: absolute; -moz-user-select: none; /*火狐*/ @@ -250,30 +302,45 @@ body {margin: 0px;padding: 0px;} } //以下是多分辨率的控制,注意,只是一些样式的高度,宽度,大小控制,非大小控制不要在这里写 @media screen and (max-width: 1366px){ + .xcontent{width: 1100px;} .xcontent2{ width: 1100px; - padding: 20px 5px; + } + .rankimg{ + width:66px; + height:38px; + float: left; } .xcontent2-minor{ - width: 234px; + width: 260px; } .portal-ranking{ - padding: 30px 15px; + padding: 20px 15px; + .ranking-title{ + font-size: 18px; + line-height: 25px; + padding-bottom:10px + } } .course-card { padding:20px; margin-right: 20px; .course-image-box { - width: 200px; + width: 100%; height: 114px; } } } @media screen and (max-width: 1680px) and (min-width:1367px){ + .xcontent{width: 1366px;} .xcontent2{ width: 1366px; - padding: 30px 20px; + } + .rankimg{ + width:76px; + height:42px; + float: left; } .xcontent2-minor{ width: 300px; @@ -292,14 +359,18 @@ body {margin: 0px;padding: 0px;} } @media screen and (max-width: 1920px) and (min-width: 1681px){ + .xcontent{width: 1690px;} .xcontent2{ - width: 1640px; - padding: 30px 26px; + width: 1690px; + } + .rankimg{ + width:86px; + height:42px; + float: left; } .xcontent2-minor{ width: 400px; } - .portal-ranking{ padding: 30px 30px; } @@ -307,16 +378,21 @@ body {margin: 0px;padding: 0px;} padding:25px; margin-right: 25px; .course-image-box { - width: 320px; + width: 100%; height: 180px; } } } @media screen and (min-width: 1921px){ + .xcontent{width: 1880px;} .xcontent2{ width: 1880px; - padding: 30px 26px; + } + .rankimg{ + width:96px; + height:52px; + float: left; } .xcontent2-minor{ width: 400px; diff --git a/src/assets/styles/uc.scss b/src/assets/styles/uc.scss index f1db6c34..bf1479bf 100644 --- a/src/assets/styles/uc.scss +++ b/src/assets/styles/uc.scss @@ -1,6 +1,7 @@ /** * 用户中心的一些通用样式,定义在这里面 */ + .uc-center-page{ font-size: 18px; font-weight: 600; diff --git a/src/components/Course/myNote.vue b/src/components/Course/myNote.vue index 52d0dfd0..81174dce 100644 --- a/src/components/Course/myNote.vue +++ b/src/components/Course/myNote.vue @@ -14,7 +14,7 @@
@@ -66,7 +66,7 @@ {{mynoteData.openType == 1?'公开':'私密'}}

-
+
{{formatSeconds(mynoteData.playTime)}} @@ -277,11 +277,11 @@ export default { // courseName: '',// 课程名称 openType: 9,// 1表不公开 9表完全公开 }; - + }, 2000) // 是编辑新增 let event = { - key: "PublishNote",//后台的事件key + key: "PublishNote",//后台的事件key title: '编辑了笔记',//事件的标题 parameters: "",//用户自定义参数 name:value,name:value content: "编辑了笔记",//this.mynoteData.content,//事件的内容 @@ -294,7 +294,7 @@ export default { } this.$store.dispatch("userTrigger", event); } - + } }) } @@ -306,7 +306,7 @@ export default { }, } - + - \ No newline at end of file diff --git a/src/components/HomePage/homePage.vue b/src/components/HomePage/homePage.vue index 3e137228..5a4c1522 100644 --- a/src/components/HomePage/homePage.vue +++ b/src/components/HomePage/homePage.vue @@ -15,7 +15,7 @@
-
{{userData.data.name}} +
{{userData.data.name}}
{{userData.level}}
@@ -23,7 +23,7 @@
关注TA 已关注 - 去留言 + 去留言

{{userData.data.sign}}

diff --git a/src/components/Portal/authorImg.vue b/src/components/Portal/authorImg.vue index 4ba53e28..21f9dc3f 100644 --- a/src/components/Portal/authorImg.vue +++ b/src/components/Portal/authorImg.vue @@ -56,7 +56,7 @@ methods:{ toHome() { // ,query:{id:item.objId || item.id} - this.$router.push({path:'/homePage?id='+this.aid}) + this.$router.push({path:'/home/index?id='+this.aid}) } }, watch:{ diff --git a/src/components/Portal/authorInfo.vue b/src/components/Portal/authorInfo.vue index b32c94a2..5883b550 100644 --- a/src/components/Portal/authorInfo.vue +++ b/src/components/Portal/authorInfo.vue @@ -73,7 +73,7 @@ import { userAvatarText } from "@/utils/tools.js"; methods:{ toHome() { // ,query:{id:item.objId || item.id} - this.$router.push({path:'/homePage?id='+this.aid}) + this.$router.push({path:'/home/index?id='+this.aid}) } }, watch:{ diff --git a/src/components/Portal/comments.vue b/src/components/Portal/comments.vue index c5355823..e2eb33fe 100644 --- a/src/components/Portal/comments.vue +++ b/src/components/Portal/comments.vue @@ -59,7 +59,7 @@
- 发布 + 发布
@@ -793,6 +793,11 @@ diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index 5ffa877b..8729b3bc 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -1,12 +1,12 @@ diff --git a/src/router/index.js b/src/router/index.js index 14ee8387..48f678c2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -150,21 +150,21 @@ export const constantRoutes = [{ meta: { title: '我的消息', icon: 'dashboard', noCache: true, affix: false }, }, { - path: '/homePage', + path: '/home', hidden: true, component: (resolve) => require(['@/views/homepage/Index'], resolve), name: 'homePage', - redirect: '/homePage/page', + redirect: '/home/index', meta: { title: '主页', icon: 'dashboard', noCache: true, affix: false }, children: [{ - path: 'page', + path: 'index', hidden: true, component: (resolve) => require(['@/views/homepage/page'], resolve), name: 'page', meta: { title: '主页', icon: 'dashboard', noCache: true, affix: true } }, { - path: 'leavingMessage', + path: 'leaving', hidden: true, component: (resolve) => require(['@/views/homepage/leavingMessage'], resolve), name: 'leavingMessage', diff --git a/src/views/Index.vue b/src/views/Index.vue index b9264f8b..5fa976e3 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -1,11 +1,11 @@ diff --git a/src/views/portal/article/Detail.vue b/src/views/portal/article/Detail.vue index 0eec6a81..f60bcee7 100644 --- a/src/views/portal/article/Detail.vue +++ b/src/views/portal/article/Detail.vue @@ -1,9 +1,9 @@