From 6461cb30979d39b5c3208440860137122ad870aa Mon Sep 17 00:00:00 2001
From: ggy <2694732783@qq.com>
Date: Mon, 6 May 2024 16:11:42 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A1=B5=E9=9D=A2=E6=A0=B7?=
=?UTF-8?q?=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/login.js | 7 ++
pages.json | 9 ++-
pages/loginInfo/login.vue | 12 ++--
pages/mine/index.vue | 8 ++-
pages/mine/info/index.vue | 68 +++++++++---------
pages/mine/info/userInfo.vue | 131 +++++++++++++++++++++++++++++++++++
static/font/iconfont.css | 9 ++-
static/font/iconfont.ttf | Bin 5376 -> 5648 bytes
store/index.js | 3 +-
store/modules/userInfo.js | 111 +++++++++++++++++++++++++++++
10 files changed, 315 insertions(+), 43 deletions(-)
create mode 100644 pages/mine/info/userInfo.vue
create mode 100644 store/modules/userInfo.js
diff --git a/api/login.js b/api/login.js
index 6ce7e7c..d6df800 100644
--- a/api/login.js
+++ b/api/login.js
@@ -37,7 +37,14 @@ export function getInfo() {
'method': 'get'
})
}
+//获取最详细的用户数据
+export function getUserInfo() {
+ return request({
+ 'url': '/system/userinfo/getInfo',
+ 'method': 'get'
+ })
+}
// 退出方法
export function logout() {
return request({
diff --git a/pages.json b/pages.json
index 00977c4..f898dcc 100644
--- a/pages.json
+++ b/pages.json
@@ -50,7 +50,14 @@
"style": {
"navigationBarTitleText": "编辑资料"
}
- }, {
+ },
+ {
+ "path": "pages/mine/info/userInfo",
+ "style": {
+ "navigationBarTitleText": "编辑资料"
+ }
+ },
+ {
"path": "pages/mine/pwd/index",
"style": {
"navigationBarTitleText": "修改密码"
diff --git a/pages/loginInfo/login.vue b/pages/loginInfo/login.vue
index 3fafc6f..f4301f9 100644
--- a/pages/loginInfo/login.vue
+++ b/pages/loginInfo/login.vue
@@ -31,9 +31,9 @@
微信
-