Commit a79dcb40 authored by zhangyanni's avatar zhangyanni

Merge remote-tracking branch 'origin/master'

parents 2e34883b 746298d0
...@@ -25,11 +25,11 @@ ...@@ -25,11 +25,11 @@
<span style="margin-left: 20px;" v-else>{{item.workName}}</span> <span style="margin-left: 20px;" v-else>{{item.workName}}</span>
<span style="margin-left: 20px;">{{item.orgName}}</span> <span style="margin-left: 20px;">{{item.orgName}}</span>
</p> </p>
<p class="ellipsisFont1" @click="tohome(item)" >{{item.empIntroduction?item.empIntroduction:'暂无简介'}}</p> <p class="ellipsisFont1" @click="tohome(item)" >{{item.empIntroduction?item.empIntroduction:''}}</p>
<p @click="tohome(item)"> <!-- <p @click="tohome(item)">-->
<span>{{item.friendCount}} 位联系人</span> <!-- <span>{{item.friendCount}} 位联系人</span>-->
<span style="margin-left: 20px;">{{item.followedCount}} 位关注者</span> <!-- <span style="margin-left: 20px;">{{item.followedCount}} 位关注者</span>-->
</p> <!-- </p>-->
</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>
...@@ -310,10 +310,10 @@ ...@@ -310,10 +310,10 @@
line-height: 17px; line-height: 17px;
overflow: hidden; overflow: hidden;
} }
> p:last-child { /*> p:last-child {*/
font-size: 12px; /* font-size: 12px;*/
color: #AAAAAA; /* color: #AAAAAA;*/
} /*}*/
} }
} }
.noIntegral{ .noIntegral{
......
...@@ -19,15 +19,16 @@ ...@@ -19,15 +19,16 @@
<img class="userImg_vip" v-if="item.isModerator == 1&&item.isProfessor == 0" src="../../assets/img/mobile/moderator.png" alt=""> <img class="userImg_vip" v-if="item.isModerator == 1&&item.isProfessor == 0" src="../../assets/img/mobile/moderator.png" alt="">
</span> </span>
<p class="hover_cursor" @click="tohome(item)">{{item.empName}}</p> <p class="hover_cursor" @click="tohome(item)">{{item.empName}}</p>
<p class="ellipsisFont1">{{item.empIntroduction?item.empIntroduction:'暂无简介'}}</p> <p class="ellipsisFont1">{{item.orgName?item.orgName:item.empIntroduction}}</p>
<p> <p>
<span v-if="item.relationType == 0"></span> {{item.workName}}
<span v-if="item.relationType == 1">{{item.relationValue}} 位共同联系人</span> <!-- <span v-if="item.relationType == 0"></span>-->
<span v-if="item.relationType == 2">共同学校的人</span> <!-- <span v-if="item.relationType == 1">{{item.relationValue}} 位共同联系人</span>-->
<span v-if="item.relationType == 3">共同单位的人</span> <!-- <span v-if="item.relationType == 2">共同学校的人</span>-->
<span v-if="item.relationType == 4">{{ item.relationValue }} 位关注者</span> <!-- <span v-if="item.relationType == 3">共同单位的人</span>-->
<span v-if="item.relationType == 5">共同加入话题的人</span> <!-- <span v-if="item.relationType == 4">{{ item.relationValue }} 位关注者</span>-->
<span v-if="item.relationType == 6">共同兴趣的人</span> <!-- <span v-if="item.relationType == 5">共同加入话题的人</span>-->
<!-- <span v-if="item.relationType == 6">共同兴趣的人</span>-->
</p> </p>
<div style="width: 100px;margin: 0 auto;"> <div style="width: 100px;margin: 0 auto;">
<btnbar @loginState="loginState" @successState="successState" :row="item" :index="index" :btnType="2"></btnbar> <btnbar @loginState="loginState" @successState="successState" :row="item" :index="index" :btnType="2"></btnbar>
......
<template> <template>
<div> <div>
<!-- btnType 1你可能认识的人 --> <!-- btnType 1你可能认识的人 -->
<div class="btn" v-if="searchType"> <!-- <div class="btn" v-if="searchType">-->
<p v-if="row.isFriend != 0 || row.relationType == 1 || row.relationType== 2 || row.relationType == 3" <!-- <p v-if="row.isFriend != 0 || row.relationType == 1 || row.relationType== 2 || row.relationType == 3"-->
:class="[row.isFriend == 0?'btn_p':'btnfail_Friend',btnType==1?'operating':btnType == 2?'btn_relation':'btn_content']" <!-- :class="[row.isFriend == 0?'btn_p':'btnfail_Friend',btnType==1?'operating':btnType == 2?'btn_relation':'btn_content']"-->
@click="addEmpContact(row)"> <!-- @click="addEmpContact(row)">-->
<i v-if="row.isFriend == 0" style="font-size: 12px;" class="iconfont icon-jiahao"></i> <!-- <i v-if="row.isFriend == 0" style="font-size: 12px;" class="iconfont icon-jiahao"></i>-->
{{row.isFriend == 0?'联系人':row.isFriend == 1?'等待通过':'互为联系人'}} <!-- {{row.isFriend == 0?'联系人':row.isFriend == 1?'等待通过':'互为联系人'}}-->
</p> <!-- </p>-->
<p v-else <!-- <p v-else-->
<!-- @mouseover="mouseOver"-->
<!-- @mouseleave="mouseLeave"-->
<!-- :class="[row.isFollowed == 0?'btn_p':'btnfail_Followed',btnType==1?'operating':btnType == 2?'btn_relation':'btn_content']"-->
<!-- @click="isEmpContact">-->
<!-- <i v-if="row.isFollowed == 0" style="font-size: 12px;" class="iconfont icon-jiahao"></i>-->
<!-- {{row.isFollowed == 0?'关注':followed}}-->
<!-- </p>-->
<!-- </div>-->
<!-- <div class="btn" v-else>-->
<!-- <p v-if="row.relationType == 1 || row.relationType== 2 || row.relationType == 3"-->
<!-- :class="[row.isFriend == 0?'btn_p':'btnfail_Friend',btnType==1?'operating':btnType == 2?'btn_relation':'btn_content']"-->
<!-- @click="addEmpContact(row)">-->
<!-- <i v-if="row.isFriend == 0" style="font-size: 12px;" class="iconfont icon-jiahao"></i>-->
<!-- {{row.isFriend == 0?'联系人':row.isFriend == 1?'等待通过':'互为联系人'}}-->
<!-- </p>-->
<!-- <p v-else-->
<!-- @mouseover="mouseOver"-->
<!-- @mouseleave="mouseLeave"-->
<!-- :class="[row.isFollowed == 0?'btn_p':'btnfail_Followed',btnType==1?'operating':btnType == 2?'btn_relation':'btn_content']"-->
<!-- @click="isEmpContact">-->
<!-- <i v-if="row.isFollowed == 0" style="font-size: 12px;" class="iconfont icon-jiahao"></i>-->
<!-- {{row.isFollowed == 0?'关注':followed}}-->
<!-- </p>-->
<!-- </div>-->
<div class="btn">
<p v-if="isempConcern"
@mouseover="mouseOver" @mouseover="mouseOver"
@mouseleave="mouseLeave" @mouseleave="mouseLeave"
:class="[row.isFollowed == 0?'btn_p':'btnfail_Followed',btnType==1?'operating':btnType == 2?'btn_relation':'btn_content']" :class="[row.isFollowed == 0?'btn_p':'btnfail_Followed',btnType==1?'operating':btnType == 2?'btn_relation':'btn_content']"
...@@ -16,21 +42,11 @@ ...@@ -16,21 +42,11 @@
<i v-if="row.isFollowed == 0" style="font-size: 12px;" class="iconfont icon-jiahao"></i> <i v-if="row.isFollowed == 0" style="font-size: 12px;" class="iconfont icon-jiahao"></i>
{{row.isFollowed == 0?'关注':followed}} {{row.isFollowed == 0?'关注':followed}}
</p> </p>
</div> <p v-else
<div class="btn" v-else>
<p v-if="row.relationType == 1 || row.relationType== 2 || row.relationType == 3"
:class="[row.isFriend == 0?'btn_p':'btnfail_Friend',btnType==1?'operating':btnType == 2?'btn_relation':'btn_content']" :class="[row.isFriend == 0?'btn_p':'btnfail_Friend',btnType==1?'operating':btnType == 2?'btn_relation':'btn_content']"
@click="addEmpContact(row)"> @click="addEmpContact(row)">
<i v-if="row.isFriend == 0" style="font-size: 12px;" class="iconfont icon-jiahao"></i> <!-- <i v-if="row.isFriend == 0" style="font-size: 12px;" class="iconfont icon-jiahao"></i>-->
{{row.isFriend == 0?'联系人':row.isFriend == 1?'等待通过':'互为联系人'}} {{row.isFriend == 0?'交换名片':row.isFriend == 1?'等待通过':'互为联系人'}}
</p>
<p v-else
@mouseover="mouseOver"
@mouseleave="mouseLeave"
:class="[row.isFollowed == 0?'btn_p':'btnfail_Followed',btnType==1?'operating':btnType == 2?'btn_relation':'btn_content']"
@click="isEmpContact">
<i v-if="row.isFollowed == 0" style="font-size: 12px;" class="iconfont icon-jiahao"></i>
{{row.isFollowed == 0?'关注':followed}}
</p> </p>
</div> </div>
</div> </div>
...@@ -46,7 +62,7 @@ ...@@ -46,7 +62,7 @@
followed:'已关注', followed:'已关注',
} }
}, },
props:['row','index','type','btnType','searchType'], props:['row','index','type','btnType','searchType','isempConcern'],
methods:{ methods:{
mouseOver(){ mouseOver(){
this.followed = '取消关注'; this.followed = '取消关注';
......
...@@ -10,7 +10,12 @@ ...@@ -10,7 +10,12 @@
<img class="userImg_vip" v-if="item.isModerator == 1&&item.isProfessor == 0" src="../../assets/img/mobile/moderator.png" alt=""> <img class="userImg_vip" v-if="item.isModerator == 1&&item.isProfessor == 0" src="../../assets/img/mobile/moderator.png" alt="">
</span> </span>
<div> <div>
<p @click="tohome(item)">{{item.empName}}</p> <p @click="tohome(item)" >
<span>{{item.empName}}</span>
<span style="margin-left: 20px;" v-if="item.isProfessor == 1||item.isModerator == 1">{{item.empTitle}}</span>
<span style="margin-left: 20px;" v-else>{{item.workName}}</span>
<span style="margin-left: 20px;">{{item.orgName}}</span>
</p>
<p @click="tohome(item)" class="ellipsisFont1">{{item.empIntroduction}}</p> <p @click="tohome(item)" class="ellipsisFont1">{{item.empIntroduction}}</p>
<p> <p>
<span v-if="item.relationType == 0"></span> <span v-if="item.relationType == 0"></span>
...@@ -189,7 +194,13 @@ ...@@ -189,7 +194,13 @@
padding:0 30px 0 15px; padding:0 30px 0 15px;
color: #1A1A1E; color: #1A1A1E;
>p:nth-child(1){ >p:nth-child(1){
>span:nth-child(1){
font-weight: bold; font-weight: bold;
font-size: 14px;
}
>span{
font-size: 12px;
}
} }
>p:nth-child(2){ >p:nth-child(2){
font-size: 12px; font-size: 12px;
......
...@@ -10,7 +10,12 @@ ...@@ -10,7 +10,12 @@
<img class="userImg_vip" v-if="item.isModerator == 1&&item.isProfessor == 0" src="../../assets/img/mobile/moderator.png" alt=""> <img class="userImg_vip" v-if="item.isModerator == 1&&item.isProfessor == 0" src="../../assets/img/mobile/moderator.png" alt="">
</span> </span>
<div> <div>
<p @click="tohome(item)">{{item.empName}}</p> <p @click="tohome(item)" >
<span>{{item.empName}}</span>
<span style="margin-left: 20px;" v-if="item.isProfessor == 1||item.isModerator == 1">{{item.empTitle}}</span>
<span style="margin-left: 20px;" v-else>{{item.workName}}</span>
<span style="margin-left: 20px;">{{item.orgName}}</span>
</p>
<p @click="tohome(item)" class="ellipsisFont1">{{item.empIntroduction}}</p> <p @click="tohome(item)" class="ellipsisFont1">{{item.empIntroduction}}</p>
<p> <p>
<span v-if="item.relationType == 0"></span> <span v-if="item.relationType == 0"></span>
...@@ -189,7 +194,13 @@ ...@@ -189,7 +194,13 @@
padding:0 30px 0 15px; padding:0 30px 0 15px;
color: #1A1A1E; color: #1A1A1E;
>p:nth-child(1){ >p:nth-child(1){
>span:nth-child(1){
font-weight: bold; font-weight: bold;
font-size: 14px;
}
>span{
font-size: 12px;
}
} }
>p:nth-child(2){ >p:nth-child(2){
font-size: 12px; font-size: 12px;
......
...@@ -10,7 +10,12 @@ ...@@ -10,7 +10,12 @@
<img class="userImg_vip" v-if="item.isModerator == 1&&item.isProfessor == 0" src="../../assets/img/mobile/moderator.png" alt=""> <img class="userImg_vip" v-if="item.isModerator == 1&&item.isProfessor == 0" src="../../assets/img/mobile/moderator.png" alt="">
</span> </span>
<div class="liIntroduction"> <div class="liIntroduction">
<p @click="tohome(item)">{{item.empName}}</p> <p @click="tohome(item)" >
<span>{{item.empName}}</span>
<span style="margin-left: 20px;" v-if="item.isProfessor == 1||item.isModerator == 1">{{item.empTitle}}</span>
<span style="margin-left: 20px;" v-else>{{item.workName}}</span>
<span style="margin-left: 20px;">{{item.orgName}}</span>
</p>
<p @click="tohome(item)" class="ellipsisFont1">{{item.empIntroduction}}</p> <p @click="tohome(item)" class="ellipsisFont1">{{item.empIntroduction}}</p>
<p> <p>
<span v-if="item.relationType == 0"></span> <span v-if="item.relationType == 0"></span>
...@@ -185,6 +190,15 @@ ...@@ -185,6 +190,15 @@
border: 1px solid #F2F2F2; border: 1px solid #F2F2F2;
} }
} }
>p:nth-child(1){
>span:nth-child(1){
font-weight: bold;
font-size: 14px;
}
>span{
font-size: 12px;
}
}
>p:last-child { >p:last-child {
width: 110px; width: 110px;
margin-right: 20px; margin-right: 20px;
......
...@@ -16,10 +16,13 @@ ...@@ -16,10 +16,13 @@
</span> </span>
<div> <div>
<div class="gendisplay"> <div class="gendisplay">
<p @click="tohome(item)" class="ellipsisFont1 hover_cursor">{{item.empName}}</p> <p @click="tohome(item)">
<i class="hover_cursor">{{item.empName}}</i>
<i style="font-size: 12px;padding-left:10px;font-weight: normal;">{{item.workName}}</i>
</p>
<btnbar @successState="successState" :row="item" :index="index" :btnType="1"></btnbar> <btnbar @successState="successState" :row="item" :index="index" :btnType="1"></btnbar>
</div> </div>
<p @click="tohome(item)" class="ellipsisFont1" style="color:#1A1A1E;height: 24px;">{{item.empIntroduction?item.empIntroduction:'暂无简介'}}</p> <p @click="tohome(item)" class="ellipsisFont1" style="color:#1A1A1E;height: 24px;">{{item.orgName?item.orgName:item.empIntroduction}}</p>
<p style="color:#AAAAAA;"> <p style="color:#AAAAAA;">
<span v-if="item.relationType == 0"></span> <span v-if="item.relationType == 0"></span>
<span v-if="item.relationType == 1" @click="getCommonContact(item)">{{item.relationValue}} 个共同联系人</span> <span v-if="item.relationType == 1" @click="getCommonContact(item)">{{item.relationValue}} 个共同联系人</span>
...@@ -178,6 +181,7 @@ ...@@ -178,6 +181,7 @@
font-size: 14px; font-size: 14px;
font-weight: bold; font-weight: bold;
width: calc(100% - 65px); width: calc(100% - 65px);
margin-right: 10px;
line-height: 24px; line-height: 24px;
height: 24px; height: 24px;
overflow: hidden; overflow: hidden;
......
...@@ -636,6 +636,7 @@ ...@@ -636,6 +636,7 @@
// this.$message.error('请填写兴趣标签'); // this.$message.error('请填写兴趣标签');
// return // return
// }; // };
if(this.isTrans){
if(this.formData.isStudent == 1){ if(this.formData.isStudent == 1){
if(!this.formData.educationList || this.formData.educationList.length == 0){ if(!this.formData.educationList || this.formData.educationList.length == 0){
this.$message.error('请填写至少一条教育经历'); this.$message.error('请填写至少一条教育经历');
...@@ -646,7 +647,8 @@ ...@@ -646,7 +647,8 @@
this.$message.error('请填写至少一条工作经历'); this.$message.error('请填写至少一条工作经历');
return return
} }
}; }
}
this.formData.empId = this.empInfo.empId; this.formData.empId = this.empInfo.empId;
api.improveInformation(this.formData).then(response => { api.improveInformation(this.formData).then(response => {
if(response.code == 0) { if(response.code == 0) {
......
...@@ -10,7 +10,12 @@ ...@@ -10,7 +10,12 @@
<img class="userImg_vip" v-if="item.isModerator == 1&&item.isProfessor == 0" src="../../assets/img/mobile/moderator.png" alt=""> <img class="userImg_vip" v-if="item.isModerator == 1&&item.isProfessor == 0" src="../../assets/img/mobile/moderator.png" alt="">
</span> </span>
<div> <div>
<p @click="tohome(item)" >{{item.empName}}</p> <p @click="tohome(item)" >
<span>{{item.empName}}</span>
<span style="margin-left: 20px;" v-if="item.isProfessor == 1||item.isModerator == 1">{{item.empTitle}}</span>
<span style="margin-left: 20px;" v-else>{{item.workName}}</span>
<span style="margin-left: 20px;">{{item.orgName}}</span>
</p>
<p @click="tohome(item)" >{{item.empIntroduction}}</p> <p @click="tohome(item)" >{{item.empIntroduction}}</p>
<p> <p>
<span v-if="item.relationType == 0"></span> <span v-if="item.relationType == 0"></span>
...@@ -22,7 +27,10 @@ ...@@ -22,7 +27,10 @@
<span v-if="item.relationType == 6">共同兴趣的人</span> <span v-if="item.relationType == 6">共同兴趣的人</span>
</p> </p>
</div> </div>
<btnbar v-if="!id || id == userInfo.empId" @successState="successState" :row="item" :index="index"></btnbar> <div v-if="!id || id == userInfo.empId">
<popoverBardbar v-if="item.isFriend == 2" :row="item"></popoverBardbar>
<btnbar v-else @successState="successState" :row="item" :index="index"></btnbar>
</div>
</li> </li>
</ul> </ul>
<p style="color: #9197B4;text-align: center;line-height: 50px;" v-if="loading">{{$t('industryjson.loading')}}</p> <p style="color: #9197B4;text-align: center;line-height: 50px;" v-if="loading">{{$t('industryjson.loading')}}</p>
...@@ -44,6 +52,7 @@ ...@@ -44,6 +52,7 @@
import api from "./api/api"; import api from "./api/api";
import btnbar from "./btnbar"; import btnbar from "./btnbar";
import userContactbar from "./userContactbar"; import userContactbar from "./userContactbar";
import popoverBardbar from "./popoverBardbar";
export default { export default {
name: "followers", name: "followers",
data() { data() {
...@@ -69,7 +78,7 @@ ...@@ -69,7 +78,7 @@
} }
}, },
props:['id'], props:['id'],
components:{btnbar,userContactbar}, components:{btnbar,userContactbar,popoverBardbar},
methods: { methods: {
getCommonContact(row){ getCommonContact(row){
this.visibleContact = true; this.visibleContact = true;
...@@ -185,7 +194,13 @@ ...@@ -185,7 +194,13 @@
padding:0 30px 0 15px; padding:0 30px 0 15px;
color: #1A1A1E; color: #1A1A1E;
>p:nth-child(1){ >p:nth-child(1){
>span:nth-child(1){
font-weight: bold; font-weight: bold;
font-size: 14px;
}
>span{
font-size: 12px;
}
} }
>p:nth-child(2){ >p:nth-child(2){
font-size: 12px; font-size: 12px;
......
<template> <template>
<div class="medalall"> <div class="medalall">
<p class="medal_t">已经获得 {{detailInfo.medalNum}} 个勋章</p> <p class="medal_t">已经获得 {{detailInfo.medalNum}} 个勋章</p>
<div class="medal_c gendisplay"> <div class="medal_c gendisplay">
<div class="gendisplay" v-for="item in detailInfo.baseMedalDTOList"> <div class="gendisplay" v-for="item in detailInfo.baseMedalDTOList">
<div class="medal" :class="['medal'+item.medalId,item.isHaveMedal==0?'grayMedal':'']"></div> <div class="medal" :class="['medal'+item.medalId,item.isHaveMedal==0?'grayMedal':'']"></div>
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
methods: { methods: {
//初始化 //初始化
getInitInfo() { getInitInfo() {
api.getMedalInfoById(this.userInfo.empId).then((res) => { api.getMedalInfoById(this.$route.query.id?this.$route.query.id:this.userInfo.empId).then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.detailInfo = res.result; this.detailInfo = res.result;
} else { } else {
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
</p> </p>
</div> </div>
<div v-if="$route.query.id&&$route.query.id!=userInfo.empId" class="btn_topic"> <div v-if="$route.query.id&&$route.query.id!=userInfo.empId" class="btn_topic">
<span @click="addEmpContact" v-if="empRelationstate.contactState == 0"><i class="iconfont icon-jiahao"></i>联系人</span> <span @click="addEmpContact" v-if="empRelationstate.contactState == 0">交换名片</span>
<span @click="addEmpContact" style="background: #AAAAAA;box-shadow:none;" v-if="empRelationstate.contactState == 1">等待通过</span> <span @click="addEmpContact" style="background: #AAAAAA;box-shadow:none;" v-if="empRelationstate.contactState == 1">等待通过</span>
<span style="background: #AAAAAA;box-shadow:none;" v-if="empRelationstate.contactState == 2">互为联系人</span> <span style="background: #AAAAAA;box-shadow:none;" v-if="empRelationstate.contactState == 2">互为联系人</span>
<span @click="isEmpContact" style="background: #FF9E29;box-shadow: 0px 3px 10px 1px rgba(255, 158, 41, 0.4);" v-if="empRelationstate.concernState == 0"> <span @click="isEmpContact" style="background: #FF9E29;box-shadow: 0px 3px 10px 1px rgba(255, 158, 41, 0.4);" v-if="empRelationstate.concernState == 0">
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</p> </p>
</div> </div>
<div style="padding-top: 14px;"> <div style="padding-top: 14px;">
<btnbar v-if="!id || id == userInfo.empId" @successState="successState" :row="item" :index="index"></btnbar> <btnbar v-if="!id || id == userInfo.empId" @successState="successState" :isempConcern="true" :row="item" :index="index"></btnbar>
</div> </div>
</div> </div>
</el-col> </el-col>
......
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