diff --git a/src/api/all/login.ts b/src/api/all/login.ts index b612588..0277606 100644 --- a/src/api/all/login.ts +++ b/src/api/all/login.ts @@ -87,3 +87,8 @@ export const getMyEnterprises = () => { export const getMyPrimaryEnterprise = () => { return Http.get('/v1/me/primary-enterprise'); }; + +// 发送修改手机号验证码 +export const postUpdateMobileCaptcha = (params = {}) => { + return Http.post('/v1/sms/update-mobile-captcha', params); +}; diff --git a/src/styles/components/ant-modal.scss b/src/styles/components/ant-modal.scss index 47fc5ee..77b65de 100644 --- a/src/styles/components/ant-modal.scss +++ b/src/styles/components/ant-modal.scss @@ -17,7 +17,7 @@ color: #211f24; font-size: 16px; font-style: normal; - font-weight: 400; + font-weight: 500; justify-content: flex-start; } } diff --git a/src/views/components/management/person/components/change-mobile-modal/index.vue b/src/views/components/management/person/components/change-mobile-modal/index.vue new file mode 100644 index 0000000..74d474a --- /dev/null +++ b/src/views/components/management/person/components/change-mobile-modal/index.vue @@ -0,0 +1,200 @@ + + + + + + + + + + + + {{ countdown > 0 ? `${countdown}s` : hasGetCode ? '重新发送' : '发送验证码' }} + + + + + + + 取消 + 确定 + + + + + + + diff --git a/src/views/components/management/person/components/change-name-modal/index.vue b/src/views/components/management/person/components/change-name-modal/index.vue new file mode 100644 index 0000000..4435ce5 --- /dev/null +++ b/src/views/components/management/person/components/change-name-modal/index.vue @@ -0,0 +1,79 @@ + + + + + + + + + 取消 + 确定 + + + + + + + diff --git a/src/views/components/management/person/components/safety-verification-modal/index.vue b/src/views/components/management/person/components/safety-verification-modal/index.vue new file mode 100644 index 0000000..9bf3be8 --- /dev/null +++ b/src/views/components/management/person/components/safety-verification-modal/index.vue @@ -0,0 +1,171 @@ + + + + + 安全验证 + 为进一步保证您的账号安全,确保为您本人操作,请先完成安全验证 + + + + + 请输入发送至 + {{ formattedPhone }} + 的短信验证码 + + + + + + + + + + {{ countdown }}秒后可以再次发送验证码 + 发送验证码 + + + + + 确认验证 + 取消 + + + + + + + + diff --git a/src/views/components/management/person/components/safety-verification-modal/style.scss b/src/views/components/management/person/components/safety-verification-modal/style.scss new file mode 100644 index 0000000..911f337 --- /dev/null +++ b/src/views/components/management/person/components/safety-verification-modal/style.scss @@ -0,0 +1,110 @@ +.safety-verification-modal { + .modal-content { + padding: 24px; + text-align: center; + + .description { + margin-bottom: 24px; + + .title-text { + font-size: 18px; + font-weight: 500; + color: #211f24; + margin-bottom: 8px; + } + + .desc-text { + font-size: 14px; + color: #737478; + line-height: 20px; + } + } + + .verify-section { + margin-bottom: 24px; + + .phone-info { + display: flex; + justify-content: center; + align-items: center; + margin-bottom: 16px; + + .label { + font-size: 14px; + color: #737478; + } + + .phone-number { + font-size: 14px; + font-weight: 500; + color: #211f24; + margin: 0 8px; + } + } + + .captcha-input { + margin-bottom: 16px; + + .input-group { + display: flex; + justify-content: center; + + .captcha-input-field { + width: 200px; + height: 40px; + border-radius: 4px; + border: 1px solid var(--BG-400, rgba(215, 215, 217, 1)); + + &:focus { + border-color: var(--Brand-Brand-6, rgba(109, 76, 254, 1)); + box-shadow: 0 2px 4px 0 rgba(109, 76, 254, 0.2); + } + } + } + } + + .countdown { + font-size: 14px; + color: #737478; + margin-bottom: 16px; + + .countdown-text { + color: #737478; + } + + .resend-btn { + color: var(--Brand-Brand-6, rgba(109, 76, 254, 1)); + cursor: pointer; + font-weight: 500; + transition: color 0.2s; + + &:hover { + color: var(--Brand-Brand-7, rgba(95, 67, 238, 1)); + } + } + } + } + + .action-buttons { + display: flex; + justify-content: center; + gap: 16px; + + .arco-btn { + min-width: 100px; + height: 40px; + } + + .arco-btn-primary { + background-color: var(--Brand-Brand-6, rgba(109, 76, 254, 1)); + border-color: var(--Brand-Brand-6, rgba(109, 76, 254, 1)); + color: white; + + &:hover { + background-color: var(--Brand-Brand-7, rgba(95, 67, 238, 1)); + border-color: var(--Brand-Brand-7, rgba(95, 67, 238, 1)); + } + } + } + } +} diff --git a/src/views/components/management/person/img/icon1.png b/src/views/components/management/person/img/icon1.png new file mode 100644 index 0000000..4d5b26d Binary files /dev/null and b/src/views/components/management/person/img/icon1.png differ diff --git a/src/views/components/management/person/index.vue b/src/views/components/management/person/index.vue index 8378458..0892b47 100644 --- a/src/views/components/management/person/index.vue +++ b/src/views/components/management/person/index.vue @@ -1,26 +1,55 @@ - + 个人信息 - - - - - - {{ record.name || '-' }} - + + + + + + + + 昵称: + {{ dataSource.name || '-' }} + 编辑 + + + + 手机号: + {{ mobile }} + 更改 - - - - - {{ record.mobile.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') }} - - - - - - - + + 密码: + + 更改 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
安全验证
为进一步保证您的账号安全,确保为您本人操作,请先完成安全验证
个人信息