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 次删除

查看文件

@@ -106,7 +106,7 @@
import { ref, computed } from 'vue';
import { onShow } from '@dcloudio/uni-app';
import { ICONS } from '@/common/icons.js';
import { getCurrentThemeKey } from '@/common/theme.js';
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
import { getNavBarInfo } from '@/common/nav.js';
import { getMarketingCoupons, claimCoupon, getMyCoupons } from '@/common/api.js';
@@ -215,6 +215,7 @@ const handleBack = () => {
onShow(() => {
navInfo.value = getNavBarInfo();
currentThemeKey.value = getCurrentThemeKey();
applyThemeToNativeUI(currentThemeKey.value);
reloadAll();
});
</script>

查看文件

@@ -1487,23 +1487,31 @@ const navTo = (url) => {
margin-bottom: 28rpx;
overflow: hidden;
box-shadow: 0 8rpx 28rpx rgba(99, 102, 241, 0.35);
background: transparent;
&::before {
content: '';
position: absolute;
inset: -50%;
left: 50%;
top: 50%;
width: 900rpx;
height: 900rpx;
margin-left: -450rpx;
margin-top: -450rpx;
background: conic-gradient(from 0deg, transparent 0%, #6366F1 25%, #10B981 50%, #6366F1 75%, transparent 100%);
animation: glowSpin 5s linear infinite;
animation: glowSpin 4s linear infinite;
z-index: 0;
pointer-events: none;
}
&::after {
content: '';
position: absolute;
inset: 2rpx;
inset: 3rpx;
background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 100%);
border-radius: 22rpx;
z-index: 1;
pointer-events: none;
}
.role-content {
@@ -2019,17 +2027,19 @@ const navTo = (url) => {
}
.role-switch-card, .identity-banner {
background-color: #FFFFFF;
border: 1px solid #F0ECE4;
box-shadow: 0 4rpx 20rpx rgba(234, 88, 12, 0.12);
background: transparent;
border: none;
box-shadow: 0 6rpx 24rpx rgba(234, 88, 12, 0.18);
&::after {
background: linear-gradient(135deg, #FFFFFF 0%, #FDFBF7 100%);
background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF9 100%);
border-radius: 22rpx;
inset: 3rpx;
}
&::before {
background: conic-gradient(from 0deg, transparent 0%, #EA580C 25%, #F59E0B 50%, #EA580C 75%, transparent 100%);
animation: glowSpin 4s linear infinite;
}
.role-content .role-left {
@@ -3056,6 +3066,24 @@ const navTo = (url) => {
}
}
}
@keyframes glowSpin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@-webkit-keyframes glowSpin {
0% {
-webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
}
}
</style>

查看文件

@@ -73,7 +73,7 @@
import { ref, computed } from 'vue';
import { onShow } from '@dcloudio/uni-app';
import { ICONS } from '@/common/icons.js';
import { getCurrentThemeKey } from '@/common/theme.js';
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
import { getNavBarInfo } from '@/common/nav.js';
import { getNotifications, markNotificationsRead } from '@/common/api.js';
@@ -206,6 +206,7 @@ const handleBack = () => {
onShow(() => {
navInfo.value = getNavBarInfo();
currentThemeKey.value = getCurrentThemeKey();
applyThemeToNativeUI(currentThemeKey.value);
loadData();
});
</script>