|
|
@ -158,37 +158,41 @@ export default { |
|
|
// let data={user_id:8} |
|
|
// let data={user_id:8} |
|
|
isOpenAccount(data).then(res => { |
|
|
isOpenAccount(data).then(res => { |
|
|
console.info(res) |
|
|
console.info(res) |
|
|
this.examine_data=res.data |
|
|
if(res.code==100){ |
|
|
let index; |
|
|
this.examine_data=res.data |
|
|
for(let i=0; i<this.sidebarList.length;i++){ |
|
|
let index; |
|
|
if (this.activeClass==this.sidebarList[i].url) { |
|
|
|
|
|
index=i |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if(res.data.is_buyer>0 &&res.data.buyer_status==1){ |
|
|
|
|
|
this.sidebarList[0].url='/Purchaser' |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.sidebarList[0].url='/wkPurchaser' |
|
|
|
|
|
} |
|
|
|
|
|
if(res.data.is_enter_shop>0 &&res.data.enter_shop_status==1){ |
|
|
|
|
|
this.sidebarList[1].url='/Hoster' |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.sidebarList[1].url='/wkTrusteeship' |
|
|
|
|
|
} |
|
|
|
|
|
if(res.data.is_third_party>0 &&res.data.third_party_status==1){ |
|
|
|
|
|
this.sidebarList[2].url='/wkThird' |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.sidebarList[2].url='/wkThird' |
|
|
|
|
|
} |
|
|
|
|
|
if (typeof(index)=='undefined') { |
|
|
|
|
|
for(let i=0; i<this.sidebarList.length;i++){ |
|
|
for(let i=0; i<this.sidebarList.length;i++){ |
|
|
if (this.activeClass==this.sidebarList[i].url) { |
|
|
if (this.activeClass==this.sidebarList[i].url) { |
|
|
index=i |
|
|
index=i |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(res.data.is_buyer>0 &&res.data.buyer_status==1){ |
|
|
if (typeof(index)!='undefined' && this.activeClass!=this.sidebarList[index].url) { |
|
|
this.sidebarList[0].url='/Purchaser' |
|
|
this.goPage(this.sidebarList[index].url) |
|
|
}else{ |
|
|
|
|
|
this.sidebarList[0].url='/wkPurchaser' |
|
|
|
|
|
} |
|
|
|
|
|
if(res.data.is_enter_shop>0 &&res.data.enter_shop_status==1){ |
|
|
|
|
|
this.sidebarList[1].url='/Hoster' |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.sidebarList[1].url='/wkTrusteeship' |
|
|
|
|
|
} |
|
|
|
|
|
if(res.data.is_third_party>0 &&res.data.third_party_status==1){ |
|
|
|
|
|
this.sidebarList[2].url='/wkThird' |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.sidebarList[2].url='/wkThird' |
|
|
|
|
|
} |
|
|
|
|
|
if (typeof(index)=='undefined') { |
|
|
|
|
|
for(let i=0; i<this.sidebarList.length;i++){ |
|
|
|
|
|
if (this.activeClass==this.sidebarList[i].url) { |
|
|
|
|
|
index=i |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if (typeof(index)!='undefined' && this.activeClass!=this.sidebarList[index].url) { |
|
|
|
|
|
this.goPage(this.sidebarList[index].url) |
|
|
|
|
|
} |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.$message.error(res.msg) |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|