Commit 05f96c96 authored by zhangyanni's avatar zhangyanni

Merge remote-tracking branch 'origin/master'

parents cb576044 2c335d33
...@@ -958,6 +958,7 @@ ...@@ -958,6 +958,7 @@
border-bottom: 1px solid #F2F2F2; border-bottom: 1px solid #F2F2F2;
>i{ >i{
color: #5D78FF; color: #5D78FF;
font-weight: bold;
} }
} }
} }
......
...@@ -297,9 +297,17 @@ ...@@ -297,9 +297,17 @@
else this.$router.replace({path:"/emailLoginCmpt",query:this.$route.query}); else this.$router.replace({path:"/emailLoginCmpt",query:this.$route.query});
} }
}, },
beforeDestroy() { // 在组件生命周期结束的时候销毁。、
globalMsg.$off('loginsuccess');
},
mounted() { mounted() {
this.getInitData(); this.getInitData();
this.getCountData(); this.getCountData();
globalMsg.$on("loginsuccess",(data)=>{
this.userInfo = this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : null;
this.getInitData();
this.getCountData();
});
}, },
watch:{ watch:{
//监听相同路由下参数变化的时候,从而实现异步刷新 //监听相同路由下参数变化的时候,从而实现异步刷新
......
...@@ -178,9 +178,9 @@ ...@@ -178,9 +178,9 @@
{id:4,name:this.$t("topNav.topic"),path:'/topicList',pathchild:'/topicDetails'}, {id:4,name:this.$t("topNav.topic"),path:'/topicList',pathchild:'/topicDetails'},
{id:6,name:'人脉',path:'/circleList',pathchild:'/networkSearch'}, {id:6,name:'人脉',path:'/circleList',pathchild:'/networkSearch'},
{id:5,name:this.$t("topNav.match"),path:'/matchlist',pathchild:'/matchlist'}, {id:5,name:this.$t("topNav.match"),path:'/matchlist',pathchild:'/matchlist'},
{id:2,name:this.$t("topNav.guess"),path:'/guesslist',pathchild:'/guessDetail'},
{id:7,name:this.$t("topNav.article"),path:'/articleList',pathchild:'/articleDetail'}, {id:7,name:this.$t("topNav.article"),path:'/articleList',pathchild:'/articleDetail'},
{id:8,name:this.$t("topNav.industry"),path:'/industryReport',pathchild:'/industryReport'}, {id:8,name:this.$t("topNav.industry"),path:'/industryReport',pathchild:'/industryReport'},
{id:2,name:this.$t("topNav.guess"),path:'/guesslist',pathchild:'/guessDetail'},
], ],
indextab_en:[ indextab_en:[
{id:1,name:this.$t("topNav.index"),path:'/',pathchild:'/'}, {id:1,name:this.$t("topNav.index"),path:'/',pathchild:'/'},
...@@ -396,7 +396,16 @@ ...@@ -396,7 +396,16 @@
globalMsg.$off('isTopindex'); globalMsg.$off('isTopindex');
}, },
mounted() { mounted() {
this.userInfo = this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : null; globalMsg.$on("isTopindex", (data) => {
if(data == '/peoplehome/tabs/news')this.messageCount = 0;
this.tabstate(data);
if(data == '/'){
this.isTops = false;
}else{
this.isTops = true;
}
this.userInfo = this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : null;
});
if(this.userInfo){ if(this.userInfo){
this.getByEmpId(); this.getByEmpId();
this.getMessageCount(); this.getMessageCount();
...@@ -426,15 +435,6 @@ ...@@ -426,15 +435,6 @@
}else{ }else{
this.isTops = true; this.isTops = true;
} }
globalMsg.$on("isTopindex", (data) => {
if(data == '/peoplehome/tabs/news')this.messageCount = 0;
this.tabstate(data);
if(data == '/'){
this.isTops = false;
}else{
this.isTops = true;
}
});
}, },
watch:{ watch:{
tabpath(val){ tabpath(val){
......
<template> <template>
<div class="searchTop"> <div class="searchTop">
<div class="searchHot"> <div class="searchHot">
<div class="searchTop_title">热门</div> <div class="searchTop_title">
<span class="title_h1">热门</span>
</div>
<div> <div>
<span @click="keywordSearch(item)" class="hot_key" v-for="(item,index) in hotSearchList" :key="index">{{item}}</span> <span @click="keywordSearch(item)" class="hot_key" v-for="(item,index) in hotSearchList" :key="index">{{item}}</span>
</div> </div>
</div> </div>
<div class="searchHistory" v-if="historySearchList.length!=0"> <div class="searchHistory" v-if="historySearchList.length!=0">
<div class="searchTop_title gendisplay"> <div class="searchTop_title gendisplay">
<p>历史搜索</p> <p class="title_h1">历史搜索</p>
<p @click="handleDeleteHistorySearch"><i class="iconfont icon-lajitongshanchu"></i></p> <p @click="handleDeleteHistorySearch"><i class="iconfont icon-lajitongshanchu"></i></p>
</div> </div>
<div class="history_key"> <div class="history_key">
...@@ -86,6 +88,11 @@ ...@@ -86,6 +88,11 @@
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.title_h1{
color: #1A1A1E!important;
font-weight: bold;
cursor: default;
}
.searchTop{ .searchTop{
position: absolute; position: absolute;
width: 470px; width: 470px;
...@@ -95,7 +102,7 @@ ...@@ -95,7 +102,7 @@
color: #1A1A1E; color: #1A1A1E;
>div{ >div{
.searchTop_title{ .searchTop_title{
margin-bottom: 10px; margin-bottom: 5px;
>p:first-child{ >p:first-child{
width: 100%; width: 100%;
} }
...@@ -107,7 +114,8 @@ ...@@ -107,7 +114,8 @@
} }
.hot_key{ .hot_key{
font-size: 12px; font-size: 12px;
margin: 0 15px 8px 0; line-height: 26px;
margin: 0 15px 0 0;
display: inline-block; display: inline-block;
cursor: pointer; cursor: pointer;
} }
...@@ -116,7 +124,7 @@ ...@@ -116,7 +124,7 @@
} }
.history_key{ .history_key{
>p{ >p{
line-height: 28px; line-height: 26px;
font-size: 12px; font-size: 12px;
cursor: pointer; cursor: pointer;
} }
...@@ -126,7 +134,7 @@ ...@@ -126,7 +134,7 @@
} }
} }
.searchHistory{ .searchHistory{
margin-top: 30px; margin-top: 15px;
} }
} }
</style> </style>
\ No newline at end of file
...@@ -383,7 +383,13 @@ ...@@ -383,7 +383,13 @@
this.pageShow = true; this.pageShow = true;
} }
}, },
beforeDestroy() { // 在组件生命周期结束的时候销毁。、
globalMsg.$off('loginsuccess');
},
mounted(){ mounted(){
globalMsg.$on("loginsuccess",(data)=>{
this.getUserInfoFunc();
});
this.getInitList(); this.getInitList();
if(this.$route.query.remind){ if(this.$route.query.remind){
const empinfo = JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())); const empinfo = JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType()));
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</div> </div>
</div> </div>
<div class="matchfixed"> <div class="matchfixed" v-if="!publicFun.isgetUserRoleFunc(2)&&!publicFun.isgetUserRoleFunc(5)">
<div @click="pushClick('project')"> <div @click="pushClick('project')">
<img :src="publicFun.getCookie('language') == 'en'?require('../../assets/img/pushprojecten.png'):require('../../assets/img/pushproject.png')" alt=""> <img :src="publicFun.getCookie('language') == 'en'?require('../../assets/img/pushprojecten.png'):require('../../assets/img/pushproject.png')" alt="">
</div> </div>
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
dataName:'first', dataName:'first',
projectNum:'——', projectNum:'——',
customerNum:'——', customerNum:'——',
userInfo:this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : null,
} }
}, },
components:{projectlist,bigBusinesslist,expertVisible}, components:{projectlist,bigBusinesslist,expertVisible},
...@@ -73,8 +74,14 @@ ...@@ -73,8 +74,14 @@
}) })
}, },
}, },
beforeDestroy() { // 在组件生命周期结束的时候销毁。、
globalMsg.$off('loginsuccess');
},
mounted() { mounted() {
this.getCountData(); this.getCountData();
globalMsg.$on("loginsuccess",(data)=>{
this.userInfo = this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : null;
});
} }
} }
</script> </script>
......
...@@ -242,10 +242,17 @@ ...@@ -242,10 +242,17 @@
if(res.result.length>0){ if(res.result.length>0){
res.result.forEach((item) => { res.result.forEach((item) => {
if (item.isBase == 0) { if (item.isBase == 0) {
console.log(this.userInfo)
item.fieldList.forEach((data,index) => { item.fieldList.forEach((data,index) => {
if(data.fieldValue.charAt(0)=='a'){ if(data.fieldValue.charAt(0)=='a'){
arrVal.push(item.fieldValue); arrVal.push(item.fieldValue);
} }
if(data.isCheck==1){
arrVal.push(item.fieldValue);
}
if(!this.userInfo.empName&&data.fieldValue == 'contactsName'){
arrVal.push(item.fieldValue);
}
}) })
} }
}) })
...@@ -319,6 +326,7 @@ ...@@ -319,6 +326,7 @@
}, },
beforeDestroy() { // 在组件生命周期结束的时候销毁。 beforeDestroy() { // 在组件生命周期结束的时候销毁。
window.removeEventListener('scroll', this.menu); window.removeEventListener('scroll', this.menu);
globalMsg.$off('loginsuccess');
}, },
mounted() { mounted() {
if (this.publicFun.judgeBrandIsWechatOrHtml() != 1) { if (this.publicFun.judgeBrandIsWechatOrHtml() != 1) {
...@@ -328,6 +336,10 @@ ...@@ -328,6 +336,10 @@
this.$router.replace({path:'/activitydetail',query:{id:this.$route.query.id,type:this.$route.query.type,isApply:this.$route.query.ismyevent==0?1:3}}); this.$router.replace({path:'/activitydetail',query:{id:this.$route.query.id,type:this.$route.query.type,isApply:this.$route.query.ismyevent==0?1:3}});
} }
} }
globalMsg.$on("loginsuccess",(data)=>{
this.userInfo = this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : null;
this.getActivityDetails();
});
globalMsg.$emit('topisInit', false); globalMsg.$emit('topisInit', false);
globalMsg.$emit('sendIndex', 3); globalMsg.$emit('sendIndex', 3);
globalMsg.$emit('maidianfunc',({type:'report-channel-read',channelId:this.$route.query.id})); globalMsg.$emit('maidianfunc',({type:'report-channel-read',channelId:this.$route.query.id}));
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
<div> <div>
<iframe name = "child" id = "child" src="live.html" frameborder="0" scrolling="no" style="position:related;top: 2.8px;left: 0px;width: 100%;height: 100vh;border: medium none;"></iframe> <iframe name = "child" id = "child" src="live.html" frameborder="0" scrolling="no" style="position:related;top: 2.8px;left: 0px;width: 100%;height: 100vh;border: medium none;"></iframe>
<div v-if="$i18n.locale=='zh-CN'" @click="isuserClick" class="event_iconchange"> <div v-if="$i18n.locale=='zh-CN'" @click="isuserClick" class="event_iconchange">
<img src="../../assets/img/changeImg.png" alt=""> <el-tooltip class="item" effect="dark" content="互换名片,拓展人脉圈" placement="top-start">
<img class="event_iconchange_img" src="../../assets/img/changeImg.png" alt="">
</el-tooltip>
</div> </div>
<div class="gendisplay event_all" :class="userClick?'':'event_lshow'"> <div class="gendisplay event_all" :class="userClick?'':'event_lshow'">
<div @click="userClick = false" class="event_l"></div> <div @click="userClick = false" class="event_l"></div>
...@@ -116,7 +118,7 @@ ...@@ -116,7 +118,7 @@
position: fixed; position: fixed;
bottom: 50px; bottom: 50px;
right: 0px; right: 0px;
>img{ .event_iconchange_img{
width: 70px; width: 70px;
cursor: pointer; cursor: pointer;
} }
...@@ -144,7 +146,7 @@ ...@@ -144,7 +146,7 @@
.event_r{ .event_r{
background: #ffffff; background: #ffffff;
width: 300px; width: 300px;
transition: right .3s; transition: right .6s;
height: 100%; height: 100%;
position: absolute; position: absolute;
right: -300px; right: -300px;
......
...@@ -233,6 +233,12 @@ ...@@ -233,6 +233,12 @@
if(data.fieldValue.charAt(0)=='a'){ if(data.fieldValue.charAt(0)=='a'){
arrVal.push(item.fieldValue); arrVal.push(item.fieldValue);
} }
if(data.isCheck==1){
arrVal.push(item.fieldValue);
}
if(!this.userInfo.empName&&data.fieldValue == 'contactsName'){
arrVal.push(item.fieldValue);
}
}) })
} }
}) })
...@@ -315,7 +321,14 @@ ...@@ -315,7 +321,14 @@
this.resourcesdata(); this.resourcesdata();
}, },
}, },
beforeDestroy() { // 在组件生命周期结束的时候销毁。、
globalMsg.$off('loginsuccess');
},
mounted() { mounted() {
globalMsg.$on("loginsuccess",(data)=>{
this.userInfo = this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : null;
this.resourcesdata();
});
this.resourcesdata(); this.resourcesdata();
api.dataGroupAllLists().then(response => { api.dataGroupAllLists().then(response => {
if(response.code == 0) { if(response.code == 0) {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<el-scrollbar style="height: 100%"> <el-scrollbar style="height: 100%">
<div class="p_tabs_content" v-infinite-scroll="load" infinite-scroll-disabled="disabled"> <div class="p_tabs_content" v-infinite-scroll="load" infinite-scroll-disabled="disabled">
<div class="gendisplay " v-for="(item,index) in userRelationlist"> <div class="gendisplay " v-for="(item,index) in userRelationlist">
<span class="userImg"> <span class="userImg" @click="tohome(item)">
<img class="userinfo_img" :src="item.empLogo?item.empLogo:require('../../assets/img/defaultlogo.png')" alt=""> <img class="userinfo_img" :src="item.empLogo?item.empLogo:require('../../assets/img/defaultlogo.png')" alt="">
<img class="userImg_vip" v-if="item.isProfessor == 1" src="../../assets/img/proFeedBack/vip.png" alt=""> <img class="userImg_vip" v-if="item.isProfessor == 1" src="../../assets/img/proFeedBack/vip.png" alt="">
<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="">
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</p> </p>
<div v-if="item.empId != userInfo.empId"> <div v-if="item.empId != userInfo.empId">
<popoverBardbar :iseventlive="true" v-if="item.isFriend == 2" :row="item" :placement="true"></popoverBardbar> <popoverBardbar :iseventlive="true" v-if="item.isFriend == 2" :row="item" :placement="true"></popoverBardbar>
<btnbar v-else :btnType="1" :channelId="$route.query.id" @successState="successState" :row="item" :index="index"></btnbar> <btnbar v-if="item.isFriend != 2" :btnType="1" :channelId="$route.query.id" @successState="successState" :row="item" :index="index"></btnbar>
</div> </div>
</div> </div>
<p @click="tohome(item)" style="color:#AAAAAA;"> <p @click="tohome(item)" style="color:#AAAAAA;">
......
This diff is collapsed.
...@@ -960,6 +960,12 @@ ...@@ -960,6 +960,12 @@
if(data.fieldValue.charAt(0)=='a'){ if(data.fieldValue.charAt(0)=='a'){
arrVal.push(item.fieldValue); arrVal.push(item.fieldValue);
} }
if(data.isCheck==1){
arrVal.push(item.fieldValue);
}
if(!this.userInfo.empName&&data.fieldValue == 'contactsName'){
arrVal.push(item.fieldValue);
}
}) })
} }
}) })
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
trigger="hover"> trigger="hover">
<div class="centerQrCode" style="text-align: center"> <div class="centerQrCode" style="text-align: center">
<span style="font-size: 12px;">{{$t('industryjson.share1')}}</span> <span style="font-size: 12px;">{{$t('industryjson.share1')}}</span>
<VueQRCodeComponent style="margin:10px 0 10px 17px;" :text="urltext" :size="120" :margin="0"></VueQRCodeComponent> <VueQRCodeComponent style="margin:10px 0 10px 17px;" :text="publicFun.getCurrentHrefEnv()+'#/industryReportDetail?id='+dataDetail.reportId" :size="120" :margin="0"></VueQRCodeComponent>
<span style="font-size: 12px;">{{$t('industryjson.share2')}}</span> <span style="font-size: 12px;">{{$t('industryjson.share2')}}</span>
<span style="font-size: 12px;">{{$t('industryjson.share3')}}</span> <span style="font-size: 12px;">{{$t('industryjson.share3')}}</span>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
center> center>
<div class="centerQrCode" style="text-align: center"> <div class="centerQrCode" style="text-align: center">
<span style="font-size: 12px;">{{$t('industryjson.share1')}}</span> <span style="font-size: 12px;">{{$t('industryjson.share1')}}</span>
<VueQRCodeComponent style="margin:10px 90px;" :text="urltext" :size="120" :margin="0"></VueQRCodeComponent> <VueQRCodeComponent style="margin:10px 90px;" :text="publicFun.getCurrentHrefEnv()+'#/industryReportDetail?id='+dataDetail.reportId" :size="120" :margin="0"></VueQRCodeComponent>
<span style="font-size: 12px;">{{$t('industryjson.share2')}}</span> <span style="font-size: 12px;">{{$t('industryjson.share2')}}</span>
<span style="font-size: 12px;">{{$t('industryjson.share3')}}</span> <span style="font-size: 12px;">{{$t('industryjson.share3')}}</span>
...@@ -116,8 +116,8 @@ ...@@ -116,8 +116,8 @@
} else { } else {
if(response.result==4||response.result==5){ if(response.result==4||response.result==5){
this.$confirm(response.msg, { this.$confirm(response.msg, {
cancelButtonText: response.result==4?'分享即得积分':response.result==5?'取消':'', cancelButtonText: response.result==4?(this.$i18n.locale=="zh-CN"?'分享即得积分':'Cancel'):response.result==5?'取消':'',
confirmButtonText: response.result==4?(this.$i18n.locale=="zh-CN"?'赚取积分':''):response.result==5?'确定':'', confirmButtonText: response.result==4?(this.$i18n.locale=="zh-CN"?'赚取积分':'OK'):response.result==5?'确定':'',
type: '', type: '',
distinguishCancelAndClose: true, distinguishCancelAndClose: true,
dangerouslyUseHTMLString:true, dangerouslyUseHTMLString:true,
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
if(response.result==4){ if(response.result==4){
if(this.$i18n.locale=="zh-CN")window.open(this.publicFun.getCurrentHrefEnv()+"#/userintegral"); if(this.$i18n.locale=="zh-CN")window.open(this.publicFun.getCurrentHrefEnv()+"#/userintegral");
}else{ }else{
this.gocontentdetail(1); if(this.$i18n.locale=="zh-CN")this.gocontentdetail(1);
} }
}).catch((action) => { }).catch((action) => {
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
trigger="hover"> trigger="hover">
<div class="centerQrCode" style="text-align: center"> <div class="centerQrCode" style="text-align: center">
<span style="font-size: 12px;">{{$t('industryjson.share1')}}</span> <span style="font-size: 12px;">{{$t('industryjson.share1')}}</span>
<VueQRCodeComponent style="margin:10px 0 10px 17px;" :text="urltext" :size="120" :margin="0"></VueQRCodeComponent> <VueQRCodeComponent style="margin:10px 0 10px 17px;" :text="publicFun.getCurrentHrefEnv()+'#/industryReportDetail?id='+item.reportId" :size="120" :margin="0"></VueQRCodeComponent>
<span style="font-size: 12px;">{{$t('industryjson.share2')}}</span> <span style="font-size: 12px;">{{$t('industryjson.share2')}}</span>
<span style="font-size: 12px;">{{$t('industryjson.share3')}}</span> <span style="font-size: 12px;">{{$t('industryjson.share3')}}</span>
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
</p> </p>
<div style="margin-top: 20px;width: 100%;" class="gendisplay"> <div style="margin-top: 20px;width: 100%;" class="gendisplay">
<p style="width: 95%;height: 50px;overflow: hidden;"> <p style="width: 95%;height: 50px;overflow: hidden;">
<img v-if="contentdata.guessEmpList" v-for="(item,index) in contentdata.guessEmpList" :key="index" :src="item.empLogo.length==0?require('../../assets/img/defaultlogo.png'):item.empLogo" class="images"> <img @click="tohome(item)" v-if="contentdata.guessEmpList" v-for="(item,index) in contentdata.guessEmpList" :key="index" :src="item.empLogo.length==0?require('../../assets/img/defaultlogo.png'):item.empLogo" class="images">
</p> </p>
<p style="line-height: 50px;" v-if="contentdata.guessEmpList&&contentdata.guessEmpList.length > 13"> <p style="line-height: 50px;" v-if="contentdata.guessEmpList&&contentdata.guessEmpList.length > 13">
&bull;&bull;&bull; &bull;&bull;&bull;
...@@ -163,6 +163,16 @@ ...@@ -163,6 +163,16 @@
}) })
}, },
methods:{ methods:{
//去主页
tohome(row){
if(!this.publicFun.getUserInfoCookieType()){
this.$refs.login.isexpertVisible();
return
}else{
window.open(this.publicFun.getCurrentHrefEnv()+"#/peoplehome?id="+row.empId);
// this.$router.push({path:"/peoplehome",query:{id:row.empId}});
}
},
//图片查看处理 //图片查看处理
getSrcList(index){ getSrcList(index){
if(this.contentdata.resultsImg.split){ if(this.contentdata.resultsImg.split){
......
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
this.$refs.login.isexpertVisible(); this.$refs.login.isexpertVisible();
return return
} }
this.$router.push({path:'/empguesslist'}) this.$router.push({path:'/peoplehome/tabs/quiz'})
} }
}, },
......
...@@ -19,10 +19,12 @@ ...@@ -19,10 +19,12 @@
</p> </p>
<p> <p>
<span> <span>
目标客户行业:{{item.targetIndustryStr}} <i style="font-weight: bold;">目标客户行业:</i>
{{item.targetIndustryStr}}
</span> </span>
<span> <span>
首选合作方式:{{item.companyIndustryStr}} <i style="font-weight: bold;">首选合作方式:</i>
{{item.companyIndustryStr}}
</span> </span>
</p> </p>
<p> <p>
...@@ -47,11 +49,13 @@ ...@@ -47,11 +49,13 @@
</div> </div>
</div> </div>
</div> </div>
<expertVisible ref="login" @dataEvent="successlogin" :registerType="107"></expertVisible>
</div> </div>
</template> </template>
<script> <script>
import api from "./api/api"; import api from "./api/api";
import expertVisible from "../../components/login/quicklogin";
export default { export default {
name: "bigBusinesslist", name: "bigBusinesslist",
...@@ -61,13 +65,21 @@ ...@@ -61,13 +65,21 @@
totalListResult: 0, totalListResult: 0,
numberData: 10, //设置个数 numberData: 10, //设置个数
datalist:[], datalist:[],
userInfo : this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : null,
} }
}, },
props:['keyword'], props:['keyword'],
components:{expertVisible},
methods:{ methods:{
newOpenroute(row){ newOpenroute(row){
window.open(this.publicFun.getCurrentHrefEnv()+"#/bigBusiness/detail?id="+row.businessId+'&flag=1'); window.open(this.publicFun.getCurrentHrefEnv()+"#/bigBusiness/detail?id="+row.businessId+'&flag=1');
}, },
//登陆成功
successlogin(){
this.userInfo = this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : null;
this.cur_page = 6;
this.getselectdatas();
},
// 分页导航 // 分页导航
handleCurrentChange(val) { handleCurrentChange(val) {
this.cur_page = val; this.cur_page = val;
...@@ -92,7 +104,37 @@ ...@@ -92,7 +104,37 @@
this.datalist = response.result.records; this.datalist = response.result.records;
this.totalListResult = response.result.total; this.totalListResult = response.result.total;
}else{ }else{
this.$message.error(response.msg); if(response.code==499) {
if ( this.userInfo ) {
if(this.userInfo.auditState=="AS01"||this.userInfo.auditState=="AS02"||this.userInfo.auditState=="AS04"){
this.$confirm( this.$t("commonTitle.bBNoAuthTitle"), {
cancelButtonText: this.$t("commonTips.cancel"),
confirmButtonText: this.$t("commonTitle.sendProject"),
type: '',
customClass: 'deleteConfirm'
}).then(() => {
this.$router.push('/totceldata');
}).catch(() => {
this.cur_page = 1;
this.getselectdatas();
});
}
}else{
this.$confirm(this.$t("commonTips.loginMore"), {
cancelButtonText: this.$t("commonTips.cancel"),
confirmButtonText: this.$t("mobile.alreadyLogin"),
type: '',
customClass: 'deleteConfirm'
}).then(() => {
this.cur_page = 1;
this.$refs.login.isexpertVisible();
}).catch(() => {
this.cur_page = 1;
this.getselectdatas();
});
}
}
// this.$message.error(response.msg);
} }
}).catch((err)=>{ }).catch((err)=>{
this.$message.error(err); this.$message.error(err);
...@@ -124,6 +166,9 @@ ...@@ -124,6 +166,9 @@
} }
} }
.search_dataList{ .search_dataList{
>div:last-child{
border: none;
}
>div{ >div{
padding: 20px 0; padding: 20px 0;
border-bottom: 1px solid #F2F2F2; border-bottom: 1px solid #F2F2F2;
...@@ -133,13 +178,13 @@ ...@@ -133,13 +178,13 @@
} }
>div{ >div{
width: calc(100% - 40px); width: calc(100% - 40px);
padding-left: 20px; padding-left: 15px;
>p:nth-child(1){ >p:nth-child(1){
color: #1A1A1E; color: #1A1A1E;
font-weight: bold; font-weight: bold;
} }
>p:nth-child(2){ >p:nth-child(2){
margin: 8px 0 12px; margin: 8px 0 8px;
color: #1A1A1E; color: #1A1A1E;
font-size: 12px; font-size: 12px;
} }
......
...@@ -36,15 +36,15 @@ ...@@ -36,15 +36,15 @@
<div class="gendisplay"> <div class="gendisplay">
<div> <div>
<i class="iconfont icon-huore"></i> <i class="iconfont icon-huore"></i>
<p>最新竞猜</p> <p>行业活动</p>
</div> </div>
<div> <div>
<i class="iconfont icon-hongbao"></i> <i class="iconfont icon-hongbao"></i>
<p>最新竞猜</p> <p>热门话题</p>
</div> </div>
<div> <div>
<i class="iconfont icon-vip1"></i> <i class="iconfont icon-vip1"></i>
<p>最新竞猜</p> <p>专家汇聚</p>
</div> </div>
</div> </div>
</div> </div>
...@@ -89,13 +89,14 @@ ...@@ -89,13 +89,14 @@
components:{projectlist,bigBusinesslist,eventlist,topiclist,networklist,guesslist,articlelist,industrylist}, components:{projectlist,bigBusinesslist,eventlist,topiclist,networklist,guesslist,articlelist,industrylist},
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
next(vm=>{ // 这里的vm指的就是vue实例,可以用来当做this使用 next(vm=>{ // 这里的vm指的就是vue实例,可以用来当做this使用
if(from.path == '/matchlist')vm.keychecked = 1 if(from.path == '/matchlist'||from.path == '/viewproject')vm.keychecked = 1
else if(from.path == '/activitylist')vm.keychecked = 3 else if(from.path == '/bigBusiness/detail')vm.keychecked = 2
else if(from.path == '/topicList')vm.keychecked = 4 else if(from.path == '/activitylist'||from.path == '/eventdetail')vm.keychecked = 3
else if(from.path == '/circleList')vm.keychecked = 5 else if(from.path == '/topicList'||from.path == '/topicDetails')vm.keychecked = 4
else if(from.path == '/guesslist')vm.keychecked = 6 else if(from.path == '/circleList'||from.path == '/networkSearch')vm.keychecked = 5
else if(from.path == '/articleList')vm.keychecked = 7 else if(from.path == '/guesslist'||from.path == '/guessDetail')vm.keychecked = 6
else if(from.path == '/industryReport')vm.keychecked = 8 else if(from.path == '/articleList'||from.path == '/articleDetail')vm.keychecked = 7
else if(from.path == '/industryReport'||from.path == '/industryReportDetail')vm.keychecked = 8
}) })
}, },
methods:{ methods:{
......
...@@ -27,11 +27,12 @@ ...@@ -27,11 +27,12 @@
{{item.companyCity?(' - '+item.companyCity):''}} {{item.companyCity?(' - '+item.companyCity):''}}
</span> </span>
<span v-if="item.companyIndustryList"> <span v-if="item.companyIndustryList">
目标客户行业: <i style="font-weight: bold;">目标客户行业:</i>
<span v-for="(itemcompany,index) in item.companyIndustryList">{{itemcompany}}{{item.companyIndustryList.length-1 == index ? '' : ''}}</span> <span v-for="(itemcompany,index) in item.companyIndustryList">{{itemcompany}}{{item.companyIndustryList.length-1 == index ? '' : ''}}</span>
</span> </span>
<span v-if="item.cooperationWay"> <span v-if="item.cooperationWay">
首选合作方式:{{item.cooperationWay}} <i style="font-weight: bold;">首选合作方式:</i>
{{item.cooperationWay}}
</span> </span>
</p> </p>
</div> </div>
...@@ -50,11 +51,13 @@ ...@@ -50,11 +51,13 @@
</div> </div>
</div> </div>
</div> </div>
<expertVisible ref="login" @dataEvent="successlogin" :registerType="107"></expertVisible>
</div> </div>
</template> </template>
<script> <script>
import api from "./api/api"; import api from "./api/api";
import expertVisible from "../../components/login/quicklogin";
export default { export default {
name: "projectlist", name: "projectlist",
...@@ -64,13 +67,21 @@ ...@@ -64,13 +67,21 @@
totalListResult: 0, totalListResult: 0,
numberData: 10, //设置个数 numberData: 10, //设置个数
datalist:[], datalist:[],
userInfo : this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : null,
} }
}, },
props:['keyword'], props:['keyword'],
components:{expertVisible},
methods:{ methods:{
newOpenroute(row){ newOpenroute(row){
window.open(this.publicFun.getCurrentHrefEnv()+"#/viewproject?projectId="+row.projectId+'&state=0'); window.open(this.publicFun.getCurrentHrefEnv()+"#/viewproject?projectId="+row.projectId+'&state=0');
}, },
//登陆成功
successlogin(){
this.userInfo = this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : null;
this.cur_page = 6;
this.getselectdatas();
},
// 分页导航 // 分页导航
handleCurrentChange(val) { handleCurrentChange(val) {
this.cur_page = val; this.cur_page = val;
...@@ -95,7 +106,37 @@ ...@@ -95,7 +106,37 @@
this.datalist = response.result.records; this.datalist = response.result.records;
this.totalListResult = response.result.total; this.totalListResult = response.result.total;
}else{ }else{
this.$message.error(response.msg); if(response.code==499) {
if ( this.userInfo ) {
if(this.userInfo.auditState=="AS01"||this.userInfo.auditState=="AS02"||this.userInfo.auditState=="AS04"){
this.$confirm( this.$t("commonTitle.sBNoAuthTitle"), {
cancelButtonText: this.$t("commonTips.cancel"),
confirmButtonText: this.$t("commonTitle.sendRequire"),
type: '',
customClass: 'deleteConfirm'
}).then(() => {
this.$router.push('/bigBusiness/add');
}).catch(() => {
this.cur_page = 1;
this.getselectdatas();
});
}
}else{
this.$confirm(this.$t("commonTips.loginMore"), {
cancelButtonText: this.$t("commonTips.cancel"),
confirmButtonText: this.$t("mobile.alreadyLogin"),
type: '',
customClass: 'deleteConfirm'
}).then(() => {
this.cur_page = 1;
this.$refs.login.isexpertVisible();
}).catch(() => {
this.cur_page = 1;
this.getselectdatas();
});
}
}
// this.$message.error(response.msg);
} }
}).catch((err)=>{ }).catch((err)=>{
this.$message.error(err); this.$message.error(err);
...@@ -127,6 +168,9 @@ ...@@ -127,6 +168,9 @@
} }
} }
.search_dataList{ .search_dataList{
>div:last-child{
border: none;
}
>div{ >div{
padding: 20px 0; padding: 20px 0;
border-bottom: 1px solid #F2F2F2; border-bottom: 1px solid #F2F2F2;
...@@ -136,7 +180,7 @@ ...@@ -136,7 +180,7 @@
} }
>div{ >div{
width: calc(100% - 40px); width: calc(100% - 40px);
padding-left: 20px; padding-left: 15px;
>p:nth-child(1){ >p:nth-child(1){
color: #1A1A1E; color: #1A1A1E;
font-weight: bold; font-weight: bold;
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<span v-if="item.isOpenReward!=1&&item.professorCount!=0" class="ellipsisFont1" style="max-width: 200px;color:#5D78FF;">专家入驻{{item.professorCount}}</span> <span v-if="item.isOpenReward!=1&&item.professorCount!=0" class="ellipsisFont1" style="max-width: 200px;color:#5D78FF;">专家入驻{{item.professorCount}}</span>
<span v-if="item.isOpenReward==1||item.professorCount==0" class="ellipsisFont1" style="max-width: 200px;">发起方: <i style="color:#5D78FF;">{{item.topicInitiator}}</i></span> <span v-if="item.isOpenReward==1||item.professorCount==0" class="ellipsisFont1" style="max-width: 200px;">发起方: <i style="color:#5D78FF;">{{item.topicInitiator}}</i></span>
<span>阅读 {{item.topicBrowseStr}}</span> <span>阅读 {{item.topicBrowseStr}}</span>
<span>参与 {{item.topicDiscussStr}}</span> <span>参与 {{item.topicDiscussStr}}</span>
<span>成员 {{item.joinCount}}</span> <span>成员 {{item.joinCount}}</span>
</div> </div>
</div> </div>
...@@ -69,11 +69,13 @@ ...@@ -69,11 +69,13 @@
<p style="color: #9197B4;text-align: center;line-height: 50px;" v-if="noMore">{{$t('industryjson.nomore')}}</p> <p style="color: #9197B4;text-align: center;line-height: 50px;" v-if="noMore">{{$t('industryjson.nomore')}}</p>
</div> </div>
</div> </div>
<expertVisible ref="login" :registerType="101"></expertVisible>
</div> </div>
</template> </template>
<script> <script>
import api from "./api/api"; import api from "./api/api";
import expertVisible from "../../components/login/quicklogin";
export default { export default {
name: "topiclist", name: "topiclist",
...@@ -89,6 +91,7 @@ ...@@ -89,6 +91,7 @@
} }
}, },
props:['keyword'], props:['keyword'],
components:{expertVisible},
computed: { computed: {
noMore () { noMore () {
return this.cur_page == this.pages return this.cur_page == this.pages
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<div v-if="item.dynamicType == 1"> <div v-if="item.dynamicType == 1">
<p class="gendisplay"> <p class="gendisplay">
<span @click="tohome(item.empId)">{{item.empName}}</span>&nbsp;&nbsp; <span @click="tohome(item.empId)">{{item.empName}}</span>&nbsp;&nbsp;
<span @click="$router.push({path:'/discussdetail',query:{id:item.pid,disId:item.id}})"> {{'#'+item.topicName}}</span> <span @click=topicdetail(item)> {{'#'+item.topicName}}</span>
<span>...</span> <span>...</span>
话题下发布了讨论 话题下发布了讨论
</p> </p>
...@@ -89,6 +89,10 @@ ...@@ -89,6 +89,10 @@
// this.$router.push({path:"/peoplehome",query:{id:id}}); // this.$router.push({path:"/peoplehome",query:{id:id}});
} }
}, },
topicdetail(item){
window.open(this.publicFun.getCurrentHrefEnv()+"#/discussdetail?id="+id.pid+"&disId="+item.id);
// this.$router.push({path:'/discussdetail',query:{id:item.pid,disId:item.id}});
},
}, },
mounted() { mounted() {
this.getDynamicMessage(); this.getDynamicMessage();
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
</p> </p>
<div> <div>
<p class="ellipsisFont2"> <p class="ellipsisFont2">
<span class="event_hasLive" @click="openeventlive(item.activityDTO)" v-if="item.activityDTO.hasLive == 1" :style="item.activityDTO.baseLive.liveState == 1?'background: #FE9F2C':'background: #5d78ff;'"> <span class="event_hasLive" @click="openeventlive(item.activityDTO,item)" v-if="item.activityDTO.hasLive == 1" :style="item.activityDTO.baseLive.liveState == 1?'background: #FE9F2C':'background: #5d78ff;'">
<i class="iconfont icon-zhibo"></i> <i class="iconfont icon-zhibo"></i>
{{item.activityDTO.baseLive.liveState == 0?$t('activityInfo.liveTitle'):item.activityDTO.baseLive.liveState == 1?$t('activityInfo.living'):item.activityDTO.baseLive.liveState==2&&item.activityDTO.baseLive.liveBack == 0?$t('activityInfo.liveBack'):$t('activityInfo.liveTitle')}} {{item.activityDTO.baseLive.liveState == 0?$t('activityInfo.liveTitle'):item.activityDTO.baseLive.liveState == 1?$t('activityInfo.living'):item.activityDTO.baseLive.liveState==2&&item.activityDTO.baseLive.liveBack == 0?$t('activityInfo.liveBack'):$t('activityInfo.liveTitle')}}
</span> </span>
...@@ -209,7 +209,7 @@ ...@@ -209,7 +209,7 @@
} }
}, },
//打开直播 //打开直播
openeventlive(row){ openeventlive(row,item){
var liveUrl = this.Base64.encode(row.baseLive.liveUrl); var liveUrl = this.Base64.encode(row.baseLive.liveUrl);
this.publicFun.setUserInfoCookie("liveUrl",row.baseLive.liveUrl); this.publicFun.setUserInfoCookie("liveUrl",row.baseLive.liveUrl);
if(row.baseLive.liveState != 0){ if(row.baseLive.liveState != 0){
...@@ -225,15 +225,17 @@ ...@@ -225,15 +225,17 @@
} }
window.open(this.publicFun.getCurrentHrefEnv()+"#/eventlive?url="+liveUrl+'&id='+row.channelId); window.open(this.publicFun.getCurrentHrefEnv()+"#/eventlive?url="+liveUrl+'&id='+row.channelId);
}else{ }else{
if(row.baseLive.livePowers == 0&&row.activityState == 2&&row.isJoin == 2){ if(row.baseLive.livePowers == 0&&row.activityState == 2&&!row.isApply){
if(!this.publicFun.getUserInfoCookieType()){ if(!this.publicFun.getUserInfoCookieType()){
this.$refs.login.isexpertVisible(); this.$refs.login.isexpertVisible();
return return
} }
this.$message.error(this.$t('activityInfo.applyFirst')); this.routerpush(4,item);
}else if(row.baseLive.livePowers == 0&&row.activityState == 5&&row.isJoin == 2||row.baseLive.livePowers == 0&&row.activityState == 3&&row.isJoin == 2){ // this.$message.error(this.$t('activityInfo.applyFirst'));
}else if(row.baseLive.livePowers == 0&&row.activityState == 5&&!row.isApply||row.baseLive.livePowers == 0&&row.activityState == 3&&!row.isApply){
if(row.baseLive.liveState != 2){ if(row.baseLive.liveState != 2){
this.$message.error(this.$t('activityInfo.applyEndTitle')); this.routerpush(4,item);
// this.$message.error(this.$t('activityInfo.applyEndTitle'));
} }
}else{ }else{
if(row.baseLive.liveState == 1||row.baseLive.liveState == 2&&row.baseLive.liveBack == 0){ if(row.baseLive.liveState == 1||row.baseLive.liveState == 2&&row.baseLive.liveBack == 0){
......
...@@ -126,15 +126,15 @@ ...@@ -126,15 +126,15 @@
<div class="gendisplay about_top privacy_content"> <div class="gendisplay about_top privacy_content">
<div class="privacy_left"> <div class="privacy_left">
<div class="gendisplay"> <div class="gendisplay">
<div v-if="((userInfoData.moderator||userInfoData.professor)&&userInfoData.title)||userInfoData.orgName" class="gendisplay"> <div v-if="((userInfoData.moderator||userInfoData.professor)&&userInfoData.title)||userInfoData.workName" class="gendisplay">
<p><i style="color:#AAAAAA;font-size: 12px;" class="iconfont icon-hangye"></i></p> <p><i style="color:#AAAAAA;font-size: 12px;" class="iconfont icon-hangye"></i></p>
<p style="margin-left: 10px;"> <p style="margin-left: 10px;">
{{userInfoData.moderator||userInfoData.professor?userInfoData.title:userInfoData.orgName}} {{userInfoData.moderator||userInfoData.professor?userInfoData.title:userInfoData.workName}}
</p> </p>
</div> </div>
<div v-if="userInfoData.workName" style="margin-left: 20px;" class="gendisplay"> <div v-if="userInfoData.orgName" style="margin-left: 20px;" class="gendisplay">
<p><i style="color:#AAAAAA;font-size: 12px;" class="iconfont icon-qiye"></i></p> <p><i style="color:#AAAAAA;font-size: 12px;" class="iconfont icon-qiye"></i></p>
<p style="margin-left: 10px;">{{userInfoData.workName}}</p> <p style="margin-left: 10px;">{{userInfoData.orgName}}</p>
</div> </div>
</div> </div>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<el-form-item :label="$t('Otherjson.activitytitle')+':'" prop="channelTitle" style="width: 100%;"> <el-form-item :label="$t('Otherjson.activitytitle')+':'" prop="channelTitle" style="width: 100%;">
<el-input v-model="formData.channelTitle" maxlength="100" :placeholder="$t('Otherjson.plactivitytitle')" style="width: 450px;height: 40px"></el-input> <el-input v-model="formData.channelTitle" maxlength="100" :placeholder="$t('Otherjson.plactivitytitle')" style="width: 450px;height: 40px"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="行业通俗分类:" prop="dataList"> <el-form-item v-if="$route.query.type != '5'" label="行业通俗分类:" prop="dataList">
<el-select v-model="formData.dataList" multiple placeholder="请选择" style="width: 600px;"> <el-select v-model="formData.dataList" multiple placeholder="请选择" style="width: 600px;">
<el-option <el-option
style="width: 600px;" style="width: 600px;"
......
...@@ -348,8 +348,16 @@ ...@@ -348,8 +348,16 @@
},
beforeDestroy() { // 在组件生命周期结束的时候销毁。、
globalMsg.$off('loginsuccess');
}, },
mounted(){ mounted(){
globalMsg.$on("loginsuccess",(data)=>{
this.userInfo = this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : null;
this.getInitData();
this.getCountData();
});
// const empinfo = JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())); // const empinfo = JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType()));
// if(empinfo.authenticationState != 2){ // if(empinfo.authenticationState != 2){
// this.stateauth = false; // this.stateauth = false;
......
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
<el-tab-pane :label="'已入驻版主('+moderatorCount+')'" name="first"> <el-tab-pane :label="'已入驻版主('+moderatorCount+')'" name="first">
<div style="margin:0 30px 20px 0;flex-wrap: wrap;" class="gendisplay"> <div style="margin:0 30px 20px 0;flex-wrap: wrap;" class="gendisplay">
<div class="list_moderator" v-for="(item,index) in moderatorlist" :key="index"> <div class="list_moderator" v-for="(item,index) in moderatorlist" :key="index">
<div style="position: relative;"> <div style="position: relative;" @click="tohome(item)">
<img :src="item.empLogo?item.empLogo:require('../../assets/img/defaultlogo.png')" style="border-radius: 50%; border:1px solid #DCDFF1; width: 60px;height: 60px;"> <img :src="item.empLogo?item.empLogo:require('../../assets/img/defaultlogo.png')" style="border-radius: 50%; border:1px solid #DCDFF1; width: 60px;height: 60px;">
<img src="../../assets/img/mobile/moderator.png" alt="" style="position: absolute;right: 3px;bottom: 0px;width: 15px;"> <img src="../../assets/img/mobile/moderator.png" alt="" style="position: absolute;right: 3px;bottom: 0px;width: 15px;">
</div> </div>
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
<el-tab-pane :label="'已入驻版主('+moderatorCount+')'" name="first"> <el-tab-pane :label="'已入驻版主('+moderatorCount+')'" name="first">
<div style="margin:0 30px 20px 0;flex-wrap: wrap;" class="gendisplay"> <div style="margin:0 30px 20px 0;flex-wrap: wrap;" class="gendisplay">
<div class="list_moderator" v-for="(item,index) in moderatorlist" :key="index"> <div class="list_moderator" v-for="(item,index) in moderatorlist" :key="index">
<p style="position: relative;"> <p style="position: relative;" @click="tohome(item)">
<img :src="item.empLogo?item.empLogo:require('../../assets/img/defaultlogo.png')" alt="" style="width: 60px;height: 60px;border-radius: 50%;"> <img :src="item.empLogo?item.empLogo:require('../../assets/img/defaultlogo.png')" alt="" style="width: 60px;height: 60px;border-radius: 50%;">
<img src="../../assets/img/mobile/moderator.png" alt="" style="position: absolute;right: 3px;bottom: 0px;width: 15px;"> <img src="../../assets/img/mobile/moderator.png" alt="" style="position: absolute;right: 3px;bottom: 0px;width: 15px;">
...@@ -239,6 +239,16 @@ ...@@ -239,6 +239,16 @@
topicbar,VueQRCodeComponent,discussdialog,expertVisible,dialogintegralbar topicbar,VueQRCodeComponent,discussdialog,expertVisible,dialogintegralbar
}, },
methods: { methods: {
//去主页
tohome(row){
if(!this.publicFun.getUserInfoCookieType()){
this.$refs.login.isexpertVisible();
return
}else{
window.open(this.publicFun.getCurrentHrefEnv()+"#/peoplehome?id="+row.empId);
// this.$router.push({path:"/peoplehome",query:{id:row.empId}});
}
},
todetail(row){ todetail(row){
// this.$router.push({path:"/topicDetails",query:{id:row.topicId}}); // this.$router.push({path:"/topicDetails",query:{id:row.topicId}});
window.open(this.publicFun.getCurrentHrefEnv()+"#/topicDetails?id="+row.topicId+'&newnpen=true'); window.open(this.publicFun.getCurrentHrefEnv()+"#/topicDetails?id="+row.topicId+'&newnpen=true');
......
...@@ -1448,7 +1448,23 @@ ...@@ -1448,7 +1448,23 @@
}); });
}, },
}, },
beforeDestroy() { // 在组件生命周期结束的时候销毁。、
globalMsg.$off('loginsuccess');
},
mounted(){ mounted(){
globalMsg.$on("loginsuccess",(data)=>{
this.empId = this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())).empId : undefined;
api.selectTopicById(this.$route.query.id).then((res) => {
if (res.code == 0) {
this.contentdata = res.result;
this.discussContent = '<p>#'+this.contentdata.topicTitle+'#</p>';
}else {
this.$message.error(res.msg)
}
}).catch((err) => {
this.$message.error(err)
})
});
if(this.empId){ if(this.empId){
this.getMyproject(); this.getMyproject();
this.getselectByEmpId(); this.getselectByEmpId();
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
</el-table-column> </el-table-column>
<el-table-column label="发布人" align="center"> <el-table-column label="发布人" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.nickName?scope.row.nickName:scope.row.empName}} {{scope.row.isProfessor||scope.row.isModerator?scope.row.empName:scope.row.nickName}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('listjson.action')" width="200" align='center'> <el-table-column :label="$t('listjson.action')" width="200" align='center'>
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
<div v-for="(item,index) in professorlist" :key="index"> <div v-for="(item,index) in professorlist" :key="index">
<el-tooltip placement="top" popper-class="boxShadowTip" effect="light"> <el-tooltip placement="top" popper-class="boxShadowTip" effect="light">
<div class="gendisplay" style="padding: 20px 20px 0 20px;"> <div class="gendisplay" style="padding: 20px 20px 0 20px;">
<div style="position: relative;"> <div style="position: relative;" @click="tohome(item)">
<img v-if="item.empLogo" :src="item.empLogo" style="border-radius: 50%; border:1px solid #DCDFF1; width: 60px;height: 60px;"> <img v-if="item.empLogo" :src="item.empLogo" style="border-radius: 50%; border:1px solid #DCDFF1; width: 60px;height: 60px;">
<img v-else src="../../assets/img/defaultlogo.png" style="border-radius: 50%; border:1px solid #DCDFF1; width: 60px;height: 60px;"> <img v-else src="../../assets/img/defaultlogo.png" style="border-radius: 50%; border:1px solid #DCDFF1; width: 60px;height: 60px;">
<img src="../../assets/img/proFeedBack/vip.png" alt="" style="position: absolute;right: 3px;top: 45px;width: 15px;"> <img src="../../assets/img/proFeedBack/vip.png" alt="" style="position: absolute;right: 3px;top: 45px;width: 15px;">
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<div slot="content"> <div slot="content">
<div class="gendisplay"> <div class="gendisplay">
<div style="position: relative;"> <div style="position: relative;" @click="tohome(item)">
<img v-if="item.empLogo" :src="item.empLogo" style="border-radius: 50%; border:1px solid #DCDFF1; width: 60px;height: 60px;"> <img v-if="item.empLogo" :src="item.empLogo" style="border-radius: 50%; border:1px solid #DCDFF1; width: 60px;height: 60px;">
<img v-else src="../../assets/img/defaultlogo.png" style="border-radius: 50%; border:1px solid #DCDFF1; width: 60px;height: 60px;"> <img v-else src="../../assets/img/defaultlogo.png" style="border-radius: 50%; border:1px solid #DCDFF1; width: 60px;height: 60px;">
<img src="../../assets/img/proFeedBack/vip.png" alt="" style="position: absolute;right: 3px;top: 45px;width: 15px;"> <img src="../../assets/img/proFeedBack/vip.png" alt="" style="position: absolute;right: 3px;top: 45px;width: 15px;">
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
<el-tab-pane :label="'已入驻版主('+moderatorCount+')'" name="first"> <el-tab-pane :label="'已入驻版主('+moderatorCount+')'" name="first">
<div style="margin:0 30px 20px 0;flex-wrap: wrap;" class="gendisplay"> <div style="margin:0 30px 20px 0;flex-wrap: wrap;" class="gendisplay">
<div class="list_moderator" v-for="(item,index) in moderatorlist" :key="index"> <div class="list_moderator" v-for="(item,index) in moderatorlist" :key="index">
<div style="position: relative;"> <div style="position: relative;" @click="tohome(item)">
<img :src="item.empLogo?item.empLogo:require('../../assets/img/defaultlogo.png')" style="border-radius: 50%; border:1px solid #DCDFF1; width: 60px;height: 60px;"> <img :src="item.empLogo?item.empLogo:require('../../assets/img/defaultlogo.png')" style="border-radius: 50%; border:1px solid #DCDFF1; width: 60px;height: 60px;">
<img src="../../assets/img/mobile/moderator.png" alt="" style="position: absolute;right: 3px;bottom: 0px;width: 15px;"> <img src="../../assets/img/mobile/moderator.png" alt="" style="position: absolute;right: 3px;bottom: 0px;width: 15px;">
</div> </div>
...@@ -213,6 +213,16 @@ ...@@ -213,6 +213,16 @@
} }
}, },
methods: { methods: {
//去主页
tohome(row){
if(!this.publicFun.getUserInfoCookieType()){
this.$refs.login.isexpertVisible();
return
}else{
window.open(this.publicFun.getCurrentHrefEnv()+"#/peoplehome?id="+row.empId);
// this.$router.push({path:"/peoplehome",query:{id:row.empId}});
}
},
load () { load () {
if(this.cur_page <= this.pages){ if(this.cur_page <= this.pages){
this.cur_page++; this.cur_page++;
......
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