feat: 订单详情交互对接

This commit is contained in:
duanshuwen
2025-08-02 13:59:29 +08:00
parent 7ff542e57a
commit 9d6abe3e2a
11 changed files with 2145 additions and 61 deletions

View File

@@ -5,7 +5,7 @@ $order-bg-color: #fff;
$text-color-primary: #333;
$text-color-secondary: #666;
$text-color-accent: #ff5722;
$button-color: #ffa500;
$button-color: #00a6ff;
$button-hover-color: darken($button-color, 8%);
$button-disabled-color: #ccc;
$border-color: #ececec;
@@ -31,8 +31,15 @@ $font-weight-semibold: 600;
$transition-fast: 0.2s ease;
$transition-normal: 0.3s ease;
// 响应式断点
$breakpoint-mobile: 480px;
// 动画关键帧
@keyframes loading-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.order-info {
background-color: $order-bg-color;
@@ -54,13 +61,6 @@ $breakpoint-mobile: 480px;
padding: 4px 0;
transition: background-color $transition-fast;
&:hover {
background-color: rgba(0, 0, 0, 0.02);
border-radius: 4px;
margin: 0 -4px 8px;
padding: 4px;
}
.label {
font-size: $font-size-small;
color: $text-color-secondary;
@@ -102,18 +102,6 @@ $breakpoint-mobile: 480px;
}
}
}
// 移动端适配
@media (max-width: $breakpoint-mobile) {
.value {
max-width: 50%;
font-size: $font-size-small - 1px;
}
&.amount .value {
font-size: $font-size-medium + 2px;
}
}
}
.line {
@@ -130,13 +118,10 @@ $breakpoint-mobile: 480px;
.reserve-button {
width: 100%;
background: linear-gradient(
135deg,
$button-color 0%,
darken($button-color, 5%) 100%
);
background: linear-gradient(179deg, #00a6ff 0%, #0256ff 100%);
color: #fff;
border: none;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
@@ -150,12 +135,6 @@ $breakpoint-mobile: 480px;
transition: all $transition-normal;
letter-spacing: 0.5px;
// 再次预定按钮背景样式
&.pre-btn {
background: linear-gradient(179deg, #00a6ff 0%, #0256ff 100%);
border: 2px solid #00a6ff;
}
// 按钮波纹效果
&::before {
content: "";
@@ -206,13 +185,31 @@ $breakpoint-mobile: 480px;
}
}
// 移动端触摸优化
@media (max-width: $breakpoint-mobile) {
height: $button-height + 4px;
font-size: $font-size-medium + 1px;
// 加载状态样式
&.loading {
background: $button-disabled-color;
cursor: not-allowed;
transform: none;
box-shadow: none;
position: relative;
&:hover {
transform: none; // 移动端禁用悬浮效果
&::before {
display: none;
}
// 加载动画
&::after {
content: "";
position: absolute;
left: 50%;
top: 50%;
width: 16px;
height: 16px;
margin: -8px 0 0 -8px;
border: 2px solid transparent;
border-top: 2px solid #fff;
border-radius: 50%;
animation: loading-spin 1s linear infinite;
}
}
}