Commit f11bf130 authored by zhangyanni's avatar zhangyanni

新窗口打开加参数

parent 186692ac
This diff is collapsed.
......@@ -232,5 +232,10 @@ export default {
//获取活动嘉宾详情
getGuestDetailInfoAxios(params){
return api.fetchLoadingGet("/base/activity/showGuestInfo?guestId="+params);
},
//获取用户浏览轨迹
getUserTrajectory(params){
return api.fetchLogin("/business/log/viewLog",params);
}
}
......@@ -70,11 +70,11 @@
},
termservice(){
var url = this.$router.resolve({path:"/termservice"});
window.open(url.href,"_blank")
window.open(url.href + this.publicFun.getTargetBlankFlag(1),"_blank")
},
privacypolicy(){
var url =this.$router.resolve({path:"/privacypolicy"});
window.open(url.href,"_blank")
window.open(url.href + this.publicFun.getTargetBlankFlag(1),"_blank")
},
handleContactUs(){
this.$router.push("/contactus");
......
This diff is collapsed.
This diff is collapsed.
......@@ -299,7 +299,7 @@
}
},
handopen(row){
window.open(this.publicFun.getCurrentHrefEnv()+"/viewproject?projectId="+row.projectId+'&state=0');
window.open(this.publicFun.getCurrentHrefEnv()+"/viewproject?projectId="+row.projectId+'&state=0' + this.publicFun.getTargetBlankFlag(2));
},
supplementContent(){
this.$forceUpdate();
......
......@@ -202,7 +202,7 @@
this.$refs.login.isexpertVisible();
return
}else{
window.open(this.publicFun.getCurrentHrefEnv() + "/peoplehome?id="+id);
window.open(this.publicFun.getCurrentHrefEnv() + "/peoplehome?id="+id + this.publicFun.getTargetBlankFlag(2));
}
},
//文章内容
......
......@@ -853,23 +853,23 @@
handleToDetail(data) {
switch (this.checkboxGroup[0]) {
case 1:
window.open(this.publicFun.getCurrentHrefEnv() + "/activitydetail?id=" + data.channelId + "&ismyevent=0&type=" + data.channelType)
window.open(this.publicFun.getCurrentHrefEnv() + "/activitydetail?id=" + data.channelId + "&ismyevent=0&type=" + data.channelType + this.publicFun.getTargetBlankFlag(2))
break;
case 2:
window.open(this.publicFun.getCurrentHrefEnv() + "/topicDetails?id=" + data.topicId + "&newnpen=true");
window.open(this.publicFun.getCurrentHrefEnv() + "/topicDetails?id=" + data.topicId + "&newnpen=true" + this.publicFun.getTargetBlankFlag(2));
break;
case 3:
window.open(this.publicFun.getCurrentHrefEnv() + "/peoplehome?id=" + data.empId)
window.open(this.publicFun.getCurrentHrefEnv() + "/peoplehome?id=" + data.empId + this.publicFun.getTargetBlankFlag(2))
break;
case 4:
window.open(this.publicFun.getCurrentHrefEnv() + "/guessDetail?id=" + data.guessId);
window.open(this.publicFun.getCurrentHrefEnv() + "/guessDetail?id=" + data.guessId + this.publicFun.getTargetBlankFlag(2));
break;
case 5:
window.open(this.publicFun.getCurrentHrefEnv() + "/articleDetail?id=" + data.contentId + "&newnpen=true");
window.open(this.publicFun.getCurrentHrefEnv() + "/articleDetail?id=" + data.contentId + "&newnpen=true" + this.publicFun.getTargetBlankFlag(2));
break;
case 6:
window.open(this.publicFun.getCurrentHrefEnv() + "/industryReportDetail?id=" + data.reportId + "&newnpen=true");
window.open(this.publicFun.getCurrentHrefEnv() + "/industryReportDetail?id=" + data.reportId + "&newnpen=true" + this.publicFun.getTargetBlankFlag(2));
}
},
......
......@@ -142,7 +142,7 @@
if(row.baseLive.liveState != 0){
if(this.userInfo&&this.userInfo.empId==row.createdBy){
if(row.baseLive.liveState == 1||row.baseLive.liveBack == 0){
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}
}else{
if(row.baseLive.liveState == 2&&row.baseLive.liveBack == 0){
......@@ -150,7 +150,7 @@
this.$refs.login.isexpertVisible();
return
}
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}else{
if(row.baseLive.livePowers == 0&&row.activityState == 2&&row.isJoin == 2){
if(!this.publicFun.getUserInfoCookieType()){
......@@ -168,7 +168,7 @@
this.$refs.login.isexpertVisible();
return
}
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}
}
}
......@@ -319,7 +319,7 @@
else {
if(data.baseLive&&data.baseLive.liveState == 1){
var liveUrl = this.Base64.encode(data.baseLive.liveUrl);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+data.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+data.channelId + this.publicFun.getTargetBlankFlag(2));
this.resourcesdata();
}else{
this.$router.replace({path:"/eventsuccess",query:{id:this.$route.query.id?this.$route.query.id:this.detailInfo.channelId,type:this.detailInfo.channelType,ismyevent:0}})
......
......@@ -64,7 +64,7 @@
},
//去主页
tohome(row){
window.open(this.publicFun.getCurrentHrefEnv()+"/peoplehome?id="+row.otherEmpId);
window.open(this.publicFun.getCurrentHrefEnv()+"/peoplehome?id="+row.otherEmpId + this.publicFun.getTargetBlankFlag(2));
},
//联系人推荐处理
updateFriendStatus(row,type){
......
......@@ -148,7 +148,7 @@
if(row.baseLive.liveState != 0){
if(this.userInfo&&this.userInfo.empId==row.createdBy){
if(row.baseLive.liveState == 1||row.baseLive.liveBack == 0){
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}
}else{
if(row.baseLive.liveState == 2&&row.baseLive.liveBack == 0){
......@@ -156,7 +156,7 @@
this.$refs.login.isexpertVisible();
return
}
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}else{
if(row.baseLive.livePowers == 0&&row.activityState == 2&&!row.isApply){
if(!this.publicFun.getUserInfoCookieType()){
......@@ -174,7 +174,7 @@
this.$refs.login.isexpertVisible();
return
}
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}
}
}
......@@ -319,7 +319,7 @@
else {
if(data.baseLive&&data.baseLive.liveState == 1){
var liveUrl = this.Base64.encode(data.baseLive.liveUrl);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+data.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+data.channelId + this.publicFun.getTargetBlankFlag(2));
this.getActivityDetails();
}else{
this.$router.replace({path:"/eventsuccess",query:{id:this.$route.query.id?this.$route.query.id:this.eventdata.channelId,type:this.eventdata.channelType,ismyevent:0}})
......
......@@ -1589,7 +1589,7 @@
handleToXieyi(){
window.open(this.publicFun.getCurrentHrefEnv()+'/privacypolicy');
window.open(this.publicFun.getCurrentHrefEnv()+'/privacypolicy' + this.publicFun.getTargetBlankFlag(1));
}
},
......
......@@ -1031,13 +1031,13 @@
this.$refs.login.isexpertVisible();
return
}else{
window.open(this.publicFun.getCurrentHrefEnv() + "/peoplehome?id="+id);
window.open(this.publicFun.getCurrentHrefEnv() + "/peoplehome?id="+id + this.publicFun.getTargetBlankFlag(2));
}
},
//查看更多
handleMore(state,path,val,hotstate) {
if(state == 'list'){
window.open(this.publicFun.getCurrentHrefEnv()+path)
window.open(this.publicFun.getCurrentHrefEnv()+path + this.publicFun.getTargetBlankFlag(1))
}else if(state == 'detail'){
var open_url = '';
if(path == '/guessDetail')open_url = '/guessDetail?id='+(hotstate?val.contentDetail.guessId:val.guessId);
......@@ -1045,9 +1045,9 @@
if(path == '/topicDetails')open_url ='/topicDetails?id='+(hotstate?val.contentDetail.topicId:val.topicId);
if(path == '/viewproject')open_url ='/viewproject?projectId='+val.projectId;
if(path == '/articleDetail')open_url ='/articleDetail?id='+val.contentId+'&newnpen=true';
if(path == '/bigBusiness/detail')open_url ='/bigBusiness/detail?id='+val.businessId
if(path == '/bigBusiness/detail')open_url ='/bigBusiness/detail?id='+val.businessId;
if(path == '/casedetails')open_url ='/casedetails?entid='+val.id;
window.open(this.publicFun.getCurrentHrefEnv() +open_url)
window.open(this.publicFun.getCurrentHrefEnv() +open_url + this.publicFun.getTargetBlankFlag(2))
// globalMsg.$emit('newTop_tab',path);
}
},
......@@ -1074,7 +1074,7 @@
//竞猜列表
toguesslist(){
// this.$router.push({path:'/guesslist'});
window.open(this.publicFun.getCurrentHrefEnv()+"/guesslist");
window.open(this.publicFun.getCurrentHrefEnv()+"/guesslist"+ this.publicFun.getTargetBlankFlag(1));
},
//完善信息成功
successlogin(){
......@@ -1109,7 +1109,7 @@
// path: "/articleList",
// query: {id: row.classifyList[0].classifyId}
// });
window.open(this.publicFun.getCurrentHrefEnv()+'/articleList?id='+row.classifyList[0].classifyId)
window.open(this.publicFun.getCurrentHrefEnv()+'/articleList?id='+row.classifyList[0].classifyId + this.publicFun.getTargetBlankFlag(2))
},
//获取动态信息
getActiveInfoData() {
......@@ -1146,18 +1146,18 @@
if (data.showUrl) {
if (data.showUrl == "/lndustryfocus") {
globalMsg.$emit('sendIndex', 3);
window.open(this.publicFun.getCurrentHrefEnv() + "/lndustryfocus")
window.open(this.publicFun.getCurrentHrefEnv() + "/lndustryfocus"+ this.publicFun.getTargetBlankFlag(null,data.showUrl))
} else if (data.showUrl == "/questionfillpc") {
globalMsg.$emit('sendIndex', -2);
window.open(this.publicFun.getCurrentHrefEnv() + "/questionfillpc")
window.open(this.publicFun.getCurrentHrefEnv() + "/questionfillpc"+ this.publicFun.getTargetBlankFlag(null,data.showUrl))
// this.$router.push("/questionfillpc")
} else if (data.showUrl.indexOf("eventdetail") != -1) {
window.open(this.publicFun.getCurrentHrefEnv()+ data.showUrl)
window.open(this.publicFun.getCurrentHrefEnv()+ data.showUrl+this.publicFun.getTargetBlankFlag(null,data.showUrl))
} else {
if (data.showUrl.indexOf("http") != -1) {
window.open(data.showUrl)
window.open(data.showUrl+this.publicFun.getTargetBlankFlag(null,data.showUrl))
} else {
window.open(this.publicFun.getCurrentHrefEnv()+ data.showUrl)
window.open(this.publicFun.getCurrentHrefEnv()+ data.showUrl+this.publicFun.getTargetBlankFlag(null,data.showUrl))
}
}
}
......@@ -1224,7 +1224,7 @@
},
//报告下载
downloaddetail(row){
window.open(this.publicFun.getCurrentHrefEnv()+"/industryReportDetail?id="+row.reportId);
window.open(this.publicFun.getCurrentHrefEnv()+"/industryReportDetail?id="+row.reportId + this.publicFun.getTargetBlankFlag(2));
// this.reportId = row.reportId;
// if(!this.publicFun.getUserInfoCookieType()){
// this.$refs.login.isexpertVisible();
......@@ -1282,7 +1282,7 @@
if(row.baseLive.liveState != 0){
if(this.userInfo&&this.userInfo.empId==row.createdBy){
if(row.baseLive.liveState == 1||row.baseLive.liveBack == 0){
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}
}else{
if(row.baseLive.liveState == 2&&row.baseLive.liveBack == 0){
......@@ -1290,7 +1290,7 @@
this.$refs.login.isexpertVisible();
return
}
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}else{
if(row.baseLive.livePowers == 0&&row.activityState == 2&&row.isJoin == 2){
if(!this.publicFun.getUserInfoCookieType()){
......@@ -1308,7 +1308,7 @@
this.$refs.login.isexpertVisible();
return
}
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}
}
}
......
......@@ -641,7 +641,7 @@
if(row.baseLive.liveState != 0){
if(this.userInfo&&this.userInfo.empId==row.createdBy){
if(row.baseLive.liveState == 1||row.baseLive.liveBack == 0){
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive");
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive" + this.publicFun.getTargetBlankFlag(1));
}
}else{
if(row.baseLive.liveState == 2&&row.baseLive.liveBack == 0){
......@@ -649,7 +649,7 @@
this.$refs.login.isexpertVisible();
return
}
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive");
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive" + this.publicFun.getTargetBlankFlag(1));
}else{
if(row.baseLive.livePowers == 0&&row.activityState == 2&&row.isJoin == 2){
if(!this.publicFun.getUserInfoCookieType()){
......@@ -667,7 +667,7 @@
this.$refs.login.isexpertVisible();
return
}
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive");
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive" + this.publicFun.getTargetBlankFlag(1));
}
}
}
......@@ -677,7 +677,7 @@
//文章详情
gocontentdetail(row) {
globalMsg.$emit('maiDianFunc', ({type: 'report-article-index', articleId: row.contentId}));
window.open(this.publicFun.getCurrentHrefEnv() + "/articleDetail?id=" + row.contentId + '&newnpen=true');
window.open(this.publicFun.getCurrentHrefEnv() + "/articleDetail?id=" + row.contentId + '&newnpen=true' + this.publicFun.getTargetBlankFlag(2));
// this.$router.push({path:"/contentdetail",query:{id:row.contentId}});
},
//文章列表
......@@ -890,16 +890,16 @@
if (data.showUrl) {
if (data.showUrl == "/lndustryfocus") {
globalMsg.$emit('sendIndex', 3);
window.open(this.publicFun.getCurrentHrefEnv() + "/lndustryfocus")
window.open(this.publicFun.getCurrentHrefEnv() + "/lndustryfocus" + this.publicFun.getTargetBlankFlag(null, data.showUrl))
} else if (data.showUrl == "/questionfillpc") {
globalMsg.$emit('sendIndex', -2);
window.open(this.publicFun.getCurrentHrefEnv() + "/questionfillpc")
window.open(this.publicFun.getCurrentHrefEnv() + "/questionfillpc" + this.publicFun.getTargetBlankFlag(null,data.showUrl))
// this.$router.push("/questionfillpc")
} else if (data.showUrl.indexOf("eventdetail") != -1) {
window.open(this.publicFun.getCurrentHrefEnv()+ data.showUrl)
window.open(this.publicFun.getCurrentHrefEnv()+ data.showUrl + this.publicFun.getTargetBlankFlag(null,data.showUrl))
} else {
if (data.showUrl.indexOf("http") != -1) {
window.open(data.showUrl)
window.open(data.showUrl + this.publicFun.getTargetBlankFlag(null,data.showUrl))
} else {
this.$router.push({path: data.showUrl})
}
......@@ -910,7 +910,7 @@
//竞猜列表
toguesslist(){
// this.$router.push({path:'/guesslist'});
window.open(this.publicFun.getCurrentHrefEnv()+"/guesslist");
window.open(this.publicFun.getCurrentHrefEnv()+"/guesslist" + this.publicFun.getTargetBlankFlag(1));
},
//查看更多
......@@ -927,12 +927,12 @@
if(state == 1){
// globalMsg.$emit('topisInit', false);
// globalMsg.$emit('sendIndex', 5);
window.open(this.publicFun.getCurrentHrefEnv()+"/topicDetails?id="+row.topicId+'&newnpen=true');
window.open(this.publicFun.getCurrentHrefEnv()+"/topicDetails?id="+row.topicId+'&newnpen=true' + this.publicFun.getTargetBlankFlag(2));
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}));
window.open(this.publicFun.getCurrentHrefEnv()+"/articleDetail?id="+row.contentId+'&newnpen=true');
window.open(this.publicFun.getCurrentHrefEnv()+"/articleDetail?id="+row.contentId+'&newnpen=true' + this.publicFun.getTargetBlankFlag(2));
}else if(state == 3){
this.$router.push({path:'/activitydetail',query:{id:row.channelId,ismyevent:0}})
globalMsg.$emit('maidianfunc',({type:'report-channel-index-recommend',channelId:row.channelId}));
......@@ -1027,7 +1027,7 @@
globalMsg.$emit('topisInit', false);
if(data.baseLive&&(data.baseLive.liveState == 1||data.baseLive.liveBack == 0)){
var liveUrl = this.Base64.encode(data.baseLive.liveUrl);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+data.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+data.channelId + this.publicFun.getTargetBlankFlag(2));
}else{
this.$router.replace({path:"/eventsuccess",query:{id:this.$route.query.id?this.$route.query.id:this.detailInfo.channelId,type:this.detailInfo.channelType,ismyevent:0}})
}
......
......@@ -86,11 +86,11 @@
handleToProtocol(type){
if(type==1) {
var url = this.$router.resolve({path:"/termservice"});
window.open(url.href,"_blank")
window.open(url.href + this.publicFun.getTargetBlankFlag(1),"_blank")
}
else {
var url =this.$router.resolve({path:"/privacypolicy"});
window.open(url.href,"_blank")
window.open(url.href + this.publicFun.getTargetBlankFlag(1),"_blank")
}
},
closeSensor(){
......
......@@ -53,10 +53,10 @@
},
methods:{
newOpenroute(row){
window.open(this.publicFun.getCurrentHrefEnv()+"/articleDetail?id="+row.contentId+'&newnpen=true');
window.open(this.publicFun.getCurrentHrefEnv()+"/articleDetail?id="+row.contentId+'&newnpen=true' + this.publicFun.getTargetBlankFlag(2));
},
noDataopen(){
window.open(this.publicFun.getCurrentHrefEnv()+"/articleList");
window.open(this.publicFun.getCurrentHrefEnv()+"/articleList" + this.publicFun.getTargetBlankFlag(1));
},
load () {
if(this.cur_page <= this.pages){
......
......@@ -79,7 +79,7 @@
components:{expertVisible,searchCmpt},
methods:{
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' + this.publicFun.getTargetBlankFlag(2));
},
//登陆成功
successlogin(){
......
......@@ -65,10 +65,10 @@
},
methods:{
newOpenroute(row){
window.open(this.publicFun.getCurrentHrefEnv()+"/activitydetail?id="+row.channelId+'&ismyevent=0&type=4');
window.open(this.publicFun.getCurrentHrefEnv()+"/activitydetail?id="+row.channelId+'&ismyevent=0&type=4' + this.publicFun.getTargetBlankFlag(2));
},
noDataopen(){
window.open(this.publicFun.getCurrentHrefEnv()+"/activitylist");
window.open(this.publicFun.getCurrentHrefEnv()+"/activitylist" + this.publicFun.getTargetBlankFlag(1));
},
isexpertlogin(){
if(!this.publicFun.getUserInfoCookieType()){
......@@ -83,12 +83,12 @@
if(row.baseLive.liveState != 0){
if(this.userInfo&&this.userInfo.empId==row.createdBy){
if(row.baseLive.liveState == 1||row.baseLive.liveBack == 0){
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}
}else{
if(row.baseLive.liveState == 2&&row.baseLive.liveBack == 0){
this.isexpertlogin();
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}else{
if(row.baseLive.livePowers == 0&&row.activityState == 2&&row.isJoin == 2){
this.isexpertlogin();
......@@ -100,7 +100,7 @@
}else{
if(row.baseLive.liveState == 1||row.baseLive.liveState == 2&&row.baseLive.liveBack == 0){
this.isexpertlogin();
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}
}
}
......
......@@ -71,10 +71,10 @@
methods:{
//报告详情
gocontentdetail(row) {
window.open(this.publicFun.getCurrentHrefEnv() + "/guessDetail?id=" + row.guessId);
window.open(this.publicFun.getCurrentHrefEnv() + "/guessDetail?id=" + row.guessId + this.publicFun.getTargetBlankFlag(2));
},
noDataopen(){
window.open(this.publicFun.getCurrentHrefEnv()+"/guesslist");
window.open(this.publicFun.getCurrentHrefEnv()+"/guesslist" + this.publicFun.getTargetBlankFlag(1));
},
load () {
if(this.cur_page <= this.pages){
......
......@@ -62,10 +62,10 @@
methods:{
//报告详情
gocontentdetail(row) {
window.open(this.publicFun.getCurrentHrefEnv() + "/industryReportDetail?id=" + row.reportId);
window.open(this.publicFun.getCurrentHrefEnv() + "/industryReportDetail?id=" + row.reportId + this.publicFun.getTargetBlankFlag(2));
},
noDataopen(){
window.open(this.publicFun.getCurrentHrefEnv()+"/industryReport");
window.open(this.publicFun.getCurrentHrefEnv()+"/industryReport" + this.publicFun.getTargetBlankFlag(1));
},
load () {
if(this.cur_page <= this.pages){
......
......@@ -77,7 +77,7 @@
components:{expertVisible,choiceGroup},
methods:{
newOpenroute(row){
window.open(this.publicFun.getCurrentHrefEnv()+"/viewproject?projectId="+row.projectId+'&state=0');
window.open(this.publicFun.getCurrentHrefEnv()+"/viewproject?projectId="+row.projectId+'&state=0' + this.publicFun.getTargetBlankFlag(2));
},
//登陆成功
successlogin(){
......
......@@ -103,13 +103,13 @@
methods:{
todetail(row,state){
if(state == 1){
window.open(this.publicFun.getCurrentHrefEnv()+"/discussdetail?id="+row.topicId+'&disId='+row.discussId);
window.open(this.publicFun.getCurrentHrefEnv()+"/discussdetail?id="+row.topicId+'&disId='+row.discussId + this.publicFun.getTargetBlankFlag(2));
}else if(state == 2){
window.open(this.publicFun.getCurrentHrefEnv()+"/topicDetails?id="+row.topicId+'&newnpen=true');
window.open(this.publicFun.getCurrentHrefEnv()+"/topicDetails?id="+row.topicId+'&newnpen=true' + this.publicFun.getTargetBlankFlag(2));
}
},
noDataopen(){
window.open(this.publicFun.getCurrentHrefEnv()+"/topicList");
window.open(this.publicFun.getCurrentHrefEnv()+"/topicList" + this.publicFun.getTargetBlankFlag(1));
},
//去主页
tohome(row){
......@@ -117,7 +117,7 @@
this.$refs.login.isexpertVisible();
return
}else{
window.open(this.publicFun.getCurrentHrefEnv()+"/peoplehome?id="+row.userInfo.empId);
window.open(this.publicFun.getCurrentHrefEnv()+"/peoplehome?id="+row.userInfo.empId + this.publicFun.getTargetBlankFlag(2));
// this.$router.push({path:"/peoplehome",query:{id:row.empId}});
}
},
......
......@@ -229,11 +229,11 @@
globalMsg.$emit('isProtocol',0);
if(type==1) {
var url = this.$router.resolve({path:"/termservice"});
window.open(url.href,"_blank")
window.open(url.href + this.publicFun.getTargetBlankFlag(1),"_blank")
}
else {
var url =this.$router.resolve({path:"/privacypolicy"});
window.open(url.href,"_blank")
window.open(url.href + this.publicFun.getTargetBlankFlag(1),"_blank")
}
// this.protocolVisible = true;
......
......@@ -217,11 +217,11 @@
globalMsg.$emit('isProtocol',0);
if(type==1) {
var url = this.$router.resolve({path:"/termservice"});
window.open(url.href,"_blank")
window.open(url.href + this.publicFun.getTargetBlankFlag(1),"_blank")
}
else {
var url =this.$router.resolve({path:"/privacypolicy"});
window.open(url.href,"_blank")
window.open(url.href + this.publicFun.getTargetBlankFlag(1),"_blank")
}
},
......
......@@ -125,11 +125,11 @@
globalMsg.$emit('isProtocol',0);
if(type==1) {
var url = this.$router.resolve({path:"/termservice"});
window.open(url.href,"_blank")
window.open(url.href + this.publicFun.getTargetBlankFlag(1),"_blank")
}
else {
var url =this.$router.resolve({path:"/privacypolicy"});
window.open(url.href,"_blank")
window.open(url.href + this.publicFun.getTargetBlankFlag(1),"_blank")
}
// this.protocolVisible = true;
......
......@@ -774,11 +774,6 @@
this.$router.push({path: '/casedetailsed', query: {entid: item.id}})
},
//友情链接
handleToLink(item, index) {
window.open(item.href);
},
//注册
handleRegister() {
this.$router.push("/mobileRegister");
......
......@@ -177,13 +177,13 @@
methods:{
routerpush(state,row){
if(state == 1){
window.open(this.publicFun.getCurrentHrefEnv()+"/discussdetail?disId="+row.id+'&id='+row.pid);
window.open(this.publicFun.getCurrentHrefEnv()+"/discussdetail?disId="+row.id+'&id='+row.pid + this.publicFun.getTargetBlankFlag(2));
}else if(state == 2){
window.open(this.publicFun.getCurrentHrefEnv()+"/articleDetail?id="+row.pid+'&newnpen=true');
window.open(this.publicFun.getCurrentHrefEnv()+"/articleDetail?id="+row.pid+'&newnpen=true' + this.publicFun.getTargetBlankFlag(2));
}else if(state == 4){
window.open(this.publicFun.getCurrentHrefEnv()+"/activitydetail?id="+row.activityDTO.channelId+'&ismyevent=0'+'&type='+row.activityDTO.channelType);
window.open(this.publicFun.getCurrentHrefEnv()+"/activitydetail?id="+row.activityDTO.channelId+'&ismyevent=0'+'&type='+row.activityDTO.channelType + this.publicFun.getTargetBlankFlag(2));
}else if(state == 5){
window.open(this.publicFun.getCurrentHrefEnv()+"/guessDetail?id="+row.baseGuessDTO.guessId);
window.open(this.publicFun.getCurrentHrefEnv()+"/guessDetail?id="+row.baseGuessDTO.guessId + this.publicFun.getTargetBlankFlag(2));
}
},
getMyDynamicList(){
......@@ -212,7 +212,7 @@
if(row.baseLive.liveState != 0){
if(this.userInfo&&this.userInfo.empId==row.createdBy){
if(row.baseLive.liveState == 1||row.baseLive.liveBack == 0){
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}
}else{
if(row.baseLive.liveState == 2&&row.baseLive.liveBack == 0){
......@@ -220,7 +220,7 @@
this.$refs.login.isexpertVisible();
return
}
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}else{
if(row.baseLive.livePowers == 0&&row.activityState == 2&&!row.isApply){
if(!this.publicFun.getUserInfoCookieType()){
......@@ -240,7 +240,7 @@
this.$refs.login.isexpertVisible();
return
}
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}
}
}
......
......@@ -86,7 +86,7 @@
methods: {
myeventdetail(row){
// this.$router.push({path:'/myeventdetail',query:{id:row.channelId,ismyevent:1}});
window.open(this.publicFun.getCurrentHrefEnv()+"/activitydetail?id=" + row.channelId + "&ismyevent=0&type=" + row.channelType);
window.open(this.publicFun.getCurrentHrefEnv()+"/activitydetail?id=" + row.channelId + "&ismyevent=0&type=" + row.channelType + this.publicFun.getTargetBlankFlag(2));
// window.open(this.publicFun.getCurrentHrefEnv()+"/myeventdetail?id="+row.channelId+'&ismyevent=1');
},
//打开直播
......@@ -96,7 +96,7 @@
if(row.baseLive.liveState != 0){
if(this.userInfo&&this.userInfo.empId==row.createdBy){
if(row.baseLive.liveState == 1||row.baseLive.liveBack == 0){
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}
}else{
if(row.baseLive.liveState == 2&&row.baseLive.liveBack == 0){
......@@ -104,7 +104,7 @@
this.$refs.login.isexpertVisible();
return
}
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}else{
if(row.baseLive.livePowers == 0&&row.activityState == 2&&row.isJoin == 2){
if(!this.publicFun.getUserInfoCookieType()){
......@@ -122,7 +122,7 @@
this.$refs.login.isexpertVisible();
return
}
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId);
window.open(this.publicFun.getCurrentHrefEnv()+"/eventlive?url="+liveUrl+'&id='+row.channelId + this.publicFun.getTargetBlankFlag(2));
}
}
}
......
......@@ -172,8 +172,8 @@
},
methods: {
detailroute(row){
if(row.commentsType == 1)window.open(this.publicFun.getCurrentHrefEnv()+"/discussdetail?id="+row.pid+'&disId='+row.id);
else window.open(this.publicFun.getCurrentHrefEnv()+"/articleDetail?id="+row.pid+'&newnpen=true');
if(row.commentsType == 1)window.open(this.publicFun.getCurrentHrefEnv()+"/discussdetail?id="+row.pid+'&disId='+row.id + this.publicFun.getTargetBlankFlag(2));
else window.open(this.publicFun.getCurrentHrefEnv()+"/articleDetail?id="+row.pid+'&newnpen=true' + this.publicFun.getTargetBlankFlag(2));
},
activeclk(row){
this.activeName = row.key;
......@@ -241,12 +241,12 @@
},
eventtopiccontent(event){
if(event.toElement.dataset.id){
window.open(this.publicFun.getCurrentHrefEnv()+"/viewproject?projectId="+event.toElement.dataset.id+'&state=0');
window.open(this.publicFun.getCurrentHrefEnv()+"/viewproject?projectId="+event.toElement.dataset.id+'&state=0' + this.publicFun.getTargetBlankFlag(2));
}else if(event.target.innerText&&event.target.innerText.substr(0, 1) == '#'&&event.target.innerText.substr(event.target.innerText.length-1, 1) == '#'){
api.getTopicIdByTopicTitle(event.target.innerText.substring(1,event.target.innerText.length-1)+'').then((res) => {
if (res.code == 0) {
if(res.result[0]){
window.open(this.publicFun.getCurrentHrefEnv()+"/topicDetails?id="+res.result[0]+'&newnpen=true');
window.open(this.publicFun.getCurrentHrefEnv()+"/topicDetails?id="+res.result[0]+'&newnpen=true' + this.publicFun.getTargetBlankFlag(2));
}else{
this.$message.error('此话题不存在')
}
......
......@@ -135,7 +135,7 @@
});
},
touserintegral(){
window.open(this.publicFun.getCurrentHrefEnv()+"/userintegral");
window.open(this.publicFun.getCurrentHrefEnv()+"/userintegral" + this.publicFun.getTargetBlankFlag(1));
},
//积分明细
getselectIntegralDetailList(){
......
......@@ -128,7 +128,7 @@
},
methods: {
topicdetails(row){
window.open(this.publicFun.getCurrentHrefEnv()+"/discussdetail?disId="+row.discussId+'&id='+row.topicId);
window.open(this.publicFun.getCurrentHrefEnv()+"/discussdetail?disId="+row.discussId+'&id='+row.topicId + this.publicFun.getTargetBlankFlag(2));
},
activeclk(row){
this.activeName = row.key;
......@@ -224,7 +224,7 @@
},
//活动
toevent(row){
window.open(this.publicFun.getCurrentHrefEnv()+"/activitydetail?id="+row.baseChannel.channelId+'&ismyevent=0&type=4');
window.open(this.publicFun.getCurrentHrefEnv()+"/activitydetail?id="+row.baseChannel.channelId+'&ismyevent=0&type=4' + this.publicFun.getTargetBlankFlag(2));
},
},
mounted() {
......
......@@ -155,7 +155,7 @@
methods: {
guessDetail(row){
// if(row.publishStatus == 1)this.$router.push({path:'/guessDetail',query:{id:item.guessId}});
if(row.publishStatus == 1)window.open(this.publicFun.getCurrentHrefEnv()+"/guessDetail?id="+row.guessId);
if(row.publishStatus == 1)window.open(this.publicFun.getCurrentHrefEnv()+"/guessDetail?id="+row.guessId + this.publicFun.getTargetBlankFlag(2));
},
//条件筛选
guessStatetype1(){
......
......@@ -79,7 +79,7 @@
methods: {
todetail(row){
// this.$router.push({path:"/topicDetails",query:{id:row.topicId,newopen:true}});
window.open(this.publicFun.getCurrentHrefEnv()+"/topicDetails?id="+row.topicId+'&newopen=true');
window.open(this.publicFun.getCurrentHrefEnv()+"/topicDetails?id="+row.topicId+'&newopen=true' + this.publicFun.getTargetBlankFlag(2));
},
tabsTypes(state){
this.tabsType = state;
......
......@@ -488,11 +488,11 @@
this.$refs.login.isexpertVisible();
return
}else{
window.open(this.publicFun.getCurrentHrefEnv() + "/peoplehome?id="+id);
window.open(this.publicFun.getCurrentHrefEnv() + "/peoplehome?id="+id + this.publicFun.getTargetBlankFlag(2));
}
},
totopic(){
window.open(this.publicFun.getCurrentHrefEnv()+"/topicDetails?id="+this.contentdata.topicId+'&newopen=true');
window.open(this.publicFun.getCurrentHrefEnv()+"/topicDetails?id="+this.contentdata.topicId+'&newopen=true' + this.publicFun.getTargetBlankFlag(2));
},
load () {
if(this.topicdatacur_page < this.pages){
......@@ -828,12 +828,12 @@
},
eventtopiccontent(event){
if(event.toElement.dataset.id){
window.open(this.publicFun.getCurrentHrefEnv()+"/viewproject?projectId="+event.toElement.dataset.id+'&state=0');
window.open(this.publicFun.getCurrentHrefEnv()+"/viewproject?projectId="+event.toElement.dataset.id+'&state=0' + this.publicFun.getTargetBlankFlag(2));
}else if(event.target.innerText&&event.target.innerText.substr(0, 1) == '#'&&event.target.innerText.substr(event.target.innerText.length-1, 1) == '#'){
api.getTopicIdByTopicTitle(event.target.innerText.substring(1,event.target.innerText.length-1)+'').then((res) => {
if (res.code == 0) {
if(res.result[0]){
window.open(this.publicFun.getCurrentHrefEnv()+"/topicDetails?id="+res.result[0]+'&newnpen=true');
window.open(this.publicFun.getCurrentHrefEnv()+"/topicDetails?id="+res.result[0]+'&newnpen=true' + this.publicFun.getTargetBlankFlag(2));
}else{
this.$message.error('此话题不存在')
}
......
......@@ -245,17 +245,17 @@
this.$refs.login.isexpertVisible();
return
}else{
window.open(this.publicFun.getCurrentHrefEnv()+"/peoplehome?id="+row.empId);
window.open(this.publicFun.getCurrentHrefEnv()+"/peoplehome?id="+row.empId + this.publicFun.getTargetBlankFlag(2));
// this.$router.push({path:"/peoplehome",query:{id:row.empId}});
}
},
todetail(row){
// 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' + this.publicFun.getTargetBlankFlag(2));
globalMsg.$emit('maidianfunc',({type:'report-topic-list-index',topicId:row.topicId}));
},
descUrletail(){
window.open(this.publicFun.getCurrentHrefEnv()+this.moderatorSetting.descUrl);
window.open(this.publicFun.getCurrentHrefEnv()+this.moderatorSetting.descUrl + this.publicFun.getTargetBlankFlag(null,this.moderatorSetting.descUrl));
},
//展开
isbaseTopicList(index){
......@@ -366,7 +366,7 @@
},
//进入话题分类详情
topictypeto(item){
window.open(this.publicFun.getCurrentHrefEnv()+"/topictype?type="+item.dataId+'&typename='+item.dataName);
window.open(this.publicFun.getCurrentHrefEnv()+"/topictype?type="+item.dataId+'&typename='+item.dataName + this.publicFun.getTargetBlankFlag(2));
},
//查询版主
getModerator(count){
......
......@@ -48,12 +48,12 @@
methods: {
todetail(row){
// this.$router.push({path:"/topicdetail",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' + this.publicFun.getTargetBlankFlag(2));
globalMsg.$emit('maidianfunc',({type:'report-topic-list-right-list',topicId:row.topicId}));
},
topics(){
// this.$router.push({path:'/discussall'})
window.open(this.publicFun.getCurrentHrefEnv()+'/topicList');
window.open(this.publicFun.getCurrentHrefEnv()+'/topicList' + this.publicFun.getTargetBlankFlag(1));
}
}
}
......
......@@ -693,7 +693,7 @@
this.$refs.login.isexpertVisible();
return
}else{
window.open(this.publicFun.getCurrentHrefEnv() + "/peoplehome?id="+id);
window.open(this.publicFun.getCurrentHrefEnv() + "/peoplehome?id="+id + this.publicFun.getTargetBlankFlag(2));
}
},
//评论
......@@ -817,7 +817,7 @@
globalMsg.$emit('maidianfunc',({type:'report-topic-discuss-read',topicId:row.topicId,topicDiscussId:row.id}));
},
tourldetail(val){
window.open(this.publicFun.getCurrentHrefEnv()+val.noticeUrl);
window.open(this.publicFun.getCurrentHrefEnv()+val.noticeUrl + this.publicFun.getTargetBlankFlag(null,val.noticeUrl));
},
//表情拼接
emojstate(val,state){
......@@ -1425,12 +1425,12 @@
},
eventtopiccontent(event){
if(event.toElement.dataset.id){
window.open(this.publicFun.getCurrentHrefEnv()+"/viewproject?projectId="+event.toElement.dataset.id+'&state=0');
window.open(this.publicFun.getCurrentHrefEnv()+"/viewproject?projectId="+event.toElement.dataset.id+'&state=0' + this.publicFun.getTargetBlankFlag(2));
}else if(event.target.innerText&&event.target.innerText.substr(0, 1) == '#'&&event.target.innerText.substr(event.target.innerText.length-1, 1) == '#'){
api.getTopicIdByTopicTitle(event.target.innerText.substring(1,event.target.innerText.length-1)+'').then((res) => {
if (res.code == 0) {
if(res.result[0]){
window.open(this.publicFun.getCurrentHrefEnv()+"/topicDetails?id="+res.result[0]+'&newnpen=true');
window.open(this.publicFun.getCurrentHrefEnv()+"/topicDetails?id="+res.result[0]+'&newnpen=true' + this.publicFun.getTargetBlankFlag(2));
}else{
this.$message.error('此话题不存在')
}
......
......@@ -148,9 +148,9 @@
//话题需求池
topicpage(item,state){
if(state){
window.open(this.publicFun.getCurrentHrefEnv()+"/topicDetails?id="+item.topicId);
window.open(this.publicFun.getCurrentHrefEnv()+"/topicDetails?id="+item.topicId + this.publicFun.getTargetBlankFlag(2));
}else{
window.open(this.publicFun.getCurrentHrefEnv()+"/discussdetail?id="+item.topicId+'&disId='+item.id);
window.open(this.publicFun.getCurrentHrefEnv()+"/discussdetail?id="+item.topicId+'&disId='+item.id + this.publicFun.getTargetBlankFlag(2));
}
},
......
......@@ -219,7 +219,7 @@
this.$refs.login.isexpertVisible();
return
}else{
window.open(this.publicFun.getCurrentHrefEnv()+"/peoplehome?id="+row.empId);
window.open(this.publicFun.getCurrentHrefEnv()+"/peoplehome?id="+row.empId + this.publicFun.getTargetBlankFlag(2));
// this.$router.push({path:"/peoplehome",query:{id:row.empId}});
}
},
......@@ -231,7 +231,7 @@
},
todetail(row){
// 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' + this.publicFun.getTargetBlankFlag(2));
globalMsg.$emit('maidianfunc',({type:'report-topic-list-index',topicId:row.topicId}));
},
//评论
......
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