/**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; } .bannerSwiper { height: 750rpx; .swiper-item { width: 100%; height: 100%; image { width: 100%; height: 100%; } } .swiper-video { display: flex; align-items: center; video { width: 100%; } wx-video .wx-video-top-bar>.wx-video-top-right-buttons { display: none; } // wx-video .wx-video-top-bar { // display: none; // } .bg { filter: blur(32rpx); } image { position: absolute; top: 0; bottom: 0; } .icon-video { width: 92rpx; height: 92rpx; top: 50%; left: 50%; transform: translate(-50%, -50%); } } } } .shop-section { background: #ffffff; // padding: 20rpx 32rpx 24rpx; padding-bottom: 80rpx; .main-goods { width: 100%; height: 160rpx; background: url("https://oss.dayaedu.com/ktyq/1733109076504.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; margin-bottom: 40rpx; &::-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; } } } .scroll-current-item { position: fixed; bottom: 162rpx; left: 0; z-index: 1; 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%; } } } .titleVideoSection { position: relative; margin: 24rpx 0; .icon-video { position: absolute; width: 92rpx !important; height: 92rpx !important; top: 50%; left: 50%; transform: translate(-50%, -50%); } wx-video .wx-video-top-bar>.wx-video-top-right-buttons { display: none; } .videoItem { width: 100%; height: 368rpx; border-radius: 24rpx; box-shadow: 4rpx 8rpx 24rpx 1rpx rgba(96, 168, 223, 0.45); } } .liu-section { padding: 0 0 48rpx; .liu-img2 { padding: 24rpx 48rpx 0; } .liu-img1 { padding: 0 40rpx; } .titleVideoSection { padding: 0 48rpx; } } .title-section { background: #fff; overflow: hidden; .title { margin: 66rpx auto 20rpx; width: 162rpx !important; height: 88rpx; padding: 0; } .topSection { padding: 0 48rpx; .content1 { font-size: 28rpx; color: #131415; line-height: 48rpx; } .content2 { font-size: 24rpx; color: #131415; line-height: 48rpx; text-align: center; } } .titleSwiper { position: relative; padding: 24rpx 0 40rpx; swiper { height: 472rpx; } .swiper-item-detail { height: 368rpx; padding: 0 48rpx; image { width: 100%; height: 100%; box-shadow: 4rpx 8rpx 24rpx 1rpx rgba(96, 168, 223, 0.45); border-radius: 24rpx; } .text { padding: 20rpx 0; font-size: 24rpx; color: #131415; line-height: 48rpx; text-align: center; } } .title-dot { display: flex; align-items: center; justify-content: center; .title-dot--item { width: 16rpx; height: 16rpx; border-radius: 50%; margin: 0 11rpx; background: #d1d1d1; } .title-dot--item-active { background: #78cafe; } } } } .bottom-section { position: fixed; bottom: 0; left: 0; z-index: 2; 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; padding-right: 40rpx; image { width: 48rpx; height: 48rpx; } text { font-size: 24rpx; color: #777777; line-height: 34rpx; text-align: center; } } .btnSection { flex: 1 auto; position: relative; 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; } } } } .combo-section { max-height: 556rpx; overflow-x: hidden; overflow-y: auto; &::-webkit-scrollbar { display: none; } } .combo-title { padding-bottom: 8rpx; font-weight: 600; font-size: 26rpx; color: #502f00; line-height: 36rpx; .select-one { color: #ff0047; } } .combo-tips { padding-bottom: 20rpx; font-size: 24rpx; color: rgba(80, 47, 0, 0.5); line-height: 34rpx; } .combo-list { display: flex; flex-wrap: wrap; } .combo-item { width: 31%; display: flex; align-items: center; flex-direction: column; padding: 20rpx 10rpx; margin-right: 2.3333%; margin-bottom: 20rpx; position: relative; box-sizing: border-box; .check-good { width: 28rpx; height: 28rpx; position: absolute; top: 16rpx; right: 16rpx; } &:nth-child(3n + 3) { margin-right: 0; } &.active { background: #fff8ee; border-radius: 20rpx; } .combo-item-img { width: 128rpx; height: 128rpx; padding-bottom: 20rpx; } .combo-item-name { font-weight: 400; font-size: 24rpx; color: #000000; line-height: 34rpx; max-width: 200rpx; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .combo-item-price { font-family: DINAlternate, DINAlternate; font-weight: bold; font-size: 28rpx; color: #ff0047; line-height: 40rpx; } .combo-item-origin { font-family: DINAlternate, DINAlternate; font-weight: 400; font-size: 24rpx; color: #6d4718; line-height: 34rpx; } } .popupBottom { background: #ffffff; // box-shadow: 0 2rpx 8rpx 0rpx rgba(0, 0, 0, 0.5); box-shadow: 0rpx 2rpx 8rpx 0rpx rgba(0,0,0,0.5); padding: 0 32rpx 58rpx; } .current-item { font-size: 24rpx; color: #502f00; line-height: 40rpx; padding: 12rpx 12rpx 28rpx; .current-item-text { font-weight: 600; font-size: 26rpx; color: #502f00; line-height: 36rpx; padding-bottom: 4rpx; } text { color: #ff0047; font-weight: bold; } } // '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: 48rpx 0 0; box-sizing: border-box; &::before { content: ""; position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 30rpx; background: linear-gradient(180deg, #fbead0 0%, #ffffff 100%); border-radius: 32rpx 32rpx 0rpx 0rpx; } } .shop-section { padding: 0 32rpx; } .iconClose { position: absolute; // right: 32rpx; // top: 32rpx; top: 0; right: 0; padding: 32rpx; width: 30rpx; height: 30rpx; box-sizing: content-box; } button { width: 164rpx; height: 64rpx; line-height: 64rpx; background: #fbeac9 !important; border-radius: 32rpx; font-weight: 500; font-size: 32rpx; color: #3a3834 !important; text-align: center; padding: 0; margin: 0; } .btnGroup { position: relative; display: flex; justify-content: space-between; align-items: center; position: relative; padding: 0 12rpx; height: 88rpx; background: linear-gradient(90deg, #544f4a 0%, #302f2b 100%); border-radius: 44rpx; .left-section { position: relative; display: flex; .icon1 { position: absolute; top: -22rpx; left: 28rpx; width: 102rpx; height: 102rpx; } .currentPrice2 { padding-left: 138rpx; font-weight: bold; color: #FBEAC9; font-family: DINAlternate, DINAlternate; .stuff { font-size: 36rpx; padding-right: 4rpx; } .priceZ { font-size: 60rpx; } .priceF { font-size: 36rpx; } } } } } .btnInnerFree { position: absolute; right: 0; z-index: 2; top: -28rpx; background: linear-gradient(180deg, #ff5181 0%, #ff0047 100%); border-radius: 150rpx 200rpx 200rpx 0rpx; border: 2rpx solid #ffffff; padding: 0 8rpx; font-size: 24rpx; color: #ffffff; padding-top: 2rpx; line-height: 34rpx; overflow: hidden; font-weight: bold; text { font-weight: bold; } }