- 新增客服电话、服务时间、企业微信客服配置项 - 新增客服弹窗组件支持微信在线客服和电话拨打 - 调整核销码为6位数字,修复相关提示文本 - 优化订单服务项目展示逻辑 - 完善抢单大厅加载动画和列表样式
671 行
14 KiB
Vue
671 行
14 KiB
Vue
<template>
|
|
<view class="hall-loader">
|
|
<!-- 核心同城雷达搜单动效卡片 -->
|
|
<view class="loader-hero-card">
|
|
<view class="radar-stage">
|
|
<!-- 脉冲扩散波纹 -->
|
|
<view class="radar-ripple r1"></view>
|
|
<view class="radar-ripple r2"></view>
|
|
|
|
<!-- 旋转轨道环 -->
|
|
<view class="orbit-ring orbit-outer"></view>
|
|
<view class="orbit-ring orbit-mid"></view>
|
|
<view class="orbit-ring orbit-inner"></view>
|
|
|
|
<!-- 雷达扇形扫描光束 -->
|
|
<view class="radar-sweep"></view>
|
|
|
|
<!-- 探测信号闪烁点 -->
|
|
<view class="blip-dot b1">
|
|
<view class="blip-halo"></view>
|
|
</view>
|
|
<view class="blip-dot b2">
|
|
<view class="blip-halo"></view>
|
|
</view>
|
|
<view class="blip-dot b3">
|
|
<view class="blip-halo"></view>
|
|
</view>
|
|
|
|
<!-- 中心派单徽章 -->
|
|
<view class="radar-core">
|
|
<image
|
|
class="radar-core-ico"
|
|
src="/static/icons/master/hall-radar-dispatch.svg"
|
|
mode="aspectFit"
|
|
/>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 动态阶段标题 -->
|
|
<view class="loader-status-box">
|
|
<view class="loader-title-row">
|
|
<text class="loader-title">{{ stageTitle }}</text>
|
|
<view class="typing-dots">
|
|
<view class="t-dot d1"></view>
|
|
<view class="t-dot d2"></view>
|
|
<view class="t-dot d3"></view>
|
|
</view>
|
|
</view>
|
|
<text class="loader-sub">{{ stageSub }}</text>
|
|
</view>
|
|
|
|
<!-- 三段式真实加载阶段指示 -->
|
|
<view class="stage-steps">
|
|
<view class="step-item" :class="{ active: stage === 'location', done: stage !== 'location' }">
|
|
<view class="step-node">
|
|
<view class="step-node-core"></view>
|
|
</view>
|
|
<text class="step-label">位置校准</text>
|
|
</view>
|
|
|
|
<view class="step-line" :class="{ active: stage !== 'location' }">
|
|
<view class="step-line-flow"></view>
|
|
</view>
|
|
|
|
<view class="step-item" :class="{ active: stage !== 'location' }">
|
|
<view class="step-node">
|
|
<view class="step-node-core"></view>
|
|
</view>
|
|
<text class="step-label">技能匹配</text>
|
|
</view>
|
|
|
|
<view class="step-line" :class="{ shimmer: stage !== 'location' }">
|
|
<view class="step-line-flow"></view>
|
|
</view>
|
|
|
|
<view class="step-item" :class="{ pending: true }">
|
|
<view class="step-node">
|
|
<view class="step-node-core"></view>
|
|
</view>
|
|
<text class="step-label">工单同步</text>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 底部流光进度轨道 -->
|
|
<view class="progress-track">
|
|
<view class="progress-beam"></view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 联动微缩工单骨架预览卡片 -->
|
|
<view class="preview-skeletons">
|
|
<view class="sk-card sk-stagger-1">
|
|
<view class="sk-hd">
|
|
<view class="sk-hd-left">
|
|
<view class="sk-tag warm-shimmer"></view>
|
|
<view class="sk-line warm-shimmer w48"></view>
|
|
</view>
|
|
<view class="sk-line warm-shimmer w22"></view>
|
|
</view>
|
|
<view class="sk-bd">
|
|
<view class="sk-thumb warm-shimmer"></view>
|
|
<view class="sk-col">
|
|
<view class="sk-line warm-shimmer w82"></view>
|
|
<view class="sk-line warm-shimmer w94"></view>
|
|
<view class="sk-line warm-shimmer w58"></view>
|
|
</view>
|
|
</view>
|
|
<view class="sk-ft">
|
|
<view class="sk-line warm-shimmer w38"></view>
|
|
<view class="sk-btn warm-shimmer"></view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="sk-card sk-stagger-2">
|
|
<view class="sk-hd">
|
|
<view class="sk-hd-left">
|
|
<view class="sk-tag warm-shimmer"></view>
|
|
<view class="sk-line warm-shimmer w42"></view>
|
|
</view>
|
|
<view class="sk-line warm-shimmer w26"></view>
|
|
</view>
|
|
<view class="sk-bd">
|
|
<view class="sk-thumb warm-shimmer"></view>
|
|
<view class="sk-col">
|
|
<view class="sk-line warm-shimmer w76"></view>
|
|
<view class="sk-line warm-shimmer w90"></view>
|
|
<view class="sk-line warm-shimmer w50"></view>
|
|
</view>
|
|
</view>
|
|
<view class="sk-ft">
|
|
<view class="sk-line warm-shimmer w42"></view>
|
|
<view class="sk-btn warm-shimmer"></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { computed } from 'vue';
|
|
|
|
const props = defineProps({
|
|
stage: {
|
|
type: String,
|
|
default: 'fetching' // 'location' | 'fetching'
|
|
},
|
|
city: {
|
|
type: String,
|
|
default: ''
|
|
}
|
|
});
|
|
|
|
const stageTitle = computed(() => {
|
|
return props.stage === 'location'
|
|
? '正在校准当前位置'
|
|
: '正在匹配同城优质工单';
|
|
});
|
|
|
|
const stageSub = computed(() => {
|
|
if (props.stage === 'location') {
|
|
return '获取实时坐标与周边接单半径';
|
|
}
|
|
if (props.city) {
|
|
return `已定位 ${props.city} · 按技能与距离实时筛选`;
|
|
}
|
|
return '按技能范围与距离智能筛选待接订单';
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.hall-loader {
|
|
padding: 20rpx $yjyf-space-md $yjyf-space-lg;
|
|
}
|
|
|
|
/* 1. 雷达搜单主卡片 */
|
|
.loader-hero-card {
|
|
position: relative;
|
|
overflow: hidden;
|
|
background: linear-gradient(180deg, $yjyf-primary-bg 0%, $yjyf-bg-card 56%, $yjyf-bg-card 100%);
|
|
border-radius: $yjyf-radius-lg;
|
|
border: 1rpx solid rgba(240, 113, 13, 0.14);
|
|
box-shadow: $yjyf-shadow-card;
|
|
padding: 36rpx $yjyf-space-md 28rpx;
|
|
margin-bottom: $yjyf-space-md;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
animation: cardFadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
}
|
|
|
|
/* 2. 雷达舞台 */
|
|
.radar-stage {
|
|
position: relative;
|
|
width: 248rpx;
|
|
height: 248rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
|
|
.radar-ripple {
|
|
position: absolute;
|
|
width: 96rpx;
|
|
height: 96rpx;
|
|
border-radius: 50%;
|
|
border: 2rpx solid rgba(240, 113, 13, 0.45);
|
|
background: rgba(240, 113, 13, 0.06);
|
|
animation: radarRipple 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
|
|
pointer-events: none;
|
|
}
|
|
.radar-ripple.r2 {
|
|
animation-delay: 1.2s;
|
|
}
|
|
|
|
.orbit-ring {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
pointer-events: none;
|
|
}
|
|
.orbit-outer {
|
|
width: 228rpx;
|
|
height: 228rpx;
|
|
border: 2rpx dashed rgba(240, 113, 13, 0.24);
|
|
animation: spinClockwise 14s linear infinite;
|
|
}
|
|
.orbit-mid {
|
|
width: 170rpx;
|
|
height: 170rpx;
|
|
border: 2rpx solid rgba(240, 113, 13, 0.1);
|
|
border-top-color: rgba(255, 169, 63, 0.72);
|
|
border-right-color: rgba(240, 113, 13, 0.36);
|
|
animation: spinCounter 5.6s linear infinite;
|
|
}
|
|
.orbit-inner {
|
|
width: 118rpx;
|
|
height: 118rpx;
|
|
border: 1rpx solid rgba(240, 113, 13, 0.16);
|
|
}
|
|
|
|
.radar-sweep {
|
|
position: absolute;
|
|
width: 224rpx;
|
|
height: 224rpx;
|
|
border-radius: 50%;
|
|
background: conic-gradient(
|
|
from 0deg,
|
|
rgba(240, 113, 13, 0.34) 0deg,
|
|
rgba(255, 169, 63, 0.14) 50deg,
|
|
rgba(255, 169, 63, 0) 98deg,
|
|
rgba(255, 169, 63, 0) 360deg
|
|
);
|
|
animation: spinClockwise 2.1s linear infinite;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* 探测到的信号闪烁点 */
|
|
.blip-dot {
|
|
position: absolute;
|
|
width: 12rpx;
|
|
height: 12rpx;
|
|
border-radius: 50%;
|
|
background: $yjyf-primary;
|
|
box-shadow: 0 0 10rpx rgba(240, 113, 13, 0.7);
|
|
animation: blipPulse 2.1s ease-in-out infinite;
|
|
}
|
|
.blip-halo {
|
|
position: absolute;
|
|
top: -6rpx;
|
|
left: -6rpx;
|
|
width: 24rpx;
|
|
height: 24rpx;
|
|
border-radius: 50%;
|
|
border: 2rpx solid rgba(240, 113, 13, 0.5);
|
|
animation: blipHalo 2.1s ease-out infinite;
|
|
}
|
|
.blip-dot.b1 {
|
|
top: 38rpx;
|
|
right: 54rpx;
|
|
animation-delay: 0.2s;
|
|
}
|
|
.blip-dot.b1 .blip-halo { animation-delay: 0.2s; }
|
|
|
|
.blip-dot.b2 {
|
|
bottom: 46rpx;
|
|
right: 40rpx;
|
|
animation-delay: 0.9s;
|
|
}
|
|
.blip-dot.b2 .blip-halo { animation-delay: 0.9s; }
|
|
|
|
.blip-dot.b3 {
|
|
bottom: 58rpx;
|
|
left: 38rpx;
|
|
animation-delay: 1.5s;
|
|
}
|
|
.blip-dot.b3 .blip-halo { animation-delay: 1.5s; }
|
|
|
|
/* 中心徽章 */
|
|
.radar-core {
|
|
position: relative;
|
|
z-index: 2;
|
|
width: 84rpx;
|
|
height: 84rpx;
|
|
border-radius: 50%;
|
|
background: $yjyf-gradient-primary;
|
|
box-shadow: 0 8rpx 24rpx rgba(240, 113, 13, 0.36);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
animation: coreBreath 2s ease-in-out infinite;
|
|
}
|
|
.radar-core-ico {
|
|
width: 46rpx;
|
|
height: 46rpx;
|
|
}
|
|
|
|
/* 3. 动态状态文本 */
|
|
.loader-status-box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
.loader-title-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8rpx;
|
|
margin-bottom: 8rpx;
|
|
}
|
|
.loader-title {
|
|
font-size: $yjyf-font-title;
|
|
font-weight: 700;
|
|
color: $yjyf-text-main;
|
|
letter-spacing: 0.5rpx;
|
|
}
|
|
.typing-dots {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6rpx;
|
|
padding-top: 6rpx;
|
|
}
|
|
.t-dot {
|
|
width: 8rpx;
|
|
height: 8rpx;
|
|
border-radius: 50%;
|
|
background: $yjyf-primary;
|
|
animation: dotBounce 1.2s ease-in-out infinite;
|
|
}
|
|
.t-dot.d2 { animation-delay: 0.2s; }
|
|
.t-dot.d3 { animation-delay: 0.4s; }
|
|
|
|
.loader-sub {
|
|
font-size: $yjyf-font-sub;
|
|
color: $yjyf-text-secondary;
|
|
}
|
|
|
|
/* 4. 三段式阶段指示器 */
|
|
.stage-steps {
|
|
width: 100%;
|
|
max-width: 560rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
.step-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 10rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
.step-node {
|
|
width: 28rpx;
|
|
height: 28rpx;
|
|
border-radius: 50%;
|
|
background: #F2F3F5;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
}
|
|
.step-node-core {
|
|
width: 12rpx;
|
|
height: 12rpx;
|
|
border-radius: 50%;
|
|
background: #C8C7CC;
|
|
}
|
|
.step-label {
|
|
font-size: $yjyf-font-micro;
|
|
color: $yjyf-text-muted;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.step-item.done .step-node {
|
|
background: rgba(47, 168, 79, 0.14);
|
|
}
|
|
.step-item.done .step-node-core {
|
|
background: $yjyf-success;
|
|
}
|
|
.step-item.done .step-label {
|
|
color: $yjyf-text-regular;
|
|
}
|
|
|
|
.step-item.active .step-node {
|
|
background: rgba(240, 113, 13, 0.18);
|
|
animation: nodePulse 1.4s ease-in-out infinite;
|
|
}
|
|
.step-item.active .step-node-core {
|
|
background: $yjyf-primary;
|
|
}
|
|
.step-item.active .step-label {
|
|
color: $yjyf-primary;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.step-line {
|
|
position: relative;
|
|
flex: 1;
|
|
height: 4rpx;
|
|
background: #ECEEF2;
|
|
border-radius: 4rpx;
|
|
margin: 0 12rpx 34rpx;
|
|
overflow: hidden;
|
|
}
|
|
.step-line.active {
|
|
background: rgba(240, 113, 13, 0.25);
|
|
}
|
|
.step-line.active .step-line-flow,
|
|
.step-line.shimmer .step-line-flow {
|
|
position: absolute;
|
|
top: 0;
|
|
left: -40%;
|
|
width: 45%;
|
|
height: 100%;
|
|
background: $yjyf-gradient-primary;
|
|
border-radius: 4rpx;
|
|
animation: lineFlow 1.3s ease-in-out infinite;
|
|
}
|
|
|
|
/* 5. 底部流光进度条 */
|
|
.progress-track {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 6rpx;
|
|
border-radius: $yjyf-radius-pill;
|
|
background: rgba(240, 113, 13, 0.1);
|
|
overflow: hidden;
|
|
}
|
|
.progress-beam {
|
|
position: absolute;
|
|
top: 0;
|
|
left: -35%;
|
|
width: 38%;
|
|
height: 100%;
|
|
border-radius: $yjyf-radius-pill;
|
|
background: $yjyf-gradient-primary;
|
|
animation: progressSlide 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
}
|
|
|
|
/* 6. 下方联动骨架卡 */
|
|
.preview-skeletons {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.sk-card {
|
|
background: $yjyf-bg-card;
|
|
border-radius: $yjyf-radius-card;
|
|
padding: $yjyf-space-md;
|
|
margin-bottom: $yjyf-space-md;
|
|
box-shadow: $yjyf-shadow-card;
|
|
opacity: 0;
|
|
animation: staggerSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
|
|
}
|
|
.sk-stagger-1 { animation-delay: 0.08s; }
|
|
.sk-stagger-2 { animation-delay: 0.18s; opacity: 0; }
|
|
|
|
.sk-hd {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding-bottom: 18rpx;
|
|
border-bottom: 1rpx solid $yjyf-border-color;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
.sk-hd-left {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
}
|
|
.sk-tag {
|
|
width: 64rpx;
|
|
height: 32rpx;
|
|
border-radius: 8rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
.sk-bd {
|
|
display: flex;
|
|
gap: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
.sk-thumb {
|
|
width: 148rpx;
|
|
height: 148rpx;
|
|
border-radius: 16rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
.sk-col {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: $yjyf-space-sm;
|
|
}
|
|
.sk-ft {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding-top: 18rpx;
|
|
border-top: 1rpx solid $yjyf-border-color;
|
|
}
|
|
.sk-line {
|
|
height: 26rpx;
|
|
border-radius: 8rpx;
|
|
}
|
|
.sk-btn {
|
|
width: 176rpx;
|
|
height: 60rpx;
|
|
border-radius: $yjyf-radius-pill;
|
|
}
|
|
.w22 { width: 22%; }
|
|
.w26 { width: 26%; }
|
|
.w38 { width: 38%; }
|
|
.w42 { width: 42%; }
|
|
.w48 { width: 48%; }
|
|
.w50 { width: 50%; }
|
|
.w58 { width: 58%; }
|
|
.w76 { width: 76%; }
|
|
.w82 { width: 82%; }
|
|
.w90 { width: 90%; }
|
|
.w94 { width: 94%; }
|
|
|
|
.warm-shimmer {
|
|
background: linear-gradient(
|
|
90deg,
|
|
#F3F4F6 25%,
|
|
#FCEEE3 38%,
|
|
#F3F4F6 63%
|
|
);
|
|
background-size: 800rpx 100%;
|
|
animation: warmShimmer 1.4s ease infinite;
|
|
}
|
|
|
|
/* 动画关键帧 */
|
|
@keyframes cardFadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(16rpx) scale(0.98);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
}
|
|
|
|
@keyframes staggerSlideUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20rpx);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes radarRipple {
|
|
0% {
|
|
transform: scale(0.9);
|
|
opacity: 0.85;
|
|
}
|
|
100% {
|
|
transform: scale(2.55);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes spinClockwise {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
@keyframes spinCounter {
|
|
from { transform: rotate(360deg); }
|
|
to { transform: rotate(0deg); }
|
|
}
|
|
|
|
@keyframes coreBreath {
|
|
0%, 100% {
|
|
transform: scale(1);
|
|
box-shadow: 0 8rpx 24rpx rgba(240, 113, 13, 0.34);
|
|
}
|
|
50% {
|
|
transform: scale(1.06);
|
|
box-shadow: 0 12rpx 32rpx rgba(240, 113, 13, 0.48);
|
|
}
|
|
}
|
|
|
|
@keyframes blipPulse {
|
|
0%, 100% {
|
|
opacity: 0.3;
|
|
transform: scale(0.75);
|
|
}
|
|
35% {
|
|
opacity: 1;
|
|
transform: scale(1.15);
|
|
}
|
|
70% {
|
|
opacity: 0.45;
|
|
transform: scale(0.9);
|
|
}
|
|
}
|
|
|
|
@keyframes blipHalo {
|
|
0% {
|
|
transform: scale(0.6);
|
|
opacity: 0.8;
|
|
}
|
|
100% {
|
|
transform: scale(2.1);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes dotBounce {
|
|
0%, 80%, 100% {
|
|
transform: translateY(0);
|
|
opacity: 0.35;
|
|
}
|
|
40% {
|
|
transform: translateY(-6rpx);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes nodePulse {
|
|
0%, 100% {
|
|
box-shadow: 0 0 0 0 rgba(240, 113, 13, 0.35);
|
|
}
|
|
50% {
|
|
box-shadow: 0 0 0 8rpx rgba(240, 113, 13, 0);
|
|
}
|
|
}
|
|
|
|
@keyframes lineFlow {
|
|
0% { left: -45%; }
|
|
100% { left: 105%; }
|
|
}
|
|
|
|
@keyframes progressSlide {
|
|
0% { left: -38%; }
|
|
100% { left: 102%; }
|
|
}
|
|
|
|
@keyframes warmShimmer {
|
|
0% { background-position: -400rpx 0; }
|
|
100% { background-position: 400rpx 0; }
|
|
}
|
|
</style>
|