Commit df9a4b03 by 李宏达

lhd

parent 0dea3b6d
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -43,10 +43,8 @@
<div class="content-item-tab">{{item.name}}</div>
</div>
<div class="content-item-article">
<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" @click="clickMore(item.url)">更多 >></div>
<div class="item-article-text" v-for="list in item.itemArr" @click="details(list)"><span></span>{{list.title}}</div>
<div class="item-article-more" @click="clickMore(item)">更多 >></div>
</div>
</div>
</div>
......
......@@ -69,15 +69,42 @@
{
img:'background: url(/imgs/home/nav1.png) no-repeat;',
name:'热门专利',
url: 'https://patent.aminer.cn/#/push/patent'
url: 'https://patent.aminer.cn/#/push/patent',
itemArr:[
{
title: 'PrivNet: Safeguarding Private Attributes in Transfer Learning for Recommendation'
},{
title: 'PrivNet: Safeguarding Private Attributes in Transfer Learning for Recommendation'
},{
title: 'PrivNet: Safeguarding Private Attributes in Transfer Learning for Recommendation'
}
]
},{
img:'background: url(/imgs/home/nav2.jpg) no-repeat;',
name:'热门科技资讯',
url: 'https://patent.aminer.cn/#/push/news'
url: 'https://patent.aminer.cn/#/push/news',
itemArr:[
{
title: ''
},{
title: ''
},{
title: ''
}
]
},{
img:'background: url(/imgs/home/nav3.jpg) no-repeat;',
name:'热门文献',
url:'https://patent.aminer.cn/#/push/paper'
url:'https://patent.aminer.cn/#/push/paper',
itemArr:[
{
title: ''
},{
title: ''
},{
title: ''
}
]
},
],
bannerTabsArr: [
......@@ -174,10 +201,36 @@
that.BannerHeight = window.innerHeight;
});
this.$root.typeHome = true;
this.aminerpapers();
this.aminerarticle();
},
methods:{
clickMore(url) {
window.open(url)
details(val) {
var b1 = '';
if (val.url) {
b1 = val.url[0].replace("https://arxiv.org", "http://xxx.itp.ac.cn");
}else {
b1 = `https://www.aminer.cn/research_report/${val._id}?download=false`;
}
console.log(b1);
this.$root.typeHome = false;
this.$root.loadingHome = true;
var url = encodeURIComponent(b1);
this.$root.pushx({name:"/iframehtml",title:val.title,params:{url:url}});
setTimeout(()=>{
this.$root.loadingHome = false;
},1500);
},
clickMore(val) {
this.$root.typeHome = false;
this.$root.loadingHome = true;
var url = encodeURIComponent(val.url);
this.$root.pushx({name:"/iframehtml",title:val.name,params:{url:url}});
setTimeout(()=>{
this.$root.loadingHome = false;
},1500);
},
show2enter() {
this.show2 = true;
......@@ -310,6 +363,26 @@
console.log(name);
this.$root.NavIndexRoute(name);
},
/*热门文献*/
aminerpapers(){
var self=this;
self.$root.postReq("/web/patentycCtl/aminerpapers",{}).then(function(d){
if(d.status==0){
self.contentArr[2].itemArr = d.data.data;
console.log(d,'dddd')
}
});
},
/*热门科技*/
aminerarticle(){
var self=this;
self.$root.postReq("/web/patentycCtl/aminerarticle",{}).then(function(d){
if(d.status==0){
self.contentArr[1].itemArr = d.data.data;
console.log(d,'aaa')
}
});
},
fetchloopplay:function(){
var self=this;
self.$root.postReq("/web/loopplayCtl/findAll",{}).then(function(d){
......
......@@ -8,6 +8,7 @@
mounted:function(){
console.log(this.$root.currentUser, '调用方法');
var url = this.$router.history.current.query.url;
console.log(url);
if(url){
url = decodeURIComponent(url);
this.url = url;
......
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