mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 18:06:44 +08:00
案例和问答首页样式修改
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
font-size: 24px;
|
||||
font-family: JCHEadA;
|
||||
color: #D9D9D9;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.portal-title-one{
|
||||
font-size: 24px;
|
||||
@@ -64,6 +65,14 @@
|
||||
.content-div{
|
||||
width: 100%
|
||||
}
|
||||
|
||||
.blue-one{
|
||||
color: #387DF7;
|
||||
}
|
||||
.blue-tow{
|
||||
color: #089DFF;
|
||||
}
|
||||
.blue-three{
|
||||
color: #00C6FF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ import { userAvatarText } from "@/utils/tools.js";
|
||||
line-height: 18px;
|
||||
display: flex;
|
||||
.author-text{
|
||||
color: #666666;
|
||||
color: #6E7B84;
|
||||
margin-left: 4px;
|
||||
}
|
||||
.uavatar{
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
</el-row>
|
||||
<el-row style="height:10px;background-color:#f6f7fc;" >
|
||||
</el-row>
|
||||
<el-row class="order-div" style="border: 1px solid #EBEEF5;border-bottom:none">
|
||||
<el-row class="order-div" style="border-bottom:none">
|
||||
<span class="quyer-tag">
|
||||
<el-button type="text" class="order-class" @click="searchData('views')" :class="{ actice: queryCondition.orderField == 'views' }">最热</el-button>
|
||||
<el-button type="text" class="order-class" @click="searchData('')" :class="{ actice: queryCondition.orderField == '' }">最新</el-button>
|
||||
@@ -83,13 +83,13 @@
|
||||
<div class="case-info-title">
|
||||
<div class="case-titdiv">
|
||||
<span class="case-tittext" v-html="item.title"></span>
|
||||
<div class="case-info-date">
|
||||
<div class="case-info-date portal-time">
|
||||
<i class="el-icon-time"></i>
|
||||
<time-show :time="item.sysCreateTime"></time-show>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height:40px;padding-top:5px ">
|
||||
<div style="height:58px;padding-top:14px ">
|
||||
<author :avatar="item.authorInfo.avatar" :name="item.authorInfo.name" :info="item.authorInfo.orgInfo" :sex="item.authorInfo.sex"></author>
|
||||
</div>
|
||||
<div class="keyword-text clearfix">
|
||||
@@ -112,7 +112,7 @@
|
||||
{{item.isAll?'收起':'展开'}}
|
||||
</span>
|
||||
</div>
|
||||
<div style="display: flex;justify-content: space-between;">
|
||||
<div style="display: flex;justify-content: flex-end;">
|
||||
<div style="margin:8px 0;">
|
||||
<interactBar :type="0" :shares="false" :data="item" :readonly="true"></interactBar> </div>
|
||||
</div>
|
||||
@@ -132,83 +132,33 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
<div style="width: 245px;margin-left: 5px;">
|
||||
<div style="width: 410px;">
|
||||
<div>
|
||||
<div id="fixd-box">
|
||||
<!-- <el-card class="ranking-card" >
|
||||
<div slot="header">
|
||||
<span style="font-size: 14px;font-weight: 600;color: #333333;">贡献榜</span>
|
||||
</div>
|
||||
<div style="padding-bottom:10px">
|
||||
<el-row class="ranking-title"> </el-row>
|
||||
<el-row class="ranking-title bacolor" v-for="(item, index) in ankingList" :key="index" >
|
||||
<el-col :span="6" style="height:34px">
|
||||
<img v-if="index===0" :src="`${webBaseUrl}/images/first.png`"/>
|
||||
<img v-if="index===1" :src="`${webBaseUrl}/images/second.png`"/>
|
||||
<img v-if="index===2" :src="`${webBaseUrl}/images/third.png`"/>
|
||||
<span style="margin-left: 10px" v-if="index!=2&&index!=0&&index!=1">{{index+1}}</span>
|
||||
</el-col>
|
||||
<el-col :span="15" class="title-line-ellipsis"> {{ item.sysCreateUname }}</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
</el-card> -->
|
||||
<!-- <div style="height: 10px;"></div> -->
|
||||
<el-card class="ranking-card" >
|
||||
<div slot="header">
|
||||
<span style="font-size: 14px;font-weight: 600;color: #333333;">人气榜</span>
|
||||
</div>
|
||||
<div style="padding-bottom:10px">
|
||||
<el-row class="ranking-title">
|
||||
<!-- <el-col :span="15" style="color: #333333;font-size: 14px;">名称</el-col> -->
|
||||
<!-- <el-col :offset="4" :span="5" class="center" style="color: #333333;font-size: 14px;">分数</el-col> -->
|
||||
</el-row>
|
||||
<el-row class="ranking-title bacolor" v-for="(item, index) in Popularity" :key="index" >
|
||||
<el-col :span="6" style="height:34px">
|
||||
<img v-if="index===0" :src="`${webBaseUrl}/images/first.png`"/>
|
||||
<img v-if="index===1" :src="`${webBaseUrl}/images/second.png`"/>
|
||||
<img v-if="index===2" :src="`${webBaseUrl}/images/third.png`"/>
|
||||
<div v-if="item.title">
|
||||
<span style="margin-left: 10px" v-if="index!=2&&index!=0&&index!=1">{{index+1}}</span>
|
||||
</div>
|
||||
</el-col>
|
||||
<!-- <el-tooltip :enterable="false" @click.native="jumpRouter(item)" effect="light" :content="item.title + '(' + item.authorName+ ')'" placement="bottom" :visible-arrow="false" popper-class="text-tooltip"> -->
|
||||
<div :title="item.title + '(' + item.authorName+ ')'" @click="jumpRouter(item)">
|
||||
<el-col :span="15" style="cursor: pointer;" class="title-line-ellipsis"> {{ item.title }}</el-col>
|
||||
</div>
|
||||
<!-- </el-tooltip> -->
|
||||
<!-- <el-col class="center" style="color: #FF8E00;" :span="5">{{ item.score }}</el-col> -->
|
||||
</el-row>
|
||||
</div>
|
||||
</el-card>
|
||||
<div style="height: 10px;"></div>
|
||||
<el-card class="ranking-card" >
|
||||
<div slot="header">
|
||||
<span style="font-size: 14px;font-weight: 600;color: #333333;">好评榜</span>
|
||||
</div>
|
||||
<div style="padding-bottom:10px">
|
||||
<el-row class="ranking-title">
|
||||
<!-- <el-col :span="15" style="color: #333333;font-size: 14px;">名称</el-col> -->
|
||||
<!-- <el-col :offset="4" :span="5" class="center" style="color: #333333;font-size: 14px;">分数</el-col> -->
|
||||
</el-row>
|
||||
<el-row class="ranking-title bacolor" v-for="(item, index) in Positive" :key="index" >
|
||||
<el-col :span="6" style="height:34px">
|
||||
<img v-if="index===0" :src="`${webBaseUrl}/images/first.png`"/>
|
||||
<img v-if="index===1" :src="`${webBaseUrl}/images/second.png`"/>
|
||||
<img v-if="index===2" :src="`${webBaseUrl}/images/third.png`"/>
|
||||
<div v-if="item.title">
|
||||
<span style="margin-left: 10px" v-if="index!=2&&index!=0&&index!=1">{{index+1}}</span>
|
||||
</div>
|
||||
</el-col>
|
||||
<!-- <el-tooltip :enterable="false" @click.native="jumpRouter(item)" effect="light" :content="item.title + '(' + item.authorName+ ')'" placement="bottom" :visible-arrow="false" popper-class="text-tooltip"> -->
|
||||
<div :title="item.title+ '(' + item.authorName+ ')'" @click="jumpRouter(item)">
|
||||
<el-col :span="15" style="cursor: pointer;" class="title-line-ellipsis"> {{ item.title }}</el-col>
|
||||
|
||||
</div>
|
||||
<!-- </el-tooltip> -->
|
||||
<!-- <el-col class="center" style="color: #FF8E00;" :span="5">{{ item.score }}</el-col> -->
|
||||
</el-row>
|
||||
</div>
|
||||
</el-card>
|
||||
<div class="ranking-card portal-right-box list-bg">
|
||||
<p class="portal-title-one" style="padding-bottom:12px">好评榜</p>
|
||||
<ul>
|
||||
<li style="cursor: pointer;margin-top:30px;" class="title-line-ellipsis" v-for="(item, index) in Positive" :key="index">
|
||||
<span class="portal-right-text blue-one" v-if="index==0">0{{index+1}}.</span>
|
||||
<span class="portal-right-text blue-tow" v-if="index==1">0{{index+1}}.</span>
|
||||
<span class="portal-right-text blue-three" v-if="index==2">0{{index+1}}.</span>
|
||||
<span class="portal-right-text" v-if="index>2">0{{index+1}}.</span>
|
||||
<span class="portal-title-desc" style="font-size: 14px;">{{ item.title }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div style="margin-top:26px" class="ranking-card portal-right-box list-bg1">
|
||||
<p class="portal-title-one" style="padding-bottom:12px">人气榜</p>
|
||||
<ul>
|
||||
<li style="cursor: pointer;margin-top:30px;" v-for="(item, index) in Popularity" :key="index">
|
||||
<span class="portal-right-text orange-one" v-if="index==0">0{{index+1}}.</span>
|
||||
<span class="portal-right-text orange-tow" v-if="index==1">0{{index+1}}.</span>
|
||||
<span class="portal-right-text orange-three" v-if="index==2">0{{index+1}}.</span>
|
||||
<span class="portal-right-text" v-if="index>2">0{{index+1}}.</span>
|
||||
<span class="portal-title-desc" style="font-size: 14px;">{{ item.title }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -517,7 +467,7 @@ export default {
|
||||
}
|
||||
if (scrollTop > 630) {
|
||||
document.querySelector("#fixd-box").style.cssText =
|
||||
"position: fixed;top: -250px;width:245.5px";
|
||||
"position: fixed;top: -250px;width:410px";
|
||||
} else {
|
||||
document.querySelector("#fixd-box").style.cssText = "position: static";
|
||||
}
|
||||
@@ -759,7 +709,9 @@ export default {
|
||||
display: flex;
|
||||
.case-tittext {
|
||||
font-size: 18px;
|
||||
width: 80%;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
width: 73%;
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
word-break: break-all;
|
||||
@@ -783,15 +735,16 @@ export default {
|
||||
.keyword-text {
|
||||
|
||||
div {
|
||||
padding:0px 7px;
|
||||
padding:0px 8px;
|
||||
margin-top: 5px;
|
||||
float: left;
|
||||
line-height: 22px;
|
||||
font-size: 14px;
|
||||
color: #2974D6;
|
||||
border: 1px solid #2974D6;
|
||||
border-radius: 10px;
|
||||
line-height: 24px;
|
||||
font-size: 12px;
|
||||
border-radius:2px;
|
||||
margin-right: 8px;
|
||||
color: #2C68FF;
|
||||
height: 24px;
|
||||
background: rgba(44,104,255,0.06);
|
||||
}
|
||||
}
|
||||
.searBox {
|
||||
@@ -914,21 +867,20 @@ export default {
|
||||
.quyer-tag {
|
||||
// margin-left: 10px;
|
||||
.order-class {
|
||||
color: #666666;
|
||||
width: 52px;
|
||||
// text-align: left;
|
||||
border: 1px solid #dfdfdf;
|
||||
// padding-left: 5px;
|
||||
// padding-top: 5px;
|
||||
// padding-bottom: 5px;
|
||||
// padding: 8px 20px;
|
||||
padding:0px 12px;
|
||||
color: #6E7B84;
|
||||
line-height: 32px;
|
||||
border-radius: 0px;
|
||||
.el-icon--right {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
.actice {
|
||||
background: #3e7fff;
|
||||
border: 0px;
|
||||
background: #387DF7;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
/* 分页div */
|
||||
@@ -939,19 +891,26 @@ export default {
|
||||
}
|
||||
}
|
||||
.order-div {
|
||||
padding: 12px 15px;
|
||||
padding: 34px 50px 20px 50px;
|
||||
background-color: #fff;
|
||||
// margin-bottom: ;
|
||||
}
|
||||
.data-content {
|
||||
background-color: #fff;
|
||||
padding: 5px 10px;
|
||||
padding: 5px 50px;
|
||||
::v-deep .interact-bar-btns{
|
||||
.interact-bar-btn{
|
||||
text-align: right;
|
||||
min-width: 78px !important;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
.case-list:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.case-list {
|
||||
border-bottom: 1px solid #dfdfdf;
|
||||
border-bottom: 1px solid #999;
|
||||
margin: 8px 0px;
|
||||
padding-bottom: 15px;
|
||||
padding-left: 5px;
|
||||
@@ -974,23 +933,24 @@ export default {
|
||||
.case-info-date {
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
font-size: 12px;
|
||||
height: 30px;
|
||||
font-weight: 200;
|
||||
color: #8590a6;
|
||||
font-weight: normal;
|
||||
// font-size: 12px;
|
||||
// height: 30px;
|
||||
// font-weight: 200;
|
||||
// color: #8590a6;
|
||||
i {
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.case-info-summary {
|
||||
margin-top:8px;
|
||||
margin-top:16px;
|
||||
cursor: pointer;
|
||||
margin-bottom: 5px;
|
||||
word-break: break-all;
|
||||
line-height: 25px;
|
||||
font-size: 15px;
|
||||
color: #121212;
|
||||
line-height: 24px;
|
||||
font-size: 14px;
|
||||
color: #333330;
|
||||
font-weight: 400;
|
||||
}
|
||||
.case-info-tools {
|
||||
@@ -1045,13 +1005,21 @@ export default {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.list-bg{
|
||||
border-image: linear-gradient(180deg, rgba(8, 127, 255, 1), rgba(8, 127, 255, 0)) 1 1;
|
||||
background: linear-gradient(180deg, #7bb4ed 0%, #fff 36%);
|
||||
}
|
||||
.list-bg1{
|
||||
background: linear-gradient(180deg, #f3a46f 0%, #fff 36%)
|
||||
}
|
||||
.ranking-card {
|
||||
|
||||
.center {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
.right-box {
|
||||
|
||||
line-height: 25px;
|
||||
|
||||
.ranking-title {
|
||||
|
||||
@@ -77,23 +77,23 @@
|
||||
</el-card>
|
||||
</el-row>
|
||||
</div>
|
||||
<div style="width: 410px !important;">
|
||||
<div style="width: 410px;">
|
||||
<!-- <div> -->
|
||||
<div style="padding:0" id="qa-fixd">
|
||||
<div class="portal-model-btn" @click="$refs.addQuestion.askQuestionDialog = true">提问题</div>
|
||||
<div class="portal-right-box list-bg">
|
||||
<p class="portal-title-one" style="padding-bottom:12px">贡献榜</p>
|
||||
<ul>
|
||||
<li v-for="(item, index) in ankingList" :key="index" style="margin-top:30px">
|
||||
<span class="portal-right-text orange-one" v-if="index==0" style="margin-right:94px">0{{index+1}}.</span>
|
||||
<span class="portal-right-text orange-tow" v-if="index==1" style="margin-right:94px">0{{index+1}}.</span>
|
||||
<span class="portal-right-text orange-three" v-if="index==2" style="margin-right:94px">0{{index+1}}.</span>
|
||||
<span class="portal-right-text" v-if="index>2" style="margin-right:94px">0{{index+1}}.</span>
|
||||
<span class="portal-title-desc">{{ item.sysCreateUname }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="portal-model-btn" @click="$refs.addQuestion.askQuestionDialog = true">提问题</div>
|
||||
<div class="portal-right-box list-bg">
|
||||
<p class="portal-title-one" style="padding-bottom:12px">贡献榜</p>
|
||||
<ul>
|
||||
<li v-for="(item, index) in ankingList" :key="index" style="margin-top:30px">
|
||||
<span class="portal-right-text orange-one" v-if="index==0" style="margin-right:94px">0{{index+1}}.</span>
|
||||
<span class="portal-right-text orange-tow" v-if="index==1" style="margin-right:94px">0{{index+1}}.</span>
|
||||
<span class="portal-right-text orange-three" v-if="index==2" style="margin-right:94px">0{{index+1}}.</span>
|
||||
<span class="portal-right-text" v-if="index>2" style="margin-right:94px">0{{index+1}}.</span>
|
||||
<span class="portal-title-desc">{{ item.sysCreateUname }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -245,7 +245,7 @@ export default {
|
||||
}
|
||||
}
|
||||
if(scrollTop > 400) {
|
||||
document.querySelector('#qa-fixd').style.cssText = "position: fixed;top: 0;width:410px;";
|
||||
document.querySelector('#qa-fixd').style.cssText = "position: fixed;top: 20px;width:410px;";
|
||||
} else {
|
||||
document.querySelector('#qa-fixd').style.cssText = "position: static";
|
||||
}
|
||||
@@ -472,8 +472,6 @@ export default {
|
||||
padding:0px 12px;
|
||||
color: #6E7B84;
|
||||
line-height: 32px;
|
||||
// background-color: #FFFFFF;
|
||||
// border: 1px solid #DDDDDD;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
@@ -512,7 +510,8 @@ export default {
|
||||
min-height: 382px;
|
||||
::v-deep .interact-bar-btns{
|
||||
.interact-bar-btn{
|
||||
min-width: 30px !important;
|
||||
text-align: right;
|
||||
min-width: 78px !important;
|
||||
}
|
||||
}
|
||||
.qa-list:last-child {
|
||||
@@ -520,12 +519,12 @@ export default {
|
||||
}
|
||||
.qa-list {
|
||||
// margin: 5px 0;
|
||||
padding: 20px 10px;
|
||||
padding: 33px 0 ;
|
||||
// padding-bottom: 10px;
|
||||
// padding-left: 10px;
|
||||
padding-right: 0px;
|
||||
margin-right:10px;
|
||||
border-bottom: 1px solid #E8E8E8;
|
||||
border-bottom: 1px solid #999;
|
||||
}
|
||||
.qa-info-box {
|
||||
.qa-info {
|
||||
@@ -558,7 +557,7 @@ export default {
|
||||
.qa-info-summary {
|
||||
cursor: pointer;
|
||||
line-height: 20px;
|
||||
margin: 12px 0 20px 0;
|
||||
margin: 12px 0 27px 0;
|
||||
// color: #121212;
|
||||
// height: 45px;
|
||||
// font-size: 15px;
|
||||
|
||||
Reference in New Issue
Block a user