..
This commit is contained in:
@@ -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<UserInfoCardProps> = ({
|
||||
}
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user