123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513 |
- /**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: 4rpx 20rpx 4rpx 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;
- // border-radius: 20rpx;
- // margin: 16rpx 16rpx 0;
- padding: 32rpx 32rpx 40rpx;
- .showPrice {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .left {
- flex: 1 auto;
- display: flex;
- align-items: flex-end;
- }
- .currentPrice {
- font-weight: bold;
- color: #FF5000;
- 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 {
- padding-top: 14rpx;
- font-weight: 400;
- font-size: 28rpx;
- color: #FF5000;
- line-height: 40rpx;
- }
- }
- .shopName {
- font-weight: 600;
- font-size: 32rpx;
- color: #131415;
- line-height: 44rpx;
- padding: 24rpx 0 10rpx;
- }
- .goodsInfo {
- display: flex;
- // align-items: center;
- .desc {
- font-size: 28rpx;
- color: #131415;
- line-height: 68rpx;
- margin: 24rpx 0;
- flex-shrink: 0;
- }
- .goodsList {
- display: flex;
- align-items: center;
- flex-wrap: nowrap;
- overflow-x: auto;
- overflow-y: hidden;
- &::-webkit-scrollbar {
- display: none;
- }
- }
- .goodsItem {
- line-height: 68rpx;
- background: #F6F5F5;
- border-radius: 8rpx;
- font-size: 28rpx;
- color: #131415;
- position: relative;
- margin-top: 30rpx;
- margin-right: 30rpx;
- display: flex;
- flex-direction: column;
- border: 4rpx solid #F4F4F4;
- &.selected {
- background: #FFEEE6;
- color: #FF5000;
- border: 4rpx solid #FF5000;
- border-radius: 12rpx;
- }
- &.nosale {
- background: #F6F5F5;
- color: #B3B3B3;
- .goods-cover, .name {
- opacity: 0.6;
- }
- }
- .name {
- padding-left: 8rpx;
- }
- .goods-cover {
- width: 124rpx;
- height: 124rpx;
- border-radius: 8rpx 8rpx 0 0;
- }
- .iconSale {
- position: absolute;
- top: -14rpx;
- right: -14rpx;
- width: 56rpx;
- height: 28rpx;
- display: block;
- z-index: 1;
- }
- }
- }
- .goodsSection {
- // margin-bottom: 156rpx;
- padding-bottom: 160rpx;
- }
- .goodsIntro {
- background: #FFFFFF;
- // border-radius: 20rpx;
- overflow: hidden;
- // margin: 16rpx 0 0;
- .title {
- font-weight: 600;
- font-size: 32rpx;
- color: #131415;
- line-height: 44rpx;
- 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;
- }
- }
- .quick-btn {
- padding: 0 20rpx 30rpx;
- font-size: 28rpx;
- color: #999999;
- line-height: 40rpx;
- display: flex;
- view {
- padding: 8rpx 24rpx;
- margin-right: 12rpx;
- }
- .active {
- background: #FFDF9E;
- border-radius: 28rpx;
- font-weight: 600;
- color: #131415;
- }
- }
- .images {
- font-size: 0;
- image {
- display: block;
- width: 100%;
- }
- }
- }
- .orders {
- display: flex;
- flex-direction: column;
- position: fixed;
- right: 12rpx;
- bottom: 202rpx;
- image {
- width: 112rpx;
- height: 118rpx;
- }
- // text {
- // font-weight: 500;
- // font-size: 22rpx;
- // color: #131415;
- // line-height: 32rpx;
- // text-align: center;
- // }
- }
- .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-weight: 500;
- font-size: 22rpx;
- color: #131415;
- line-height: 32rpx;
- text-align: center;
- }
- }
- .btnSection {
- flex: 1 auto;
- display: flex;
- button {
- width: 100%;
- line-height: 88rpx;
- background: linear-gradient( 315deg, #FF4A00 0%, #FE8C00 100%);
- border-radius: 16rpx;
- font-weight: 500;
- font-size: 32rpx;
- color: #FFFFFF;
- padding-top: 0;
- padding-bottom: 0;
- &[disabled][type=primary] {
- opacity: 0.7;
- }
- &:first-child {
- background: linear-gradient( 135deg, #FF9800 0%, #FFB300 100%);
- border-radius: 16rpx 0rpx 0rpx 16rpx;
- }
- &:last-child {
- background: linear-gradient( 315deg, #FF4A00 0%, #FE8C00 100%);
- border-radius: 0rpx 16rpx 16rpx 0rpx;
- }
- }
- }
- }
- .hide {
- display: none !important;
- }
- // '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 0 58rpx;
- box-sizing: border-box;
- .goodsInfo {
- .desc {
- padding-bottom: 0;
- margin-left: 0;
- margin-bottom: 0;
- font-size: 32rpx;
- font-weight: 600;
- }
- .goodsList {
- max-height: 500rpx;
- padding: 0 32rpx;
- flex-wrap: wrap;
- overflow-x: hidden;
- overflow-y: auto;
- &::-webkit-scrollbar {
- display: none;
- }
- }
- .goodsItem {
- margin-right: 18rpx;
- .goods-cover {
- width: 208rpx;
- height: 208rpx;
- }
- &:nth-child(3n + 3) {
- margin-right: 0;
- }
- }
- }
- }
- .iconClose {
- position: absolute;
- right: 32rpx;
- top: 40rpx;
- width: 30rpx;
- height: 30rpx;
- }
- .product-section {
- display: flex;
- // padding-bottom: 60rpx;
- padding: 0 32rpx 60rpx;
- .product-img {
- width: 160rpx;
- height: 160rpx;
- flex-shrink: 0;
- margin-right: 32rpx;
- border-radius: 6px;
- overflow: hidden;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .product-left {
- display: flex;
- flex-direction: column;
- .price-s {
- display: flex;
- align-items: flex-start;
- }
- .current-s {
- font-size: 28rpx;
- color: #131415;
- line-height: 40rpx;
- padding-top: 20rpx;
- text {
- color: #FF5000;
- }
- }
- .currentPrice {
- font-weight: bold;
- color: #FF5000;
- 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-top: 30rpx;
- }
- }
- }
- .goodsInfo {
- flex-direction: column;
- align-items: flex-start;
- padding-bottom: 90rpx;
-
- .desc {
- font-size: 28rpx;
- color: #131415;
- line-height: 40rpx;
- padding: 0 32rpx 30rpx;
- }
- }
- .btnSections {
- padding: 0 32rpx;
- }
- button {
- width: 100%;
- line-height: 88rpx;
- background: linear-gradient( 315deg, #FF4A00 0%, #FE8C00 100%);
- border-radius: 16rpx;
- font-weight: 500;
- font-size: 32rpx;
- color: #FFFFFF;
- padding-top: 0;
- padding-bottom: 0;
- }
- }
- .showMoreContainer {
- position: fixed;
- bottom: 0;
- width: 100%;
- left: 0;
- right: 0;
- height: 378rpx;
- background: linear-gradient( 180deg, rgba(255,255,255,0) 0%, #FFFFFF 100%);
- display: flex;
- justify-content: center;
- align-items: flex-end;
- pointer-events: none;
- .iconUpScroll {
- width: 80rpx;
- height: 80rpx;
- margin-bottom: 60rpx;
- animation: breathe 2s infinite cubic-bezier(0, 0.21, 0, 0.88);
- // transition: all cubic-bezier(0, 0.21, 0, 0.88);
- }
- @keyframes breathe {
- 0% {
- opacity: 1;
- transform: translateY(0rpx);
- }
- 75%{
- opacity: 1;
- }
- 100% {
- opacity: 0;
- transform: translateY(-50rpx);
- }
- }
- }
|