Commit f77b9104 authored by jiaoyahui's avatar jiaoyahui

判断登录和未登录的头像

parent 056905d4
......@@ -4,12 +4,16 @@
<router-link :to="{name:'liveList'}"><img src="../../assets/left.png" alt="" class="Lent_p" @click="go"></router-link>
<div class="Plog">
<div>
<img class="portait-not" :src="avatar" alt="">
<img src="../../assets/title_logo.png" alt="" v-if="Token_true">
<img class="portait-not" :src="avatar" alt="" v-if="Token_truetwo">
</div>
<div class="Login">
<div class="N_name">{{nickName}}</div>
<!-- <span @click="login_a">登录</span><span>/注册</span> -->
<div>您已成功登录 </div>
<span v-if="Token_true"><span @click="login_a">登录</span><span>/注册</span></span>
<div v-if="Token_truetwo">您已成功登录 </div>
<div v-if="Token_true">请您先登录 </div>
</div>
</div>
......@@ -95,13 +99,22 @@ export default {
todayJifen:'',
userInfo:'',
avatar:'',
nickName:''
nickName:'',
Token_true:false,
Token_truetwo:true
}
},
created () {
},
mounted () {
// let token=sessionStorage.getItem("token")
// console.log(token,'===oooo')
if(!sessionStorage.getItem('token')){
this.Token_true=true;
this.Token_truetwo=false
}
this.beforeCreate()
// 调用判断ios与安卓方法
// this.appDown();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment