|
@ -1,7 +1,6 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class='pages'> |
|
|
<div class='pages'> |
|
|
<div class="heard"> |
|
|
<div class="heard"> |
|
|
<div class="my_top"></div> |
|
|
|
|
|
<div class="my_info"> |
|
|
<div class="my_info"> |
|
|
<div class="my_left"> |
|
|
<div class="my_left"> |
|
|
<img src="@/assets/images/logo.png" class="my_img"> |
|
|
<img src="@/assets/images/logo.png" class="my_img"> |
|
@ -20,17 +19,21 @@ |
|
|
<div class="z_right"><img src="@/assets/images/icon/right.png" class="z_img"></div> |
|
|
<div class="z_right"><img src="@/assets/images/icon/right.png" class="z_img"></div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style="position: fixed; bottom:41px;width: 100%;margin: 0 auto;"> |
|
|
|
|
|
<van-button type="info" round block style="width: calc(100% - 60px);margin: 0 auto;" |
|
|
|
|
|
@click="hadnelClicklogOut">退出登录</van-button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { getUserInfo } from '@/api/user' |
|
|
import { getUserInfo } from '@/api/user' |
|
|
|
|
|
import { Dialog } from 'vant'; |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
show:false, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
@ -42,7 +45,19 @@ export default { |
|
|
if (code == 0) { |
|
|
if (code == 0) { |
|
|
console.log(data); |
|
|
console.log(data); |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
|
|
|
hadnelClicklogOut() { |
|
|
|
|
|
Dialog.confirm({ |
|
|
|
|
|
title: '标题', |
|
|
|
|
|
message: '弹窗内容', |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
localStorage.removeItem('token') |
|
|
|
|
|
this.$router.replace('/') |
|
|
|
|
|
}).catch(()=>{ |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
components: {}, |
|
|
components: {}, |
|
|
computed: {}, |
|
|
computed: {}, |
|
@ -55,43 +70,46 @@ export default { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
height: 100vh; |
|
|
height: 100vh; |
|
|
background-color: #f7f7f7; |
|
|
background-color: #f7f7f7; |
|
|
}.heard { |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.heard { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
height: 35vh; |
|
|
height:20vh; |
|
|
background: linear-gradient(to bottom, |
|
|
background: linear-gradient(to bottom, |
|
|
#87BBFF 0%, |
|
|
#87BBFF 0%, |
|
|
rgb(255, 255, 255) 100%); |
|
|
#fffffb 100%); |
|
|
|
|
|
padding-top: 35px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.my_top { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
padding-top: 30px; |
|
|
|
|
|
} |
|
|
|
|
|
.my_img { |
|
|
.my_img { |
|
|
width: 60px; |
|
|
width: 60px; |
|
|
border-radius: 50%; |
|
|
border-radius: 50%; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.my_info { |
|
|
.my_info { |
|
|
display: flex; |
|
|
display: flex; |
|
|
margin: 20px 10px 0; |
|
|
margin: 0 10px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.my_right { |
|
|
.my_right { |
|
|
margin-left: 10px; |
|
|
margin-left: 10px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.mmm { |
|
|
.mmm { |
|
|
display: flex; |
|
|
display: flex; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.my_name { |
|
|
.my_name { |
|
|
font-size: 18px; |
|
|
font-size: 18px; |
|
|
margin-right: 5px; |
|
|
margin-right: 5px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.intro { |
|
|
.intro { |
|
|
opacity: 80%; |
|
|
opacity: 80%; |
|
|
// margin-top: 14px; |
|
|
// margin-top: 14px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.details { |
|
|
.details { |
|
|
margin-top: 13px; |
|
|
margin-top: 13px; |
|
|
font-size: 13px; |
|
|
font-size: 13px; |
|
@ -104,17 +122,21 @@ export default { |
|
|
height: 50px; |
|
|
height: 50px; |
|
|
border-radius: 10px; |
|
|
border-radius: 10px; |
|
|
margin: 23px 10px 0; |
|
|
margin: 23px 10px 0; |
|
|
|
|
|
box-shadow: 0px 2px 13px 0px rgba(227,227,227,0.47); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.my_zzz { |
|
|
.my_zzz { |
|
|
display: flex; |
|
|
display: flex; |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.z_img { |
|
|
.z_img { |
|
|
width: 20px; |
|
|
width: 20px; |
|
|
margin-right: 10px; |
|
|
margin-right: 10px; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.z_left { |
|
|
.z_left { |
|
|
display: flex; |
|
|
display: flex; |
|
|
height: 100%; |
|
|
height: 100%; |
|
@ -122,6 +144,7 @@ export default { |
|
|
margin-left: 10px; |
|
|
margin-left: 10px; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.z_right { |
|
|
.z_right { |
|
|
display: flex; |
|
|
display: flex; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|