fix(home): 即时匹配改为真实在线大神实时匹配,优化弹窗按钮与暖色主题对比度

- 每次匹配重新拉取 /api/companions,只匹配 user_id>0(真实注册)、接单中、排除当前用户的大神

- 换一位优先避开上一位,解决长期固定命中种子大神(林深见鹿 userId=0)的问题

- 弹窗更名为「在线大神即时匹配」,按钮改为「换一位 / 查看资料并预约」,补充图标、尺寸与暖色主题对比

- 关闭弹窗取消未完成匹配;117 套件/765 用例全绿
这个提交包含在:
xcbyy
2026-10-22 18:14:51 +08:00
父节点 cf88efbe18
当前提交 b573c1ed05
共有 8 个文件被更改,包括 180 次插入 和 41 次删除

查看文件

@@ -468,7 +468,7 @@ import { onShow } from '@dcloudio/uni-app';
import { ICONS } from '@/common/icons.js';
import { openSupportSheet } from '@/common/support.js';
import { isExpertCertified } from '@/common/role.js';
import { getCurrentThemeKey } from '@/common/theme.js';
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
import {
queryCheckinCode,
universalVerifyCheckin,
@@ -670,6 +670,7 @@ const playVoice = () => {
};
onUnmounted(() => {
uni.$off('theme-change', onThemeChanged);
stopVoiceTimer();
try { if (recorderManager && voiceRecording.value) recorderManager.stop(); } catch (_) {}
try { if (voiceAudioCtx) { voiceAudioCtx.destroy(); voiceAudioCtx = null; } } catch (_) {}
@@ -887,7 +888,15 @@ const loadWorkspaceOrders = async () => {
}
};
const onThemeChanged = (key) => {
currentThemeKey.value = key;
applyThemeToNativeUI(key);
};
onMounted(() => {
currentThemeKey.value = getCurrentThemeKey();
applyThemeToNativeUI(currentThemeKey.value);
uni.$on('theme-change', onThemeChanged);
if (isExpertCertified()) {
loadWorkspaceOrders();
}
@@ -895,6 +904,7 @@ onMounted(() => {
onShow(() => {
currentThemeKey.value = getCurrentThemeKey();
applyThemeToNativeUI(currentThemeKey.value);
if (!isExpertCertified()) {
uni.showToast({
title: '非认证大神禁止访问工作台',