杨磊
2025-04-08 f115edeb003327109dd185a204d1f996de21f051
src/views/honors/index.vue
@@ -3,25 +3,39 @@
        <div class="honors-title">
            <p>王永炎院士荣誉奖项</p>
        </div>
    <div class="page-main-father">
        <div class="honors-main">
            <div class="honors-main-box">
                <div class="honors-main-title">荣<br>誉<br>奖<br>项</div>
          <div class="honors-main-title">荣<br />誉<br />奖<br />项</div>
                <div class="honors-text">
                    <ul>
                        <li v-for="(item, index) in honorList" :key="index">
                            <img class="main-img" :src="item.imgSrc ? item.imgSrc : defaultImg" alt="">
                <img
                  class="main-img"
                  :src="item.imgSrc ? item.imgSrc : defaultImg"
                  alt=""
                />
                            <div>
                                <p class="main-time">{{ item.time }}</p>
                                <p class="main-text" :title="item.txt">{{ item.txt }}</p>
                            </div>
                        </li>
                    </ul>
                    <img class="honor-Bg" src="../../assets/images/honors/honor-Bg.png" alt="">
            <img
              class="honor-Bg"
              src="../../assets/images/honors/honor-Bg.png"
              alt=""
            />
                    <!-- 分页 -->
                    <div class="pagination">
                        <el-pagination class="msg-pagination-container" :background="isBackground"
                            layout="prev, pager, next" :total="200">
              <el-pagination
                class="msg-pagination-container"
                :background="isBackground"
                layout="prev, pager, next"
                :total="200"
              >
                        </el-pagination>
            </div>
                    </div>
                </div>
            </div>
@@ -39,47 +53,46 @@
                {
                    imgSrc: "",
                    time: "1986年11月",
                    txt: "1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖"
          txt: "1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖",
                },
                {
                    imgSrc: "",
                    time: "1986年11月",
                    txt: "1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖"
          txt: "1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖",
                },
                {
                    imgSrc: "",
                    time: "1986年11月",
                    txt: "1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖"
          txt: "1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖",
                },
                {
                    imgSrc: "",
                    time: "1986年11月",
                    txt: "1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖"
          txt: "1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖",
                },
                {
                    imgSrc: "",
                    time: "1986年11月",
                    txt: "1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖"
          txt: "1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖",
                },
                {
                    imgSrc: "",
                    time: "1986年11月",
                    txt: "1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖"
          txt: "1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖",
                },
                {
                    imgSrc: "",
                    time: "1986年11月",
                    txt: "1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖"
          txt: "1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖",
                },
                {
                    imgSrc: "",
                    time: "1986年11月",
                    txt: "1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖,1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖,1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖,1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖"
          txt: "1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖,1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖,1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖,1991年11月'清开灵注射液治疗中风病痰热证的临床与实验研究'获1991年度国家科技进步奖三等奖",
                },
            ]
        }
    }
      ],
    };
  },
};
</script>
@@ -88,16 +101,21 @@
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  background-color: #e9e1d4;
  position: relative;
}
.honors-title {
    height: 102px;
  height: 9.4%;
    width: 100%;
    text-align: left;
    margin-bottom: 41px;
    border-bottom: 2px solid #937950;
  background-color: #e9e1d4;
  position: sticky;
  top: 0;
  z-index: 100;
    p{
        padding: 35px 0 34px 0;
    padding: 2% 0 1.9% 0;
        font-family: Alimama DongFangDaKai;
        font-size: 30px;
        text-indent: 1em;
@@ -105,16 +123,24 @@
    }
}
.page-main-father {
  height: calc(100% - 9.4%);
  width: 100%;
  overflow: auto;
}
.honors-main {
    width: 1330px;
  width: 77.3%;
  height: auto;
    margin: 0 auto;
  margin-top: 2%;
}
.honors-main-box {
    display: flex;
    justify-content: center;
    padding: 32px 0px 135px 53px;
    border: 1px solid #E4DACE;
  padding: 3.2% 6% 14%  4%;
  border: 1px solid #e4dace;
    background: rgba(255, 253, 248, 0.9);
}
@@ -122,32 +148,32 @@
    padding: 0 30px 0 0;
    font-family: Alimama DongFangDaKai;
    font-size: 36px;
    border-right: 1px solid #B9A587;
  border-right: 1px solid #b9a587;
}
.honors-text {
  width: 100%;
    position: relative;
    padding: 0 0 0 71px;
  padding: 0 0 0 5.8%;
    ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between
    justify-content: space-between;
    }
    li {
        width: 502px;
    height: 25%;
    width: 45%;
        display: flex;
        margin-right: 47px;
    margin-right: 0.9%;
        margin-bottom: 25px;
        img {
            margin: 9px 30px 9px 0;
            width: 120px;
            height: 90px;
      width: 24%;
      height: 100%;
        }
        .main-time {
            margin-top: 7px;
@@ -158,7 +184,7 @@
        }
        .main-text {
            font-family: Alibaba PuHuiTi 3.0;
      font-family: Alibaba PuHuiTi 3;
            font-size: 14px;
            line-height: 20px;
            overflow: hidden;
@@ -171,9 +197,9 @@
    .honor-Bg {
        position: absolute;
        height: 285px;
        width: auto;
        bottom: -152px;
    width: 70.5%;
    height: auto;
    bottom: -36%;
        left: -295px;
    }
@@ -184,18 +210,55 @@
    }
}
@font-face {
    font-family: 'Alimama DongFangDaKai';
    src: url('../../assets/font/阿里妈妈东方大楷.ttf');
@media screen and (min-width: 2560px) {
  .honors-main {
    width: 77.3%;
    min-width: 1600px;
    transform: scale(1);
}
  .honors-title p {
    font-size: 44px;
  }
  .honors-main-title {
    font-size: 54px;
  }
  .honors-text {
    li {
      .main-time {
        font-size: 24px;
      }
      .main-text {
        font-size: 20px;
        line-height: 28px;
      }
    }
  }
  .honor-Bg {
    position: absolute;
    width: 70.5%;
    height: auto;
    bottom: -39%;
    left: -295px;
  }
}
@font-face {
  font-family: "Alimama DongFangDaKai";
  src: url("../../assets/font/阿里妈妈东方大楷.ttf");
}
:deep .msg-pagination-container.is-background .el-pager li {
    /*对页数的样式进行修改*/
    background-color: transparent;
    color: #333333;
    border-radius: 5px;
    border: 1px solid #CCCCCC;
  border: 1px solid #cccccc;
}
:deep.msg-pagination-container.is-background .btn-next {
@@ -203,7 +266,7 @@
    background-color: transparent;
    color: #333333;
    border-radius: 5px;
    border: 1px solid #CCCCCC;
  border: 1px solid #cccccc;
}
:deep.msg-pagination-container.is-background .btn-prev {
@@ -211,14 +274,16 @@
    background-color: transparent;
    color: #333333;
    border-radius: 5px;
    border: 1px solid #CCCCCC;
  border: 1px solid #cccccc;
}
:deep.msg-pagination-container.is-background .el-pager li:not(.disabled).active {
:deep.msg-pagination-container.is-background
  .el-pager
  li:not(.disabled).active {
    /*当前选中页数的样式进行修改*/
    background-color: #937950;
    color: #FFF;
  color: #fff;
    border-radius: 5px;
    border: 1px solid #CCCCCC;
  border: 1px solid #cccccc;
}
</style>