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