From 8b6ba283200288a2091be8bd243cf63288752da4 Mon Sep 17 00:00:00 2001 From: Jimmy Liow <18777396951@163.com> Date: Tue, 9 May 2023 15:49:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=94=A8=E6=88=B7=E7=99=BB?= =?UTF-8?q?=E5=87=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/Auth.js | 4 ++++ src/views/App.jsx | 17 ++++------------- src/views/account/Profile.jsx | 16 ++++++---------- 3 files changed, 14 insertions(+), 23 deletions(-) diff --git a/src/stores/Auth.js b/src/stores/Auth.js index 2ca2fd1..a8d14e7 100644 --- a/src/stores/Auth.js +++ b/src/stores/Auth.js @@ -40,6 +40,8 @@ class Auth { username: json.Result.LoginName, travelAgencyId: json.Result.LMI_VEI_SN, travelAgencyName: json.Result.VName, + telephone: json.Result.LkPhone, + emailAddress: json.Result.LMI_listmail, cityId: json.Result.citysn } }); @@ -72,6 +74,8 @@ class Auth { username: 'Vu Xuan Giang', travelAgencyId: 32531, //30008供应商id对应HT的VEI_SN travelAgencyName: 'ANP', + telephone: '000', + emailAddress: 'abc@123.com', cityId: 0 } } diff --git a/src/views/App.jsx b/src/views/App.jsx index 4f1a1c1..e64af33 100644 --- a/src/views/App.jsx +++ b/src/views/App.jsx @@ -10,27 +10,18 @@ import { useStore } from "@/stores/StoreContext.js"; const { Header, Content, Footer } = Layout; const items = [ { - label: ( - Change password - ), + label: (Change password), key: "0", }, { - label: ( - - Profile - ), + label: (Profile), key: "1", }, { type: "divider", }, { - label: ( - - Logout - - ), + label: (Logout), key: "3", }, ]; @@ -69,7 +60,7 @@ function App() { Reservation }, { key: "/feedback", label: Feedback }, diff --git a/src/views/account/Profile.jsx b/src/views/account/Profile.jsx index 89900c2..81366b6 100644 --- a/src/views/account/Profile.jsx +++ b/src/views/account/Profile.jsx @@ -1,23 +1,19 @@ -import { Descriptions, Space, Form, Col, Row, Typography, App } from 'antd'; +import { Descriptions, Col, Row } from 'antd'; import { useStore } from '@/stores/StoreContext.js'; -const { Title } = Typography; - function Profile() { const { authStore } = useStore(); - const { notification } = App.useApp(); + const { login } = authStore; return ( - Bruce Li - Tel:029-85360679 Mobile:13991970308/13310981198 - lizhi@citsxa.com - - XIAN CITS - + {login.username} + {login.telephone} + {login.emailAddress} + {login.travelAgencyName}