diff --git a/fuintAdmin/src/assets/images/box-left.png b/fuintAdmin/src/assets/images/box-left.png new file mode 100644 index 000000000..6b825dc84 Binary files /dev/null and b/fuintAdmin/src/assets/images/box-left.png differ diff --git a/fuintAdmin/src/assets/images/loginback.png b/fuintAdmin/src/assets/images/loginback.png new file mode 100644 index 000000000..e11545860 Binary files /dev/null and b/fuintAdmin/src/assets/images/loginback.png differ diff --git a/fuintAdmin/src/views/login.vue b/fuintAdmin/src/views/login.vue index 5a43a783c..04466b5bb 100644 --- a/fuintAdmin/src/views/login.vue +++ b/fuintAdmin/src/views/login.vue @@ -11,9 +11,13 @@
- 登录 +
+
{{item.text}}
+
+
+
- + @@ -76,6 +80,61 @@ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+ 获取验证码 + {{count}}s后重新获取 +
+ +
+
+ 记住密码 + + + 立即登录 + 登 录 中... + + +
@@ -109,6 +168,14 @@ export default { components: {BalanceRecharge}, data() { return { + show: true, + count: '', + timer: null, + dlyzm:[ + {text:'登录',type:'0'}, + {text: "验证码",type:'1'} + ], + actindex:0, codeUrl: "", systemName : process.env.VUE_APP_TITLE, loginForm: { @@ -144,11 +211,27 @@ export default { } }, created() { - this.getCode(); + this.getCodeimg(); this.getCookie(); }, methods: { getCode() { + const TIME_COUNT = 60; + if (!this.timer) { + this.count = TIME_COUNT; + this.show = false; + this.timer = setInterval(() => { + if (this.count > 0 && this.count <= TIME_COUNT) { + this.count--; + } else { + this.show = true; + clearInterval(this.timer); + this.timer = null; + } + }, 1000) + } + }, + getCodeimg() { const app = this getCodeImg().then(response => { app.codeUrl = response.data.captcha @@ -221,6 +304,12 @@ export default { display: flex; } + .gangs{ + width: 100%; + height: 5px; + background: #00aaff; + border-radius: 50px; + } .box-left{ width: 50%; height: 100%; @@ -237,7 +326,9 @@ export default { } .box-title{ width: 100%; - text-align: center; + //text-align: center; + display: flex; + align-items: center; margin-bottom: 20px; } .bai-size{ diff --git a/fuintCashierWeb/src/assets/images/box-left.png b/fuintCashierWeb/src/assets/images/box-left.png new file mode 100644 index 000000000..6b825dc84 Binary files /dev/null and b/fuintCashierWeb/src/assets/images/box-left.png differ diff --git a/fuintCashierWeb/src/assets/images/loginback.png b/fuintCashierWeb/src/assets/images/loginback.png new file mode 100644 index 000000000..e11545860 Binary files /dev/null and b/fuintCashierWeb/src/assets/images/loginback.png differ diff --git a/fuintCashierWeb/src/views/login/index.vue b/fuintCashierWeb/src/views/login/index.vue index 09f5fce03..2c34963d0 100644 --- a/fuintCashierWeb/src/views/login/index.vue +++ b/fuintCashierWeb/src/views/login/index.vue @@ -11,14 +11,14 @@
- 登录 +
+ 登录 +
+
+ 验证码 +
- - - - -