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 @@
- +
+
+
+