diff --git a/src/components/NTRPPopupGuide/index.tsx b/src/components/NTRPPopupGuide/index.tsx
index 426aade..84b71cc 100644
--- a/src/components/NTRPPopupGuide/index.tsx
+++ b/src/components/NTRPPopupGuide/index.tsx
@@ -40,7 +40,7 @@ function NtrpPopupGuide(props: {
{/* avatar side */}
diff --git a/src/components/NTRPTestEntryCard/index.tsx b/src/components/NTRPTestEntryCard/index.tsx
index 879e112..fcdca0b 100644
--- a/src/components/NTRPTestEntryCard/index.tsx
+++ b/src/components/NTRPTestEntryCard/index.tsx
@@ -90,7 +90,7 @@ function NTRPTestEntryCard(props: {
{/* avatar side */}
@@ -119,7 +119,7 @@ function NTRPTestEntryCard(props: {
{/* avatar side */}
diff --git a/src/components/UserInfo/index.tsx b/src/components/UserInfo/index.tsx
index 6e5f69f..0fa731e 100644
--- a/src/components/UserInfo/index.tsx
+++ b/src/components/UserInfo/index.tsx
@@ -231,7 +231,7 @@ export const UserInfoCard: React.FC = ({
{/* 头像和基本信息 */}
-
+
{user_info.nickname}
@@ -331,7 +331,12 @@ export const UserInfoCard: React.FC = ({
)}
) : is_current_user && user_info.gender !== "2" ? (
- { handle_open_edit_modal('gender') }}>
+ {
+ handle_open_edit_modal("gender");
+ }}
+ >
选择性别
) : null}
@@ -340,16 +345,28 @@ export const UserInfoCard: React.FC = ({
{`NTRP ${user_info.ntrp_level}`}
) : is_current_user ? (
- { handle_open_edit_modal('ntrp_level') }}>
+ {
+ handle_open_edit_modal("ntrp_level");
+ }}
+ >
测测你的NTRP水平
) : null}
{user_info.occupation ? (
- {user_info.occupation.split(" ")[1]}
+
+ {user_info.occupation.split(" ")[1]}
+
) : is_current_user ? (
- { handle_open_edit_modal('occupation') }}>
+ {
+ handle_open_edit_modal("occupation");
+ }}
+ >
选择职业
) : null}
@@ -358,7 +375,10 @@ export const UserInfoCard: React.FC = ({
{`${user_info.province}${user_info.city}`}
) : is_current_user ? (
- handle_open_edit_modal('location')}>
+ handle_open_edit_modal("location")}
+ >
选择地区
) : null}
@@ -601,8 +621,9 @@ export const GameTabs: React.FC = ({
{hosted_text}
on_tab_change("participated")}
>
{participated_text}
diff --git a/src/other_pages/ntrp-evaluate/index.tsx b/src/other_pages/ntrp-evaluate/index.tsx
index 38bb760..2fc86fc 100644
--- a/src/other_pages/ntrp-evaluate/index.tsx
+++ b/src/other_pages/ntrp-evaluate/index.tsx
@@ -176,7 +176,7 @@ function Intro() {
{/* avatar side */}
diff --git a/src/user_pages/edit/index.tsx b/src/user_pages/edit/index.tsx
index a4e43bb..988258a 100644
--- a/src/user_pages/edit/index.tsx
+++ b/src/user_pages/edit/index.tsx
@@ -9,7 +9,7 @@ import { clear_login_state } from "@/services/loginService";
import { convert_db_gender_to_display } from "@/utils/genderUtils";
import { EditModal } from "@/components";
import img from "@/config/images";
-import CommonDialog from '@/components/CommonDialog'
+import CommonDialog from "@/components/CommonDialog";
const EditProfilePage: React.FC = () => {
// 用户信息状态
@@ -309,7 +309,7 @@ const EditProfilePage: React.FC = () => {
// 注销账户
const handle_close_account = () => {
setShowLogoutDialog(true);
- }
+ };
const onGetPhoneNumber = async (e) => {
if (!e.detail || !e.detail.code) {
@@ -362,7 +362,11 @@ const EditProfilePage: React.FC = () => {
{/* 头像编辑区域 */}
-
+
{
visible={showLogoutDialog}
cancelText="确定注销"
confirmText="再想想"
- onCancel={() => {UserService.logout()}}
+ onCancel={() => {
+ UserService.logout();
+ }}
onConfirm={() => setShowLogoutDialog(false)}
contentTitle="确定要注销账号吗?"
contentDesc="你的账号将会彻底删除,该操作不可恢复。"