/* pages/order/index.less */ @bg: #FAF6F1; @card: #ffffff; @dark: #2A211B; @text: #5C5044; @muted: #A3988B; @border: #F0EAE2; @accent: #C26A2E; page { background-color: @bg; color: @dark; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; } .page { min-height: 100vh; display: flex; flex-direction: column; background: @bg; padding: 24rpx 24rpx 0; box-sizing: border-box; } /* === 顶部(home 同款暖棕圆角卡片) === */ .header { background: #C26A2E; border-radius: 28rpx; box-shadow: 0 12rpx 32rpx rgba(122, 62, 29, 0.25); padding: 36rpx 32rpx; position: relative; overflow: hidden; display: flex; align-items: flex-start; justify-content: space-between; &::after { content: ''; position: absolute; top: -80rpx; right: -60rpx; width: 280rpx; height: 280rpx; border-radius: 50%; background: rgba(255, 255, 255, 0.03); } &::before { content: ''; position: absolute; bottom: -120rpx; left: -80rpx; width: 200rpx; height: 200rpx; border-radius: 50%; background: rgba(255, 255, 255, 0.02); } } .header-content { position: relative; z-index: 1; } .header-title { display: block; font-size: 36rpx; font-weight: 700; color: #fff; letter-spacing: 2rpx; margin-bottom: 12rpx; } .header-sub { display: block; font-size: 22rpx; color: rgba(255, 255, 255, 0.65); font-weight: 300; letter-spacing: 1rpx; } .header-add { position: relative; z-index: 1; flex-shrink: 0; padding: 16rpx 28rpx; font-size: 26rpx; color: #fff; background: rgba(255, 255, 255, 0.18); border: 1rpx solid rgba(255, 255, 255, 0.4); border-radius: 32rpx; } /* === 接单分栏(未分配 / 我的) === */ .scope-bar { display: flex; gap: 8rpx; margin-top: 24rpx; padding: 8rpx; background: @card; border-radius: 32rpx; border: 1rpx solid rgba(90, 62, 42, 0.06); box-shadow: 0 4rpx 12rpx rgba(90, 62, 42, 0.05); } .scope-tab { flex: 1; padding: 16rpx 0; text-align: center; border-radius: 26rpx; font-size: 26rpx; color: @muted; transition: all 0.25s; &.active { background: @accent; color: #fff; font-weight: 600; box-shadow: 0 4rpx 16rpx rgba(180, 85, 42, 0.3); } } /* === 状态筛选下拉 === */ .filter-bar { display: flex; align-items: center; justify-content: space-between; padding: 24rpx 0 0; } .filter-label { font-size: 24rpx; color: @muted; } .status-pill { display: inline-flex; align-items: center; gap: 8rpx; padding: 12rpx 24rpx; background: @card; border-radius: 28rpx; font-size: 24rpx; color: @text; border: 1rpx solid rgba(90, 62, 42, 0.06); box-shadow: 0 4rpx 12rpx rgba(90, 62, 42, 0.05); } /* === 列表区域 === */ .list-area { flex: 1; overflow: hidden; } .list-scroll { height: 100%; } .loading-box { display: flex; align-items: center; justify-content: center; padding: 200rpx 40rpx; } .empty-box { margin-top: 24rpx; background: @card; border-radius: 24rpx; border: 1rpx solid rgba(90, 62, 42, 0.06); box-shadow: 0 6rpx 20rpx rgba(90, 62, 42, 0.07); padding: 64rpx 40rpx; display: flex; align-items: center; justify-content: center; } .loading-text { color: @muted !important; font-size: 26rpx !important; } .empty-text { color: @muted !important; font-size: 28rpx !important; } .empty-btn { margin-top: 24rpx; padding: 14rpx 48rpx; background: @accent; color: #fff; font-size: 26rpx; border-radius: 28rpx; display: inline-block; } /* === 订单卡片 === */ .card-list { padding: 24rpx 0 40rpx; } .order-card { margin-bottom: 20rpx; background: @card; border-radius: 24rpx; border: 1rpx solid rgba(90, 62, 42, 0.06); box-shadow: 0 6rpx 20rpx rgba(90, 62, 42, 0.07); padding: 24rpx 32rpx; transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.3s cubic-bezier(0.32, 0.72, 0, 1); &:active { transform: scale(0.98); box-shadow: 0 4rpx 12rpx rgba(90, 62, 42, 0.08); } } .card-top { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 12rpx; } .card-tags { display: flex; align-items: center; gap: 10rpx; margin-right: auto; } .order-tag { font-size: 20rpx; padding: 4rpx 14rpx; border-radius: 20rpx; font-weight: 500; } .tag-pool { background: #EEF3EE; color: #5B7A5B; } .tag-shared { background: #FBF0DC; color: #A97712; } .order-no { font-size: 24rpx; color: @muted; font-weight: 500; font-family: 'DIN Alternate', 'Helvetica Neue', monospace; } .status-badge { font-size: 22rpx; padding: 6rpx 20rpx; border-radius: 30rpx; font-weight: 500; } .status-pending { background: #FBF0DC; color: #D98E04; } .status-confirmed { background: #EAF1F8; color: #3E6E9E; } .status-in_progress { background: #FBEEDF; color: #C26A2E; } .status-completed { background: #F0EDF6; color: #8A7BB5; } .status-cancelled { background: #F3EEE8; color: #BFB6AC; } .status-cancel_requested { background: #FBEDEB; color: #C0564A; } /* === 卡片主体 === */ .card-main { padding: 0; } .patient-line { display: flex; align-items: center; gap: 20rpx; margin-bottom: 16rpx; } .patient-avatar { width: 72rpx; height: 72rpx; border-radius: 50%; background: @accent; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .avatar-char { font-size: 28rpx; font-weight: 700; color: #fff; } .patient-meta { flex: 1; } .patient-name-row { display: flex; align-items: center; gap: 12rpx; margin-bottom: 4rpx; } .patient-name { font-size: 30rpx; font-weight: 600; color: @dark; } .patient-sex { font-size: 20rpx; padding: 2rpx 10rpx; border-radius: 8rpx; font-weight: 500; &.male { background: rgba(62, 110, 158, 0.1); color: #3E6E9E; } &.female { background: rgba(232, 106, 138, 0.1); color: #E86A8A; } } .patient-age { font-size: 22rpx; color: @muted; } .patient-phone { font-size: 24rpx; color: @muted; } .divider { height: 1rpx; background: @border; margin: 16rpx 0; } .info-line { display: flex; align-items: baseline; margin-bottom: 12rpx; } .line-label { font-size: 24rpx; color: @muted; width: 64rpx; flex-shrink: 0; } .line-value { font-size: 26rpx; color: @text; flex: 1; } /* === 卡片底部 === */ .card-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20rpx 0 4rpx; margin-top: 16rpx; border-top: 1rpx solid @border; } .fee-area { display: flex; align-items: baseline; gap: 8rpx; } .fee-label { font-size: 24rpx; color: @muted; } .fee-amount { font-size: 36rpx; font-weight: 700; color: @dark; font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif; } .action-area { display: flex; gap: 14rpx; } .action-btn { padding: 14rpx 32rpx; border-radius: 24rpx; font-size: 24rpx; font-weight: 500; transition: all 0.2s; &:active { transform: scale(0.95); } } .btn-solid { background: @accent; color: #fff; box-shadow: 0 4rpx 16rpx rgba(180, 85, 42, 0.25); } .btn-ghost { background: @bg; color: @muted; border: 1rpx solid @border; } /* === 加载更多 === */ .load-more { display: flex; align-items: center; justify-content: center; padding: 32rpx 20rpx; } .no-more { font-size: 24rpx; color: @muted; }