/* pages/shop/goodDetail.wxss */ .good-wapper { height: 100%; max-height: calc(100vh - 63px); /* 6px + 44px + 12px */ overflow-y: scroll; } .good-image { width: 100%; height: 100vw; } .good-detail { padding: 5px 20px 24px 20px; } /* 商品价格 */ .good-price { white-space: nowrap; font-weight: 700; margin: 0; display: inline; position: relative; } .good-price-counter { color: #fa4126; font-size: 72rpx; } .good-price-retail { color: #bbbbbb; font-size: 32rpx; margin: 0 0 0 18rpx; font-weight: 500; } .good-price-counter .good-price-symbol { font-size: 36rpx; display: inline; margin-right: 6rpx; } .good-price-retail .good-price-symbol { font-size: 24rpx; display: inline; } .good-price .good-price-number { display: inline; } .good-price .good-price-line { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); margin: 0; background-color: currentColor; } /* 商品标题 */ .good-title { margin: 8px 3px; width: 100%; font-weight: 700; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 36rpx; word-break: break-all; color: #333333; } /* 商品描述 */ .good-breif { margin: 8px 3px; font-weight: 500; font-size: 32rpx; line-height: 2em; } /* 没有更多 */ .no-more { text-align: center; color: grey; margin: 20px; font-size: small; } /* 屏幕底部 */ /* 屏幕底部 数量输入框 */ .bottom-inputs { margin-bottom: 3px; } .buy-count-input { border: 1px solid black; display: inline-block; border-radius: 100px; width: 100px; height: 34px; margin: 0 5px; } .buy-count-btn { border-radius: 100px; width: 35px; height: 35px; max-width: 35px; max-height: 35px; min-width: 35px; min-height: 35px; background-color: #FA4126; color: white; } /* 屏幕底部 下单按钮 */ .bottom-controlbox { background-color: white; position: fixed; z-index: 999; bottom: 0; left: 0; right: 0; width: 100%; padding-top: 6px; padding-bottom: 12px; border-top: 1px solid grey; text-align: center; } .bottom-buttons { height: 100%; /* background-color: bisque; */ display: inline-block; } .btn { width: 254rpx; height: 80rpx; display: inline-grid; align-items: center; justify-content: center; color: white; } #btn-buy { background-color: #fa4126; color: #fff; border-radius: 0rpx 40rpx 40rpx 0rpx; } #btn-addcart { background: #ffece9; color: #fa4126; border-radius: 40rpx 0 0 40rpx; }