From bc9734adfa022b7263903747055a47a9e805938b Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Tue, 5 Nov 2024 19:00:36 +0800 Subject: [PATCH] no message --- css/common.css | 7 +- css/common.less | 8 +- css/school.css | 20 ++- css/school.less | 21 ++- css/subject.css | 20 ++- css/subject.less | 21 ++- html/school.html | 302 +++++++++++++++++++++++++++++++++++------ html/subject.html | 333 ++++++++++++++++++++++++++++++++++++++-------- js/base.js | 2 + js/common.js | 52 ++++++-- 10 files changed, 668 insertions(+), 118 deletions(-) diff --git a/css/common.css b/css/common.css index a53de30..f21eeb2 100644 --- a/css/common.css +++ b/css/common.css @@ -49,7 +49,7 @@ body { bottom: 15px; left: 50%; transform: translateX(-50%); - z-index: 2; + z-index: 100; } .base .left { width: 450px; @@ -129,6 +129,11 @@ body { background-color: #f95d5d; border: none; } +.tag .tag-item.admissions { + background-color: #73d1e5; + border: none; + color: #fff; +} .red-dot { position: fixed; width: 10px; diff --git a/css/common.less b/css/common.less index 68b9e87..322b163 100644 --- a/css/common.less +++ b/css/common.less @@ -59,7 +59,7 @@ body { bottom: 15px; left: 50%; transform: translateX(-50%); - z-index: 2; + z-index: 100; .left { width: 450px; height: 50px; @@ -145,6 +145,12 @@ body { background-color: rgba(249, 93, 93, 1); border: none; } + + &.admissions { + background-color: rgba(115, 209, 229, 1); + border: none; + color: #fff; + } } } diff --git a/css/school.css b/css/school.css index 60fc4b0..e90502d 100644 --- a/css/school.css +++ b/css/school.css @@ -213,7 +213,7 @@ grid-template-columns: repeat(2, 1fr); } .hot .list .list-item .item { - padding: 22px 0; + padding: 22px 5px 22px 0; width: 510px; height: 90px; margin-left: 33px; @@ -376,7 +376,6 @@ margin: 0 12px; } .content { - height: 1214px; background-color: #ffffff; border: 1px solid #f2f2f2; border-radius: 12px; @@ -399,12 +398,16 @@ .content .body .left .item { height: 56px; padding-left: 34px; + cursor: pointer; } .content .body .left .item .img { width: 18px; height: 18px; margin-right: 12px; } +.content .body .left .item .img.img-pitch { + display: none; +} .content .body .left .item.pitch { background-color: #fbfbfb; border-top: 1px solid #ebebeb; @@ -414,6 +417,12 @@ color: #000000; font-weight: 650; } +.content .body .left .item.pitch .img { + display: none; +} +.content .body .left .item.pitch .img.img-pitch { + display: block; +} .content .body .left .item.pitch::after { content: ""; width: 5px; @@ -450,6 +459,7 @@ color: #333333; margin-bottom: 10px; margin-right: 10px; + cursor: pointer; } .content .body .right .screen .list .item.pitch { background-color: #7b8cd3; @@ -534,7 +544,7 @@ } .content .body .right .list .item .operate .circle { position: relative; - z-index: 1; + z-index: 3; cursor: pointer; width: 28px; height: 28px; @@ -562,7 +572,6 @@ position: absolute; top: -18px; right: -24px; - width: 285px; background-color: #fbfbfb; border-radius: 8px; -moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.18039216); @@ -572,11 +581,14 @@ transition: all 0.3s; overflow: hidden; opacity: 0; + width: 0; height: 0; align-items: center; padding-top: 68px; + z-index: 2; } .content .body .right .list .item .operate .select.show { + width: 285px; height: 171px; opacity: 1; } diff --git a/css/school.less b/css/school.less index 8e8ddb4..a299129 100644 --- a/css/school.less +++ b/css/school.less @@ -235,7 +235,7 @@ display: grid; grid-template-columns: repeat(2, 1fr); .item { - padding: 22px 0; + padding: 22px 5px 22px 0; width: 510px; height: 90px; margin-left: 33px; @@ -424,7 +424,6 @@ } .content { - height: 1214px; background-color: rgba(255, 255, 255, 1); border: 1px solid rgba(242, 242, 242, 1); border-radius: 12px; @@ -447,10 +446,15 @@ .item { height: 56px; padding-left: 34px; + cursor: pointer; .img { width: 18px; height: 18px; margin-right: 12px; + + &.img-pitch { + display: none; + } } &.pitch { @@ -461,6 +465,12 @@ position: relative; color: #000000; font-weight: 650; + .img { + display: none; + &.img-pitch { + display: block; + } + } &::after { content: ""; width: 5px; @@ -502,6 +512,7 @@ color: #333333; margin-bottom: 10px; margin-right: 10px; + cursor: pointer; &.pitch { background-color: rgba(123, 140, 211, 1); @@ -593,7 +604,7 @@ right: 24px; .circle { position: relative; - z-index: 1; + z-index: 3; cursor: pointer; width: 28px; height: 28px; @@ -621,7 +632,6 @@ position: absolute; top: -18px; right: -24px; - width: 285px; background-color: rgba(251, 251, 251, 1); border-radius: 8px; -moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.180392156862745); @@ -631,10 +641,13 @@ transition: all 0.3s; overflow: hidden; opacity: 0; + width: 0; height: 0; align-items: center; padding-top: 68px; + z-index: 2; &.show { + width: 285px; height: 171px; opacity: 1; } diff --git a/css/subject.css b/css/subject.css index 69e07c3..99411d2 100644 --- a/css/subject.css +++ b/css/subject.css @@ -70,6 +70,7 @@ color: #333333; margin-bottom: 10px; margin-right: 10px; + cursor: pointer; } .box .info .list .item.pitch { background-color: #7b8cd3; @@ -89,6 +90,7 @@ .body .left .item { height: 56px; padding-left: 34px; + cursor: pointer; } .body .left .item .img { width: 18px; @@ -161,6 +163,7 @@ font-size: 16px; color: #000000; margin-bottom: 12px; + width: 345px; } .body .right .list .item .english { font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; @@ -200,7 +203,7 @@ } .body .right .list .item .operate .circle { position: relative; - z-index: 1; + z-index: 4; cursor: pointer; width: 28px; height: 28px; @@ -216,11 +219,18 @@ width: 18px; height: 8px; } +.body .right .list .item .operate .select-mask { + position: fixed; + width: 100%; + height: 100%; + z-index: 2; + top: 0; + left: 0; +} .body .right .list .item .operate .select { position: absolute; top: -18px; right: -24px; - width: 285px; background-color: #fbfbfb; border-radius: 8px; -moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.18039216); @@ -230,11 +240,14 @@ transition: all 0.3s; overflow: hidden; opacity: 0; + width: 0; height: 0; align-items: center; padding-top: 68px; + z-index: 2; } .body .right .list .item .operate .select.show { + width: 285px; height: 171px; opacity: 1; } @@ -283,3 +296,6 @@ width: 10px; height: 8px; } +.empty-box { + height: 500px; +} diff --git a/css/subject.less b/css/subject.less index 2fb454c..6a12efd 100644 --- a/css/subject.less +++ b/css/subject.less @@ -72,6 +72,7 @@ color: #333333; margin-bottom: 10px; margin-right: 10px; + cursor: pointer; &.pitch { background-color: rgba(123, 140, 211, 1); @@ -95,6 +96,7 @@ .item { height: 56px; padding-left: 34px; + cursor: pointer; .img { width: 18px; margin-right: 12px; @@ -173,6 +175,7 @@ font-size: 16px; color: #000000; margin-bottom: 12px; + width: 345px; } .english { @@ -212,7 +215,7 @@ right: 24px; .circle { position: relative; - z-index: 1; + z-index: 4; cursor: pointer; width: 28px; height: 28px; @@ -228,11 +231,18 @@ height: 8px; } } + .select-mask { + position: fixed; + width: 100%; + height: 100%; + z-index: 2; + top: 0; + left: 0; + } .select { position: absolute; top: -18px; right: -24px; - width: 285px; background-color: rgba(251, 251, 251, 1); border-radius: 8px; -moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.180392156862745); @@ -242,10 +252,13 @@ transition: all 0.3s; overflow: hidden; opacity: 0; + width: 0; height: 0; align-items: center; padding-top: 68px; + z-index: 2; &.show { + width: 285px; height: 171px; opacity: 1; } @@ -307,3 +320,7 @@ } } } + +.empty-box { + height: 500px; +} diff --git a/html/school.html b/html/school.html index 9d9dd0e..2e384ff 100644 --- a/html/school.html +++ b/html/school.html @@ -11,6 +11,7 @@ +