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){
homeType: true,
navarr:[
{
name:'首页'
},{
name:'智能检索'
},{
name:'智能分析'
......@@ -225,8 +227,10 @@ axios.get("/vue/comp/base").then(function(res){
},
}),
created(){
/*let navarr = [
let navarr = [
{
name:'首页'
},{
name:'智能检索'
},{
name:'智能分析'
......@@ -258,28 +262,35 @@ axios.get("/vue/comp/base").then(function(res){
name: '更多',
obj: []
};
let clientWidth = document.body.clientWidth - 400;
for(let i=0; i<navarr.length; i++) {
if ((i * 124) <= document.body.clientWidth) {
if ((i * 124) <= clientWidth) {
that.navarr.push(navarr[i])
}else {
a.obj.push(navarr[i])
}
if (a.obj.length > 0) {
that.navarr.push(a)
a.obj.push(navarr[i].name)
}
};
if (a.obj.length > 0) {
that.navarr.push(a)
};
$(window).resize(function(){
for(var i=0; i<navarr.length; i++) {
if ((i * 124) <= document.body.clientWidth) {
that.navarr = [];
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])
}else {
a.obj.push(navarr[i])
}
if (a.obj.length > 0) {
that.navarr.push(a)
a.obj.push(navarr[i].name)
}
};
if (a.obj.length > 0) {
that.navarr.push(a)
}
})*/
})
var url = window.location.href;
var arr1 = url.split("/#");
var titleValue = "";
......
......@@ -47,7 +47,7 @@
text-stroke:1px rgba(255,0,0,1);
}
.con_left {
margin-top: 5.3vh;
margin-top: 3vh;
float: left;
width: 46.8%;
height: 78vh;
......@@ -140,7 +140,7 @@
z-index: -1;
}
.con_right {
margin-top: 5.3vh;
margin-top: 3vh;
float: right;
width: 46.8%;
height: 78vh;
......@@ -216,4 +216,18 @@
height: 21.3vh;
background: url('https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_4197159746069577320201511455773图层6 拷贝.png') no-repeat;
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 @@
</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>
\ No newline at end of file
......@@ -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%);'
],
arr1: [],
arr2: []
arr2: [],
pageSize: 0,
arrLength: 0,
arrt1: [],
arrt2: []
}
},
mounted:function(){
......@@ -32,6 +36,24 @@
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(){
var obj={company1:"", company2: '', keyword1: '', keyword2: ''};
if(this.name1 && this.name2 && this.text1 && this.text2){
......@@ -46,8 +68,13 @@
this.$root.getReq("web/patentycCtl/competitionAnalysisContex",obj).then(d=>{
console.log(d);
if(d && d.status==0){
this.arr1 = d.data.arrt1;
this.arr2 = d.data.arrt2;
this.arrLength = d.data.arrt1.length;
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();
}).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