1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
| <template>
| <div class="blog-container ">
| <div class="blog-avatar">
| <router-link to="/tagInfo">
| <img :src="avatar"></img>
| </router-link>
| </div>
| <div class="blog-user-message">
| <span>{{name}}</span>
| <span>{{sentence}}</span>
| <span>
| <a-icon type="environment" />{{location}}
| </span>
|
| </div>
| </div>
|
| </template>
|
| <script>
| import {
| getAppPage
| } from '../../api/appManage.js'
| export default {
| name: "box",
| data() {
| return {
| avatar: "http://t.inleft.com/share/media_photo/xigong.png",
| name: "inleft",
| sentence: "十里寒塘路,烟花一半醒",
| location: "广州"
| }
| },
| created() {
| // console.log(getAppPage().then((res) => {
| // console.log(res);
| // return res
| // }));
| }
| }
| </script>
|
| </script>
|
| <style lang="less">
| /*头像部分*/
| .blog-avatar {
| img {
| width: 60px;
| height: auto;
| border-radius: 50%;
| display: block;
| margin: 10px auto 10px;
| padding-top: 10px;
| }
| }
|
| /* 一言 */
| .blog-user-message {
| text-align: center;
| font-size: 15px;
| color: #555;
| padding-top: 10px;
| padding-bottom: 10px;
|
| span {
| display: block;
| padding-bottom: 5px;
| }
| }
| </style>
|
|