|
@@ -1,7 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="body">
|
|
<div class="body">
|
|
<!-- 选择类型 -->
|
|
<!-- 选择类型 -->
|
|
- <back :title="titlename"></back>
|
|
|
|
<div class="head">
|
|
<div class="head">
|
|
<template v-if="headimgurl!=null&&headimgurl!=''">
|
|
<template v-if="headimgurl!=null&&headimgurl!=''">
|
|
<img :src="headimgurl" alt="">
|
|
<img :src="headimgurl" alt="">
|
|
@@ -9,7 +8,6 @@
|
|
<template v-else>
|
|
<template v-else>
|
|
<img src="../assets/images/foot_icon1.png" alt="">
|
|
<img src="../assets/images/foot_icon1.png" alt="">
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
<div>
|
|
<div>
|
|
<p>姓名:{{user.NAME}}</p>
|
|
<p>姓名:{{user.NAME}}</p>
|
|
<p>{{user.PHONE}}</p>
|
|
<p>{{user.PHONE}}</p>
|
|
@@ -20,34 +18,36 @@
|
|
<router-link to="/Personinfomation">
|
|
<router-link to="/Personinfomation">
|
|
<img src="../assets/images/my_icon1.png" alt="">
|
|
<img src="../assets/images/my_icon1.png" alt="">
|
|
<span>账号信息</span>
|
|
<span>账号信息</span>
|
|
- </router-link>
|
|
|
|
-
|
|
|
|
- <router-link to="/Forgetpassword">
|
|
|
|
- <img src="../assets/images/my_icon6.png" alt="">
|
|
|
|
- <span>修改密码</span>
|
|
|
|
</router-link>
|
|
</router-link>
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="btn">
|
|
|
|
- <van-button color="#00c4b8" @click="loginout">退出登录</van-button>
|
|
|
|
|
|
+ <router-link to="/Forgetpassword">
|
|
|
|
+ <img src="../assets/images/my_icon6.png" alt="">
|
|
|
|
+ <span>修改密码</span>
|
|
|
|
+ </router-link>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="btn">
|
|
|
|
+ <van-button color="#00c4b8" @click="loginout">退出登录</van-button>
|
|
|
|
+ </div>
|
|
|
|
+ <van-tabbar v-model="active">
|
|
|
|
+ <van-tabbar-item @click="my">首页</van-tabbar-item>
|
|
|
|
+ <van-tabbar-item >我的</van-tabbar-item>
|
|
|
|
+ </van-tabbar>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
- return {
|
|
|
|
|
|
+ return {
|
|
titlename:"我的",
|
|
titlename:"我的",
|
|
userId:"",
|
|
userId:"",
|
|
user:[],
|
|
user:[],
|
|
- headimgurl:''
|
|
|
|
|
|
+ headimgurl:'',
|
|
|
|
+ active: 1,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created:function(){
|
|
created:function(){
|
|
this.isLogin();
|
|
this.isLogin();
|
|
- this.userId = localStorage.getItem("userId");
|
|
|
|
|
|
+ this.userId = localStorage.getItem("userId");
|
|
console.log('userId:'+ this.userId);
|
|
console.log('userId:'+ this.userId);
|
|
this.getUser();
|
|
this.getUser();
|
|
this.headimgurl = localStorage.getItem('headimgurl');
|
|
this.headimgurl = localStorage.getItem('headimgurl');
|
|
@@ -58,7 +58,11 @@ export default {
|
|
localStorage.removeItem("userId");
|
|
localStorage.removeItem("userId");
|
|
localStorage.removeItem("openid");
|
|
localStorage.removeItem("openid");
|
|
window.location.href ='http://47.101.145.23/wuliu/ljy/';
|
|
window.location.href ='http://47.101.145.23/wuliu/ljy/';
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ my() {
|
|
|
|
+ this.$router.push('/')
|
|
|
|
+ }
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
@@ -138,15 +142,15 @@ export default {
|
|
position: absolute;
|
|
position: absolute;
|
|
right: .4rem;
|
|
right: .4rem;
|
|
top: .4rem;
|
|
top: .4rem;
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
|
|
- }
|
|
|
|
- .btn{
|
|
|
|
- padding: 0px .37rem;
|
|
|
|
- button{
|
|
|
|
- width: 100%;
|
|
|
|
- color: white;
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+ .btn{
|
|
|
|
+ padding: 0px .37rem;
|
|
|
|
+ button{
|
|
|
|
+ width: 100%;
|
|
|
|
+ color: white;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|