From d638dade41d48c0522ccccb01e888ea0752c098b Mon Sep 17 00:00:00 2001 From: "DESKTOP-RQ919RC\\Pc" <1300399510@qq.com> Date: Fri, 18 Jul 2025 18:56:24 +0800 Subject: [PATCH] no message --- .vscode/settings.json | 3 + H5/h5.css | 713 ++++++++++++++++++++++++++++++++++- H5/h5.html | 469 ++++++++++++++++++++++- H5/h5.less | 839 +++++++++++++++++++++++++++++++++++++++++- css/index.css | 2 +- css/index.less | 2 +- img/1.svg | 10 + index.html | 26 +- 8 files changed, 2032 insertions(+), 32 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 img/1.svg diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6f3a291 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/H5/h5.css b/H5/h5.css index 6c92b51..6d957d0 100644 --- a/H5/h5.css +++ b/H5/h5.css @@ -1,16 +1,27 @@ body { margin: 0; background-color: #f6f6f6; + overscroll-behavior: contain; + /* 防止滚动溢出时的回弹效果 */ + -webkit-overflow-scrolling: touch; + /* 保持iOS上的平滑滚动 */ } .admission-officer { min-height: 100vh; background-color: #f6f6f6; } +.admission-officer .one-line-display { + word-break: keep-all; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} .admission-officer * { padding: 0; margin: 0; box-sizing: border-box; scroll-behavior: smooth; + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; } .admission-officer .flexflex { display: flex; @@ -33,7 +44,703 @@ body { .admission-officer a { text-decoration: none; } -.admission-officer .aaaa { - width: 10rem; - height: 6.25rem; +.admission-officer .header-box { + width: 100vw; + height: 4.7rem; + position: relative; + z-index: 1; + margin-bottom: 1.16rem; +} +.admission-officer .header-box .header-bj { + width: 10rem; + height: 4.52rem; + position: absolute; + top: 0; + z-index: 2; +} +.admission-officer .header-box .bj-green { + width: 10rem; + height: 4.62rem; + position: absolute; + top: 0.08rem; + left: 0; + z-index: 1; +} +.admission-officer .header-box .header-img { + height: 0.92rem; + position: absolute; + bottom: 0.98rem; + left: 50%; + transform: translateX(-50%); + z-index: 3; + width: 4.46rem; +} +.admission-officer .list .item { + width: 9rem; + position: relative; + margin: 0 auto; +} +.admission-officer .list .item:not(:last-of-type) { + margin: 0 auto 1.2rem; +} +.admission-officer .list .item .aa { + fill: #0170fe; +} +.admission-officer .list .item .header { + margin-bottom: 0.24rem; + position: relative; +} +.admission-officer .list .item .header .img { + width: 9rem; + border-radius: 0.2rem; + display: block; +} +.admission-officer .list .item .header .abbreviation { + position: absolute; + top: 0; + left: 0; + width: 2rem; + height: 0.96rem; +} +.admission-officer .list .item .header .abbreviation .school-other { + position: absolute; + top: -0.0133rem; + left: -0.0133rem; + width: 2rem; + height: 0.96rem; + z-index: 1; +} +.admission-officer .list .item .header .abbreviation .text { + width: 1.56rem; + height: 0.52rem; + line-height: 0.52rem; + text-align: center; + background-color: #7d2882; + border-radius: 1.72rem; + font-family: "Arial", "Arial-Black", "Arial Black", sans-serif; + font-weight: 900; + font-style: normal; + color: #ffffff; + font-size: 0.26rem; + position: absolute; + top: 0; + left: 0; + z-index: 2; +} +.admission-officer .list .item .header .header-content { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + min-height: 1.28rem; + background-color: rgba(255, 255, 255, 0.92941176); + border-radius: 0.2rem; + width: max-content; + padding: 0.14rem 0.18rem; + max-width: 95%; + min-height: 0.78rem; +} +.admission-officer .list .item .header .header-content .school-img { + height: 0.78rem; + margin-right: 0.2rem; +} +.admission-officer .list .item .header .header-content .school-name { + font-size: 0.48rem; + margin-bottom: 0.08rem; + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + font-size: 0.36rem; + color: #000000; +} +.admission-officer .list .item .header .header-content .school-name .arrow { + margin-left: 0.1333rem; + width: 0.24rem; + height: 0.24rem; +} +.admission-officer .list .item .header .header-content .school-english { + font-size: 0.26rem; + color: #555555; +} +.admission-officer .list .item .introduction { + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + font-weight: 400; + font-style: normal; + font-size: 0.28rem; + color: #555555; + line-height: 0.48rem; + margin-bottom: 0.44rem; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + overflow: hidden; + text-overflow: ellipsis; +} +.admission-officer .list .item .year { + background-color: #ebebeb; + border-radius: 0.16rem; + display: inline-flex; + margin-bottom: 0.4rem; +} +.admission-officer .list .item .year .year-item { + width: 1.8rem; + height: 0.56rem; + line-height: 0.56rem; + text-align: center; + font-size: 0.28rem; + color: #333333; + border-radius: 0.16rem; + position: relative; +} +.admission-officer .list .item .year .year-item.pitch { + background-color: #7d2882; + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + color: #ffffff; +} +.admission-officer .list .item .year .year-item .triangle { + margin-left: 0.19rem; + transition: all 0.3s; + width: 0; + height: 0; + border-left: 0.09rem solid transparent; + border-right: 0.09rem solid transparent; + border-top: 0.1rem solid #000; +} +.admission-officer .list .item .year .year-item.more.pitch .triangle { + border-top: 0.1rem solid #fff; +} +.admission-officer .list .item .year .year-item.more.unfold { + color: #fff; + background-color: #76c45e; + border-radius: 0.16rem 0.16rem 0 0; +} +.admission-officer .list .item .year .year-item.more.unfold .triangle { + border-top: 0.1rem solid #fff; + transform: translateY(-50%) rotate(180deg); +} +.admission-officer .list .item .year .year-item.more.unfold .more-mask, +.admission-officer .list .item .year .year-item.more.unfold .more-box { + display: block; +} +.admission-officer .list .item .year .year-item .more-mask { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + display: none; + z-index: 102; +} +.admission-officer .list .item .year .year-item .more-box { + display: none; + background: #fff; + position: absolute; + top: 0.56rem; + left: 0; + width: 100%; + background-color: #76c45e; + border-radius: 0 0 0.2rem 0.2rem; + z-index: 102; +} +.admission-officer .list .item .year .year-item .more-box::after { + content: ""; + width: 100%; + height: 0.1333rem; + display: block; + top: 0; + position: absolute; + transform: translateY(-100%); + z-index: -1; +} +.admission-officer .list .item .year .year-item .more-box .more-item { + height: 0.6667rem; + line-height: 0.6667rem; + font-size: 0.28rem; + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; +} +.admission-officer .list .item .title-box { + margin-bottom: 0.36rem; +} +.admission-officer .list .item .title-box .title-item { + margin-bottom: 0.2rem; + background-color: #ffffff; + flex-direction: column; + width: 9rem; + border: 0.0133rem solid #f2f2f2; + border-radius: 0.2rem; + padding: 0.24rem 0.2rem; +} +.admission-officer .list .item .title-box .title-item .icon { + background-color: #f3f4f8; + border-radius: 50%; + width: 0.56rem; + height: 0.56rem; + margin-right: 0.2rem; +} +.admission-officer .list .item .title-box .title-item .icon .img { + width: 0.4rem; + height: 0.4rem; +} +.admission-officer .list .item .title-box .title-item .name { + width: 100%; + font-size: 0.32rem; + color: #333333; + margin-bottom: 0.2rem; +} +.admission-officer .list .item .title-box .title-item .name .text { + line-height: 0.56rem; + display: inline; +} +.admission-officer .list .item .title-box .title-item .name .label { + height: 0.52rem; + line-height: 0.52rem; + background-color: #3c7de9; + border-radius: 0.06rem; + position: relative; + color: #ffffff; + font-size: 0.26rem; + font-family: "ArialMT", "Arial", sans-serif; + padding: 0 0.12rem; + margin-left: 0.24rem; + display: inline-flex; +} +.admission-officer .list .item .title-box .title-item .name .label .arrows { + width: 0.18rem; + height: 0.32rem; + position: absolute; + top: 50%; + transform: translateY(-50%) rotate(180deg); + left: -0.08rem; +} +.admission-officer .list .item .title-box .title-item .bottom { + width: 100%; + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + font-size: 0.28rem; + color: #000000; + justify-content: space-between; +} +.admission-officer .list .item .title-box .title-item .bottom .btn { + width: 1.4rem; + height: 0.64rem; + background-color: #7d2882; + font-size: 0.28rem; + border-radius: 1.72rem; + font-family: "Arial", "Arial-Black", "Arial Black", sans-serif; + font-weight: 900; + font-style: normal; + color: #ffffff; +} +.admission-officer .list .item .title-box .title-item .bottom .btn .arrows { + width: 0.24rem; + height: 0.24rem; + margin-left: 0.1rem; +} +.admission-officer .end { + font-size: 0.26rem; + color: #d7d7d7; + text-align: center; + padding-top: 0.2667rem; + padding-bottom: 0.6667rem; +} +.admission-officer .interview-box { + width: 9rem; + height: 5.06rem; + position: relative; + margin: 0 auto 0.54rem; + z-index: 1; +} +.admission-officer .interview-box .head { + position: absolute; + top: 0; + left: 0; + width: 3.48rem; + height: 1.24rem; +} +.admission-officer .interview-box .head .icon { + width: 0.54rem; + height: 0.72rem; + position: absolute; + top: 0; + left: 0; + z-index: 2; +} +.admission-officer .interview-box .head .name { + width: 2.22rem; + height: 0.64rem; + position: absolute; + top: 0; + left: 0.6rem; + z-index: 2; +} +.admission-officer .interview-box .head .head-bj { + position: absolute; + top: -0.0133rem; + left: -0.0133rem; + width: 3.48rem; + height: 1.24rem; + z-index: 1; +} +.admission-officer .interview-box .ok { + position: absolute; + top: -1.96rem; + right: 0.38rem; + width: 1.58rem; + height: 2rem; + z-index: -1; +} +.admission-officer .interview-box .img { + width: 9rem; + height: 5.06rem; + border-radius: 0.2rem; +} +.admission-officer .interview-box .bottom { + position: absolute; + color: #ffffff; + left: 0; + bottom: 0; + width: 9rem; + height: 1.4rem; + background: linear-gradient(to bottom, rgba(0, 0, 0, 0.047) 0%, #000000 100%); + border-radius: 0 0 0.2rem 0.2rem; + padding: 0.24rem 0.44rem 0.22rem; +} +.admission-officer .interview-box .bottom .title { + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + font-size: 0.36rem; + margin-bottom: 0.04rem; +} +.admission-officer .interview-box .bottom .subtitle { + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + font-weight: 400; + font-style: normal; + font-size: 0.28rem; +} +.admission-officer .interview-box .play { + width: 1rem; + height: 1rem; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} +.admission-officer .interview-list { + width: 100vw; + box-sizing: border-box; + white-space: nowrap; + margin-bottom: 1.2rem; + overflow: auto; +} +.admission-officer .interview-list .item { + display: inline-flex; + flex-direction: column; + width: 3.92rem; + margin-right: 0.2rem; +} +.admission-officer .interview-list .item:first-of-type { + margin-left: 0.5rem; +} +.admission-officer .interview-list .item:last-of-type { + margin-right: 0.5rem; +} +.admission-officer .interview-list .item .img { + width: 3.92rem; + height: 2.2rem; + border-radius: 0.2rem; + margin-bottom: 0.2rem; +} +.admission-officer .interview-list .item .title { + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + font-size: 0.32rem; + margin-bottom: 0.1rem; +} +.admission-officer .interview-list .item .subtitle { + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + font-weight: 400; + font-style: normal; + font-size: 0.26rem; + color: #7f7f7f; +} +.admission-officer .preach-box { + width: 9rem; + position: relative; + margin: 0 auto 0.54rem; + background: linear-gradient(123.15792388deg, #dfeaea 0%, #fbf9f5 100%); + border: 0.0133rem solid #e8efee; + border-radius: 0.4rem; + padding-top: 1.04rem; +} +.admission-officer .preach-box .head { + position: absolute; + top: 0; + left: 0; + width: 3.68rem; + height: 1.24rem; +} +.admission-officer .preach-box .head .icon { + width: 0.52rem; + height: 0.36rem; + position: absolute; + top: 0.16rem; + left: 0; + z-index: 2; +} +.admission-officer .preach-box .head .name { + width: 2.22rem; + height: 0.64rem; + position: absolute; + top: 0; + left: 0.68rem; + z-index: 2; +} +.admission-officer .preach-box .head .head-bj { + position: absolute; + top: -0.0133rem; + left: -0.0133rem; + width: 3.68rem; + height: 1.24rem; + z-index: 1; +} +.admission-officer .preach-box .swiper { + width: 9rem; + margin: 0 auto 0.2933rem; + display: flex; + white-space: nowrap; + overflow-x: auto; + -ms-overflow-style: none; + scrollbar-width: none; +} +.admission-officer .preach-box .swiper::-webkit-scrollbar { + display: none; +} +.admission-officer .preach-box .swiper .swiper-item { + display: flex; + flex-direction: column; + width: 9rem; +} +.admission-officer .preach-box .swiper .swiper-item .item { + height: 1.36rem; + padding-top: 0.3rem; + padding-left: 0.8rem; + padding-right: 0.6rem; + position: relative; +} +.admission-officer .preach-box .swiper .swiper-item .item:not(:last-of-type) { + border-bottom: 0.0133rem dotted #d7d7d7; +} +.admission-officer .preach-box .swiper .swiper-item .item .title { + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + font-weight: 400; + font-style: normal; + font-size: 0.32rem; + color: #000000; + margin-bottom: 0.06rem; + position: relative; + width: 9rem; +} +.admission-officer .preach-box .swiper .swiper-item .item .title::after { + content: ""; + width: 0.16rem; + height: 0.16rem; + border-radius: 50%; + position: absolute; + top: 50%; + left: -0.44rem; + transform: translateY(-50%); + background-color: #76c45e; + border: 0.0133rem solid #406f30; +} +.admission-officer .preach-box .swiper .swiper-item .item .title .text { + max-width: 7.0133rem; +} +.admission-officer .preach-box .swiper .swiper-item .item .title .arrow { + width: 0.24rem; + height: 0.24rem; + margin-left: 0.2rem; +} +.admission-officer .preach-box .swiper .swiper-item .item .time { + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + font-weight: 400; + font-style: normal; + color: #555555; + font-size: 0.26rem; +} +.admission-officer .preach-box .indicator { + margin: 0 auto 0.42rem; +} +.admission-officer .preach-box .indicator .item { + width: 0.2rem; + height: 0.08rem; + background-color: #d7d7d7; + border-radius: 0.4rem; +} +.admission-officer .preach-box .indicator .item.pitch { + background: #d35110; +} +.admission-officer .preach-box .indicator .item:not(:last-of-type) { + margin-right: 0.08rem; +} +.admission-officer .paly-box-mask { + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + background-color: rgba(0, 0, 0, 0.4); + z-index: 100; +} +.admission-officer .paly-box-mask .svg { + width: 1.3333rem; + height: 1.3333rem; + animation: rotate 1s linear infinite; +} +@keyframes rotate { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} +.admission-officer .paly-box-mask .paly-box .close { + position: absolute; + top: -0.8667rem; + right: 0; + width: 0.8667rem; + height: 0.8667rem; + cursor: pointer; +} +.admission-officer .paly-box-mask .paly-box .paly-video { + position: absolute; + top: -7rem; + left: 0; + width: 94vw; + height: 6.3333rem; + background-color: #000000; + border-radius: 0.1333rem; +} +.admission-officer .paly-box-mask .paly-box .paly-video .art-video-player, +.admission-officer .paly-box-mask .paly-box .paly-video video { + border-radius: 0.1333rem; + overflow: hidden; +} +.page-header { + display: flex; + height: 60px; + padding: 0 0 0 15px; + align-items: center; + justify-content: space-between; + background: #3c7de9; + position: absolute; + z-index: 2; + width: 100vw; + box-sizing: border-box; +} +.page-header .logo { + display: inline-flex; + width: 116px; + height: 30px; + background-size: 100%; +} +.page-header .r { + display: inline-flex; + background: url(../img/menu.png) no-repeat center; + background-size: 19px 15px; + width: 49px; + height: 60px; +} +.nav-container { + position: fixed; + left: 0; + top: 0px; + width: 100vw; + height: 100vh; + z-index: 100; + display: none; +} +.nav-container .page-header { + position: relative; +} +.nav-container .r { + background-color: rgba(255, 255, 255, 0.2); +} +.nav-container .nav-list { + padding: 0 23px; + width: 100vw; + height: calc(100vh - 60px); + background: #fff; + position: relative; + left: 100vw; +} +.nav-container .nav-list .item { + border-bottom: 1px solid #ededed; + position: relative; + font-size: 16px; + color: #333; +} +.nav-container .nav-list .item a { + color: inherit; + height: 66px; + display: flex; + padding-left: 17px; + align-items: center; + justify-content: space-between; +} +.nav-container .nav-list .item .arrow { + display: inline-flex; + flex: 0 0 7px; + width: 7px; + height: 12px; + background: url(../img/arrow-grey.png) no-repeat; + background-size: 100%; +} +.nav-container .nav-list .item:last-child { + border-bottom: none; +} +.nav-container .nav-list .active { + color: #0170fe; + font-weight: bold; +} +.nav-container .nav-list .active .arrow { + background: #ffffff; +} +.nav-container .nav-list .active:after { + content: ""; + display: block; + position: absolute; + left: 0; + top: 25px; + width: 3px; + height: 16px; + background-color: #0170fe; +} +.nav-container .close { + position: fixed; + left: calc(50vw - 25px); + bottom: 50px; + width: 50px; + height: 50px; + background: url(../img/helloofficer-close.png) no-repeat center; + background-size: 30px 30px; +} +.active-nav { + display: block; +} +.active-nav .nav-list { + animation: toleft 0.3s forwards; +} +@keyframes toleft { + 0% { + left: 100vw; + } + 100% { + left: 0; + } } diff --git a/H5/h5.html b/H5/h5.html index 02818f2..6015e51 100644 --- a/H5/h5.html +++ b/H5/h5.html @@ -2,37 +2,472 @@ - + Document + + -
+
+
+ + + +
-
+
+
+ + + +
+ + + +
+
{{ interviewData.title }}
+
{{ interviewData.subtitle }}
+
+
+ +
+
+ +
{{ item.title }}
+
{{ item.subtitle }}
+
+
+ + + +
+
+
+
+ +
{{ item.abbreviation }}
+
+ +
+ +
+
+ {{ item.name }} + +
+
{{ item.enname }}
+
+
+
+
{{ item.introduction }}
+
+
{{ it }}季
+ +
+ {{ item.isPitchMore ? item.pitch + '季' : '更多' }} +
+
+
+
{{ it }}季
+
+
+
+ +
+
+
+
+ +
+
+ {{ it.title }} +
+ + {{ it.tag }} +
+
+
+
+
+
+ +
+ {{ it.date || '长期答疑' }} +
+ 详情 +
+
+
+
+
+ +
- End -
+ +
+
+ +
+
+
+ + diff --git a/H5/h5.less b/H5/h5.less index 034ed15..4e8f504 100644 --- a/H5/h5.less +++ b/H5/h5.less @@ -1,16 +1,26 @@ body { margin: 0; background-color: rgba(246, 246, 246, 1); + overscroll-behavior: contain; /* 防止滚动溢出时的回弹效果 */ + -webkit-overflow-scrolling: touch; /* 保持iOS上的平滑滚动 */ } .admission-officer { min-height: 100vh; background-color: rgba(246, 246, 246, 1); + .one-line-display { + word-break: keep-all; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + * { padding: 0; margin: 0; box-sizing: border-box; scroll-behavior: smooth; + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; } .flexflex { @@ -40,8 +50,831 @@ body { text-decoration: none; } - .aaaa { - width: 10rem; - height: 6.25rem; + .header-box { + width: 100vw; + // height: 6.5333rem; + height: 4.7rem; + position: relative; + z-index: 1; + margin-bottom: 1.16rem; + + .header-bj { + width: 10rem; + height: 4.52rem; + position: absolute; + top: 0; + z-index: 2; + } + + .bj-green { + width: 10rem; + height: 4.62rem; + position: absolute; + top: 0.08rem; + left: 0; + z-index: 1; + } + + .header-img { + // width: 3.56rem; + height: 0.92rem; + position: absolute; + bottom: 0.98rem; + left: 50%; + transform: translateX(-50%); + z-index: 3; + width: 4.46rem; + // height: 1rem; + } + } + + .list { + .item { + width: 9rem; + position: relative; + margin: 0 auto; + + &:not(:last-of-type) { + margin: 0 auto 1.2rem; + } + + .aa { + fill: #0170fe; + } + + .header { + margin-bottom: 0.24rem; + position: relative; + + .img { + width: 9rem; + // height: .8rem; + border-radius: 0.2rem; + display: block; + } + + .abbreviation { + position: absolute; + top: 0; + left: 0; + width: 2rem; + height: 0.96rem; + + .school-other { + position: absolute; + top: -0.0133rem; + left: -0.0133rem; + width: 2rem; + height: 0.96rem; + z-index: 1; + } + + .text { + width: 1.56rem; + height: 0.52rem; + line-height: 0.52rem; + text-align: center; + background-color: rgba(125, 40, 130, 1); + border-radius: 1.72rem; + font-family: "Arial", "Arial-Black", "Arial Black", sans-serif; + font-weight: 900; + font-style: normal; + color: #ffffff; + font-size: 0.26rem; + position: absolute; + top: 0; + left: 0; + z-index: 2; + } + } + + .header-content { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + min-height: 1.28rem; + background-color: rgba(255, 255, 255, 0.929411764705882); + border-radius: 0.2rem; + width: max-content; + padding: 0.14rem 0.18rem; + max-width: 95%; + min-height: 0.78rem; + + .school-img { + // width: 1rem; + height: 0.78rem; + margin-right: 0.2rem; + } + + .school-name { + font-weight: 650; + font-size: 0.48rem; + color: #000000; + // line-height: 0.48rem; + margin-bottom: 0.08rem; + + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + font-size: 0.36rem; + color: #000000; + + .arrow { + margin-left: 0.1333rem; + width: 0.24rem; + height: 0.24rem; + // transform: rotate(180deg); + } + } + + .school-english { + font-size: 0.26rem; + color: #555555; + } + } + } + + .introduction { + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + font-weight: 400; + font-style: normal; + // font-size: .28rem; + font-size: 0.28rem; + color: #555555; + line-height: 0.48rem; + margin-bottom: 0.44rem; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + overflow: hidden; + text-overflow: ellipsis; + } + + .year { + background-color: rgba(235, 235, 235, 1); + border-radius: 0.16rem; + display: inline-flex; + margin-bottom: 0.4rem; + + .year-item { + width: 1.8rem; + height: 0.56rem; + line-height: 0.56rem; + text-align: center; + font-size: 0.28rem; + color: #333333; + border-radius: 0.16rem; + position: relative; + + &.pitch { + background-color: rgba(125, 40, 130, 1); + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + color: #ffffff; + } + + .triangle { + // width: .18rem; + // height: .1rem; + margin-left: 0.19rem; + transition: all 0.3s; + + width: 0; + height: 0; + border-left: 0.09rem solid transparent; + border-right: 0.09rem solid transparent; + border-top: 0.1rem solid #000; + } + + &.more { + &.pitch { + .triangle { + border-top: 0.1rem solid #fff; + } + } + &.unfold { + color: #fff; + background-color: #76c45e; + border-radius: 0.16rem 0.16rem 0 0; + + .triangle { + border-top: 0.1rem solid #fff; + transform: translateY(-50%) rotate(180deg); + } + + .more-mask, + .more-box { + display: block; + } + } + } + + .more-mask { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + display: none; + // background-color: #0170fe; + z-index: 102; + } + + .more-box { + display: none; + background: #fff; + position: absolute; + top: 0.56rem; + left: 0; + width: 100%; + background-color: rgba(118, 196, 94, 1); + border-radius: 0 0 0.2rem 0.2rem; + z-index: 102; + + &::after { + content: ""; + width: 100%; + height: 0.1333rem; + display: block; + top: 0; + position: absolute; + transform: translateY(-100%); + z-index: -1; + } + + .more-item { + height: 0.6667rem; + line-height: 0.6667rem; + font-size: 0.28rem; + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + } + } + } + } + + .title-box { + margin-bottom: 0.36rem; + + .title-item { + margin-bottom: 0.2rem; + background-color: #ffffff; + flex-direction: column; + width: 9rem; + border: 0.0133rem solid rgba(242, 242, 242, 1); + border-radius: 0.2rem; + padding: 0.24rem 0.2rem; + + .icon { + background-color: #f3f4f8; + border-radius: 50%; + width: 0.56rem; + height: 0.56rem; + margin-right: 0.2rem; + + .img { + width: 0.4rem; + height: 0.4rem; + } + } + + .name { + width: 100%; + font-size: 0.32rem; + color: #333333; + margin-bottom: 0.2rem; + + .text { + line-height: 0.56rem; + display: inline; + } + + .label { + height: 0.52rem; + line-height: 0.52rem; + background-color: #3c7de9; + border-radius: 0.06rem; + position: relative; + color: #ffffff; + font-size: 0.26rem; + font-family: "ArialMT", "Arial", sans-serif; + padding: 0 0.12rem; + margin-left: 0.24rem; + display: inline-flex; + + .arrows { + width: 0.18rem; + height: 0.32rem; + position: absolute; + top: 50%; + transform: translateY(-50%) rotate(180deg); + left: -0.08rem; + } + } + } + + .bottom { + width: 100%; + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + font-size: 0.28rem; + color: #000000; + justify-content: space-between; + + .btn { + width: 1.4rem; + height: 0.64rem; + background-color: rgba(125, 40, 130, 1); + font-size: 0.28rem; + color: #ffffff; + border-radius: 1.72rem; + font-family: "Arial", "Arial-Black", "Arial Black", sans-serif; + font-weight: 900; + font-style: normal; + color: #ffffff; + + .arrows { + width: 0.24rem; + height: 0.24rem; + margin-left: 0.1rem; + } + } + } + } + } + } + } + + .end { + font-size: 0.26rem; + color: #d7d7d7; + text-align: center; + padding-top: 0.2667rem; + padding-bottom: 0.6667rem; + } + + .interview-box { + width: 9rem; + height: 5.06rem; + position: relative; + margin: 0 auto 0.54rem; + z-index: 1; + + .head { + position: absolute; + top: 0; + left: 0; + width: 3.48rem; + height: 1.24rem; + + .icon { + width: 0.54rem; + height: 0.72rem; + position: absolute; + top: 0; + left: 0; + z-index: 2; + } + + .name { + width: 2.22rem; + height: 0.64rem; + position: absolute; + top: 0; + left: 0.6rem; + z-index: 2; + } + + .head-bj { + position: absolute; + top: -0.0133rem; + left: -0.0133rem; + width: 3.48rem; + height: 1.24rem; + z-index: 1; + } + } + + .ok { + position: absolute; + top: -1.96rem; + right: 0.38rem; + width: 1.58rem; + height: 2rem; + z-index: -1; + } + + .img { + width: 9rem; + height: 5.06rem; + border-radius: 0.2rem; + } + + .bottom { + position: absolute; + color: #ffffff; + left: 0; + bottom: 0; + width: 9rem; + height: 1.4rem; + background: linear-gradient(to bottom, rgba(0, 0, 0, 0.047) 0%, #000000 100%); + border-radius: 0 0 0.2rem 0.2rem; + padding: 0.24rem 0.44rem 0.22rem; + + .title { + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + font-size: 0.36rem; + margin-bottom: 0.04rem; + } + + .subtitle { + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + font-weight: 400; + font-style: normal; + font-size: 0.28rem; + } + } + + .play { + width: 1rem; + height: 1rem; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + } + } + + .interview-list { + width: 100vw; + box-sizing: border-box; + white-space: nowrap; + margin-bottom: 1.2rem; + overflow: auto; + + .item { + display: inline-flex; + flex-direction: column; + width: 3.92rem; + margin-right: 0.2rem; + + &:first-of-type { + margin-left: 0.5rem; + } + + &:last-of-type { + margin-right: 0.5rem; + } + + .img { + width: 3.92rem; + height: 2.2rem; + border-radius: 0.2rem; + margin-bottom: 0.2rem; + } + + .title { + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + font-size: 0.32rem; + margin-bottom: 0.1rem; + } + + .subtitle { + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + font-weight: 400; + font-style: normal; + font-size: 0.26rem; + color: #7f7f7f; + } + } + } + + .preach-box { + width: 9rem; + // height: 5.88rem; + position: relative; + margin: 0 auto 0.54rem; + background: linear-gradient(123.157923884672deg, rgba(223, 234, 234, 1) 0%, rgba(251, 249, 245, 1) 100%); + border: 0.0133rem solid rgba(232, 239, 238, 1); + border-radius: 0.4rem; + padding-top: 1.04rem; + // padding-bottom: .42rem; + + .head { + position: absolute; + top: 0; + left: 0; + width: 3.68rem; + height: 1.24rem; + + .icon { + width: 0.52rem; + height: 0.36rem; + position: absolute; + top: 0.16rem; + left: 0; + z-index: 2; + } + + .name { + width: 2.22rem; + height: 0.64rem; + position: absolute; + top: 0; + left: 0.68rem; + z-index: 2; + } + + .head-bj { + position: absolute; + top: -0.0133rem; + left: -0.0133rem; + width: 3.68rem; + height: 1.24rem; + z-index: 1; + } + } + + .swiper { + width: 9rem; + // width: 7.8rem; + // margin: 0 .6rem .2933rem .8rem; + margin: 0 auto 0.2933rem; + // flex-direction: column; + display: flex; + white-space: nowrap; + // 隐藏滚动条 + overflow-x: auto; + -ms-overflow-style: none; + scrollbar-width: none; + + &::-webkit-scrollbar { + display: none; + } + + .swiper-item { + display: flex; + flex-direction: column; + width: 9rem; + + .item { + height: 1.36rem; + padding-top: 0.3rem; + padding-left: 0.8rem; + padding-right: 0.6rem; + position: relative; + + &:not(:last-of-type) { + border-bottom: 0.0133rem dotted #d7d7d7; + } + + .title { + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + font-weight: 400; + font-style: normal; + font-size: 0.32rem; + color: #000000; + margin-bottom: 0.06rem; + position: relative; + width: 9rem; + + &::after { + content: ""; + width: 0.16rem; + height: 0.16rem; + border-radius: 50%; + position: absolute; + top: 50%; + left: -0.44rem; + transform: translateY(-50%); + background-color: #76c45e; + border: 0.0133rem solid #406f30; + } + + .text { + max-width: 7.0133rem; + } + + .arrow { + width: 0.24rem; + height: 0.24rem; + margin-left: 0.2rem; + // transform: rotate(180deg); + } + } + + .time { + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; + font-weight: 400; + font-style: normal; + color: #555555; + font-size: 0.26rem; + } + } + } + } + + .indicator { + margin: 0 auto 0.42rem; + + .item { + width: 0.2rem; + height: 0.08rem; + background-color: rgba(215, 215, 215, 1); + border-radius: 0.4rem; + + &.pitch { + background: rgba(211, 81, 16, 1); + } + + &:not(:last-of-type) { + margin-right: 0.08rem; + } + } + } + } + + .paly-box-mask { + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + background-color: rgba(0, 0, 0, 0.4); + z-index: 100; + .svg { + width: 1.3333rem; + height: 1.3333rem; + // 写个动画 无效旋转 + animation: rotate 1s linear infinite; + @keyframes rotate { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } + } + } + + .paly-box { + // position: relative; + .close { + position: absolute; + top: -0.8667rem; + right: 0; + width: 0.8667rem; + height: 0.8667rem; + cursor: pointer; + } + + .paly-video { + position: absolute; + top: -7rem; + left: 0; + width: 94vw; + height: 6.3333rem; + background-color: rgba(0, 0, 0, 1); + border-radius: 0.1333rem; + .art-video-player, + video { + border-radius: 0.1333rem; + overflow: hidden; + } + } + } + } +} +.page-header { + display: flex; + height: 60px; + padding: 0 0 0 15px; + align-items: center; + justify-content: space-between; + background: #3c7de9; + position: absolute; + z-index: 2; + width: 100vw; + box-sizing: border-box; + + .logo { + display: inline-flex; + width: 116px; + height: 30px; + background-size: 100%; + } + + .r { + display: inline-flex; + background: url(../img/menu.png) no-repeat center; + background-size: 19px 15px; + width: 49px; + height: 60px; + } +} + +.nav-container { + position: fixed; + left: 0; + top: 0px; + width: 100vw; + height: 100vh; + z-index: 100; + display: none; + + .page-header { + position: relative; + .logo { + // background: url(../img/helloofficer-logo.png) no-repeat; + } + } + + .r { + background-color: rgba(255, 255, 255, 0.2); + } + + .nav-list { + padding: 0 23px; + width: 100vw; + height: calc(100vh - 60px); + background: #fff; + position: relative; + left: 100vw; + .item { + border-bottom: 1px solid #ededed; + position: relative; + font-size: 16px; + color: #333; + + a { + color: inherit; + height: 66px; + display: flex; + padding-left: 17px; + align-items: center; + justify-content: space-between; + } + .arrow { + display: inline-flex; + flex: 0 0 7px; + width: 7px; + height: 12px; + background: url(../img/arrow-grey.png) no-repeat; + background-size: 100%; + } + + &:last-child { + border-bottom: none; + } + } + + .active { + color: #0170fe; + font-weight: bold; + .arrow { + background: #ffffff; + } + + &:after { + content: ""; + display: block; + position: absolute; + left: 0; + top: 25px; + width: 3px; + height: 16px; + background-color: #0170fe; + } + } + } + + .close { + position: fixed; + left: calc(50vw - 25px); + bottom: 50px; + width: 50px; + height: 50px; + background: url(../img/helloofficer-close.png) no-repeat center; + background-size: 30px 30px; + } +} +.active-nav { + display: block; +} +.active-nav .nav-list { + animation: toleft 0.3s forwards; +} +@keyframes toleft { + 0% { + left: 100vw; + } + 100% { + left: 0; } } diff --git a/css/index.css b/css/index.css index ab37ebd..0b67339 100644 --- a/css/index.css +++ b/css/index.css @@ -6,6 +6,7 @@ body { min-height: 100vh; background-color: #f6f6f6; min-width: 1200px; + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; } .admission-officer * { padding: 0; @@ -603,7 +604,6 @@ body { font-size: 20px; color: #000000; margin-bottom: 6px; - display: block; } .admission-officer .admission-body .school-list .school-item .right .info .name .arrows { width: 12px; diff --git a/css/index.less b/css/index.less index 008dc88..818b6a8 100644 --- a/css/index.less +++ b/css/index.less @@ -7,6 +7,7 @@ body { min-height: 100vh; background-color: rgba(246, 246, 246, 1); min-width: 1200px; + font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; * { padding: 0; margin: 0; @@ -675,7 +676,6 @@ body { font-size: 20px; color: #000000; margin-bottom: 6px; - display: block; .arrows { width: 12px; height: 12px; diff --git a/img/1.svg b/img/1.svg new file mode 100644 index 0000000..5f46255 --- /dev/null +++ b/img/1.svg @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/index.html b/index.html index a733fe3..0b8263f 100644 --- a/index.html +++ b/index.html @@ -4,12 +4,17 @@ - Document + 5222 @@ -22,6 +27,7 @@
+
@@ -288,20 +294,20 @@
- +
{{ item.title }}
- +
{{ item.date || '长期答疑'}}
了解详情 - +
@@ -312,7 +318,7 @@
- +
@@ -453,15 +459,21 @@ }; // 切换招生官 院校 的 年份 - const cutSchoolYear = (index, year) => (admissionList.value[index]["pitch"] = year); + const cutSchoolYear = (index, year) => { + admissionList.value[index]["pitch"] = year; + admissionList.value[index]["isPitchMore"] = false; + }; // 点击 招生官 年份 更多弹窗 - const openSchoolYearState = (index) => (admissionList.value[index]["state"] = true); + const openSchoolYearState = (index) => { + admissionList.value[index]["state"] = true; + }; // 选择 招生官 年份 更多弹窗 const selectSchoolYearState = (index, year) => { admissionList.value[index]["state"] = false; admissionList.value[index]["pitch"] = year; + admissionList.value[index]["pitch"] = true; }; // 关闭 招生官 年份 更多弹窗