feat(storefront): 新增 PC 商品详情与下单确认
This commit is contained in:
@@ -454,6 +454,291 @@ a {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.listing-card-link {
|
||||
display: block;
|
||||
height: 100%;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.listing-card-link:hover {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.listing-detail-page {
|
||||
max-width: 1240px;
|
||||
margin: 0 auto;
|
||||
padding: 26px 24px 64px;
|
||||
}
|
||||
|
||||
.listing-detail-page__crumb {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.listing-detail-page__hero {
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.listing-detail-gallery {
|
||||
padding: 14px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 12px;
|
||||
background: var(--paper-warm);
|
||||
}
|
||||
|
||||
.listing-detail-gallery__main {
|
||||
aspect-ratio: 16 / 10;
|
||||
overflow: hidden;
|
||||
border-radius: 8px;
|
||||
background: #eef1ea;
|
||||
}
|
||||
|
||||
.listing-detail-gallery__main .ant-image,
|
||||
.listing-detail-gallery__main img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.listing-detail-gallery__main img {
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.listing-detail-gallery__thumbs {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-top: 10px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.listing-detail-gallery__thumbs .ant-image {
|
||||
flex: 0 0 auto;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.listing-detail-gallery__thumbs img {
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.listing-detail-gallery__empty {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
min-height: 360px;
|
||||
border-radius: 8px;
|
||||
background: var(--paper);
|
||||
color: var(--brand-ink);
|
||||
letter-spacing: 0.12em;
|
||||
}
|
||||
|
||||
.listing-buy-card {
|
||||
position: sticky;
|
||||
top: 84px;
|
||||
border-color: var(--line);
|
||||
background: var(--paper-warm);
|
||||
}
|
||||
|
||||
.listing-buy-card__top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.listing-buy-card__title {
|
||||
margin: 12px 0 10px !important;
|
||||
color: var(--brand-ink) !important;
|
||||
font-size: 26px !important;
|
||||
line-height: 1.35 !important;
|
||||
}
|
||||
|
||||
.listing-buy-card__price {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 10px;
|
||||
margin-top: 18px;
|
||||
padding: 14px 16px;
|
||||
border-radius: 8px;
|
||||
background: var(--paper);
|
||||
}
|
||||
|
||||
.listing-buy-card__price span {
|
||||
color: var(--ink-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.listing-buy-card__price strong {
|
||||
color: var(--brand-seal);
|
||||
font-family: 'Inter', 'DIN Alternate', sans-serif;
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
.listing-buy-card__meta {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
.listing-buy-card__meta div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.listing-buy-card__meta span {
|
||||
color: var(--ink-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.listing-buy-card__meta strong {
|
||||
color: var(--brand-ink);
|
||||
font-family: 'Inter', monospace;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.listing-buy-card__notice {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.listing-buy-card__links {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px 12px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.listing-buy-card__links button {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
color: var(--brand-seal);
|
||||
font-size: 11px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.listing-buy-card__links button:hover {
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 3px;
|
||||
}
|
||||
|
||||
.listing-detail-page__body {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.listing-detail-panel {
|
||||
margin-bottom: 18px;
|
||||
border-color: var(--line);
|
||||
background: var(--paper-warm);
|
||||
}
|
||||
|
||||
.listing-detail-description {
|
||||
margin-bottom: 0 !important;
|
||||
color: var(--ink-secondary);
|
||||
line-height: 1.85;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.listing-process {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.listing-process__step {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
padding: 14px 0;
|
||||
border-bottom: 1px dashed var(--line);
|
||||
}
|
||||
|
||||
.listing-process__step:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.listing-process__step > span {
|
||||
color: var(--brand-seal);
|
||||
font-family: 'Inter', monospace;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.listing-process__step strong {
|
||||
color: var(--brand-ink);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.listing-process__step p {
|
||||
margin: 6px 0 0;
|
||||
color: var(--ink-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.listing-trust-card {
|
||||
border-color: var(--line);
|
||||
background: var(--paper-warm);
|
||||
}
|
||||
|
||||
.listing-trust-card__item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.listing-trust-card__item > .anticon {
|
||||
margin-top: 2px;
|
||||
color: var(--brand-seal);
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.listing-trust-card__item div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.listing-trust-card__item strong {
|
||||
color: var(--brand-ink);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.listing-trust-card__item span {
|
||||
color: var(--ink-muted);
|
||||
font-size: 11px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.listing-agreement-content {
|
||||
max-height: 62vh;
|
||||
overflow-y: auto;
|
||||
color: var(--ink-secondary);
|
||||
font-size: 12px;
|
||||
line-height: 1.8;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.listing-detail-page {
|
||||
padding: 20px 16px 48px;
|
||||
}
|
||||
|
||||
.listing-buy-card {
|
||||
position: static;
|
||||
}
|
||||
|
||||
.listing-buy-card__meta {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.empty-panel {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
Reference in New Issue
Block a user