Commit b50b5bba authored by yht15023815643's avatar yht15023815643

区分甲方详情

parent 811dad48
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
this.domain='https://plug.jiansheku.com' this.domain='https://plug.jiansheku.com'
}else { }else {
this.domain='https://pre-plug.jiansheku.com' this.domain='https://pre-plug.jiansheku.com'
// this.domain='http://192.168.60.210:3400' this.domain='http://192.168.60.210:3400'
} }
this.gettokens(); this.gettokens();
}, },
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
this.iframeLoading(); // 判断iframe页面是否加载完成-当前页控制 this.iframeLoading(); // 判断iframe页面是否加载完成-当前页控制
let that = this let that = this
window.addEventListener('message', function (event) { window.addEventListener('message', function (event) {
if(event.data.url){ if(!event.data.id && event.data.url){
that.$tab.openPage(event.data.title, event.data.url).then(() => { that.$tab.openPage(event.data.title, event.data.url).then(() => {
// 执行结束的逻辑 // 执行结束的逻辑
}) })
......
...@@ -54,17 +54,22 @@ export default { ...@@ -54,17 +54,22 @@ export default {
if(event.data.id){ if(event.data.id){
getUipIdByCid([event.data.id]).then(res=>{ getUipIdByCid([event.data.id]).then(res=>{
if (res.code==200) { if (res.code==200) {
console.log(res)
if(res.data&&res.data.length>0&&res.data[0].uipId){ if(res.data&&res.data.length>0&&res.data[0].uipId){
that.$router.push({path: '/enterprise/'+that.encodeStr(event.data.id)}) that.$router.push({path: '/enterprise/'+that.encodeStr(event.data.id)})
}else{ }else{
that.$tab.openPage(event.data.title, '/company/'+event.data.id) that.$tab.openPage(event.data.title, '/company/'+that.encodeStr(event.data.id))
} }
} }
}).catch(error=>{ }).catch(error=>{
}); });
}else{
if(event.data.url){
that.$tab.openPage(event.data.title, event.data.url).then(() => {
// 执行结束的逻辑
})
}
} }
}, false); }, false);
......
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