|
@@ -193,7 +193,10 @@
|
|
|
<div class="contain">
|
|
|
<p class="user-msg">欢迎您,{{userInfo.username}} !</p>
|
|
|
<div class="whole-line">
|
|
|
- <button 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 == 2" class="whole-btn cursor" @click="golink('/apply')">您的申请已通过</button>
|
|
|
+ <button v-if="hahashenqingnimabi == 3" class="whole-btn cursor" @click="golink('/apply')">您的申请已被拒绝</button>
|
|
|
<!-- <button class="whole-btn cursor" @click="golink('/tradecenter')">立即交易</button> -->
|
|
|
</div>
|
|
|
<div class="operate-line">
|
|
@@ -270,6 +273,7 @@ export default{
|
|
|
dataSrc:'',
|
|
|
fuckfuck:false,
|
|
|
alertStatus:false,
|
|
|
+ hahashenqingnimabi:0,
|
|
|
}
|
|
|
},
|
|
|
components:{
|
|
@@ -346,9 +350,31 @@ export default{
|
|
|
this.loginTab=1;
|
|
|
});
|
|
|
this.country();
|
|
|
+ this.getStatus();
|
|
|
})
|
|
|
},
|
|
|
methods:{
|
|
|
+ //获取状态
|
|
|
+ getStatus(){
|
|
|
+ ajax(this,this.extendApi.applyStatus,'',(res)=>{
|
|
|
+ if(res.code == 200){
|
|
|
+ if(res.data.isApplyed == 1){//以申请
|
|
|
+
|
|
|
+ if(res.data.info.status == 0){//待审核
|
|
|
+ this.hahashenqingnimabi = 1;
|
|
|
+ }else if(res.data.info.status == 1){//以通过
|
|
|
+ this.hahashenqingnimabi = 2;
|
|
|
+ }else if(res.data.info.status == -1){//以拒绝
|
|
|
+ this.hahashenqingnimabi = 3;
|
|
|
+ }
|
|
|
+ }else{//未申请
|
|
|
+ this.hahashenqingnimabi = 0;
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+
|
|
|
+ }
|
|
|
+ },'POST')
|
|
|
+ },
|
|
|
//添加script标签
|
|
|
addscript(){
|
|
|
let dom = document.createElement('script');
|
|
@@ -777,6 +803,7 @@ export default{
|
|
|
type: 'success',
|
|
|
duration:'1500'
|
|
|
})
|
|
|
+ this.getStatus();
|
|
|
// this.userInfo.username = localStorage.getItem('block_fxeesusername');
|
|
|
}
|
|
|
});
|
|
@@ -784,7 +811,7 @@ export default{
|
|
|
getUserInfo(){
|
|
|
getUserData(this,(data)=>{
|
|
|
//console.log(data);
|
|
|
- this.userInfo.username =data.data.base.username;
|
|
|
+ this.userInfo.username = data.data.base.username;
|
|
|
//sessionStorage.setItem("username",data.data.base.username);
|
|
|
//bus.$emit("login","h1");
|
|
|
});
|