diff --git a/public/resource/img/modalback.png b/public/resource/img/modalback.png new file mode 100644 index 0000000..0c18b8c Binary files /dev/null and b/public/resource/img/modalback.png differ diff --git a/src/api/sys/user.ts b/src/api/sys/user.ts index 5ed47e3..8363cac 100644 --- a/src/api/sys/user.ts +++ b/src/api/sys/user.ts @@ -23,6 +23,7 @@ enum Api { GetPermCode = '/sys/permission/getPermCode', //新加的获取图形验证码的接口 getInputCode = '/sys/randomImage', + randomCode = '/sys/randomInputCode', //获取短信验证码的接口 getCaptcha = '/sys/sms', //注册接口 @@ -114,6 +115,10 @@ export function getCodeInfo(currdatetime) { let url = Api.getInputCode + `/${currdatetime}`; return defHttp.get({ url: url }); } +export function randomCode(currdatetime) { + let url = Api.randomCode + `/${currdatetime}`; + return defHttp.get({ url: url }); +} /** * @description: 获取短信验证码 */ diff --git a/src/components/Modal/src/index.less b/src/components/Modal/src/index.less index d39a0bc..03f9226 100644 --- a/src/components/Modal/src/index.less +++ b/src/components/Modal/src/index.less @@ -47,6 +47,9 @@ .ant-modal-body { padding: 0; + background: url(../resource/img/modalback.png); + background-repeat: no-repeat; + background-size: cover; > .scrollbar > .scrollbar__bar.is-horizontal { display: none; diff --git a/src/views/system/loginmini/MiniLogin.vue b/src/views/system/loginmini/MiniLogin.vue index 25c654a..4b9fc1f 100644 --- a/src/views/system/loginmini/MiniLogin.vue +++ b/src/views/system/loginmini/MiniLogin.vue @@ -53,7 +53,10 @@ -