|
|
@@ -3,13 +3,8 @@ |
|
|
|
<div class="header"> |
|
|
|
<van-row style="width: 80%; margin: 0 auto"> |
|
|
|
<van-col span="7"> |
|
|
|
<van-image |
|
|
|
round |
|
|
|
width="2rem" |
|
|
|
height="2rem" |
|
|
|
src="https://img01.yzcdn.cn/vant/cat.jpeg" |
|
|
|
style="border: 2px solid #FFF" |
|
|
|
/> |
|
|
|
<img v-if="user.avatar" :src="'/api'+user.avatar" style="border: 2px solid #FFF;width: 2rem;height: 2rem;border-radius: 50%;"> |
|
|
|
<img v-else src="../../assets/images/user_tx.png" style="width: 2rem;height: 2rem;border-radius: 50%;"> |
|
|
|
</van-col> |
|
|
|
<van-col span="17"> |
|
|
|
<p>{{phone}}</p> |
|
|
@@ -35,7 +30,8 @@ export default { |
|
|
|
name: "user", |
|
|
|
data() { |
|
|
|
return { |
|
|
|
phone:'' |
|
|
|
phone:'', |
|
|
|
user:'', |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
@@ -50,6 +46,7 @@ export default { |
|
|
|
getInfo(){ |
|
|
|
getInfo().then(response => { |
|
|
|
console.log(response) |
|
|
|
this.user = response.user; |
|
|
|
getMember(response.user.userId).then(response => { |
|
|
|
console.log(response) |
|
|
|
this.phone = response.data.phone; |
|
|
|