123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- .goodslist_boxs {
- margin: 0rpx 30rpx;
- width: calc(100% - 60rpx);
- height: calc( 100vh - 40rpx);
- }
- .goods-image {
- width: 100%;
- height: 400rpx;
- }
- .price-and-views {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 20rpx;
- }
- .price {
- color: #ff5722;
- font-size: 32rpx;
- }
- .original-price {
- color: #999;
- font-size: 24rpx;
- margin-left: 20rpx;
- text-decoration: line-through;
- }
- .views {
- color: #999;
- font-size: 24rpx;
- }
- .goods-title {
- padding: 0 20rpx;
- font-size: 32rpx;
- font-weight: bold;
- }
- .specifications {
- margin: 20rpx 0;
- padding: 20rpx;
- background: #fff;
- border-radius: 16rpx;
- }
- .specifications_boxs {
- width: 100%;
- height: 80%;
- margin-top: 20rpx;
- display: flex;
- flex-wrap: wrap; /* 允许内容自动换行 */
- justify-content: flex-start; /* 靠右排列 */
- align-content: flex-start;
- gap: 20rpx; /* 设置项目之间的间距 */
- }
- .spec-btn {
- width: 48% !important;
- margin-bottom: 20rpx; /* 设置底部边距,确保换行后有间距 */
- padding: 10rpx 20rpx;
- border: 1px solid #ccc;
- border-radius: 50rpx;
- font-size: 28rpx;
- white-space: nowrap; /* 防止文字换行 */
- }
- .spec-btn.active {
- background-color: #fff;
- color: #fff;
- border-color: #409eff;
- color: #409eff;
- }
- .quantity {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 20rpx;
- background: #fff;
- border-radius: 16rpx;
- }
- .quantity-controls {
- display: flex;
- align-items: center;
- }
- .quantity-btn {
- width: 60rpx;
- height: 60rpx;
- background-color: #f5f5f5;
- border: none;
- font-size: 40rpx;
- color: #999;
- }
- .quantity-input {
- width: 80rpx;
- height: 60rpx;
- text-align: center;
- font-size: 32rpx;
- margin: 0 10rpx;
- }
- .product-details {
- padding: 20rpx;
- background: #fff;
- border-radius: 16rpx;
- margin-top: 20rpx;
- }
- .details-list text {
- margin-top: 20rpx;
- display: block;
- margin-bottom: 10rpx;
- font-size: 30rpx;
- color: #666;
- }
- .buttons {
- width: 100%;
- display: flex;
- justify-content: space-around;
- padding: 20rpx;
- position: fixed;
- bottom: 0;
- left: 0;
- background: #fff;
- padding-bottom: 40rpx;
- padding-top: 20rpx;
- }
- .cart-btn, .buy-btn {
- width: 40%;
- height: 80rpx;
- border-radius: 50rpx;
- font-size: 32rpx;
- color: #fff;
- }
- .cart-btn {
- width: 260rpx !important;
- background-color: #ea0000;
- }
- .buy-btn {
- width: 260rpx !important;
- background-color: #409eff;
- }
- .search-icon {
- width: 50rpx;
- height: 50rpx;
- }
|