From bd53f1f1bdefc431142f1a63e60ea0d1968e9d57 Mon Sep 17 00:00:00 2001 From: 26947 <12@1> Date: Mon, 6 May 2024 00:06:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=88=91=E7=9A=84=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mine/index.vue | 251 +++++++++++++++++++++++++++------------ static/font/iconfont.css | 76 +++--------- static/font/iconfont.ttf | Bin 6724 -> 5376 bytes store/modules/user.js | 12 ++ 4 files changed, 204 insertions(+), 135 deletions(-) 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 53915cafcb782962308dc5f2bea68bb528f84de4..e6cc38b828977280c5fdd5f3ce4f1b91161c5fc6 100644 GIT binary patch literal 5376 zcmd@&`)?e_dGpQ8?(BQ_Uc2|;y>)kdh&=MhyOl(VdYF34ie8pezaomFNVv^2U5LH#q4V{|-r)GlIDa1J zm!=n|R__19?|+dHY9a3J*@dUBzV-Y{NC=M;;`GeTOkJt{%UvIN{|#Gf4iVzt*>ebg z72A%v#kHFSW$P}={s8BNh2`m~=sOX##c@iai&HmO-~|0gq$eePX=-uCyR-L8NE$|) zvn$Kj*4{mR;tnD4+en`!=sUZ$b&EX0QR~(Q*CgiuTpbKzFMjGL#gDjqe?rW*E%N50 zkJyq^jwt(4uCbrTsYYm5UTV_l*9m%um&6))6S5_zcuBfJhRFn>lSfWnAkM&(@| zSIA$kll9ly`5^3{$uA(A^zprmN`vi&*}4aB<2rn38+QUBJ3DCfrlaFm5G$dbIARtM z&&gvr_wYu3v>aa#*T>h-uRpW?+7{;MgBav~?}E0Zlf}Ch7R4rDv=KDNs^wxyO+@1UXmJRdV=X8){J4t9 z>R2l%%RU^Hm`b%=av%}+gB%J@AnOpYG72>OEFzGDLjS^eI@PRh{CBn4titg^d2n+J ze$B8fV{_Rst(RUfEz5ktuxC$Jo?+!FTu9zF!0fC z9okXXF+C`TQMVOi9z>$83=@ECsL#(+9NH2%2|}^IH3R`2C-=KzO(M9RF=yJ%2t2G&DvxPt> zjk?1c#9-?kn2aTKmf4Q;)WAJxktf#<7K8>!YXS<9kCquS&-;k;oI)Txg&=$wYSrTA$<6+w?1zNs` zrM~Mq#T3uxMF4iDr(nd3aqCy@NYU5wS)Tr0hnf?~&3BQi$4hbRA{!lhb!FjlZr8yF z9(?HK(MH_i>z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+>P&+<$jV9+<^f-5!bW)Wb5j#G0mW^Q3f95ex(!>Jun9%*@_4npSSzpimoE7$%UhePTbs4R`>o}* z3mc2o!|vhzwsLi+vbE_Sj1L^5rplY;>LHn(i)%`)w(4K4Zk_i}0=@Fa#+HA(x^=F+ zT#K*QYTMcVezp$7$CtOxqj6M4WweND@VkQiXbD|{-wIkrTWAxls=u}0>)#5a*U$yD z0W+(=_w>WFZ-dcQIIL7uYJN0`;!uiwc+?b(+Ehn=csD!fBCMvs9&4~8KeQ@PIuFof zbAM&n$p*lFP#}AD4(Key=s1)EY}Pi)f`j(I%g^EXxXLH|H3ELDUhszUBQFVp4!keH z9Okir_1J)o*o4j40!iD7Td)n=u>(ukiMZvB^5UjYEw5I~JL}wH<(|qWzgDTOUs%$u zmp8Wgjjgq<3pK7 vY*uQQbmf&wjoVpYtg>;nT4i%hxTx8KZh32^th)fS_1lX(J9lqYR}lIi`?O|& 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) => {