Newer
Older
KaiFengPC / src / views / sponeScreen / longYW / PromotionTraining.vue
@鲁yixuan 鲁yixuan on 25 Jun 3 KB update
<template>
  <div class="longYW">
    <div class="partTitleHM">宣传培训</div>
    <div class="ConstrucClass">
      <!-- <Vue3SeamlessScroll :list="tableData" :singleHeight="110" :singleWaitTime="1500" :hover="true" class="scroll"> -->
      <div class="PublicityContent" v-for="item in tableData" @click="zpClck(item)">
        <div class="PublicityContentZP">
          <div class="zp"></div>
        </div>
        <div class="PublicityContentlR">
          <div class="PublicityContentXM">
            <span>{{ item.name }}</span>
          </div>
          <div class="PublicityContentTime">
            <span>发布时间</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <span>{{ item.time }}</span>
          </div>
        </div>
      </div>
      <!-- </Vue3SeamlessScroll> -->
    </div>
  </div>
</template>

<script setup>
import { Vue3SeamlessScroll } from 'vue3-seamless-scroll';

const tableData = ref([
  { name: '海绵城市建设服务中心开展活动', time: '2023-02-22 09:18:31', lj: 'https://www.kf.cn/c/2023-02-22/785725.shtml' },
  { name: '开封市海绵城市建设管理条例宣传进社区', time: '2023-09-21 17:25:23', lj: 'https://www.kf.cn/c/2023-09-21/851453.shtml' },
  {
    name: '开封市海绵城市建设管理条例宣传活动启动仪式举行',
    time: '2023-08-15 19:56:41',
    lj: 'https://www.kf.cn/c/2023-08-15/846349.shtml',
  },
]);

// 照片点击
function zpClck(val) {
  window.open(val.lj);
}
</script>

<style lang="scss" scoped>
.longYW {
  margin-top: 10px;
  width: 460px;
  height: 30%;
  background: #003b6d;
  opacity: 0.8;
  .ConstrucClass {
    height: calc(100% - 18%);
    overflow: hidden;
    overflow-y: auto;
    // background: red;
    .scroll {
      margin-top: 5px;
      width: 100%;
      height: calc(100% - 10%);
      overflow: hidden;
      display: inline-block;
    }
  }
  .PublicityContent {
    margin: 5px;
    width: 97%;
    height: 90px;
    background: #325ca3c4;
    position: relative;
    display: flex;
    cursor: pointer;
    .PublicityContentZP {
      width: 20%;
      height: 90px;
      // background: yellow;
      .zp {
        width: 80px;
        height: 80px;
        margin: auto;
        margin-top: 5px;
        background: url('@/assets/newImgs/HMScreen/20240624154343.png') no-repeat;
        background-size: 100% 100%;
      }
    }
    .PublicityContentlR {
      width: 80%;
      height: 90px;
      margin-left: 5px;

      // background: blueviolet;
      .PublicityContentXM {
        width: 100%;
        height: 60%;
        // background: blue;
        display: flex;
        align-items: center;
        span {
          height: 60%;
          font-size: 16px;
          color: #e4f5ff;
          overflow: hidden;
          white-space: nowrap; /* 防止文字换行 */
          text-overflow: ellipsis; /* 超出部分显示省略号 */
        }
      }
      .PublicityContentTime {
        width: 100%;
        height: 40%;
        font-size: 15px;
        // background: yellowgreen;
        color: #5b93eb;
        line-height: 20px;
      }
    }
  }
}
</style>