Newer
Older
KaiFengPC / src / views / sponeScreen / longYW / PublicAdvice.vue
@zhangdeliang zhangdeliang on 27 Jun 3 KB update
<template>
  <div class="partTitleHM">公众建议</div>
  <div class="ConstrucClass">
    <Vue3SeamlessScroll :list="tableData" :hover="true" class="scroll">
      <div class="MainBox" v-for="(item, index) in tableData" :key="index">
        <div class="AvatarAppearance">
          <div class="zp">
            <img :src="item.img" alt="" class="txclass" />
          </div>
          <div class="NameTime">
            <p class="Namea">{{ item.name }}</p>
            <p class="Timea">2024-05-23 12:20:30</p>
          </div>
        </div>
        <div class="below">
          <p class="belowNr">海绵项目建设的真不错,下雨也不积水内涝了。</p>
          <div class="belowZp">
            <el-image :src="url" style="width: 100px; height: 50px; margin-top: 5px"> </el-image>
          </div>
        </div>
      </div>
    </Vue3SeamlessScroll>
  </div>
</template>

<script setup>
import { Vue3SeamlessScroll } from 'vue3-seamless-scroll';
import tx from '@/assets/newImgs/HMScreen/20240625101756.jpg';
const url = 'https://server1.wh-nf.cn:9000/newfiber-standard/2024/03/02/微信图片_20240302202056_20240302202204A004.jpg';
const tableData = ref([
  {
    img: tx,
    name: 'zdl',
  },
  {
    img: tx,
    name: 'yh',
  },
  {
    img: tx,
    name: 'jff',
  },
]);
</script>

<style lang="scss" scoped>
.ConstrucClass {
  width: 460px;
  height: 30%;
  background: #004565;
  opacity: 0.8;
  // overflow-x: hidden;
  // overflow-y: auto;
  .MainBox {
    width: 95%;
    height: 150px;
    background: #325ca3c4;
    margin: auto;
    position: relative;
    top: 10px;
    // border: 1px solid #5b93eb;
    .AvatarAppearance {
      width: 100%;
      height: 60px;
      display: flex;
      justify-content: space-around;
      margin: 5px;
      // background: yellowgreen;
      .zp {
        width: 20%;
        height: 60px;

        // background: rgb(228, 149, 149);
        .txclass {
          width: 50px;
          height: 50px;
          border-radius: 25px;
          // background: yellow;
          position: relative;
          top: 5px;
          left: 18px;
        }
      }
      .NameTime {
        width: 80%;
        height: 60px;
        .Namea {
          width: 100%;
          height: 30px;
          // background: red;
          display: flex;
          align-items: center;
          color: #b3e3ff;
          font-size: 15px;
          font-family: SourceHanSansCN-Medium;
          font-weight: 400;
        }
        .Timea {
          width: 100%;
          height: 30px;
          color: #5b93eb;
          font-size: 16px;
          font-family: SourceHanSansCN-Medium;
          font-weight: 400;
          // background: blue;
        }
      }
    }
    .below {
      width: 100%;
      // height: 80px;
      // background: yellowgreen;
      padding-bottom: 10px;
      .belowNr {
        width: 95%;
        color: #b3e3ff;
        font-size: 15px;
        font-family: SourceHanSansCN-Medium;
        font-weight: 400;
        margin-left: 15px;
        // height: 30px;
        // background: red;
      }
      .belowZp {
        margin-left: 15px;
        // width: 95%;
      }
    }
  }
  .scroll {
    width: 100%;
    height: calc(100% - 2%);
    overflow: hidden;
    display: inline-block;
    // background: red;
  }
}
// ::v-deep th.el-table__cell,
// ::v-deep td.el-table__cell {
//   // 设置position 使得 子元素不与其产生新的层叠关系
//   position: static;
// }
</style>