feat: 修改图片样式为aspectFill
This commit is contained in:
@@ -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 = () => {
|
||||
{/* 头像编辑区域 */}
|
||||
<View className="avatar_section">
|
||||
<View className="avatar_container" onClick={handle_avatar_upload}>
|
||||
<Image className="avatar" src={user_info.avatar} />
|
||||
<Image
|
||||
className="avatar"
|
||||
src={user_info.avatar}
|
||||
mode="aspectFill"
|
||||
/>
|
||||
<View className="avatar_overlay">
|
||||
<Image
|
||||
className="upload_icon"
|
||||
@@ -699,7 +703,9 @@ const EditProfilePage: React.FC = () => {
|
||||
visible={showLogoutDialog}
|
||||
cancelText="确定注销"
|
||||
confirmText="再想想"
|
||||
onCancel={() => {UserService.logout()}}
|
||||
onCancel={() => {
|
||||
UserService.logout();
|
||||
}}
|
||||
onConfirm={() => setShowLogoutDialog(false)}
|
||||
contentTitle="确定要注销账号吗?"
|
||||
contentDesc="你的账号将会彻底删除,该操作不可恢复。"
|
||||
|
||||
Reference in New Issue
Block a user