/recharge 新增为公共页面

This commit is contained in:
tianfeng 2025-09-08 17:44:09 +08:00
parent de3a47b4c9
commit f34149ff83
3 changed files with 4 additions and 11 deletions

View File

@ -2,7 +2,7 @@ import { get, post } from "../utils/http.js";
export const searchUser = async (userId) => {
try {
const response = await get(`/user/user-profile/search?account=${userId}`);
const response = await get(`/user/user-profile/open-search?account=${userId}`);
return response;
} catch (error) {
console.error("Failed to fetch search user:", error);

View File

@ -399,7 +399,9 @@ class RouteGuard {
PAGES.APPLY, // 申请页面 - 重要:申请页面不需要权限检查
PAGES.NOT_APP, // 错误页面 - APP连接失败时的页面
'/404', // 404页面
'/error' // 通用错误页面
'/error', // 通用错误页面
'/recharge',
'/recharge-freight-agent'
]
return publicPages.includes(path);
}

View File

@ -157,15 +157,6 @@ const closedPopup = () => {
dialogshow.value = false;
};
//
usePageInitializationWithConfig('RECHARGE', {
needsBankBalance: false,
needsWorkStatistics: false,
needsTeamInfo: false,
needsRouteGuard: true,
})
const targetUserId = ref("");
const checkUserId = async () => {