fix(home): 即时匹配改为真实在线大神实时匹配,优化弹窗按钮与暖色主题对比度
- 每次匹配重新拉取 /api/companions,只匹配 user_id>0(真实注册)、接单中、排除当前用户的大神 - 换一位优先避开上一位,解决长期固定命中种子大神(林深见鹿 userId=0)的问题 - 弹窗更名为「在线大神即时匹配」,按钮改为「换一位 / 查看资料并预约」,补充图标、尺寸与暖色主题对比 - 关闭弹窗取消未完成匹配;117 套件/765 用例全绿
这个提交包含在:
@@ -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>
|
||||
|
||||
在新工单中引用
屏蔽一个用户