This commit is contained in:
zyronon 2019-07-24 23:04:39 +08:00
parent 1b3b565148
commit be60718f43
5 changed files with 26 additions and 38 deletions

View File

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

View File

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

View File

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@ -9,19 +9,19 @@
</div> </div>
<div class="toolbar mt20p"> <div class="toolbar mt20p">
<div> <div>
<img src="../../assets/img/icon/person.svg" alt=""> <img src="../../assets/img/icon/msg-icon1.png" alt="">
<span>粉丝</span> <span>粉丝</span>
</div> </div>
<div> <div>
<img src="../../assets/img/icon/love.svg" alt=""> <img src="../../assets/img/icon/msg-icon2.png" alt="">
<span></span> <span></span>
</div> </div>
<div> <div>
<img src="../../assets/img/icon/person.svg" alt=""> <img src="../../assets/img/icon/msg-icon3.png" alt="">
<span>@我的</span> <span>@我的</span>
</div> </div>
<div> <div>
<img src="../../assets/img/icon/message.svg" alt=""> <img src="../../assets/img/icon/msg-icon4.png" alt="">
<span>评论</span> <span>评论</span>
</div> </div>
</div> </div>
@ -65,12 +65,12 @@
</div> </div>
<p class="tac">无更多消息</p> <p class="tac">无更多消息</p>
</div> </div>
<Footer v-bind:init-tab="4" ref="footer" :style="{'top':height-footerHeight+'px'}"/> <Footer v-bind:init-tab="4" ref="footer"/>
</div> </div>
</template> </template>
<script> <script>
import Footer from '../../components/Footer'; import Footer from '../../components/Footer'
export default { export default {
name: "Message", name: "Message",
@ -79,20 +79,16 @@
}, },
data() { data() {
return { return {
height:0, height: 0,
width:0, width: 0,
footerHeight:0 footerHeight: 0
} }
}, },
created() { created() {
self = this; self = this
this.height = document.body.clientHeight;
this.width = document.body.clientWidth;
}, },
mounted() { mounted() {
let footer = this.$refs.footer.$el;
this.footerHeight = footer.offsetHeight;
} }
} }
</script> </script>
@ -102,9 +98,11 @@
background: #2e3244; background: #2e3244;
color: #b8b9c1; color: #b8b9c1;
height: 100%; height: 100%;
.header { .header {
.title { .title {
position: relative; position: relative;
span { span {
position: absolute; position: absolute;
right: 10px; right: 10px;
@ -112,65 +110,55 @@
} }
} }
} }
.toolbar { .toolbar {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
div { div {
text-align: center; text-align: center;
&:nth-child(1) {
img { img {
background: rgb(79, 136, 251);
}
}
&:nth-child(2) {
img {
background: rgb(248, 53, 95);
}
}
&:nth-child(3) {
img {
background: rgb(28, 194, 98);
}
}
&:nth-child(4) {
img {
background: rgb(195, 106, 250);
}
}
img {
padding: 10px;
border-radius: 3px; border-radius: 3px;
width: 25px; width: 45px;
height: 25px; height: 45px;
} }
span { span {
display: block; display: block;
} }
} }
} }
.messages { .messages {
border-top: 1px solid #494950; border-top: 1px solid #494950;
.message { .message {
.content { .content {
float: left; float: left;
width: 85%; width: 85%;
.head-image { .head-image {
width: 40px; width: 40px;
border-radius: 50%; border-radius: 50%;
float: left; float: left;
} }
.comment-container { .comment-container {
width: 85%; width: 85%;
.time { .time {
color: gray; color: gray;
} }
} }
} }
.love { .love {
text-align: center; text-align: center;
.love-image { .love-image {
width: 30px; width: 30px;
border-radius: 50%; border-radius: 50%;