From 1882e5b4a482872d79da1c3c39ab19969b83c841 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Sun, 28 Sep 2025 17:00:35 +0800 Subject: [PATCH] =?UTF-8?q?style(=E4=B8=BB=E6=92=AD=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=20=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/HostSettingView.vue | 173 ++++++++++++++-------------------- 1 file changed, 71 insertions(+), 102 deletions(-) diff --git a/src/views/HostSettingView.vue b/src/views/HostSettingView.vue index 179016e..e230879 100644 --- a/src/views/HostSettingView.vue +++ b/src/views/HostSettingView.vue @@ -2,24 +2,43 @@
-
+
-
-
-

My Agent

- 🏢 Agency +
+
+
My Agent
+
-
-
-
- {{ userInfo.name.charAt(0) }} +
+ +
+ +
+
+ {{ userInfo.name }} +
+
ID: {{ userInfo.id }}
-
-

{{ userInfo.name }}

-

ID: {{ userInfo.id }}

-
- +
+ +
+
Leave
@@ -31,16 +50,22 @@ import { reactive } from 'vue' import { useRouter } from 'vue-router' import MobileHeader from '../components/MobileHeader.vue' -import {showError} from "@/utils/toast.js"; +import { showError } from '@/utils/toast.js' const router = useRouter() // 用户信息 const userInfo = reactive({ name: 'User1', - id: '1234567890' + id: '1234567890', }) +const defaultAvatarUrl = (e) => { + console.log('头像资源出错') + e.target.onerror = null //防止循环 + e.target.src = new URL('/src/assets/images/WeeklyStar/defaultAvatar.png', import.meta.url).href +} + // 方法 const leaveAgent = () => { if (confirm('Are you sure you want to leave this agent?')) { @@ -51,100 +76,44 @@ const leaveAgent = () => {