diff --git a/pages/mine/index.vue b/pages/mine/index.vue index b3fc6a9..1d9abf2 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -1,64 +1,134 @@ - diff --git a/static/font/iconfont.css b/static/font/iconfont.css index afd7102..6da3667 100644 --- a/static/font/iconfont.css +++ b/static/font/iconfont.css @@ -12,79 +12,31 @@ -moz-osx-font-smoothing: grayscale; } -.icon-user:before { - content: "\e7ae"; +.icon-lishixinxi:before { + content: "\e67d"; } -.icon-password:before { - content: "\e8b2"; +.icon-caogao1:before { + content: "\e600"; } -.icon-code:before { - content: "\e699"; +.icon-caogao:before { + content: "\e653"; } -.icon-setting:before { - content: "\e6cc"; +.icon-dianhua:before { + content: "\e614"; } -.icon-share:before { - content: "\e739"; +.icon-weixin:before { + content: "\e637"; } -.icon-edit:before { - content: "\e60c"; +.icon-qq:before { + content: "\e6ca"; } -.icon-version:before { - content: "\e63f"; -} - -.icon-service:before { - content: "\e6ff"; -} - -.icon-friendfill:before { - content: "\e726"; -} - -.icon-community:before { - content: "\e741"; -} - -.icon-people:before { - content: "\e736"; -} - -.icon-dianzan:before { - content: "\ec7f"; -} - -.icon-right:before { - content: "\e7eb"; -} - -.icon-logout:before { - content: "\e61d"; -} - -.icon-help:before { - content: "\e616"; -} - -.icon-github:before { - content: "\e628"; -} - -.icon-aixin:before { - content: "\e601"; -} - -.icon-clean:before { - content: "\e607"; -} - -.icon-refresh:before { - content: "\e604"; +.icon-lanqi:before { + content: "\e63b"; } diff --git a/static/font/iconfont.ttf b/static/font/iconfont.ttf index 53915ca..e6cc38b 100644 Binary files a/static/font/iconfont.ttf and b/static/font/iconfont.ttf differ diff --git a/store/modules/user.js b/store/modules/user.js index f9c1059..2285014 100644 --- a/store/modules/user.js +++ b/store/modules/user.js @@ -11,6 +11,8 @@ const user = { state: { token: getToken(), name: storage.get(constant.name), + nickName: storage.get(constant.nickName), + sex: storage.get(constant.sex), avatar: storage.get(constant.avatar), roles: storage.get(constant.roles), permissions: storage.get(constant.permissions), @@ -24,6 +26,14 @@ const user = { state.name = name; storage.set(constant.name, name); }, + SET_SEX: (state, sex) => { + state.sex = sex; + storage.set(constant.sex, sex); + }, + SET_NICKNAME: (state, nickName) => { + state.nickName = nickName; + storage.set(constant.nickName, nickName); + }, SET_AVATAR: (state, avatar) => { state.avatar = avatar; storage.set(constant.avatar, avatar); @@ -128,7 +138,9 @@ const user = { commit("SET_ROLES", ["ROLE_DEFAULT"]); } commit("SET_NAME", username); + commit("SET_NICKNAME", user.nickName); commit("SET_AVATAR", avatar); + commit("SET_SEX", user.sex); resolve(res); }) .catch((error) => {