|
@@ -191,7 +191,7 @@
|
|
<!-- 登录成功页面 -->
|
|
<!-- 登录成功页面 -->
|
|
<div class="login-block" v-if="loginTab===3">
|
|
<div class="login-block" v-if="loginTab===3">
|
|
<div class="contain">
|
|
<div class="contain">
|
|
- <p class="user-msg">欢迎您,{{userInfo.username}} !</p>
|
|
|
|
|
|
+ <p class="user-msg">欢迎您,{{username}} !</p>
|
|
<div class="whole-line">
|
|
<div class="whole-line">
|
|
<button v-if="hahashenqingnimabi == 0" class="whole-btn cursor" @click="golink('/apply')">申请经纪商</button>
|
|
<button v-if="hahashenqingnimabi == 0" class="whole-btn cursor" @click="golink('/apply')">申请经纪商</button>
|
|
<button v-if="hahashenqingnimabi == 1" class="whole-btn cursor" @click="golink('/apply')">您的申请正在审核中</button>
|
|
<button v-if="hahashenqingnimabi == 1" class="whole-btn cursor" @click="golink('/apply')">您的申请正在审核中</button>
|
|
@@ -256,10 +256,10 @@ export default{
|
|
"password2":"",
|
|
"password2":"",
|
|
"resettoken":"",
|
|
"resettoken":"",
|
|
},
|
|
},
|
|
- userInfo:{
|
|
|
|
|
|
+ // userInfo:{
|
|
//base:{}
|
|
//base:{}
|
|
username:'',
|
|
username:'',
|
|
- },
|
|
|
|
|
|
+ // },
|
|
operateType:"mobile",
|
|
operateType:"mobile",
|
|
areaOptions:{},
|
|
areaOptions:{},
|
|
area:"86",
|
|
area:"86",
|
|
@@ -341,7 +341,7 @@ export default{
|
|
if(token){
|
|
if(token){
|
|
this.getUserInfo();
|
|
this.getUserInfo();
|
|
this.loginTab=3;
|
|
this.loginTab=3;
|
|
- this.userInfo.username = localStorage.getItem('block_fxeesusername');
|
|
|
|
|
|
+ this.username = localStorage.getItem('block_fxeesusername');
|
|
}
|
|
}
|
|
else{
|
|
else{
|
|
this.loginTab=1;
|
|
this.loginTab=1;
|
|
@@ -351,6 +351,7 @@ export default{
|
|
});
|
|
});
|
|
this.country();
|
|
this.country();
|
|
this.getStatus();
|
|
this.getStatus();
|
|
|
|
+ this.getUserInfo()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
@@ -796,25 +797,35 @@ export default{
|
|
this.buttonLoad=true;
|
|
this.buttonLoad=true;
|
|
sublogion(this,'index',param,(data)=>{
|
|
sublogion(this,'index',param,(data)=>{
|
|
this.buttonLoad=false;
|
|
this.buttonLoad=false;
|
|
- if(data.code==200){
|
|
|
|
- this.getUserInfo()
|
|
|
|
|
|
+ if(data.code==200){
|
|
|
|
+
|
|
|
|
+
|
|
this.$notify({
|
|
this.$notify({
|
|
title: '成功',
|
|
title: '成功',
|
|
message: '登录成功',
|
|
message: '登录成功',
|
|
type: 'success',
|
|
type: 'success',
|
|
duration:'1500'
|
|
duration:'1500'
|
|
})
|
|
})
|
|
|
|
+ // console.log(localStorage.getItem('block_fxeesusername'))
|
|
|
|
+ if(localStorage.getItem('block_fxeesusername') == null){
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ this.getUserInfo();
|
|
|
|
+ this.getStatus();
|
|
|
|
+ },100)
|
|
|
|
+ }else{
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ this.getUserInfo();
|
|
this.getStatus();
|
|
this.getStatus();
|
|
|
|
+
|
|
// this.userInfo.username = localStorage.getItem('block_fxeesusername');
|
|
// this.userInfo.username = localStorage.getItem('block_fxeesusername');
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
getUserInfo(){
|
|
getUserInfo(){
|
|
getUserData(this,(data)=>{
|
|
getUserData(this,(data)=>{
|
|
- //console.log(data);
|
|
|
|
- this.userInfo.username = data.data.base.username;
|
|
|
|
- //sessionStorage.setItem("username",data.data.base.username);
|
|
|
|
- //bus.$emit("login","h1");
|
|
|
|
|
|
+ this.username = data.data.base.username;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
}
|
|
}
|