123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563 |
- .container {
- position: fixed;
- left: 0;
- top: 0;
- width: 100vw;
- height: 100vh;
- overflow: hidden;
- background: url('./image/bg.png') no-repeat center center / cover;
- display: flex;
- flex-direction: column;
- }
- .head {
- position: relative;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 19px 23px 8px 30px;
- transition: opacity 0.3s ease-in-out;
- .back {
- img {
- width: 34px;
- height: 34px;
- display: block;
- }
- }
- }
- .downBtn {
- width: 84px;
- height: 29px;
- background: #f8f9fc;
- border-radius: 16px;
- border: none;
- padding: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- &.activeBtn {
- .icon {
- color: var(--van-primary-color) !important;
- }
- :global {
- .van-button__text {
- color: var(--van-primary-color) !important;
- }
- }
- }
- :global {
- .van-button__content {
- width: 100%;
- }
- .van-button__text {
- width: 100%;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 13px;
- color: #333;
- font-weight: 400;
- }
- }
- .icon {
- width: 8px;
- height: 5px;
- margin-left: 4px;
- transition: transform 0.2s ease;
- }
- .iconUp {
- color: var(--van-primary-color);
- transform: rotate(180deg);
- transition: transform 0.2s ease;
- }
- }
- .popover {
- width: 83px;
- border: none;
- :global {
- .van-popover__action {
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 0;
- width: 100%;
- height: 36px;
- color: #999;
- font-size: 13px;
- }
- .van-popover__content {
- max-height: 70vh;
- overflow-x: hidden;
- overflow-y: auto;
- }
- }
- }
- .content {
- flex: 1;
- display: flex;
- height: calc(100% - 61px);
- &.courseDetails {
- .wrap {
- padding: 20px 20px 20px 0;
- }
- }
- .wrapRight {
- flex: 1;
- overflow-y: auto;
- overflow-x: hidden;
- display: flex;
- &::-webkit-scrollbar {
- display: none;
- }
- }
- .wrap {
- position: relative;
- width: 100%;
- padding: 20px 0 20px;
- &.emtpyWrap {
- width: 100%;
- }
- }
- .warpSection {
- display: flex;
- justify-content: center;
- position: relative;
- background: url('./image/table-left.png') no-repeat left 138px,
- url('./image/table-right.png') no-repeat right 138px;
- background-size: auto 26px, auto 26px;
- width: max-content;
- margin: 0 auto;
- padding: 0 20px 15px;
- &::after {
- content: '';
- position: absolute;
- width: 55%;
- background: url('./image/table-center.png') repeat-x center;
- background-size: contain;
- height: 26px;
- top: 138px;
- }
- }
- :global {
- .van-empty__description {
- font-size: 14px;
- color: #fff;
- }
- .van-empty__image {
- width: 200px;
- height: 200px;
- }
- }
- }
- .wrapItem {
- position: relative;
- width: 138px;
- display: flex;
- flex-direction: column;
- align-items: center;
- padding: 0 18px;
- flex-shrink: 0;
- z-index: 1;
- .item {
- position: relative;
- margin-bottom: 28px;
- width: 100%;
- height: 150px;
- // background-color: #edeff2;
- background: linear-gradient(180deg, #fff4e8 0%, #fff0dc 100%);
- // box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4);
- box-shadow: 0px 6px 5px 0px rgba(0, 0, 0, 0.24);
- img {
- position: absolute;
- }
- &::before {
- content: '';
- position: absolute;
- top: 4px;
- right: -4px;
- width: 4px;
- height: calc(100% - 8px);
- background-color: #c5c5c5;
- z-index: 1;
- }
- &::after {
- content: '';
- position: absolute;
- top: 2px;
- right: -2px;
- width: 4px;
- height: calc(100% - 4px);
- background-color: #e7e7e7;
- z-index: 2;
- }
- }
- .name {
- font-size: 12px;
- font-weight: 400;
- color: #333;
- line-height: 16px;
- text-align: center;
- }
- }
- .containerImg {
- position: relative;
- display: block;
- width: 100%;
- height: 170px;
- &::before {
- content: '';
- position: absolute;
- top: 4px;
- right: -4px;
- width: 4px;
- height: calc(100% - 8px);
- background-color: #c5c5c5;
- z-index: 1;
- }
- &::after {
- content: '';
- position: absolute;
- top: 2px;
- right: -2px;
- width: 4px;
- height: calc(100% - 4px);
- background-color: #e7e7e7;
- z-index: 2;
- }
- }
- .cover {
- position: relative;
- z-index: 3;
- display: block;
- width: 100%;
- height: 150px;
- background-color: #edeff2;
- background-image: url('./image/icon_default.svg');
- background-repeat: no-repeat;
- background-position: center center;
- &::after {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: 2;
- background-repeat: no-repeat;
- background-image: linear-gradient(
- to right,
- rgba(0, 0, 0, 0.2) 0,
- rgba(255, 255, 255, 0.08) 0%,
- transparent 0.5%
- ),
- linear-gradient(
- to right,
- rgba(0, 0, 0, 0.1) 0.3%,
- rgba(255, 255, 255, 0.09) 1.1%,
- transparent 1.3%
- );
- background-size: 50% 100%, 50% 100%;
- background-position: 0% top, 9% top;
- }
- :global {
- img {
- width: 100%;
- height: 100%;
- opacity: 0;
- transition: opacity 0.3s ease-in-out;
- }
- }
- &.loaded {
- img {
- opacity: 1;
- }
- }
- }
- .book {
- position: fixed;
- top: 50%;
- left: 50%;
- width: 55vw;
- transform: translate(-50%, -50%) scale(0);
- z-index: 20;
- background-color: #fff;
- transition: all 0.3s ease-in-out;
- visibility: hidden;
- pointer-events: none;
- border-radius: 8px;
- box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
- .bookWrap {
- height: 60vh;
- overflow-y: auto;
- ul {
- list-style: circle;
- padding: 10px 40px;
- }
- }
- &.show {
- visibility: visible;
- pointer-events: auto;
- transform: translate(-50%, -50%) scale(1);
- }
- }
- .wrapLeft {
- display: flex;
- align-items: center;
- }
- .courseWrapItem {
- width: 254px;
- // 154 + 120
- padding: 0 30px 0 70px;
- .item {
- height: 218px;
- margin-bottom: 21px;
- }
- .useTime {
- width: 80px;
- height: 59px;
- position: absolute;
- top: -5.5px;
- right: -4.5px;
- z-index: 9;
- }
- .cover {
- height: 218px;
- }
- }
- .popupContainer {
- background: #ffffff;
- border-radius: 12px;
- width: 298px;
- padding-top: 12px;
- .searchList {
- padding: 0 0px 0 11px;
- max-height: 58vh;
- overflow-x: hidden;
- overflow-y: auto;
- }
- .popoverTitle {
- display: flex;
- align-items: center;
- font-size: 14px;
- font-weight: 600;
- color: #333333;
- &::before {
- content: ' ';
- display: inline-block;
- width: 4px;
- height: 11px;
- background: #2aa4fe;
- border-radius: 2px;
- margin-right: 6px;
- }
- }
- .popupList {
- display: flex;
- flex-flow: wrap;
- justify-content: flex-start;
- // gap: 8px 9px;
- padding-top: 11px;
- padding-bottom: 14px;
- :global {
- .van-tag {
- padding: 7px 24px;
- height: 30px;
- font-size: 12px;
- background: #f6f6f6;
- border: none;
- color: #333333;
- margin-right: 8px;
- margin-bottom: 9px;
- }
- .van-tag--plain {
- background: rgba(42, 164, 254, 0.08);
- border: none;
- color: #2aa4fe;
- }
- }
- }
- .subjectItem {
- width: 31%;
- height: 30px;
- // line-height: 30px;
- text-align: center;
- background: #f6f6f6;
- border-radius: 50px;
- font-size: 13px;
- color: #333333;
- border: 1px solid #f6f6f6;
- margin-bottom: 12px;
- display: flex;
- align-items: center;
- justify-content: center;
- &:nth-child(3n + 2) {
- margin-left: 2.333%;
- margin-right: 2.333%;
- }
- // &:nth-child(3n + 3) {
- // margin-left: 2.333%;
- // }
- &.arrow::after {
- content: '';
- display: inline-block;
- margin-left: 3px;
- width: 0;
- height: 0;
- border-left: 4px solid transparent;
- border-right: 4px solid transparent;
- border-top: 4px solid transparent;
- border-bottom: 4px solid #777777;
- transform: translateY(3px) rotate(180deg);
- }
- &.active {
- border: 1px solid #1cacf1;
- background: #ebf8ff;
- color: #1cacf1;
- &::after {
- border-bottom: 4px solid #1cacf1;
- transform: translateY(-2px) rotate(0deg);
- }
- }
- }
- // .arrow::after {
- // content: '';
- // display: inline-block;
- // margin-left: 3px;
- // width: 0;
- // height: 0;
- // border-left: 4px solid transparent;
- // border-right: 4px solid transparent;
- // border-top: 4px solid transparent;
- // border-bottom: 4px solid #777777;
- // transform: translateY(3px) rotate(180deg);
- // }
- // &.active {
- // border: 1px solid #1CACF1;
- // background: #EBF8FF;
- // color: #1CACF1;
- // &::after {
- // border-bottom: 4px solid #1CACF1;
- // transform: translateY(-2px) rotate(0deg);
- // }
- // }
- .btnGroup {
- border: 1px solid #f2f2f2;
- padding: 16px 12px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- :global {
- .van-button {
- font-size: 15px;
- color: #333333;
- line-height: 22px;
- padding: 0 48px;
- height: 37px;
- font-weight: 400;
- }
- }
- .btnSure {
- background: linear-gradient(135deg, #19f1e1 0%, #0094ff 100%),
- linear-gradient(73deg, #5becff 0%, #259cfe 100%);
- border: none;
- color: #fff;
- }
- }
- }
- @media screen and(max-width: 800px) {
- .content {
- .warpSection {
- background-position-y: 113px, 113px;
- &::after {
- top: 113px;
- }
- }
- }
- .wrapItem {
- width: 123px;
- .item {
- height: 123px;
- }
- .cover {
- height: 123px;
- }
- }
- .courseWrapItem {
- width: 184px;
- // 127 + 70
- padding: 0 20px 0 40px;
- .item {
- height: 179px;
- }
- .useTime {
- width: 65px;
- height: 48px;
- }
- .cover {
- height: 179px;
- }
- }
- }
|