| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- /* components/addCartModel/addCartModel.wxss */
- .modal-container {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: 999;
- visibility: hidden;
- opacity: 0;
- transition: all 0.3s ease;
- }
-
- .modal-container.modal-show {
- visibility: visible;
- opacity: 1;
- }
-
- .modal-mask {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.5);
- }
-
- .modal-content {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- max-height: 70vh;
- background: #fff;
- border-radius: 24rpx 24rpx 0 0;
- box-sizing: border-box;
- padding: 32rpx;
- transform: translateY(100%);
- transition: transform 0.3s ease;
- }
-
- .modal-show .modal-content {
- transform: translateY(0);
- }
-
- .modal-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 32rpx;
- }
-
- .modal-header .title {
- font-size: 32rpx;
- font-weight: bold;
- }
-
- .close-btn {
- margin: 0;
- padding: 0;
- width: 48rpx;
- height: 48rpx;
- line-height: 48rpx;
- font-size: 36rpx;
- background: transparent;
- border: none;
- }
-
- .product-info {
- display: flex;
- margin-bottom: 32rpx;
- }
-
- .product-image {
- width: 221rpx;
- height: 221rpx;
- border-radius: 30rpx;
- margin-right: 24rpx;
- }
-
- .product-detail {
- flex: 1;
- }
-
- .product-attr{
- display: flex;
- align-items: flex-end;
- justify-content: space-between;
- }
- .price {
- font-size: 36rpx;
- color: #ff2e4d;
- font-weight: bold;
- }
-
- .stock {
- font-size: 24rpx;
- color: #000;
- }
-
- .prodName {
- font-size: 32rpx;
- color: #000;
- font-weight: 600;
- margin-bottom: 130rpx;
- }
-
- .spec-section {
- margin-bottom: 32rpx;
- }
-
- .spec-title {
- font-size: 28rpx;
- margin-bottom: 16rpx;
- }
-
- .spec-options {
- display: flex;
- flex-wrap: wrap;
- gap: 16rpx;
- }
-
- .spec-option {
- padding: 12rpx 24rpx;
- border: 1rpx solid #eee;
- border-radius: 8rpx;
- font-size: 26rpx;
- }
-
- .spec-option.selected {
- border-color: #ff2e4d;
- color: #ff2e4d;
- background-color: #fff5f6;
- }
-
- .quantity-section {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 48rpx;
- }
-
- .quantity-title {
- font-size: 28rpx;
- }
-
- .quantity-control {
- display: flex;
- align-items: center;
- }
-
- .quantity-input {
- width: 80rpx;
- text-align: center;
- margin: 0 16rpx;
- }
-
- .btn-minus, .btn-plus {
- width: 60rpx;
- height: 60rpx;
- line-height: 60rpx;
- text-align: center;
- padding: 0;
- margin: 0;
- border: 1rpx solid #eee;
- background: #f7f7f7;
- border-radius: 8rpx;
- }
-
- .btn-minus[disabled], .btn-plus[disabled] {
- opacity: 0.5;
- }
-
- .footer {
- width: 100%;
- background: #fff;
- padding-top: 16rpx;
- }
-
- .add-btn {
- width: 657rpx !important;
- background: #89C6BE;
- color: #fff;
- border-radius: 20rpx;
- line-height: 105rpx;
- font-size: 30rpx;
- padding: 0;
- }
|