Commit 995834f4 authored by anxixi's avatar anxixi

人脉圈

parent 4ba8de0c
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</div> </div>
<div v-if="item.empId != userInfo.empId"> <div v-if="item.empId != userInfo.empId">
<popoverBardbar v-if="item.isFriend == 2" :row="item"></popoverBardbar> <popoverBardbar v-if="item.isFriend == 2" :row="item"></popoverBardbar>
<btnbar v-else @successState="successState" :row="item" :index="index"></btnbar> <btnbar v-else @loginState="loginState" @successState="successState" :row="item" :index="index"></btnbar>
</div> </div>
</li> </li>
</ul> </ul>
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
networkringlist:[], networkringlist:[],
loading:false, loading:false,
iscontent:false, iscontent:false,
userInfo:this.publicFun.getUserInfoCookieType()?JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())):null, userInfo:this.publicFun.getUserInfoCookieType()?JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())):{},
} }
}, },
computed: { computed: {
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
methods:{ methods:{
//登陆成功 //登陆成功
successlogin(){ successlogin(){
this.userInfo = this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : null; this.userInfo = this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : {};
this.cur_page = 1; this.cur_page = 1;
this.getuserSearch(); this.getuserSearch();
}, },
...@@ -142,6 +142,10 @@ ...@@ -142,6 +142,10 @@
this.getuserSearch(); this.getuserSearch();
} }
}, },
//调取快捷登录
loginState(){
this.$refs.login.isexpertVisible();
},
//去主页 //去主页
tohome(row){ tohome(row){
if(!this.publicFun.getUserInfoCookieType()){ if(!this.publicFun.getUserInfoCookieType()){
......
...@@ -37,6 +37,10 @@ ...@@ -37,6 +37,10 @@
this.followed = '已关注'; this.followed = '已关注';
}, },
isEmpContact(){ isEmpContact(){
if(!this.publicFun.getUserInfoCookieType()){
this.$emit('loginState');
return
}
if(this.row.isFollowed == 0){ if(this.row.isFollowed == 0){
this.addEmpConcern(); this.addEmpConcern();
}else{ }else{
...@@ -111,6 +115,10 @@ ...@@ -111,6 +115,10 @@
}, },
//+联系人 //+联系人
addEmpContact(row){ addEmpContact(row){
if(!this.publicFun.getUserInfoCookieType()){
this.$emit('loginState');
return
}
if(row.isFriend == 0 || row.isFriend == 1){ if(row.isFriend == 0 || row.isFriend == 1){
let params = { let params = {
otherEmpId:this.row.empId, otherEmpId:this.row.empId,
......
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