123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640 |
- /**index.less**/
- page {
- height: 100vh;
- display: flex;
- flex-direction: column;
- background: #F5F6F7;
- }
- .scrollarea {
- flex: 1;
- overflow-y: hidden;
- }
- .container {
- position: relative;
- .topShadow {
- position: absolute;
- top: 0;
- z-index: 1;
- width: 100%;
- height: 200rpx;
- background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
- }
- .slider-count {
- position: absolute;
- top: 678rpx;
- right: 0;
- background: rgba(0, 0, 0, 0.4);
- border-radius: 200rpx 0rpx 0rpx 200rpx;
- font-weight: 600;
- font-size: 28rpx;
- color: #FFFFFF;
- line-height: 40rpx;
- text-align: center;
- padding: 2rpx 20rpx 2rpx 28rpx;
- z-index: 1;
- }
- swiper {
- height: 750rpx;
- }
- .swiper-item {
- width: 100%;
- height: 100%;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .demo-text-1 {
- background-color: red;
- }
- .demo-text-2 {
- background-color: black;
- }
- .demo-text-3 {
- background-color: gray;
- }
- }
- .shop-section {
- background: #FFFFFF;
- padding: 20rpx 32rpx 24rpx;
- .main-goods {
- width: 100%;
- height: 160rpx;
- background: url('https://oss.dayaedu.com/ktyq/1732175749177.png') no-repeat center;
- background-size: contain;
- }
- .showPrice {
- display: flex;
- justify-content: space-between;
- // align-items: center;
- }
- .left {
- display: flex;
- flex-direction: column;
- min-width: 210rpx;
- padding-right: 12rpx;
- flex-shrink: 0;
- }
- .left-top {
- .t1 {
- margin-top: 16rpx;
- margin-left: 24rpx;
- width: 116rpx;
- height: 47.5rpx;
- }
- }
- .left-bottom {
- padding-left: 24rpx;
- }
- .currentPrice {
- font-weight: bold;
- color: #502F00;
- font-family: DINAlternate, DINAlternate;
- .stuff {
- font-size: 36rpx;
- }
- .priceZ {
- font-size: 60rpx;
- }
- .priceF {
- font-size: 36rpx;
- }
- }
- // .originPrice {
- // padding-left: 16rpx;
- // font-size: 32rpx;
- // color: #AAAAAA;
- // line-height: 44rpx;
- // text-decoration: line-through;
- // padding-bottom: 12rpx;
- // }
- .right {
- flex: 1 auto;
- padding-top: 24rpx;
- font-weight: 400;
- font-size: 28rpx;
- color: #777777;
- line-height: 40rpx;
- .right-top {
- display: flex;
- font-size: 24rpx;
- color: #6D4718;
- line-height: 34rpx;
- }
- .right-bottom {
- padding-top: 46rpx;
- }
- }
- }
- .shopName {
- font-weight: 600;
- font-size: 30rpx;
- color: #502F00;
- line-height: 42rpx;
- max-width: 420rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .goodsInfo {
- display: flex;
- position: relative;
- // align-items: center;
- .desc {
- display: flex;
- align-items: center;
- justify-content: center;
- text-align: center;
- width: 84rpx;
- height: 84rpx;
- background: #F1F1F1;
- border-radius: 12rpx;
- font-size: 24rpx;
- color: #777777;
- line-height: 30rpx;
- flex-shrink: 0;
- padding: 12rpx 16rpx;
- box-sizing: border-box;
- margin-right: 16rpx;
- margin-top: 32rpx;
- }
- .goodsList {
- display: flex;
- align-items: center;
- flex-wrap: nowrap;
- overflow-x: auto;
- padding-top: 32rpx;
- &::-webkit-scrollbar {
- display: none;
- }
- }
- .iconMore {
- position: absolute;
- right: -24rpx;
- bottom: 32rpx;
- width: 20rpx;
- height: 20rpx;
- }
- .goodsItem {
- display: flex;
- align-items: center;
- position: relative;
- height: 84rpx;
- background: #F8F8F8;
- padding-left: 10rpx;
- margin-right: 16rpx;
- font-size: 28rpx;
- color: #131415;
- position: relative;
- border-radius: 12rpx;
- border: 4rpx solid #F8F8F8;
- box-sizing: border-box;
- .select-arrow {
- display: none;
- }
- &.selected {
- background: rgba(255, 255, 255, 0.7);
- border-radius: 12rpx;
- border: 4rpx solid #855F2E;
- .select-arrow {
- display: block;
- position: absolute;
- top: -40rpx;
- left: 50%;
- transform: translateX(-50%);
- width: 28rpx;
- height: 18rpx;
- }
- }
- &.nosale {
- background-color: rgba(248, 248, 248, 0.6);
- .pic,
- .nameorprice {
- opacity: 0.6;
- }
- }
- .pic {
- width: 64rpx;
- height: 64rpx;
- flex-shrink: 0;
- }
- .nameorprice {
- padding-left: 10rpx;
- padding-right: 12rpx;
- flex-shrink: 0;
- display: flex;
- flex-direction: column;
- justify-content: space-around;
- height: 64rpx;
- .name {
- font-weight: 600;
- font-size: 24rpx;
- color: #131415;
- line-height: 28rpx;
- }
- .price {
- font-family: DINAlternate, DINAlternate;
- font-weight: bold;
- font-size: 24rpx;
- color: #FF0047;
- line-height: 1.2;
- padding-top: 4rpx;
- }
- }
- .imgSale {
- position: absolute;
- top: -20rpx;
- right: -16rpx;
- width: 56rpx;
- height: 28rpx;
- display: block;
- z-index: 1;
- }
- }
- }
- .current-item {
- margin-top: 24rpx;
- font-size: 24rpx;
- color: #502F00;
- line-height: 40rpx;
- background: linear-gradient(180deg, rgba(254, 248, 241, 0.4) 0%, rgba(251, 233, 205, 0.4) 100%);
- border: 2rpx solid #FBE9CE;
- border-radius: 10rpx;
- padding: 12rpx 16rpx;
- text {
- color: #FF0047;
- font-weight: bold;
- }
- }
- .scroll-current-item {
- position: fixed;
- bottom: 162rpx;
- left: 0;
- width: 100%;
- margin-top: 24rpx;
- font-size: 24rpx;
- color: #502F00;
- line-height: 40rpx;
- background: #FFF3E1;
- border: 2rpx solid #FBE9CE;
- padding: 12rpx 16rpx;
- text-align: center;
- text {
- color: #FF0047;
- font-weight: bold;
- }
- }
- .goodsSection {
- // margin-bottom: 156rpx;
- margin-top: 12rpx;
- background: #FFFFFF;
- padding-bottom: 162rpx;
- .title {
- font-size: 28rpx;
- color: #333333;
- line-height: 40rpx;
- padding: 28rpx 24rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- .before,
- .after {
- content: '';
- width: 68rpx;
- height: 2rpx;
- border-radius: 2rpx;
- opacity: 0.3;
- display: inline-block;
- }
- .before {
- background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
- margin-right: 24rpx;
- }
- .after {
- background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
- margin-left: 24rpx;
- }
- }
- }
- .goodsIntro {
- background: #FFFFFF;
- overflow: hidden;
- .images {
- image {
- display: block;
- width: 100%;
- }
- }
- }
- .bottom-section {
- position: fixed;
- bottom: 0;
- left: 0;
- width: 100%;
- background-color: #FFFFFF;
- // box-shadow: inset 0rpx 2rpx 0rpx 0rpx #F0F0F0;
- padding: 20rpx 32rpx 58rpx 32rpx;
- display: flex;
- align-items: center;
- box-sizing: border-box;
- .orders {
- display: flex;
- flex-direction: column;
- margin-right: 40rpx;
- image {
- width: 48rpx;
- height: 48rpx;
- }
- text {
- font-size: 24rpx;
- color: #777777;
- line-height: 34rpx;
- text-align: center;
- }
- }
- .btnSection {
- flex: 1 auto;
- button {
- width: 100%;
- line-height: 88rpx;
- background: linear-gradient(90deg, #544F4A 0%, #302F2B 100%);
- border-radius: 44rpx;
- font-weight: 500;
- font-size: 32rpx;
- color: #FBEAC9;
- padding-top: 0;
- padding-bottom: 0;
- &[disabled][type=primary] {
- opacity: 0.7;
- }
- }
- }
- }
- .scroll-header {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- z-index: 9;
- background-color: #fff;
- .product-catagory {
- border-top: 1px solid #F2F2F2;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 20rpx 0 28rpx;
- .item {
- position: relative;
- padding: 0 40rpx;
- font-size: 28rpx;
- color: #999999;
- line-height: 40rpx;
- }
- .selected {
- color: #131415;
- font-weight: 600;
- &::after {
- position: absolute;
- left: 50%;
- bottom: -8rpx;
- transform: translateX(-50%);
- content: '';
- display: block;
- width: 34rpx;
- height: 4rpx;
- background: #534E49;
- }
- }
- }
- }
- // 'demo-text-1', 'demo-text-2', 'demo-text-3'
- .popup-section {
- &.hidden {
- display: none;
- }
- .popup-mask {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, 0.6);
- z-index: 9;
- }
- .popup-container {
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- z-index: 10;
- width: 100%;
- background: #FFFFFF;
- border-radius: 32rpx 32rpx 0rpx 0rpx;
- padding: 40rpx 32rpx 58rpx;
- box-sizing: border-box;
- .goodsInfo {
- padding-bottom: 28rpx;
- min-height: 300rpx;
- .goodsItem {
- height: 102rpx;
- margin-bottom: 22rpx;
- // flex: 1;
- width: 31.53%;
- margin-right: 2%;
- max-width: 31.53%;
- &:nth-child(3n + 3) {
- margin-right: 0;
- }
- &.selected .select-arrow {
- display: none !important;
- }
- .nameorprice {
- height: 82rpx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- }
- }
- .goodsList {
- max-height: 480rpx;
- overflow-y: auto;
- overflow-x: hidden;
- &::-webkit-scrollbar {
- display: none;
- }
- flex-wrap: wrap;
- width: 100%;
- .pic {
- width: 82rpx;
- height: 82rpx;
- }
- }
- }
- }
- .iconClose {
- position: absolute;
- right: 40rpx;
- top: 40rpx;
- width: 30rpx;
- height: 30rpx;
- }
- .product-section {
- display: flex;
- padding-bottom: 40rpx;
- .product-img {
- width: 160rpx;
- height: 160rpx;
- flex-shrink: 0;
- margin-right: 32rpx;
- border-radius: 12rpx;
- overflow: hidden;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .product-left {
- display: flex;
- align-items: flex-start;
- .currentPrice {
- font-weight: bold;
- color: #FE2451;
- font-family: DINAlternate, DINAlternate;
- .stuff {
- font-size: 32rpx;
- }
- .priceZ {
- font-family: DINAlternate, DINAlternate;
- font-size: 56rpx;
- }
- .priceF {
- font-family: DINAlternate, DINAlternate;
- font-size: 32rpx;
- }
- }
- .originPrice {
- padding-left: 16rpx;
- font-size: 28rpx;
- color: #AAAAAA;
- line-height: 40rpx;
- padding-top: 30rpx;
- }
- }
- .selected-info {
- padding-top: 24rpx;
- font-size: 28rpx;
- color: #131415;
- line-height: 40rpx;
- text {
- color: #FF0047;
- }
- }
- }
- .goodsInfo {
- flex-direction: column;
- align-items: flex-start;
- padding-bottom: 90rpx;
- .desc {
- font-size: 28rpx;
- color: #131415;
- line-height: 40rpx;
- padding-bottom: 30rpx;
- }
- }
- button {
- width: 100%;
- line-height: 88rpx;
- background: linear-gradient( 90deg, #544F4A 0%, #302F2B 100%);
- border-radius: 44rpx;
- font-weight: 500;
- font-size: 32rpx;
- color: #FBEAC9;
- padding-top: 0;
- padding-bottom: 0;
- }
- }
|