This commit is contained in:
Pan 2019-04-25 17:40:35 +08:00
parent 3389c6c2dc
commit cb6f6f8a1e
3 changed files with 46 additions and 91 deletions

View File

@ -2,15 +2,8 @@
<div class="user-activity"> <div class="user-activity">
<div class="post"> <div class="post">
<div class="user-block"> <div class="user-block">
<img <img class="img-circle" :src="'https://wpimg.wallstcn.com/57ed425a-c71e-4201-9428-68760c0537c4.jpg'+avatarPrefix">
class="img-circle" <span class="username text-muted">Iron Man</span>
src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRDkaQO69Fro8SZLTVZQ75JH2R0T-sn5yIA_lKGwvvgQ0R0BoQtUQ"
alt="user image"
>
<span class="username text-muted">
<span>Iron Man</span>
<span class="pull-right btn-box-tool"><i class="fa fa-times" /></span>
</span>
<span class="description">Shared publicly - 7:30 PM today</span> <span class="description">Shared publicly - 7:30 PM today</span>
</div> </div>
<p> <p>
@ -37,15 +30,8 @@
</div> </div>
<div class="post"> <div class="post">
<div class="user-block"> <div class="user-block">
<img <img class="img-circle" :src="'https://wpimg.wallstcn.com/9e2a5d0a-bd5b-457f-ac8e-86554616c87b.jpg'+avatarPrefix">
class="img-circle" <span class="username text-muted">Captain American</span>
src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQMMN-8f9CQQ3MKJpboBJIqaiJ2Wus2Tf4w_vx9STtalxrY3qGJ"
alt="user image"
>
<span class="username text-muted">
<span>Captain American</span>
<span class="pull-right btn-box-tool"><i class="fa fa-times" /></span>
</span>
<span class="description">Sent you a message - yesterday</span> <span class="description">Sent you a message - yesterday</span>
</div> </div>
<p> <p>
@ -55,25 +41,31 @@
tools to help create filler text for everyone from bacon lovers tools to help create filler text for everyone from bacon lovers
to Charlie Sheen fans. to Charlie Sheen fans.
</p> </p>
<ul class="list-inline">
<li>
<span class="link-black text-sm">
<i class="el-icon-share" />
Share
</span>
</li>
<li>
<span class="link-black text-sm">
<svg-icon icon-class="like" />
Like
</span>
</li>
</ul>
</div> </div>
<div class="post"> <div class="post">
<div class="user-block"> <div class="user-block">
<img <img class="img-circle" :src="'https://wpimg.wallstcn.com/fb57f689-e1ab-443c-af12-8d4066e202e2.jpg'+avatarPrefix">
class="img-circle img-bordered-sm" <span class="username">Spider Man</span>
src="https://cdn3.iconfinder.com/data/icons/movies-3/32/daredevil-superhero-marvel-comics-mutant-avatar-512.png"
alt="User Image"
>
<span class="username">
<span>Daredevil</span>
<span class="pull-right btn-box-tool"><i class="fa fa-times" /></span>
</span>
<span class="description">Posted 4 photos - 2 days ago</span> <span class="description">Posted 4 photos - 2 days ago</span>
</div> </div>
<div class="user-images"> <div class="user-images">
<el-carousel :interval="6000" type="card" height="200px"> <el-carousel :interval="6000" type="card" height="220px">
<el-carousel-item v-for="item in carouselImages" :key="item"> <el-carousel-item v-for="item in carouselImages" :key="item">
<img :src="item" class="image"> <img :src="item+carouselPrefix" class="image">
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel>
</div> </div>
@ -89,23 +81,20 @@
</template> </template>
<script> <script>
const avatarPrefix = '?imageView2/1/w/80/h/80'
const carouselPrefix = '?imageView2/2/h/440'
export default { export default {
data() { data() {
return { return {
carouselImages: [ carouselImages: [
'https://cdn.laravue.dev/photo1.jpg', 'https://wpimg.wallstcn.com/9679ffb0-9e0b-4451-9916-e21992218054.jpg',
'https://cdn.laravue.dev/photo2.jpg', 'https://wpimg.wallstcn.com/bcce3734-0837-4b9f-9261-351ef384f75a.jpg',
'https://cdn.laravue.dev/photo3.jpg', 'https://wpimg.wallstcn.com/d1d7b033-d75e-4cd6-ae39-fcd5f1c0a7c5.jpg',
'https://cdn.laravue.dev/photo4.jpg' 'https://wpimg.wallstcn.com/50530061-851b-4ca5-9dc5-2fead928a939.jpg'
] ],
} avatarPrefix,
}, carouselPrefix
methods: {
submit() {
this.$message({
message: 'Update',
type: 'success'
})
} }
} }
} }
@ -122,10 +111,9 @@ export default {
padding: 2px 0; padding: 2px 0;
} }
img { .username{
width: 40px; font-size: 16px;
height: 40px; color: #000;
float: left;
} }
:after { :after {
@ -134,8 +122,9 @@ export default {
.img-circle { .img-circle {
border-radius: 50%; border-radius: 50%;
border: 2px solid #d2d6de; width: 40px;
padding: 2px; height: 40px;
float: left;
} }
span { span {
@ -153,6 +142,8 @@ export default {
.image { .image {
width: 100%; width: 100%;
height: 100%;
} }
.user-images { .user-images {
@ -181,21 +172,6 @@ export default {
} }
} }
.el-carousel__item h3 {
color: #475669;
font-size: 14px;
opacity: 0.75;
line-height: 200px;
margin: 0;
}
.el-carousel__item:nth-child(2n) {
background-color: #99a9bf;
}
.el-carousel__item:nth-child(2n+1) {
background-color: #d3dce6;
}
} }
.box-center { .box-center {
@ -206,8 +182,4 @@ export default {
.text-muted { .text-muted {
color: #777; color: #777;
} }
.pull-right {
float: right !important;
}
</style> </style>

View File

@ -3,6 +3,7 @@
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>About me</span> <span>About me</span>
</div> </div>
<div class="user-profile"> <div class="user-profile">
<div class="box-center"> <div class="box-center">
<pan-thumb :image="user.avatar" :height="'100px'" :width="'100px'" :hoverable="false"> <pan-thumb :image="user.avatar" :height="'100px'" :width="'100px'" :hoverable="false">
@ -15,16 +16,17 @@
<div class="user-role text-center text-muted">{{ user.role | uppercaseFirst }}</div> <div class="user-role text-center text-muted">{{ user.role | uppercaseFirst }}</div>
</div> </div>
</div> </div>
<div class="user-bio">
<div class="user-bio">
<div class="user-education user-bio-section"> <div class="user-education user-bio-section">
<div class="user-bio-section-header"><svg-icon icon-class="education" /><span>Education</span></div> <div class="user-bio-section-header"><svg-icon icon-class="education" /><span>Education</span></div>
<div class="user-bio-section-body"> <div class="user-bio-section-body">
<div class="text-muted"> <div class="text-muted">
B.S. in Computer Science from the University of Technology JS in Computer Science from the University of Technology
</div> </div>
</div> </div>
</div> </div>
<div class="user-skills user-bio-section"> <div class="user-skills user-bio-section">
<div class="user-bio-section-header"><svg-icon icon-class="skill" /><span>Skills</span></div> <div class="user-bio-section-header"><svg-icon icon-class="skill" /><span>Skills</span></div>
<div class="user-bio-section-body"> <div class="user-bio-section-body">

View File

@ -42,27 +42,8 @@ export default {
components: { UserCard, Activity, Timeline, Account }, components: { UserCard, Activity, Timeline, Account },
data() { data() {
return { return {
user: null, user: {},
social: [ activeTab: 'activity'
{
'name': 'Followers',
'count': 1235
},
{
'name': 'Following',
'count': 23512
},
{
'name': 'Friends',
'count': 7242
}
],
activeTab: 'activity',
input: {
comment1: '',
comment2: '',
reply: ''
}
} }
}, },
computed: { computed: {