Commit 8611ddb9 authored by anxixi's avatar anxixi

活动问题修改

parent b7331749
......@@ -320,7 +320,7 @@
},
//文章详情
gocontentdetail(row){
globalMsg.$emit('maiDianFunc',({type:'report-article-list',articleId:row.contentId}));
globalMsg.$emit('maidianfunc',({type:'report-article-list',articleId:row.contentId}));
window.open(this.publicFun.getCurrentHrefEnv()+"#/articleDetail?id="+row.contentId+'&newnpen=true');
// this.$router.push({path:"/contentdetail",query:{id:row.contentId}});
},
......
......@@ -148,21 +148,21 @@
});
},
goindustry(row){
globalMsg.$emit('maiDianFunc',({type:'report-article-report-right-list',articleId:row.contentId}));
globalMsg.$emit('maidianfunc',({type:'report-article-report-right-list',articleId:row.contentId}));
window.open(this.publicFun.getCurrentHrefEnv()+"#/articleDetail?id="+row.contentId+'&newnpen=true');
},
gocontent(row,state){
if(this.isstate){
if(state){
globalMsg.$emit('maiDianFunc',({type:'report-article-hot-detail',articleId:row.contentId}));
globalMsg.$emit('maidianfunc',({type:'report-article-hot-detail',articleId:row.contentId}));
}else{
globalMsg.$emit('maiDianFunc',({type:'report-article-recommend-expert-detail',articleId:row.contentId}));
globalMsg.$emit('maidianfunc',({type:'report-article-recommend-expert-detail',articleId:row.contentId}));
}
}else{
if(state){
globalMsg.$emit('maiDianFunc',({type:'report-article-hot-list',articleId:row.contentId}));
globalMsg.$emit('maidianfunc',({type:'report-article-hot-list',articleId:row.contentId}));
}else{
globalMsg.$emit('maiDianFunc',({type:'report-article-recommend-expert-list',articleId:row.contentId}));
globalMsg.$emit('maidianfunc',({type:'report-article-recommend-expert-list',articleId:row.contentId}));
}
}
window.open(this.publicFun.getCurrentHrefEnv()+"#/articleDetail?id="+row.contentId+'&newnpen=true');
......
......@@ -314,7 +314,7 @@
mounted() {
globalMsg.$emit('topisInit', false);
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}));
this.getActivityDetails();
document.getElementsByTagName("body")[0].style.overflow = "auto";
api.selectBasicParams().then(response => {
......
......@@ -113,7 +113,7 @@
},
//活动详情
toeventdetail(val){
globalMsg.$emit('maiDianFunc',({type:'report-channel-list-click',channelId:val.channelId}));
globalMsg.$emit('maidianfunc',({type:'report-channel-list-click',channelId:val.channelId}));
this.$router.push({path:'/eventdetail',query:{id:val.channelId,ismyevent:0}});
},
// 分页导航
......
......@@ -28,7 +28,7 @@
<p style="color: #1A1A1E;font-weight: bold;">
<span :style="item.baseLive.liveState == 1?'background: #FE9F2C':'background: #5d78ff;'" v-if="item.hasLive == 1" @click="openeventlive(item)" style="display: inline-block;background: #5d78ff;padding: 0 10px 0 30px;color: #FFFFFF;font-size: 12px;position: relative;border-radius: 3px;">
<i class="iconfont icon-zhibo" style="font-size: 16px;position: absolute;left: 8px;top: 0px;"></i>
{{item.baseLive.liveState == 0?$t('activityInfo.liveTitle'):item.baseLive.liveState == 1?$t('activityInfo.living'):$t('activityInfo.liveTitle')}}
{{item.baseLive.liveState == 0?$t('activityInfo.liveTitle'):item.baseLive.liveState == 1?$t('activityInfo.living'):item.baseLive.liveState==2&&item.baseLive.liveBack == 0?$t('activityInfo.liveBack'):$t('activityInfo.liveTitle')}}
</span>
<span @click="$router.push({path:'/myeventdetail',query:{id:item.channelId,ismyevent:1}})">
{{item.channelTitle}}
......@@ -83,24 +83,39 @@
methods:{
//打开直播
openeventlive(row){
var liveUrl = this.Base64.encode(row.baseLive.liveUrl);
this.publicFun.setUserInfoCookie("liveUrl",row.baseLive.liveUrl);
if(row.baseLive.liveState != 0){
if(!this.publicFun.getCookie("userInfo")){
this.$refs.login.isexpertVisible();
return
}
let liveUrl = row.baseLive.liveUrl.substring(row.baseLive.liveUrl.lastIndexOf('/') + 1);
if(this.userInfo&&this.userInfo.empId==row.createdBy){
if(row.baseLive.liveState == 1||row.baseLive.liveBack == 0){
window.open(this.publicFun.getCurrentHrefEnv()+"#/eventlive?id="+liveUrl);
window.open(this.publicFun.getCurrentHrefEnv()+"#/eventlive");
}
}else{
if(row.baseLive.livePowers == 0&&row.activityState == 2&&row.isJoin==2){
this.$message.error(this.$t('activityInfo.applyFirst'));
}else if(row.baseLive.livePowers == 0&&row.activityState == 5&&row.isJoin==2){
this.$message.error(this.$t('activityInfo.applyEndTitle'));
if(row.baseLive.liveState == 2&&row.baseLive.liveBack == 0){
if(!this.publicFun.getCookie("userInfo")){
this.$refs.login.isexpertVisible();
return
}
window.open(this.publicFun.getCurrentHrefEnv()+"#/eventlive");
}else{
if(row.baseLive.liveState == 1){
window.open(this.publicFun.getCurrentHrefEnv()+"#/eventlive?id="+liveUrl);
if(row.baseLive.livePowers == 0&&row.activityState == 2&&!row.isApply){
if(!this.publicFun.getCookie("userInfo")){
this.$refs.login.isexpertVisible();
return
}
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){
this.$message.error(this.$t('activityInfo.applyEndTitle'));
}
}else{
if(row.baseLive.liveState == 1||row.baseLive.liveState == 2&&row.baseLive.liveBack == 0){
if(!this.publicFun.getCookie("userInfo")){
this.$refs.login.isexpertVisible();
return
}
window.open(this.publicFun.getCurrentHrefEnv()+"#/eventlive");
}
}
}
}
......
......@@ -148,7 +148,7 @@
this.isInit = true;
}
}
globalMsg.$on("maiDianFunc",(data)=>{
globalMsg.$on("maidianfunc",(data)=>{
this.maiDianFunc(data);
})
globalMsg.$on("topShow",(data)=>{
......
......@@ -894,14 +894,14 @@
// globalMsg.$emit('topisInit', false);
// globalMsg.$emit('sendIndex', 5);
window.open(this.publicFun.getCurrentHrefEnv()+"#/topicDetails?id="+row.topicId+'&newnpen=true');
globalMsg.$emit('maiDianFunc',({type:'report-topic-index-recommend',topicId:row.topicId}));
globalMsg.$emit('maidianfunc',({type:'report-topic-index-recommend',topicId:row.topicId}));
// this.$router.push({path:"/topicdetail",query:{id:row.topicId}});
}else if(state == 2){
globalMsg.$emit('maiDianFunc',({type:'report-article-index',articleId:row.contentId}));
globalMsg.$emit('maidianfunc',({type:'report-article-index',articleId:row.contentId}));
window.open(this.publicFun.getCurrentHrefEnv()+"#/articleDetail?id="+row.contentId+'&newnpen=true');
}else if(state == 3){
this.$router.push({path:'/eventdetail',query:{id:row.channelId,ismyevent:0}})
globalMsg.$emit('maiDianFunc',({type:'report-channel-index-recommend',channelId:row.channelId}));
globalMsg.$emit('maidianfunc',({type:'report-channel-index-recommend',channelId:row.channelId}));
}
},
......@@ -1028,7 +1028,7 @@
this.$refs.login.isexpertVisible();
return
}
globalMsg.$emit('maiDianFunc',({type:'report-report-file-read-index',reportId:row.reportId}));
globalMsg.$emit('maidianfunc',({type:'report-report-file-read-index',reportId:row.reportId}));
api.getDownloadUrl(row.reportId).then(response => {
if(response.code == 0) {
const elink = document.createElement('a');
......
......@@ -275,7 +275,7 @@
this.$refs.login.isexpertVisible();
return
}
globalMsg.$emit('maiDianFunc',({type:'report-report-file-read',reportId:row.reportId}));
globalMsg.$emit('maidianfunc',({type:'report-report-file-read',reportId:row.reportId}));
api.getDownloadUrl(row.reportId).then(response => {
if(response.code == 0) {
const elink = document.createElement('a');
......
......@@ -80,7 +80,7 @@
todetail(row){
// this.$router.push({path:"/topicDetails",query:{id:row.topicId}});
window.open(this.publicFun.getCurrentHrefEnv()+"#/topicDetails?id="+row.topicId+'&newnpen=true');
globalMsg.$emit('maiDianFunc',({type:'report-topic-list-index',topicId:row.topicId}));
globalMsg.$emit('maidianfunc',({type:'report-topic-list-index',topicId:row.topicId}));
},
load () {
......
......@@ -47,7 +47,7 @@
todetail(row){
// this.$router.push({path:"/topicdetail",query:{id:row.topicId}});
window.open(this.publicFun.getCurrentHrefEnv()+"#/topicDetails?id="+row.topicId+'&newnpen=true');
globalMsg.$emit('maiDianFunc',({type:'report-topic-list-right-list',topicId:row.topicId}));
globalMsg.$emit('maidianfunc',({type:'report-topic-list-right-list',topicId:row.topicId}));
},
topics(){
// this.$router.push({path:'/discussall'})
......
......@@ -587,7 +587,7 @@
//讨论详情
tocommentdetail(row){
this.$router.push({path:'/discussdetail',query:{id:row.topicId,disId:row.id}});
globalMsg.$emit('maiDianFunc',({type:'report-topic-discuss-read',topicId:row.topicId,topicDiscussId:row.id}));
globalMsg.$emit('maidianfunc',({type:'report-topic-discuss-read',topicId:row.topicId,topicDiscussId:row.id}));
},
//表情拼接
emojstate(val,state){
......
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