App.vue
2.2 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<template>
<div id="app">
<router-view />
</div>
</template>
<script>
export default {
// name: "App"
data() {
return {
};
},
mounted(){
this.getuserinfo();
},
created() {
},
methods: {
// 获取用户信息
getuserinfo() {
let that = this;
var url = "/api/member/index";
var params = {};
console.log("7766554", params);
that.$axios
.post(url, params)
.then(res => {
console.log(res)
localStorage.setItem("avatar", res.data.avatar)
localStorage.setItem("address", res.data.address)
localStorage.setItem("nickname", res.data.nickname)
localStorage.setItem("label", JSON.stringify(res.data.label))
})
.catch(err => {
console.log(err)
});
},
}
};
</script>
<style>
body,
html {
background: #f5f5f5;
}
.container{
overflow-x:hidden;
}
#app {
}
/* a标签去除默认样式 */
/*包含以下四种的链接*/
a {
text-decoration: none;
}
/*正常的未被访问过的链接*/
a:link {
text-decoration: none;
}
/*已经访问过的链接*/
a:visited {
text-decoration: none;
}
/*鼠标划过(停留)的链接*/
a:hover {
text-decoration: none;
}
/* 正在点击的链接*/
a:active {
text-decoration: none;
}
img {
width: 100%;
height: 100%;
}
.tieziwordbox p img{
width: 100%!important;
height: 100%!important;
}
textarea {
border: none;
outline: none;
}
input {
border: none;
outline: none;
}
.van-tabbar--fixed {
height: 1rem !important;
}
.van-tabbar-item__text {
font-size: 0.12rem !important;
margin-top: 0.05rem !important;
}
.flex {
display: flex;
}
.flexone {
display: flex;
align-items: center;
}
.flextwo {
display: flex;
align-items: center;
justify-content: space-between;
}
.flexthree {
display: flex;
align-items: center;
justify-content: center;
}
.flexfour {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.flexfive {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
}
.register {
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 5;
}
</style>