Commit 28718ad1 authored by yht15023815643's avatar yht15023815643

update

parent 28c08a2f
......@@ -295,6 +295,8 @@ export default {
},
handleItem(item){
console.log(this.defaultRoute)
this.sideRoute = this.defaultRoute
this.$emit("currentPath", item)
},
......
......@@ -34,7 +34,7 @@
<skeleton style="margin-left:16px;" v-if="isSkeleton"></skeleton>
<div v-else id="anchorRef_wrap">
<div class="contetn_wrap">
<div class="wrap" id="anchorRef" @scroll="handleScroll">
<div class="wrap" :class="activeIndex==0?'':'wrap1'" id="anchorRef" @scroll="handleScroll">
<template v-if="activeIndex==0">
<span class="count">{{ total }}</span><el-popover style="margin-left:8px;position: relative;top: 2px;color:#515a6e;" trigger="hover" content="央企集团数据包含国资委及财政部公示的央企名录。" placement="right"><i slot="reference" class="el-icon-warning-outline"></i></el-popover>
<div >
......@@ -312,8 +312,8 @@ export default {
anchorClick(i) {
var a = document.getElementById('anchor-'+i)
a.scrollIntoView()
// document.body.scrollTop += -40
// document.documentElement.scrollTop += -40
document.body.scrollTop += -40
document.documentElement.scrollTop += -40
setTimeout(() => {
this.anchorIndex = i
}, 1);
......@@ -498,7 +498,6 @@ export default {
background: #FFFFFF;
border-radius: 4px 4px 4px 4px;
padding: 16px;
max-height: 848px;
.anchor{
height: 24px;
}
......@@ -584,6 +583,9 @@ export default {
}
}
}
.wrap1{
max-height: 1048px;
}
.anchor_box {
position: absolute;
top: 48px;
......
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