feat: 新增平台客服配置及弹窗组件

- 新增客服电话、服务时间、企业微信客服配置项
- 新增客服弹窗组件支持微信在线客服和电话拨打
- 调整核销码为6位数字,修复相关提示文本
- 优化订单服务项目展示逻辑
- 完善抢单大厅加载动画和列表样式
这个提交包含在:
2026-11-18 18:08:22 +08:00
父节点 45a16c8bef
当前提交 31addddd5f
共有 35 个文件被更改,包括 1975 次插入 和 794 次删除

查看文件

@@ -120,27 +120,12 @@
</swiper>
</view>
<!-- 状态 1:首屏骨架屏加载态 -->
<view class="skeleton-list" v-if="loading && !list.length">
<view class="sk-card" v-for="n in 3" :key="'sk-' + n">
<view class="sk-hd">
<view class="sk-line yjyf-shimmer w55"></view>
<view class="sk-line yjyf-shimmer w24"></view>
</view>
<view class="sk-bd">
<view class="sk-thumb yjyf-shimmer"></view>
<view class="sk-col">
<view class="sk-line yjyf-shimmer w80"></view>
<view class="sk-line yjyf-shimmer w95"></view>
<view class="sk-line yjyf-shimmer w60"></view>
</view>
</view>
<view class="sk-ft">
<view class="sk-line yjyf-shimmer w40"></view>
<view class="sk-btn yjyf-shimmer"></view>
</view>
</view>
</view>
<!-- 状态 1:首屏同城雷达搜单加载动画 -->
<MasterHallLoader
v-if="showInitialLoader"
:stage="loaderStage"
:city="locationCity"
/>
<!-- 状态 2:异常错误重试态 -->
<view class="state-empty-wrap" v-else-if="loadError && !list.length">
@@ -156,8 +141,9 @@
<view class="list" v-else-if="list.length">
<view
class="order-card clickable-hover"
v-for="o in list"
v-for="(o, idx) in list"
:key="o.id"
:style="idx < 6 ? { animationDelay: (idx * 45) + 'ms' } : null"
@tap="goDetail(o)"
>
<!-- 卡片头部:服务标签 + 标题 + 预计到手报酬 -->
@@ -346,6 +332,7 @@
} from '@/utils/location.js';
import YjyfNavBar from '@/components/YjyfNavBar.vue';
import YjyfRefreshScroll from '@/components/YjyfRefreshScroll.vue';
import MasterHallLoader from '@/components/master/MasterHallLoader.vue';
const list = ref([]);
const info = ref(null);
@@ -353,6 +340,7 @@
const loading = ref(false);
const loadingMore = ref(false);
const loadError = ref('');
const hasCompletedFirstLoad = ref(false);
const page = ref(1);
const hasMore = ref(false);
const coords = ref({ lat: '', lng: '' });
@@ -363,6 +351,8 @@
const serverLocationSource = ref('none');
const requestingLocation = ref(false);
const initializingLocation = ref(false);
const showInitialLoader = computed(() => (loading.value || initializingLocation.value) && !list.value.length);
const loaderStage = computed(() => initializingLocation.value ? 'location' : 'fetching');
const hasCoords = computed(() => Boolean(coords.value.lat && coords.value.lng));
const locBarText = computed(() => {
if (hasCoords.value) {
@@ -731,6 +721,7 @@
async function fetchHallList() {
const seq = ++loadSeq;
const startAt = Date.now();
loading.value = true;
loadError.value = '';
page.value = 1;
@@ -741,6 +732,18 @@
]);
if (seq !== loadSeq) return;
if (!hasCompletedFirstLoad.value) {
const elapsed = Date.now() - startAt;
const minDuration = 520;
if (elapsed < minDuration) {
await new Promise((resolve) => {
const t = setTimeout(resolve, minDuration - elapsed);
timers.push(t);
});
if (seq !== loadSeq) return;
}
}
if (meResult.status === 'fulfilled' && meResult.value) {
const meRes = meResult.value;
if (!meRes.applied || meRes.master?.verify_status !== 'pass') {
@@ -774,6 +777,7 @@
}
} finally {
if (seq === loadSeq) {
hasCompletedFirstLoad.value = true;
loading.value = false;
}
}
@@ -1137,67 +1141,7 @@
flex-shrink: 0;
}
/* 4. 骨架屏 */
.skeleton-list {
padding: 20rpx $yjyf-space-md $yjyf-space-lg;
}
.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;
}
.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-bd {
display: flex;
gap: 20rpx;
margin-bottom: 20rpx;
}
.sk-thumb {
width: 156rpx;
height: 156rpx;
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: 28rpx;
border-radius: 8rpx;
}
.sk-btn {
width: 180rpx;
height: 64rpx;
border-radius: $yjyf-radius-pill;
}
.w24 { width: 24%; }
.w40 { width: 40%; }
.w55 { width: 55%; }
.w60 { width: 60%; }
.w80 { width: 80%; }
.w95 { width: 95%; }
/* 5. 抢单卡片列表 */
/* 4. 抢单卡片列表 */
.list {
padding: 20rpx $yjyf-space-md $yjyf-space-lg;
}
@@ -1215,6 +1159,17 @@
padding: $yjyf-space-md;
margin-bottom: $yjyf-space-md;
box-shadow: $yjyf-shadow-card;
animation: orderCardEnter 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes orderCardEnter {
from {
opacity: 0;
transform: translateY(16rpx);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.card-hd {
display: flex;