新建store存储地区和职业picker选项

This commit is contained in:
2025-10-17 17:10:15 +08:00
parent f3ab0020d3
commit 9ef35267cf
4 changed files with 96 additions and 55 deletions

View File

@@ -10,9 +10,10 @@ import { TennisMatch } from "@/../types/list/types";
import { withAuth, NTRPTestEntryCard } from "@/components";
import { EvaluateScene } from "@/store/evaluateStore";
import { useUserInfo } from "@/store/userStore";
import { UserInfoType } from "@/services/userService";
import { usePickerOption } from "@/store/pickerOptionsStore";
const MyselfPage: React.FC = () => {
const pickerOption = usePickerOption();
// 获取页面参数
const instance = Taro.getCurrentInstance();
const user_id = instance.router?.params?.userid || "";
@@ -64,11 +65,10 @@ const MyselfPage: React.FC = () => {
// }
// };
// useEffect(() => {
// if (user_info.id) {
// load_game_data(); // 在 user_info 更新后调用
// }
// }, [user_info]);
useEffect(() => {
pickerOption.getCities();
pickerOption.getProfessions();
}, []);
// 页面加载时获取数据
// useEffect(() => {