mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
头部导航样式更改
This commit is contained in:
@@ -154,24 +154,35 @@
|
||||
</div>
|
||||
</el-row>
|
||||
</div>
|
||||
<div style="width: 245px;margin-left: 5px;">
|
||||
<el-row>
|
||||
<div style="width: 410px;">
|
||||
<!-- <el-row> -->
|
||||
<div class="qa-ranking" >
|
||||
<div style="margin-bottom:15px;padding: 0">
|
||||
<div class="portal-model-btn" @click="$refs.addQuestion.askQuestionDialog = true">
|
||||
<svg-icon style="margin-right: 0;font-size: 24px;" icon-class="question-mark"></svg-icon>
|
||||
提问题
|
||||
</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 style="margin-bottom:15px;padding: 0">
|
||||
<el-button style="height: 100%;height: 37px;border-radius: 0; width: 100%;" @click="$refs.addQuestion.askQuestionDialog = true" type="primary">提问题</el-button>
|
||||
</div>
|
||||
<div :span="24" style="padding:0">
|
||||
<el-card class="ranking-card">
|
||||
<div slot="header" >
|
||||
<span style="font-size: 14px;font-weight: 600;color: #333333;">贡献排行榜</span>
|
||||
<!-- <el-radio-group v-model="anking" size="mini" style="float: right">
|
||||
<el-radio-button label="年"></el-radio-button>
|
||||
<el-radio-button label="月"></el-radio-button>
|
||||
<el-radio-button label="日"></el-radio-button>
|
||||
</el-radio-group> -->
|
||||
</div>
|
||||
<div style="padding-bottom:10px">
|
||||
|
||||
<el-row class="ranking-title bacolor" v-for="(item, index) in ankingList" :key="index" >
|
||||
<el-col :span="6" style="height:34px;" >
|
||||
<img style="margin-top: 5px;" v-if="index===0" :src="`${webBaseUrl}/images/first.png`"/>
|
||||
@@ -179,26 +190,13 @@
|
||||
<img style="margin-top: 5px;" 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-tooltip :enterable="false" @click.native="jumpRouter(item)" effect="light" :content="item.name" placement="top-start"> -->
|
||||
<el-col :span="18" class="one-line-ellipsis"> {{ item.sysCreateUname }}</el-col>
|
||||
<!-- </el-tooltip> -->
|
||||
<!-- <el-col class="center" style="color: #FF8E00;" :span="5">{{ item.score }}</el-col> -->
|
||||
</el-row>
|
||||
<!-- <el-row class="ranking-title" v-for="(item, index) in ankingList" :key="index">
|
||||
<el-col :span="4" class="center">
|
||||
<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 v-if="index != 2 && index != 0 && index != 1">{{ index + 1 }}</span>
|
||||
</el-col>
|
||||
<el-col style="color: #333333;font-size: 14px;" :span="10">{{ item.sysCreateUname }}</el-col>
|
||||
<el-col style="text-align: right;color: #333333;font-size: 14px;" :span="10">{{ item.answers }}</el-col>
|
||||
</el-row> -->
|
||||
</div>
|
||||
</el-card>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</el-row>
|
||||
<!-- </el-row> -->
|
||||
</div>
|
||||
</div>
|
||||
<addQuestion ref="addQuestion" @sure="toDetail"></addQuestion>
|
||||
@@ -307,7 +305,7 @@ export default {
|
||||
}
|
||||
if (scrollTop > 400) {
|
||||
document.querySelector(".qa-ranking").style.cssText =
|
||||
"position: fixed;top: 0;width:242.5px";
|
||||
"position: fixed;top: 0;width:410px";
|
||||
} else {
|
||||
document.querySelector(".qa-ranking").style.cssText =
|
||||
"position: static";
|
||||
|
||||
Reference in New Issue
Block a user