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