You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
298 lines
4.7 KiB
298 lines
4.7 KiB
.container {
|
|
// 设置ios刘海屏底部横线安全区域
|
|
// 110 - 18 + 4
|
|
padding-bottom: calc(constant(safe-area-inset-bottom) + 98rpx + 6rpx);
|
|
padding-bottom: calc(env(safe-area-inset-bottom) + 98rpx + 6rpx);
|
|
}
|
|
|
|
/* 商品信息 */
|
|
|
|
.goods-info {
|
|
background: #fff;
|
|
padding: 25rpx 30rpx;
|
|
}
|
|
|
|
.info-item__top {
|
|
min-height: 40rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.info-item__top .active-tag {
|
|
color: #fff;
|
|
background: $main-bg;
|
|
padding: 4rpx 10rpx;
|
|
border-radius: 15rpx;
|
|
font-size: 26rpx;
|
|
text-align: center;
|
|
margin-right: 15rpx;
|
|
}
|
|
|
|
.floor-price__samll {
|
|
font-size: 26rpx;
|
|
line-height: 1;
|
|
color: $main-bg;
|
|
margin-bottom: -10rpx;
|
|
}
|
|
|
|
/* 商品价 */
|
|
|
|
.floor-price {
|
|
color: $main-bg;
|
|
margin-right: 15rpx;
|
|
font-size: 42rpx;
|
|
line-height: 1;
|
|
}
|
|
|
|
.original-price {
|
|
font-size: 26rpx;
|
|
line-height: 1;
|
|
text-decoration: line-through;
|
|
color: #959595;
|
|
margin-bottom: -6rpx;
|
|
}
|
|
|
|
.goods-sales {
|
|
font-size: 24rpx;
|
|
color: #959595;
|
|
}
|
|
|
|
.info-item__name .goods-name {
|
|
font-size: 30rpx;
|
|
}
|
|
|
|
/* 商品分享 */
|
|
|
|
.goods-share__line {
|
|
border-left: 1rpx solid #f4f4f4;
|
|
height: 60rpx;
|
|
margin: 0 30rpx;
|
|
}
|
|
|
|
.goods-share .share-btn {
|
|
line-height: normal;
|
|
padding: 0;
|
|
background: none;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
font-size: 8pt;
|
|
border: none;
|
|
color: #191919;
|
|
}
|
|
|
|
.goods-share .share-btn::after {
|
|
border: none;
|
|
}
|
|
|
|
.goods-share .share__icon {
|
|
font-size: 40rpx;
|
|
margin-bottom: 5rpx;
|
|
}
|
|
|
|
/* 商品卖点 */
|
|
|
|
.info-item_selling-point {
|
|
margin-top: 8rpx;
|
|
font-size: 24rpx;
|
|
color: #808080;
|
|
}
|
|
|
|
// 选择商品规格
|
|
.goods-choice {
|
|
padding: 26rpx 30rpx;
|
|
font-size: 28rpx;
|
|
|
|
.spec-list {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.spec-name {
|
|
margin-right: 10rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* 商品详情 */
|
|
|
|
.goods-content .item-title {
|
|
padding: 26rpx 30rpx;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
/* 底部操作栏 */
|
|
|
|
.footer-fixed {
|
|
position: fixed;
|
|
bottom: var(--window-bottom);
|
|
left: 0;
|
|
right: 0;
|
|
display: flex;
|
|
z-index: 11;
|
|
box-shadow: 0 -4rpx 40rpx 0 rgba(151, 151, 151, 0.24);
|
|
background: #fff;
|
|
|
|
// 设置ios刘海屏底部横线安全区域
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
|
|
.footer-container {
|
|
width: 100%;
|
|
display: flex;
|
|
height: 98rpx;
|
|
}
|
|
|
|
// 快捷菜单
|
|
.foo-item-fast {
|
|
box-sizing: border-box;
|
|
width: 256rpx;
|
|
line-height: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
.fast-item {
|
|
position: relative;
|
|
padding: 4rpx 10rpx;
|
|
line-height: 1;
|
|
// text-align: center;
|
|
|
|
.fast-icon {
|
|
margin-bottom: 6rpx;
|
|
}
|
|
|
|
&--home {
|
|
margin-right: 30rpx;
|
|
}
|
|
|
|
&--cart {
|
|
.fast-icon { padding-left: 3px; }
|
|
}
|
|
|
|
// 角标
|
|
.fast-badge {
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
min-width: 16px;
|
|
padding: 0 3px;
|
|
color: #fff;
|
|
font-weight: 500;
|
|
font-size: 12px;
|
|
font-family: -apple-system-font, Helvetica Neue, Arial, sans-serif;
|
|
line-height: 1.2;
|
|
text-align: center;
|
|
background-color: #ee0a24;
|
|
border: 1px solid #fff;
|
|
border-radius: 999px;
|
|
}
|
|
.fast-badge--fixed {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
transform-origin: 100%
|
|
}
|
|
|
|
.fast-icon {
|
|
font-size: 46rpx;
|
|
}
|
|
|
|
.fast-text {
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 操作按钮
|
|
.foo-item-btn {
|
|
flex: 1;
|
|
|
|
.btn-wrapper {
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
// 立即砍价
|
|
.btn-item {
|
|
flex: 1;
|
|
height: 100%;
|
|
font-size: 30rpx;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-radius: 0;
|
|
&.btn--main {
|
|
background: linear-gradient(to right, $main-bg, $main-bg2);
|
|
color: $main-text;
|
|
}
|
|
&.btn--gray {
|
|
background-color: #ccc;
|
|
color: #fff;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 活动状态
|
|
.info-item_status {
|
|
margin-top: 20rpx;
|
|
padding: 15rpx 20rpx;
|
|
font-size: 24rpx;
|
|
border-radius: 6rpx;
|
|
}
|
|
|
|
.info-item_status .countdown-icon {
|
|
font-size: 28rpx;
|
|
margin-right: 15rpx;
|
|
}
|
|
|
|
// 活动倒计时
|
|
.info-item_countdown {
|
|
background: #f0f9ff;
|
|
color: #8f8f8f;
|
|
}
|
|
|
|
.info-item_countdown .countdown-icon {
|
|
color: #1397d8;
|
|
}
|
|
|
|
// 活动已结束
|
|
.info-item_end {
|
|
background: #ccc;
|
|
color: #fff;
|
|
}
|
|
|
|
// 砍价玩法
|
|
.bargain-rules {
|
|
padding: 20rpx 0;
|
|
font-size: 29rpx;
|
|
|
|
.item-title {
|
|
padding: 0 30rpx;
|
|
}
|
|
|
|
.rule-simple {
|
|
margin-top: 35rpx;
|
|
color: #737373;
|
|
}
|
|
|
|
.i-number {
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
border-radius: 50%;
|
|
margin-bottom: 15rpx;
|
|
border: 1rpx dashed #c0c0c0;
|
|
}
|
|
}
|
|
|
|
// 砍价规则(弹窗)
|
|
.pops-content {
|
|
padding: 30rpx 48rpx;
|
|
font-size: 28rpx;
|
|
line-height: 44rpx;
|
|
text-align: left;
|
|
color: #606266;
|
|
min-height: 320rpx;
|
|
max-height: 640rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|