From ec87be99dbf72538b465d7cc3e01d8809268ab44 Mon Sep 17 00:00:00 2001 From: Ultrame <1019265060@qq.com> Date: Thu, 4 Dec 2025 11:39:33 +0800 Subject: [PATCH] .. --- src/components/UserInfo/index.tsx | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/components/UserInfo/index.tsx b/src/components/UserInfo/index.tsx index fd7bfdc..507ab3e 100644 --- a/src/components/UserInfo/index.tsx +++ b/src/components/UserInfo/index.tsx @@ -8,7 +8,11 @@ import { UserService, PickerOption } from "@/services/userService"; import { PopupPicker } from "@/components/Picker/index"; import { useUserActions, useNicknameChangeStatus } from "@/store/userStore"; import { UserInfoType } from "@/services/userService"; -import { useCities, useProfessions, useNtrpLevels } from "@/store/pickerOptionsStore"; +import { + useCities, + useProfessions, + useNtrpLevels, +} from "@/store/pickerOptionsStore"; import { formatNtrpDisplay } from "@/utils/helper"; import { useGlobalState } from "@/store/global"; import evaluateService from "@/services/evaluateService"; @@ -187,13 +191,13 @@ const UserInfoCardComponent: React.FC = ({ } if (field === "nickname") { if (!is_current_user) return; - // if (!nickname_change_status.can_change) { - // return Taro.showToast({ - // title: `30天内仅可修改4次昵称,${nickname_change_status.next_period_start_date}后可修改`, - // icon: "none", - // duration: 2000, - // }); - // } + if (!nickname_change_status.can_change) { + return Taro.showToast({ + title: `30天内仅可修改4次昵称,${nickname_change_status.next_period_start_date}后可修改`, + icon: "none", + duration: 2000, + }); + } // 手动输入 setShowGuideBar(false); setEditingField(field);