123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- @charset "UTF-8";
- .content,page {
- background: #f8f8f8;
- }
- .content {
- padding-top: 96rpx;
- }
- .navbar {
- position: fixed;
- left: 0;
- top: 0;
- width: 100%;
- height: 80rpx;
- background: #fff;
- box-shadow: 0 2rpx 10rpx rgba(0,0,0,.06);
- z-index: 10;
- }
- .navbar,.navbar .nav-item {
- display: flex;
- }
- .navbar .nav-item {
- -webkit-box-flex: 1;
- flex: 1;
- -webkit-box-pack: center;
- justify-content: center;
- -webkit-box-align: center;
- align-items: center;
- height: 100%;
- font-size: 30rpx;
- color: #303133;
- position: relative;
- }
- .navbar .nav-item.current {
- color: #5dbc7c;
- }
- .navbar .nav-item.current:after {
- content: "";
- position: absolute;
- left: 50%;
- bottom: 0;
- transform: translateX(-50%);
- width: 120rpx;
- height: 0;
- border-bottom: 4rpx solid #5dbc7c;
- }
- .navbar .p-box {
- -webkit-box-orient: vertical;
- -webkit-box-direction: normal;
- flex-direction: column;
- }
- .navbar .p-box,.navbar .p-box .iconfont {
- display: flex;
- }
- .navbar .p-box .iconfont {
- -webkit-box-align: center;
- align-items: center;
- -webkit-box-pack: center;
- justify-content: center;
- width: 30rpx;
- height: 14rpx;
- line-height: 1;
- margin-left: 4rpx;
- font-size: 26rpx;
- color: #888;
- }
- .navbar .p-box .iconfont.active {
- color: #5dbc7c;
- }
- .navbar .p-box .xia {
- transform: scaleY(-1);
- }
- .navbar .cate-item {
- display: flex;
- -webkit-box-pack: center;
- justify-content: center;
- -webkit-box-align: center;
- align-items: center;
- height: 100%;
- width: 80rpx;
- position: relative;
- font-size: 44rpx;
- }
- .navbar .cate-item:after {
- content: "";
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- border-left: 1px solid #ddd;
- width: 0;
- height: 36rpx;
- }
- .cate-mask {
- position: fixed;
- left: 0;
- top: 0;
- bottom: 0;
- width: 100%;
- background: transparent;
- z-index: 95;
- }
- .cate-mask,.cate-mask .cate-content {
- transition: .3s;
- }
- .cate-mask .cate-content {
- width: 630rpx;
- height: 100%;
- background: #fff;
- float: right;
- transform: translateX(100%);
- }
- .cate-mask.none {
- display: none;
- }
- .cate-mask.show {
- background: rgba(0,0,0,.4);
- }
- .cate-mask.show .cate-content {
- transform: translateX(0);
- }
- .cate-list {
- -webkit-box-orient: vertical;
- -webkit-box-direction: normal;
- flex-direction: column;
- height: 100%;
- }
- .cate-list,.cate-list .cate-item {
- display: flex;
- }
- .cate-list .cate-item {
- -webkit-box-align: center;
- align-items: center;
- height: 90rpx;
- padding-left: 30rpx;
- font-size: 28rpx;
- color: #555;
- position: relative;
- }
- .cate-list .two {
- height: 64rpx;
- color: #303133;
- font-size: 30rpx;
- background: #f8f8f8;
- }
- .cate-list .active {
- color: #5dbc7c;
- }
- .goods-list {
- flex-wrap: wrap;
- padding: 0 30rpx;
- background: #fff;
- }
- .goods-list,.goods-list .goods-item {
- display: flex;
- }
- .goods-list .goods-item {
- -webkit-box-orient: vertical;
- -webkit-box-direction: normal;
- flex-direction: column;
- width: 48%;
- padding-bottom: 40rpx;
- }
- .goods-list .goods-item:nth-child(2n+1) {
- margin-right: 4%;
- }
- .goods-list .image-wrapper {
- width: 100%;
- height: 330rpx;
- border-radius: 3px;
- overflow: hidden;
- }
- .goods-list .image-wrapper image {
- width: 100%;
- height: 100%;
- opacity: 1;
- }
- .goods-list .title {
- font-size: 32rpx;
- color: #303133;
- line-height: 80rpx;
- }
- .goods-list .price-box {
- display: flex;
- -webkit-box-align: center;
- align-items: center;
- -webkit-box-pack: justify;
- justify-content: space-between;
- padding-right: 10rpx;
- font-size: 24rpx;
- color: #909399;
- }
- .goods-list .price {
- font-size: 32rpx;
- color: #dd524d;
- line-height: 1;
- }
- .goods-list .price:before {
- content: "¥";
- font-size: 26rpx;
- }
|