From b5abdb088728210475af6fe73a515c2a24f7c5ba Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Thu, 11 Sep 2025 16:08:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=80=BB=E8=BE=91=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/all/login.ts | 12 +- src/assets/svg/svg-organization.svg | 12 + .../components/right-side/img/admin.png | Bin 0 -> 548 bytes .../navbar/components/right-side/index.vue | 140 +++++++++-- src/stores/modules/user/index.ts | 236 +++++++++--------- src/utils/user.ts | 13 +- .../login/components/login-form/index.vue | 6 +- .../login/components/register-form/index.vue | 6 +- src/views/trial/index.vue | 7 +- 9 files changed, 279 insertions(+), 153 deletions(-) create mode 100644 src/assets/svg/svg-organization.svg create mode 100644 src/layouts/components/navbar/components/right-side/img/admin.png diff --git a/src/api/all/login.ts b/src/api/all/login.ts index 615e5fa..b612588 100644 --- a/src/api/all/login.ts +++ b/src/api/all/login.ts @@ -44,7 +44,7 @@ export const fetchBindPhone = (params = {}) => { }; // 根据id获取企业信息 -export const fetchEnterpriseInfo = (id: number) => { +export const fetchEnterpriseInfo = (id: number | string) => { return Http.get(`/v1/enterprises/${id}`); }; @@ -59,22 +59,22 @@ export const postRegister = (params = {}) => { }; // 发送注册验证码 -export const postRegisterCaptcha = (params = {}) => { +export const postRegisterCaptcha = (params = {}) => { return Http.post('/v1/sms/register-captcha', params); }; // 发送忘记密码验证码 -export const postForgetPasswordCaptcha = (params = {}) => { +export const postForgetPasswordCaptcha = (params = {}) => { return Http.post('/v1/sms/forget-password-captcha', params); }; // 忘记密码 -export const postForgetPassword = (params = {}) => { +export const postForgetPassword = (params = {}) => { return Http.post('/v1/users/forget-password', params); }; // 创建企业 -export const postCreateEnterprises = (params = {}) => { +export const postCreateEnterprises = (params = {}) => { return Http.post('/v1/enterprises', params); }; @@ -86,4 +86,4 @@ export const getMyEnterprises = () => { // 获取我的主企业信息 export const getMyPrimaryEnterprise = () => { return Http.get('/v1/me/primary-enterprise'); -}; \ No newline at end of file +}; diff --git a/src/assets/svg/svg-organization.svg b/src/assets/svg/svg-organization.svg new file mode 100644 index 0000000..94bbbb2 --- /dev/null +++ b/src/assets/svg/svg-organization.svg @@ -0,0 +1,12 @@ + + + + + + + + + + diff --git a/src/layouts/components/navbar/components/right-side/img/admin.png b/src/layouts/components/navbar/components/right-side/img/admin.png new file mode 100644 index 0000000000000000000000000000000000000000..d0826d9e7357e3c9af3e0689ce49f57997d7fe0d GIT binary patch literal 548 zcmV+<0^9wGP)qgcE=#2#C6cBTyx-@dj{&9D%(|+U@})nM?$fjm4|V zg8sbMlk^(^{yWeW?9`~Bb=*LL0vrKCibik#VD}yPnl5u4h z>Q4wyB^O8!pE|VTDS?M7g@Dw6--58ws_L;*pdC;zChEXn!6L%7`-wYp0_wv#LDU_+ zdjqu*J;UTS5X~u!0Iy@@s_}fhl84W^$`ZipJMR?O^caD)k4+~DgV!$79#-tQ#3YwT z?rnRF!0Qy31T12cXqvMxijwCe@ADWpB__F;YwSMZ+KH!(c30IMMHpJsL_AGd40Ipp zzJ#7lRX$x^_D z!*nB*k_Kws(AYsfw8^)_xzP$@dAHZ;YMPjtDC72z(M(lbJU--r*RP(r^w_25Jn0eT z8`bl8R9-?pD&LNEM7Kv0TwO)7D+(+ST_DR m00l=N&uDON$m@~^E(%{bXv*dpaTR6&0000 - + - + @@ -23,7 +32,7 @@ - + @@ -34,20 +43,68 @@ - - + - {{ item.name }} - - - + + {{ item.name }} + + + + + + + + + + + 创建企业账号 + + 申请中 + + + + + + + + + + + + + {{ + _map.get(item.subscribe_status)?.label + }} + + + + + + + + + + + + + 创建企业账号 + + + @@ -70,8 +127,7 @@