Mr.Zhang
2023-08-23 a87a822fb84f5eac8c78c518a33ecd5fe77dc28a
top 10
已修改1个文件
27 ■■■■■ 文件已修改
screen_standard/src/views/index.vue 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
screen_standard/src/views/index.vue
@@ -221,10 +221,11 @@
  dayDistribution: [],
  typeDistribution: [],
  num: 0,
  baseNum: 0
  baseNum: 0,
  bottomAuthHeight: 284
})
let { baseNum } = toRefs(data)
let { baseNum, bottomAuthHeight } = toRefs(data)
let timer = ref(null)
let timer1 = ref(null)
@@ -232,7 +233,6 @@
let timer3 = ref(null)
let timer4 = ref(null)
let timer5 = ref(null)
let bottomAuthHeight = 284;
let scrollContainer = ref(null)
let scrollContainer1 = ref(null)
let scrollContainer2 = ref(null)
@@ -380,7 +380,6 @@
function  setBottomHeight(){
  const pageHeight = window.innerHeight;
  bottomAuthHeight = pageHeight -700;
  // bottom1.style.height=bottomAuthHeight;
}
/**
@@ -662,15 +661,16 @@
  if (scrollDom.offsetHeight == 0) {
    scrollDom = scrollContainer.value
  } else {
    let maxLength = scrollDom.clientHeight/34
    // 如果列表数量过少不进行滚动
    if (scrollDom.children.length < 6) {
    if (scrollDom.children.length <= maxLength) {
      clearTimeout(timer.value)
      return
    }
    // 组件进行滚动
    scrollDom.scrollTop += 1
    scrollDom.scrollTop += 2
    // 判断是否滚动到底部
    if (scrollDom.scrollTop >= (scrollDom.scrollHeight - scrollDom.clientHeight)) {
    if (Math.floor(scrollDom.scrollTop) >= (scrollDom.scrollHeight - scrollDom.clientHeight)) {
      // 获取组件第一个节点
      let first = scrollDom.children[0]
      // 删除节点
@@ -794,6 +794,8 @@
</script>
<style lang="scss" scoped>
$fixed-height: 690px;
.content1 {
  flex: 1;
  width: 100%;
@@ -807,7 +809,7 @@
    margin-right: 20px;
    .content_left_item1 {
      width: 100%;
      height:  calc(100vh - 700px);
      height:  calc(100vh - 690px);
    //  height: 284px;
      margin-bottom: 20px;
      .content_left_item1_head {
@@ -832,7 +834,7 @@
      .content_left_item1_content {
        width: 100%;
        height: 246px;
        height: calc(100% - 36px);
        padding: 20px;
        overflow: hidden;
        box-sizing: border-box;
@@ -843,7 +845,8 @@
          display: flex;
          align-items: center;
          justify-content: space-between;
          margin-bottom: 13px;
          // margin-bottom: 13px;
          padding: 7px 0;
          &:last-child {
            margin: 0;
@@ -1281,7 +1284,7 @@
    .content_center_bottom {
      width: 100%;
     // height: 284px;
      height:  calc(100vh - 700px);
      height:  calc(100vh - 690px);
      flex: 2;
      .content_center_bottom_head {
        width: 100%;
@@ -1467,7 +1470,7 @@
      width: 100%;
     // height: 284px;
      height:  calc(100vh - 700px);
      height:  calc(100vh - 690px);
      .content_right_bottom_head {
        width: 100%;
        height: 38px;