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.
1582 lines
27 KiB
1582 lines
27 KiB
/* pages/goods-detail/goods-detail.wxss */
|
|
|
|
/* 引入阿里巴巴普惠体 */
|
|
@font-face {
|
|
font-family: 'AlibabaPuHuiTi';
|
|
src: url('https://at.alicdn.com/t/c/font_4596467_7k3j4t9v1i.woff2') format('woff2'),
|
|
url('https://at.alicdn.com/t/c/font_4596467_7k3j4t9v1i.woff') format('woff');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
/* 页面容器 */
|
|
.goods-detail-page {
|
|
min-height: 100vh;
|
|
background-color: #f5f7fa;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
|
}
|
|
|
|
/* 规格信息字体设置 */
|
|
.goods-detail-content .weight-quantity-info .wq-list .wq-item {
|
|
font-family: 'AlibabaPuHuiTi', sans-serif;
|
|
}
|
|
|
|
/* 弹窗显示时固定页面滚动 */
|
|
.no-scroll {
|
|
overflow: hidden !important;
|
|
position: fixed !important;
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
}
|
|
|
|
/* 页面头部 */
|
|
.page-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 44px;
|
|
background: #ffffff;
|
|
padding: 0 16px;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 100;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.header-left {
|
|
width: 40px;
|
|
}
|
|
|
|
.header-center {
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|
|
|
|
.header-title {
|
|
font-size: 17px;
|
|
font-weight: 600;
|
|
color: #000000;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.header-right {
|
|
width: 40px;
|
|
text-align: right;
|
|
}
|
|
|
|
.close-icon {
|
|
font-size: 28px;
|
|
color: #000000;
|
|
font-weight: 300;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* 商品详情内容区域 */
|
|
.goods-detail-content {
|
|
padding-top: 0; /* 移除顶部内边距,消除空白 */
|
|
padding-bottom: 90px; /* 减小底部内边距 */
|
|
}
|
|
|
|
/* 商品图片轮播 */
|
|
.goods-image-slider {
|
|
width: 100%;
|
|
height: 240px; /* 适当增大图片高度 */
|
|
background: linear-gradient(135deg, #f0f4ff 0%, #d9e4ff 100%);
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.goods-image-slider::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
|
|
}
|
|
|
|
.goods-image-slider swiper {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.goods-image-slider swiper-item {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 10px; /* 减小内边距 */
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.slider-media {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.slider-media:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* 视频样式增强 */
|
|
video.slider-media {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
object-fit: fill;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* 视频控制器样式 - 调整进度条位置 */
|
|
video.slider-media .wx-video-controlbar {
|
|
bottom: 50px !important;
|
|
padding-bottom: 15px !important;
|
|
height: 60px !important;
|
|
z-index: 10 !important;
|
|
}
|
|
|
|
/* 视频播放按钮样式 */
|
|
video.slider-media .wx-video-play-btn {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
}
|
|
|
|
video.slider-media .wx-video-play-btn::after {
|
|
border-radius: 50%;
|
|
background-color: rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
/* 视频静音图标样式 */
|
|
video.slider-media .wx-video-volume-icon {
|
|
background-image: url('https://img.icons8.com/windows/32/mute.png') !important;
|
|
background-size: contain !important;
|
|
background-repeat: no-repeat !important;
|
|
}
|
|
|
|
/* 商品基本信息 */
|
|
.goods-info {
|
|
background-color: #ffffff;
|
|
padding: 14px 16px 10px; /* 适当增大内边距 */
|
|
position: relative;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
|
margin-top: 0; /* 移除负外边距,让图片和信息自然衔接 */
|
|
}
|
|
|
|
.goods-info::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 16px;
|
|
right: 16px;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent, #f0f0f0, transparent);
|
|
}
|
|
|
|
.goods-name {
|
|
display: block;
|
|
font-size: 20px; /* 适当增大字体大小 */
|
|
font-weight: 700;
|
|
color: #262626;
|
|
margin-bottom: 10px; /* 适当增大底部间距 */
|
|
line-height: 1.35; /* 适当增大行高 */
|
|
letter-spacing: -0.2px;
|
|
}
|
|
|
|
.goods-price {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.price-symbol {
|
|
font-size: 18px; /* 适当增大字体大小 */
|
|
color: #666;
|
|
margin-right: 4px;
|
|
font-weight: 500;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.price-value {
|
|
font-size: 26px; /* 适当增大字体大小 */
|
|
color: #ff4d4f;
|
|
font-weight: 700;
|
|
letter-spacing: -0.5px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.price-value::before {
|
|
content: '¥';
|
|
font-size: 24px;
|
|
margin-right: 2px;
|
|
}
|
|
|
|
.source-type-badge {
|
|
font-size: 24rpx;
|
|
color: #ffffff;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
backdrop-filter: blur(12rpx);
|
|
-webkit-backdrop-filter: blur(12rpx);
|
|
border: 1rpx solid rgba(255, 255, 255, 0.25);
|
|
padding: 4rpx 12rpx;
|
|
border-radius: 8rpx;
|
|
font-weight: bold;
|
|
box-shadow: 0 6rpx 16rpx rgba(0, 0, 0, 0.12), inset 0 1rpx 0 rgba(255, 255, 255, 0.3);
|
|
text-shadow: 0 1rpx 2rpx rgba(0, 0, 0, 0.2);
|
|
transition: all 0.3s ease;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-top: -22rpx;
|
|
}
|
|
|
|
.source-type-badge:active {
|
|
transform: scale(0.98);
|
|
box-shadow: 0 3rpx 8rpx rgba(0, 0, 0, 0.15), inset 0 1rpx 0 rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
/* 商品详细信息网格 */
|
|
.info-grid {
|
|
background-color: #ffffff;
|
|
margin: 8px 0;
|
|
padding: 12px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.info-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 10px;
|
|
background: #f0f5ff;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
border: 1px solid #d6e4ff;
|
|
}
|
|
|
|
.info-row:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.info-item {
|
|
flex: 0 0 50%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 12px 14px;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
}
|
|
|
|
.info-item:nth-child(odd)::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: 1px;
|
|
background: linear-gradient(180deg, transparent, #e8e8e8, transparent);
|
|
}
|
|
|
|
.info-label-container {
|
|
margin-bottom: 4px; /* 减小间距 */
|
|
}
|
|
|
|
.info-label {
|
|
font-size: 13px;
|
|
color: #8c8c8c;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.2px;
|
|
}
|
|
|
|
.info-value-container {
|
|
min-height: 20px; /* 减小最小高度 */
|
|
}
|
|
|
|
.info-value {
|
|
font-size: 14px;
|
|
color: #000000d9;
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
/* 联系信息 */
|
|
.contact-info {
|
|
margin: 8px 16px; /* 减小外边距 */
|
|
padding: 12px; /* 减小内边距 */
|
|
border-radius: 10px; /* 减小圆角 */
|
|
background: #ffffff;
|
|
border: 1px solid #d6e4ff;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.contact-label {
|
|
display: none; /* 隐藏联系信息标题,节省空间 */
|
|
}
|
|
|
|
.contact-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px; /* 减小间距 */
|
|
}
|
|
|
|
.contact-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 6px 0; /* 减小内边距 */
|
|
}
|
|
|
|
.phone-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 6px 0; /* 减小内边距 */
|
|
}
|
|
|
|
.contact-icon {
|
|
font-size: 14px; /* 减小图标大小 */
|
|
margin-right: 8px; /* 减小间距 */
|
|
flex-shrink: 0;
|
|
width: 18px; /* 减小宽度 */
|
|
text-align: center;
|
|
color: #2f54eb;
|
|
}
|
|
|
|
.user-icon {
|
|
font-size: 16px; /* 减小图标大小 */
|
|
}
|
|
|
|
.phone-icon {
|
|
font-size: 16px; /* 减小图标大小 */
|
|
}
|
|
|
|
.contact-label-text {
|
|
font-size: 13px; /* 减小字体大小 */
|
|
color: #595959;
|
|
margin-right: 6px; /* 减小间距 */
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.contact-text {
|
|
font-size: 13px; /* 减小字体大小 */
|
|
color: #262626;
|
|
flex-shrink: 0;
|
|
margin-right: 12px; /* 减小间距 */
|
|
}
|
|
|
|
.phone-info {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex: 1;
|
|
align-items: center;
|
|
}
|
|
|
|
.phone-info .contact-label-text {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.call-button {
|
|
padding: 0 24px;
|
|
height: 36px;
|
|
line-height: 36px;
|
|
font-size: 14px;
|
|
color: #ffffff;
|
|
background-color: #2f54eb;
|
|
border: 1px solid #2f54eb;
|
|
border-radius: 4px;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 2px 8px rgba(47, 84, 235, 0.2);
|
|
}
|
|
|
|
.chat-button {
|
|
padding: 0 24px;
|
|
height: 36px;
|
|
line-height: 36px;
|
|
font-size: 14px;
|
|
color: #333333;
|
|
background-color: #e6f7f0;
|
|
border: 1px solid #52c41a;
|
|
border-radius: 4px;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 2px 8px rgba(82, 196, 26, 0.2);
|
|
}
|
|
|
|
/* 底部按钮区域样式 */
|
|
.action-buttons {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 12px 16px; /* 减小内边距 */
|
|
background-color: #ffffff;
|
|
border-top: 1px solid #f0f0f0;
|
|
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
|
|
z-index: 99;
|
|
display: flex;
|
|
gap: 8px; /* 减小按钮间距 */
|
|
}
|
|
|
|
.bottom-button {
|
|
flex: 1;
|
|
height: 48px; /* 减小按钮高度 */
|
|
border-radius: 24px; /* 减小圆角 */
|
|
font-size: 16px; /* 减小字体大小 */
|
|
font-weight: 700;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border: none;
|
|
outline: none;
|
|
transition: all 0.3s ease;
|
|
margin: 0;
|
|
}
|
|
|
|
.bottom-button:active {
|
|
transform: scale(0.98);
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.call-button:active {
|
|
background-color: #4066ff;
|
|
border-color: #4066ff;
|
|
box-shadow: 0 4px 12px rgba(47, 84, 235, 0.3);
|
|
}
|
|
|
|
.call-button.bottom-button {
|
|
background-color: #ffffff;
|
|
color: #2f54eb;
|
|
border: 2px solid #2f54eb;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.call-button.bottom-button:active {
|
|
background-color: #f0f4ff;
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.chat-button.bottom-button:active {
|
|
background-color: #d6f7e6;
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.call-button.bottom-button {
|
|
background-color: #ffffff;
|
|
color: #2f54eb;
|
|
border: 2px solid #2f54eb;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.call-button.bottom-button:active {
|
|
background-color: #f0f4ff;
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.chat-button.bottom-button:active {
|
|
background-color: #d6f7e6;
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* 图片预览弹窗 */
|
|
.image-preview-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: #000000;
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.preview-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px 16px;
|
|
color: #ffffff;
|
|
z-index: 10;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.preview-close {
|
|
width: 44px;
|
|
height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 22px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.preview-close:active {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.close-icon {
|
|
font-size: 24px;
|
|
color: #ffffff;
|
|
font-weight: 300;
|
|
}
|
|
|
|
.preview-indicator {
|
|
font-size: 15px;
|
|
color: #ffffff;
|
|
font-weight: 500;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.preview-swiper {
|
|
flex: 1;
|
|
width: 100%;
|
|
}
|
|
|
|
.preview-image-wrapper {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.preview-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
object-fit: contain;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* 添加一些微动画效果 */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.goods-info,
|
|
.info-grid,
|
|
.contact-info {
|
|
animation: fadeIn 0.4s ease-out;
|
|
}
|
|
|
|
.info-grid {
|
|
animation-delay: 0.1s;
|
|
}
|
|
|
|
.contact-info {
|
|
animation-delay: 0.2s;
|
|
}
|
|
|
|
/* 响应式调整 */
|
|
@media (min-height: 800px) {
|
|
.goods-image-slider {
|
|
height: 320px;
|
|
}
|
|
|
|
.goods-name {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.price-value {
|
|
font-size: 32px;
|
|
}
|
|
}
|
|
|
|
/* 登录弹窗样式 */
|
|
.auth-modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.auth-modal-container {
|
|
background-color: #fff;
|
|
border-radius: 32rpx;
|
|
width: 90%;
|
|
max-width: 720rpx;
|
|
padding: 60rpx 40rpx 40rpx;
|
|
box-shadow: 0 16rpx 48rpx rgba(0, 0, 0, 0.2);
|
|
transition: all 0.3s ease;
|
|
border: 2rpx solid rgba(255, 255, 255, 0.8);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.auth-modal-title {
|
|
font-size: 44rpx;
|
|
font-weight: bold;
|
|
color: #222;
|
|
text-align: center;
|
|
margin-bottom: 40rpx;
|
|
letter-spacing: 1rpx;
|
|
}
|
|
|
|
.auth-modal-content {
|
|
font-size: 32rpx;
|
|
line-height: 1.6;
|
|
color: #555;
|
|
text-align: center;
|
|
margin-bottom: 50rpx;
|
|
padding: 0 20rpx;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.auth-modal-buttons {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20rpx;
|
|
padding: 0 20rpx;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.auth-primary-button {
|
|
background-color: #07c160;
|
|
color: #fff;
|
|
font-size: 36rpx;
|
|
font-weight: 600;
|
|
line-height: 1.6;
|
|
border-radius: 12rpx;
|
|
padding: 32rpx 0;
|
|
width: 100%;
|
|
box-shadow: 0 4rpx 12rpx rgba(7, 193, 96, 0.3);
|
|
transition: all 0.3s ease;
|
|
border: none;
|
|
margin: 0;
|
|
min-width: auto;
|
|
}
|
|
|
|
.auth-primary-button:active {
|
|
transform: translateY(2rpx);
|
|
box-shadow: 0 3rpx 12rpx rgba(7, 193, 96, 0.5);
|
|
}
|
|
|
|
.auth-primary-button::after {
|
|
border: none;
|
|
}
|
|
|
|
.auth-cancel-button {
|
|
background-color: #fff;
|
|
color: #666;
|
|
font-size: 36rpx;
|
|
font-weight: 500;
|
|
line-height: 1.6;
|
|
border-radius: 12rpx;
|
|
padding: 32rpx 0;
|
|
width: 100%;
|
|
border: 1rpx solid #e0e0e0;
|
|
transition: all 0.3s ease;
|
|
margin: 0;
|
|
min-width: auto;
|
|
}
|
|
|
|
.auth-cancel-button:active {
|
|
transform: translateY(2rpx);
|
|
border-color: #d0d0d0;
|
|
}
|
|
|
|
.auth-cancel-button::after {
|
|
border: none;
|
|
}
|
|
|
|
/* 净重件数对应信息样式 */
|
|
.weight-quantity-info {
|
|
background-color: #ffffff;
|
|
margin: 16rpx;
|
|
padding: 24rpx;
|
|
border-radius: 12rpx;
|
|
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
|
|
border: 1rpx solid #f0f0f0;
|
|
}
|
|
|
|
.wq-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #262626;
|
|
margin-bottom: 16rpx;
|
|
padding-bottom: 12rpx;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
position: relative;
|
|
}
|
|
|
|
.wq-title::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -1rpx;
|
|
left: 0;
|
|
width: 60rpx;
|
|
height: 4rpx;
|
|
background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
|
|
border-radius: 2rpx;
|
|
}
|
|
|
|
.wq-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.wq-item {
|
|
background-color: #f8f9fa;
|
|
padding: 30rpx 20rpx;
|
|
border-radius: 8rpx;
|
|
border-left: 4rpx solid #1890ff;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.wq-item:active {
|
|
background-color: #e6f7ff;
|
|
transform: translateX(4rpx);
|
|
}
|
|
|
|
.wq-text {
|
|
line-height: 1.5;
|
|
font-weight: 600;
|
|
color: #595959;
|
|
}
|
|
|
|
.wq-spec {
|
|
font-size: 20px;
|
|
color: #333333;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.wq-price {
|
|
font-size: 18px;
|
|
color: #666666;
|
|
font-weight: 400;
|
|
margin-left: 10rpx;
|
|
}
|
|
|
|
/* 对比价格弹窗样式 */
|
|
.compare-modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-end;
|
|
z-index: 9999;
|
|
animation: fadeIn 0.3s ease-out;
|
|
}
|
|
|
|
.compare-modal-container {
|
|
width: 100%;
|
|
background-color: #fff;
|
|
border-top-left-radius: 32rpx;
|
|
border-top-right-radius: 32rpx;
|
|
padding-bottom: 20rpx;
|
|
max-height: 70vh;
|
|
animation: slideUp 0.3s ease-out;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
transform: translateY(100%);
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.compare-modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 24rpx 32rpx;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
position: relative;
|
|
}
|
|
|
|
.compare-modal-title {
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
color: #222;
|
|
text-align: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.compare-modal-close {
|
|
font-size: 48rpx;
|
|
color: #999;
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.compare-modal-close:active {
|
|
background-color: #f0f0f0;
|
|
transform: scale(0.9);
|
|
}
|
|
|
|
.compare-tabs {
|
|
display: flex;
|
|
background-color: #f8f9fa;
|
|
padding: 12rpx;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.compare-tab {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 16rpx 0;
|
|
font-size: 32rpx;
|
|
color: #666;
|
|
border-radius: 12rpx;
|
|
transition: all 0.3s ease;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.compare-tab.active {
|
|
background-color: #fff;
|
|
color: #4a90e2;
|
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.compare-goods-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 12rpx;
|
|
}
|
|
|
|
.compare-goods-item {
|
|
display: flex;
|
|
align-items: center;
|
|
background-color: #fff;
|
|
border-radius: 12rpx;
|
|
padding: 12rpx;
|
|
margin-bottom: 12rpx;
|
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.08);
|
|
transition: all 0.3s ease;
|
|
border: 1rpx solid #f0f0f0;
|
|
}
|
|
|
|
.compare-goods-item:active {
|
|
transform: translateY(2rpx);
|
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
.compare-goods-image {
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
border-radius: 10rpx;
|
|
margin-right: 12rpx;
|
|
object-fit: cover;
|
|
background: linear-gradient(135deg, #f0f4ff 0%, #d9e4ff 100%);
|
|
}
|
|
|
|
/* 视频和图片容器样式 */
|
|
.product-image-wrapper {
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
border-radius: 10rpx;
|
|
margin-right: 12rpx;
|
|
overflow: hidden;
|
|
position: relative;
|
|
background: linear-gradient(135deg, #f0f4ff 0%, #d9e4ff 100%);
|
|
}
|
|
|
|
/* 视频和图片样式 */
|
|
.product-media {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.compare-goods-info {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.compare-goods-name {
|
|
font-size: 32rpx;
|
|
color: #222;
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
margin-bottom: 4rpx;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
|
|
.compare-goods-spec {
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
margin-bottom: 4rpx;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.compare-goods-quantity {
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
margin-bottom: 4rpx;
|
|
}
|
|
|
|
.compare-goods-price {
|
|
font-size: 36rpx;
|
|
color: #ff4d4f;
|
|
font-weight: bold;
|
|
margin-bottom: 4rpx;
|
|
}
|
|
|
|
.compare-goods-region {
|
|
font-size: 26rpx;
|
|
color: #999;
|
|
}
|
|
|
|
.compare-goods-spec-quantity {
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
line-height: 1.1;
|
|
margin: 2rpx 0;
|
|
}
|
|
|
|
.compare-goods-region-time {
|
|
font-size: 26rpx;
|
|
color: #999;
|
|
line-height: 1.1;
|
|
margin-top: 2rpx;
|
|
}
|
|
|
|
.compare-empty {
|
|
text-align: center;
|
|
padding: 80rpx 0;
|
|
color: #999;
|
|
font-size: 32rpx;
|
|
}
|
|
|
|
/* 修复样式冲突 */
|
|
.goods-detail-page {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* 已售空标签样式 */
|
|
.sold-out-label {
|
|
position: absolute;
|
|
bottom: 8rpx;
|
|
right: 8rpx;
|
|
background-color: #ff4d4f;
|
|
color: white;
|
|
font-size: 24rpx;
|
|
padding: 4rpx 8rpx;
|
|
border-radius: 6rpx;
|
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.2);
|
|
font-weight: 600;
|
|
z-index: 10;
|
|
}
|
|
|
|
/* 右侧售空文字样式 */
|
|
.sold-out-text {
|
|
margin-left: auto;
|
|
color: #ff4d4f;
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
padding: 0 16rpx;
|
|
}
|
|
|
|
/* 评论区样式 */
|
|
.comments-section {
|
|
background-color: #ffffff;
|
|
margin: 8px 0 90px;
|
|
padding: 16px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.comments-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.comments-title {
|
|
display: flex;
|
|
align-items: baseline;
|
|
}
|
|
|
|
.comments-label {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: #262626;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.comments-count {
|
|
font-size: 14px;
|
|
color: #8c8c8c;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.comments-rating {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.rating-stars {
|
|
display: flex;
|
|
gap: 2px;
|
|
}
|
|
|
|
.star-icon {
|
|
font-size: 18px;
|
|
color: #ffd700;
|
|
cursor: pointer;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.star-active {
|
|
color: #ffd700;
|
|
}
|
|
|
|
.star-inactive {
|
|
color: #e8e8e8;
|
|
}
|
|
|
|
.star-icon-small {
|
|
font-size: 14px;
|
|
color: #ffd700;
|
|
}
|
|
|
|
.rating-score {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #262626;
|
|
}
|
|
|
|
/* 评论列表 */
|
|
.comments-list {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.comment-item {
|
|
margin-bottom: 24px;
|
|
padding-bottom: 24px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.comment-item:last-child {
|
|
border-bottom: none;
|
|
margin-bottom: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.comment-user {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.user-nickname {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #262626;
|
|
}
|
|
|
|
.comment-time {
|
|
font-size: 12px;
|
|
color: #8c8c8c;
|
|
}
|
|
|
|
.comment-content {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.content-text {
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
color: #595959;
|
|
}
|
|
|
|
.comment-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.comment-actions {
|
|
display: flex;
|
|
gap: 24px;
|
|
}
|
|
|
|
.action-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 12px;
|
|
color: #8c8c8c;
|
|
cursor: pointer;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.action-item:active {
|
|
color: #1890ff;
|
|
}
|
|
|
|
.action-icon {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.action-text {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.comment-rating-small {
|
|
display: flex;
|
|
gap: 2px;
|
|
}
|
|
|
|
/* 回复列表 */
|
|
.replies-list {
|
|
margin-top: 12px;
|
|
padding-left: 52px;
|
|
}
|
|
|
|
.reply-item {
|
|
margin-bottom: 12px;
|
|
padding: 12px;
|
|
background-color: #f8f9fa;
|
|
border-radius: 8px;
|
|
border-left: 3px solid #d6e4ff;
|
|
}
|
|
|
|
.reply-content {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.reply-user {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: #1890ff;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.reply-text {
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
color: #595959;
|
|
}
|
|
|
|
.reply-time {
|
|
font-size: 11px;
|
|
color: #8c8c8c;
|
|
}
|
|
|
|
/* 评论输入区域 */
|
|
.comment-input-section {
|
|
margin-top: 20px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.input-container {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.comment-textarea {
|
|
flex: 1;
|
|
min-height: 80px;
|
|
padding: 12px;
|
|
border: 1px solid #d9d9d9;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
color: #262626;
|
|
background-color: #fafafa;
|
|
resize: none;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.comment-textarea:focus {
|
|
border-color: #1890ff;
|
|
background-color: #ffffff;
|
|
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
|
}
|
|
|
|
.submit-button {
|
|
align-self: flex-end;
|
|
height: 40px;
|
|
padding: 0 20px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
background-color: #1890ff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.submit-button:active {
|
|
background-color: #40a9ff;
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.submit-button:disabled {
|
|
background-color: #d9d9d9;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.rating-input {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.rating-label {
|
|
font-size: 14px;
|
|
color: #595959;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.rating-input-stars {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
/* 空评论状态 */
|
|
.comments-empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 80px 0;
|
|
color: #8c8c8c;
|
|
background-color: #fafafa;
|
|
border-radius: 8px;
|
|
margin: 20px 16px;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 64px;
|
|
margin-bottom: 20px;
|
|
opacity: 0.3;
|
|
color: #d9d9d9;
|
|
}
|
|
|
|
.empty-text {
|
|
font-size: 14px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 评论按钮样式 */
|
|
.comment-action {
|
|
margin: 20rpx 0;
|
|
}
|
|
|
|
.comment-button {
|
|
background-color: #1890ff;
|
|
color: #ffffff;
|
|
border: none;
|
|
border-radius: 12rpx;
|
|
padding: 24rpx 64rpx;
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
box-shadow: 0 4rpx 12rpx rgba(24, 144, 255, 0.3);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.comment-button:active {
|
|
background-color: #40a9ff;
|
|
transform: scale(0.98);
|
|
box-shadow: 0 3rpx 8rpx rgba(24, 144, 255, 0.4);
|
|
}
|
|
|
|
/* 评论操作按钮 */
|
|
.comment-actions {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.delete-btn {
|
|
color: #ff4d4f;
|
|
font-size: 28rpx;
|
|
padding: 8rpx 16rpx;
|
|
border-radius: 8rpx;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.delete-btn:active {
|
|
background-color: rgba(255, 77, 79, 0.1);
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* 评论弹窗样式 */
|
|
.comment-modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
z-index: 10001;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-end;
|
|
animation: fadeIn 0.3s ease-out;
|
|
}
|
|
|
|
/* 删除确认弹窗样式 */
|
|
.delete-modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
z-index: 10001;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
animation: fadeIn 0.3s ease-out;
|
|
}
|
|
|
|
.delete-modal-container {
|
|
background: white;
|
|
width: 80%;
|
|
max-width: 500rpx;
|
|
padding: 40rpx;
|
|
border-radius: 20rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
animation: slideUp 0.3s ease-out;
|
|
}
|
|
|
|
.delete-modal-title {
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
margin-bottom: 30rpx;
|
|
text-align: center;
|
|
color: #262626;
|
|
}
|
|
|
|
.delete-modal-content {
|
|
font-size: 32rpx;
|
|
color: #595959;
|
|
text-align: center;
|
|
margin-bottom: 40rpx;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.delete-modal-buttons {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 20rpx;
|
|
width: 100%;
|
|
}
|
|
|
|
.delete-modal-cancel,
|
|
.delete-modal-confirm {
|
|
flex: 1;
|
|
padding: 20rpx 0;
|
|
font-size: 32rpx;
|
|
border-radius: 10rpx;
|
|
transition: all 0.3s ease;
|
|
border: none;
|
|
margin: 0;
|
|
}
|
|
|
|
.delete-modal-cancel {
|
|
background: #f0f0f0;
|
|
color: #333;
|
|
}
|
|
|
|
.delete-modal-cancel:active {
|
|
background: #e0e0e0;
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.delete-modal-confirm {
|
|
background: #ff4d4f;
|
|
color: white;
|
|
}
|
|
|
|
.delete-modal-confirm:active {
|
|
background: #ff7875;
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.comment-modal-container {
|
|
background: white;
|
|
width: 100%;
|
|
padding: 30rpx;
|
|
border-radius: 20rpx 20rpx 0 0;
|
|
max-height: 80vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
animation: slideUp 0.3s ease-out;
|
|
}
|
|
|
|
.comment-modal-title {
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
margin-bottom: 30rpx;
|
|
text-align: center;
|
|
color: #262626;
|
|
}
|
|
|
|
.comment-modal-textarea {
|
|
width: 100%;
|
|
height: 200rpx;
|
|
border: 2rpx solid #e0e0e0;
|
|
border-radius: 10rpx;
|
|
padding: 20rpx;
|
|
font-size: 32rpx;
|
|
box-sizing: border-box;
|
|
margin-bottom: 30rpx;
|
|
resize: none;
|
|
background-color: #fafafa;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.comment-modal-textarea:focus {
|
|
border-color: #1890ff;
|
|
background-color: #ffffff;
|
|
box-shadow: 0 0 0 4rpx rgba(24, 144, 255, 0.1);
|
|
}
|
|
|
|
.comment-modal-buttons {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.comment-modal-cancel,
|
|
.comment-modal-submit {
|
|
flex: 1;
|
|
padding: 20rpx 0;
|
|
font-size: 32rpx;
|
|
border-radius: 10rpx;
|
|
transition: all 0.3s ease;
|
|
border: none;
|
|
margin: 0;
|
|
}
|
|
|
|
.comment-modal-cancel {
|
|
background: #f0f0f0;
|
|
color: #333;
|
|
}
|
|
|
|
.comment-modal-cancel:active {
|
|
background: #e0e0e0;
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.comment-modal-submit {
|
|
background: #4a90e2;
|
|
color: white;
|
|
}
|
|
|
|
.comment-modal-submit:active {
|
|
background: #5c9dff;
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.comment-modal-submit:disabled {
|
|
background: #c0c4cc;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
transform: translateY(100%);
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
}
|
|
}
|