Commit 0dea3b6d by 李宏达

lhd

parent f8073fc1
......@@ -119,6 +119,14 @@ module.exports = {
"path": ""
},
{
"code": "iframehtmlTabs",
"icon": "fa fa-search",
"label": "网页嵌入",
"bizCode": "iframehtmlTabs",
"bizConfig": null,
"path": ""
},
{
"code": "competitiveanalysis",
"icon": "fa fa-search",
"label": "竞争企业分析",
......@@ -138,6 +146,7 @@ module.exports = {
},
"bizs": {
"iframehtml": {"title": "网页嵌入", "config": null, "path": "/iframehtml", "comname": "iframehtml"},
"iframehtmlTabs": {"title": "网页嵌入", "config": null, "path": "/iframehtmlTabs", "comname": "iframehtmlTabs"},
"competitiveanalysis": {"title": "竞争企业分析", "config": null, "path": "/competitiveanalysis", "comname": "competitiveanalysis"},
"enterprisecontrast": {"title": "竞争企业分析", "config": null, "path": "/enterprisecontrast", "comname": "enterprisecontrast"},
"home": {"title": "首页", "config": null, "path": "/", "comname": "home"},
......
......@@ -178,6 +178,9 @@
.el-tooltip__popper.is-light {
max-width: 80% !important;
}
.el-menu-item {
outline: none !important;
}
</style>
</head>
<body>
......
......@@ -414,8 +414,17 @@ axios.get("/vue/comp/base").then(function(res){
// window.open("https://www.cnuip.com/");
this.typeHome = false;
this.loadingHome = true;
var url = encodeURIComponent("https://www.cnuip.com/");
this.pushx({name:"/iframehtml",title:"知识产权运营",params:{url:url}});
var url = encodeURIComponent("http://101.132.173.37:8110/");
this.pushx({name:"/iframehtmlTabs",title:"知识产权运营",params:{url:url}});
setTimeout(()=>{
this.loadingHome = false;
},1500);
}else if(v== "智能分类"){
// window.open("https://www.cnuip.com/");
this.typeHome = false;
this.loadingHome = true;
var url = encodeURIComponent("http://125.34.170.146/");
this.pushx({name:"/iframehtml",title:"智能分类",params:{url:url}});
setTimeout(()=>{
this.loadingHome = false;
},1500);
......
......@@ -46,7 +46,7 @@
<div class="item-article-text"><span></span>美国最严技术出口管制,中国芯片大军转向欧罗</div>
<div class="item-article-text"><span></span>美国最严技术出口管制,中国芯片大军转向欧罗</div>
<div class="item-article-text"><span></span>美国最严技术出口管制,中国芯片大军转向欧罗</div>
<div class="item-article-more">更多 >></div>
<div class="item-article-more" @click="clickMore(item.url)">更多 >></div>
</div>
</div>
</div>
......
......@@ -68,13 +68,16 @@
contentArr: [
{
img:'background: url(/imgs/home/nav1.png) no-repeat;',
name:'热门专利'
name:'热门专利',
url: 'https://patent.aminer.cn/#/push/patent'
},{
img:'background: url(/imgs/home/nav2.jpg) no-repeat;',
name:'热门科技资讯'
name:'热门科技资讯',
url: 'https://patent.aminer.cn/#/push/news'
},{
img:'background: url(/imgs/home/nav3.jpg) no-repeat;',
name:'热门文献'
name:'热门文献',
url:'https://patent.aminer.cn/#/push/paper'
},
],
bannerTabsArr: [
......@@ -173,6 +176,9 @@
this.$root.typeHome = true;
},
methods:{
clickMore(url) {
window.open(url)
},
show2enter() {
this.show2 = true;
},
......
......@@ -2,7 +2,7 @@
template:'${tmpl}',
data:function(){
return {
url:"",
url:""
}
},
mounted:function(){
......@@ -17,7 +17,7 @@
},
methods:{
},
vname:"gsb-iframehtml"
}
<div style="width:100%;height:100%;">
<div style="width:200px;height:100%;float: left;background-color: rgb(84, 92, 100);">
<el-menu
:default-active="0"
class="el-menu-vertical-demo"
@select="handleSelect"
background-color="#545c64"
text-color="#fff"
active-text-color="#ffd04b">
<el-menu-item v-for="(item, key) in urlTabs" :key="key" :index="key">
<i class="el-icon-menu"></i>
<span slot="title">{{item.name}}</span>
</el-menu-item>
</el-menu>
</div>
<div style="width:calc(100% - 200px);height:100%;float: left;">
<iframe style="width:100%;height:100%;" :src="url" frameborder="0"></iframe>
</div>
</div>
{
template:'${tmpl}',
data:function(){
return {
url:"",
urlTabs:[
{
name: '知识产权运营',
/*url: 'https://www.cnuip.com/'*/
url: 'http://101.132.173.37:8110/'
},
{
name: '专利超市',
url: 'http://101.132.173.37:8110/goods/patent.html'
},{
name: '企业服务',
url: 'http://101.132.173.37:8110/goods/service_z01.html'
},{
name: '科技成果',
url: 'http://101.132.173.37:8110/achievement'
},{
name: '知产百科',
url: 'http://101.132.173.37:8110/article/baike/'
},{
name: '问专家',
url: 'http://101.132.173.37:8110/shop_3.html'
}
]
}
},
mounted:function(){
console.log(this.$root.currentUser, '调用方法');
var url = this.$router.history.current.query.url;
if(url){
url = decodeURIComponent(url);
this.url = url;
}
},
created:function(){
},
methods:{
handleSelect(val) {
console.log(val);
this.url = this.urlTabs[val].url
}
},
vname:"gsb-iframehtmlTabs"
}
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