Commit be07e40d by 李宏达

lhd

parent 2b4ffc9b
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -152,6 +152,8 @@ axios.get("/vue/comp/base").then(function(res){ ...@@ -152,6 +152,8 @@ axios.get("/vue/comp/base").then(function(res){
homeType: true, homeType: true,
navarr:[ navarr:[
{ {
name:'首页'
},{
name:'智能检索' name:'智能检索'
},{ },{
name:'智能分析' name:'智能分析'
...@@ -225,8 +227,10 @@ axios.get("/vue/comp/base").then(function(res){ ...@@ -225,8 +227,10 @@ axios.get("/vue/comp/base").then(function(res){
}, },
}), }),
created(){ created(){
/*let navarr = [ let navarr = [
{ {
name:'首页'
},{
name:'智能检索' name:'智能检索'
},{ },{
name:'智能分析' name:'智能分析'
...@@ -258,28 +262,35 @@ axios.get("/vue/comp/base").then(function(res){ ...@@ -258,28 +262,35 @@ axios.get("/vue/comp/base").then(function(res){
name: '更多', name: '更多',
obj: [] obj: []
}; };
let clientWidth = document.body.clientWidth - 400;
for(let i=0; i<navarr.length; i++) { for(let i=0; i<navarr.length; i++) {
if ((i * 124) <= document.body.clientWidth) { if ((i * 124) <= clientWidth) {
that.navarr.push(navarr[i]) that.navarr.push(navarr[i])
}else { }else {
a.obj.push(navarr[i]) a.obj.push(navarr[i].name)
}
if (a.obj.length > 0) {
that.navarr.push(a)
} }
}; };
if (a.obj.length > 0) {
that.navarr.push(a)
};
$(window).resize(function(){ $(window).resize(function(){
for(var i=0; i<navarr.length; i++) { that.navarr = [];
if ((i * 124) <= document.body.clientWidth) { let a = {
name: '更多',
obj: []
};
let clientWidth = document.body.clientWidth - 400;
for(let i=0; i<navarr.length; i++) {
if ((i * 124) <= clientWidth) {
that.navarr.push(navarr[i]) that.navarr.push(navarr[i])
}else { }else {
a.obj.push(navarr[i]) a.obj.push(navarr[i].name)
}
if (a.obj.length > 0) {
that.navarr.push(a)
} }
};
if (a.obj.length > 0) {
that.navarr.push(a)
} }
})*/ })
var url = window.location.href; var url = window.location.href;
var arr1 = url.split("/#"); var arr1 = url.split("/#");
var titleValue = ""; var titleValue = "";
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
text-stroke:1px rgba(255,0,0,1); text-stroke:1px rgba(255,0,0,1);
} }
.con_left { .con_left {
margin-top: 5.3vh; margin-top: 3vh;
float: left; float: left;
width: 46.8%; width: 46.8%;
height: 78vh; height: 78vh;
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
z-index: -1; z-index: -1;
} }
.con_right { .con_right {
margin-top: 5.3vh; margin-top: 3vh;
float: right; float: right;
width: 46.8%; width: 46.8%;
height: 78vh; height: 78vh;
...@@ -216,4 +216,18 @@ ...@@ -216,4 +216,18 @@
height: 21.3vh; height: 21.3vh;
background: url('https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_4197159746069577320201511455773图层6 拷贝.png') no-repeat; background: url('https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_4197159746069577320201511455773图层6 拷贝.png') no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
}
.fenye_lhd {
width: 150px;
position: absolute;
bottom: 10px;
left: calc(50% - 75px);
font-size: 16px;
display: flex;
flex-direction: row;
justify-content: space-between;
z-index: 9999;
}
.fenye_lhd span {
cursor: pointer;
} }
\ No newline at end of file
...@@ -67,5 +67,8 @@ ...@@ -67,5 +67,8 @@
</div> </div>
</div> </div>
</div> </div>
<div class="fenye_lhd">
<span @click="shang">上一页</span>{{pageSize/5 + 1}}/{{Math.ceil(arrt1.length / 5)}}<span @click="xia">下一页</span>
</div>
<div class="bar_lhd"></div> <div class="bar_lhd"></div>
</div> </div>
\ No newline at end of file
...@@ -11,7 +11,11 @@ ...@@ -11,7 +11,11 @@
'background:linear-gradient(270deg,rgba(252,219,0,1) 0%,rgba(247,181,0,1) 100%);','background:linear-gradient(270deg,rgba(121,237,220,1) 0%,rgba(28,240,154,1) 100%);' 'background:linear-gradient(270deg,rgba(252,219,0,1) 0%,rgba(247,181,0,1) 100%);','background:linear-gradient(270deg,rgba(121,237,220,1) 0%,rgba(28,240,154,1) 100%);'
], ],
arr1: [], arr1: [],
arr2: [] arr2: [],
pageSize: 0,
arrLength: 0,
arrt1: [],
arrt2: []
} }
}, },
mounted:function(){ mounted:function(){
...@@ -32,6 +36,24 @@ ...@@ -32,6 +36,24 @@
params:{entName: this.name2} params:{entName: this.name2}
}); });
}, },
shang() {
if (this.pageSize > 0) {
this.pageSize = this.pageSize - 5;
this.arr1 = this.arrt1.slice(this.pageSize, this.pageSize + 5);
this.arr2 = this.arrt2.slice(this.pageSize, this.pageSize + 5);
}else {
console.log('没有了')
}
},
xia() {
if (this.arrLength > (this.pageSize + 5)) {
this.pageSize = this.pageSize + 5;
this.arr1 = this.arrt1.slice(this.pageSize, this.pageSize + 5);
this.arr2 = this.arrt2.slice(this.pageSize, this.pageSize + 5);
}else {
console.log('没有了')
}
},
analysisInfo(){ analysisInfo(){
var obj={company1:"", company2: '', keyword1: '', keyword2: ''}; var obj={company1:"", company2: '', keyword1: '', keyword2: ''};
if(this.name1 && this.name2 && this.text1 && this.text2){ if(this.name1 && this.name2 && this.text1 && this.text2){
...@@ -46,8 +68,13 @@ ...@@ -46,8 +68,13 @@
this.$root.getReq("web/patentycCtl/competitionAnalysisContex",obj).then(d=>{ this.$root.getReq("web/patentycCtl/competitionAnalysisContex",obj).then(d=>{
console.log(d); console.log(d);
if(d && d.status==0){ if(d && d.status==0){
this.arr1 = d.data.arrt1; this.arrLength = d.data.arrt1.length;
this.arr2 = d.data.arrt2; this.arrt1 = d.data.arrt1;
this.arrt2 = d.data.arrt2;
this.arr1 = d.data.arrt1.slice(this.pageSize, this.pageSize + 5);
this.arr2 = d.data.arrt2.slice(this.pageSize, this.pageSize + 5);
} }
this.$root.hideMask(); this.$root.hideMask();
}).catch(e=>{ }).catch(e=>{
......
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