Commit b266af52 by 任建

rj

parent 35f25db9
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
<div @click="after(rKey)" v-if="recommendationsObjAfter">下一篇:{{recommendationsObjAfter.name}}</div> <div @click="after(rKey)" v-if="recommendationsObjAfter">下一篇:{{recommendationsObjAfter.name}}</div>
</div> --> </div> -->
<div class="policylist-qr"> <div class="policylist-qr">
<img src="/imgs/gsb.png" alt=""> 扫一扫,关注iBOSS微信服务号,随时随地了解行业政策最新资讯 <img style="border:1px dashed #666;" src="/imgs/gsb.png" alt=""> 扫一扫,关注iBOSS微信服务号,随时随地了解行业政策最新资讯
</div> </div>
</div> </div>
</div> </div>
\ No newline at end of file
...@@ -40,6 +40,15 @@ ...@@ -40,6 +40,15 @@
input7:'', input7:'',
input8:'', input8:'',
input9:'', input9:'',
listGen1:true,
listGen2:true,
listGen3:true,
listGen4:true,
listGen5:true,
listGen6:true,
listGen7:true,
listGen8:true,
listGen9:true,
tableData1: [ tableData1: [
'北京', '北京',
'天津', '天津',
...@@ -200,7 +209,6 @@ ...@@ -200,7 +209,6 @@
}] }]
} }
}, },
methods: { methods: {
rgba() { rgba() {
var color = this.colorList[Math.floor(Math.random()*this.colorList.length)]; var color = this.colorList[Math.floor(Math.random()*this.colorList.length)];
...@@ -435,12 +443,49 @@ ...@@ -435,12 +443,49 @@
}).catch(function (e) { }).catch(function (e) {
console.log(`操作失败,请刷新页面后重新操作`); console.log(`操作失败,请刷新页面后重新操作`);
}); });
},
refsWidth(ref){
let length=0;
[...ref.children].forEach( item => {
length += item.offsetWidth;
});
return length;
},
geng(){
if(this.$refs.ref1.offsetWidth >= this.refsWidth(this.$refs.ref1)){
this.listGen1 = false;
}
if(this.$refs.ref2.offsetWidth >= this.refsWidth(this.$refs.ref2)){
this.listGen2 = false;
}
if(this.$refs.ref3.offsetWidth >= this.refsWidth(this.$refs.ref3)){
this.listGen3 = false;
}
if(this.$refs.ref4.offsetWidth >= this.refsWidth(this.$refs.ref4)){
this.listGen4 = false;
}
if(this.$refs.ref5.offsetWidth >= this.refsWidth(this.$refs.ref5)){
this.listGen5 = false;
}
if(this.$refs.ref6.offsetWidth >= this.refsWidth(this.$refs.ref6)){
this.listGen6 = false;
}
if(this.$refs.ref7.offsetWidth >= this.refsWidth(this.$refs.ref7)){
this.listGen7 = false;
}
if(this.$refs.ref8.offsetWidth >= this.refsWidth(this.$refs.ref8)){
this.listGen8 = false;
}
if(this.$refs.ref9.offsetWidth >= this.refsWidth(this.$refs.ref9)){
this.listGen9 = false;
}
} }
}, },
mounted: function() { mounted: function() {
/*for (let i = 0; i < this.portrayalArr.length; i++) { /*for (let i = 0; i < this.portrayalArr.length; i++) {
this.portrayalArr[i].col = this.rgb(); this.portrayalArr[i].col = this.rgb();
};*/ };*/
this.geng();
this.zcPost(); this.zcPost();
this.zccompanyPost(); this.zccompanyPost();
}, },
......
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