2023-03-18 23:00:58 +08:00
|
|
|
/* pages/shop/goodDetail.wxss */
|
2023-03-18 23:40:16 +08:00
|
|
|
.good-wapper {
|
|
|
|
height: 100%;
|
|
|
|
max-height: calc(100vh - 63px);
|
|
|
|
/* 6px + 44px + 12px */
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
|
|
|
|
2023-03-18 23:00:58 +08:00
|
|
|
.good-image {
|
|
|
|
width: 100%;
|
|
|
|
height: 100vw;
|
|
|
|
}
|
|
|
|
|
|
|
|
.good-detail {
|
2023-03-18 23:40:16 +08:00
|
|
|
padding: 5px 20px 24px 20px;
|
2023-03-18 23:00:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* 商品价格 */
|
|
|
|
.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 {
|
2023-03-18 23:40:16 +08:00
|
|
|
margin: 8px 3px;
|
|
|
|
width: 100%;
|
|
|
|
font-weight: 700;
|
2023-03-18 23:00:58 +08:00
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
overflow: hidden;
|
2023-03-18 23:40:16 +08:00
|
|
|
font-size: 36rpx;
|
2023-03-18 23:00:58 +08:00
|
|
|
word-break: break-all;
|
|
|
|
color: #333333;
|
|
|
|
}
|
2023-03-18 23:40:16 +08:00
|
|
|
|
|
|
|
/* 商品描述 */
|
|
|
|
.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-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;
|
|
|
|
}
|