mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
调整个人中心头部内容的适应性显示
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="uc-header xcontent">
|
||||
<div class="header-box" >
|
||||
<div class="uc-header">
|
||||
<div class="uc-header-box" >
|
||||
<div class="personalData">
|
||||
<!-- <div >
|
||||
<img src="../../../public/images/Avatarwoman.png" alt="">
|
||||
@@ -48,7 +48,7 @@
|
||||
<div class="learning-an"><span>{{uinfo.monthTotal}}</span>h</div>
|
||||
</div>
|
||||
<div class="learning-border" ></div>
|
||||
<div class="learning-info" style="margin-left:22px">
|
||||
<div class="learning-info">
|
||||
<div class="learning-qus">当月学习天数</div>
|
||||
<div class="learning-an"><span>{{uinfo.monthDay}}</span>天</div>
|
||||
</div>
|
||||
@@ -57,11 +57,13 @@
|
||||
<div class="learning-an"><span>{{uinfo.monthTotalDay}}</span>天</div>
|
||||
</div>
|
||||
<div class="learning-border" ></div>
|
||||
<div class="learning-info" style="margin-left:22px">
|
||||
<div class="learning-info">
|
||||
<div class="learning-qus">我的U币(累计)</div>
|
||||
<div class="learning-an"><span>{{uinfo.uCurrency}}</span></div>
|
||||
</div>
|
||||
<div @click="jumrank" class="list"> BOE 排行榜 >></div>
|
||||
<div class="learning-info">
|
||||
<div @click="jumrank" style="cursor: pointer;" class="ranking-link"> BOE 排行榜 >></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -152,19 +154,19 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js";
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.list{
|
||||
.ranking-link{
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.learningData{
|
||||
width: 50%;
|
||||
padding-top: 70px;
|
||||
box-sizing: border-box;
|
||||
margin-left:auto;
|
||||
.learning-info{
|
||||
float: left;
|
||||
margin-left: 20px;
|
||||
margin-right: 22px;
|
||||
.learning-qus{
|
||||
font-size: 14px;
|
||||
@@ -215,10 +217,8 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js";
|
||||
|
||||
}
|
||||
.personalData{
|
||||
|
||||
flex: 1;
|
||||
padding-top: 40px;
|
||||
padding-left: 115px;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
.uesr-avaer{
|
||||
@@ -280,21 +280,21 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js";
|
||||
}
|
||||
}
|
||||
|
||||
.header-box{
|
||||
.uc-header-box{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
height: 210px;
|
||||
background: url('../../../public/images/userbgimg.png') no-repeat;
|
||||
background-size:445px 210px;
|
||||
background-position: right 0;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.uc-header{
|
||||
height: 210px;
|
||||
margin: 0 auto;
|
||||
height: 210px;
|
||||
|
||||
background: #fff;
|
||||
// background-color: #c9c2c2;
|
||||
background-color: #fff;
|
||||
background-image: url('../../../public/images/userbgimg.png') ;
|
||||
background-repeat: no-repeat;
|
||||
background-size:445px 210px;
|
||||
background-position: right 0;
|
||||
}
|
||||
.upicon{
|
||||
text-align: center;
|
||||
@@ -336,8 +336,8 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js";
|
||||
padding-top: 10px;
|
||||
color: #aa0000;
|
||||
}
|
||||
}
|
||||
.uavatar{
|
||||
}
|
||||
.uavatar{
|
||||
border-radius: 50%;
|
||||
// border: 1px solid #73adfe;
|
||||
// color: #73adfe;
|
||||
@@ -349,13 +349,139 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js";
|
||||
border-radius: 50%;
|
||||
// background: #d9e9ff;
|
||||
div{
|
||||
border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
img{
|
||||
border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1366px){
|
||||
.uc-header-box {
|
||||
width: 1160px;
|
||||
}
|
||||
.learningData{
|
||||
margin-left:auto;
|
||||
.learning-info{
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
.learning-qus{
|
||||
font-size: 12px;
|
||||
}
|
||||
.learning-an{
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.personalData{
|
||||
.uesr-avaer{
|
||||
margin-right: 10px;
|
||||
}
|
||||
.user-content{
|
||||
.content-top{
|
||||
.grade{
|
||||
div{
|
||||
width: 48px;
|
||||
}
|
||||
span{
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
h6{
|
||||
font-size: 26px;
|
||||
}
|
||||
span{
|
||||
font-size: 14px;
|
||||
margin-left: 5px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.editbutt{
|
||||
width: 80px;
|
||||
height: 25px;
|
||||
line-height: 5px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.content-bottom{
|
||||
.medalbutt{
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1680px) and (min-width:1367px){
|
||||
.uc-header-box {
|
||||
width: 1300px;
|
||||
}
|
||||
.learningData{
|
||||
margin-left:auto;
|
||||
.learning-info{
|
||||
margin-left: 10px;
|
||||
margin-right: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.personalData{
|
||||
.uesr-avaer{
|
||||
margin-right: 10px;
|
||||
}
|
||||
.user-content{
|
||||
.content-top{
|
||||
.grade{
|
||||
div{
|
||||
width: 48px;
|
||||
}
|
||||
span{
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
h6{
|
||||
font-size: 26px;
|
||||
}
|
||||
span{
|
||||
font-size: 14px;
|
||||
margin-left: 5px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
.editbutt{
|
||||
width: 80px;
|
||||
height: 25px;
|
||||
line-height: 5px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1920px) and (min-width: 1681px){
|
||||
.uc-header-box {
|
||||
width: 1600px;
|
||||
}
|
||||
.learningData{
|
||||
margin-left:auto;
|
||||
.learning-info{
|
||||
margin-left: 20px;
|
||||
margin-right: 22px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1921px){
|
||||
.uc-header-box {
|
||||
width: 1800px;
|
||||
}
|
||||
.learningData{
|
||||
margin-left:auto;
|
||||
.learning-info{
|
||||
margin-left: 30px;
|
||||
margin-right: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user