瀏覽代碼

111

wulanhaote
liuminjian 4 年之前
父節點
當前提交
3d5936a570
共有 2 個檔案被更改,包括 15 行新增2 行删除
  1. +7
    -1
      src/views/authenticRight/login.vue
  2. +8
    -1
      src/views/homestead/login.vue

+ 7
- 1
src/views/authenticRight/login.vue 查看文件

@@ -1,5 +1,5 @@
<template> <template>
<div class="app-container">
<div class="app-container" :style="{ height: windowHeight + 'px' }">
<div class="login_header"></div> <div class="login_header"></div>
<div class="login_content"> <div class="login_content">
<div class="homestead_wrap"> <div class="homestead_wrap">
@@ -21,6 +21,7 @@
<div class="signIn_input_wrap"> <div class="signIn_input_wrap">
<van-field <van-field
autosize autosize
type="password"
placeholder="请输入密码" placeholder="请输入密码"
v-model="formData.password" v-model="formData.password"
/> />
@@ -71,6 +72,7 @@ export default {
uuid: null, //识别uuid uuid: null, //识别uuid
}, },
codeUrl: "", //图片验证码 codeUrl: "", //图片验证码
windowHeight: 0,
rememberPassword: false, //记住密码 1记住 2不记住 rememberPassword: false, //记住密码 1记住 2不记住
}; };
}, },
@@ -86,6 +88,10 @@ export default {
this.formData.password = password; this.formData.password = password;
} }
}, },
mounted() {
let windowHeight = document.documentElement.clientHeight;
this.windowHeight = windowHeight;
},
methods: { methods: {
getCode() { getCode() {
getCodeImg().then((res) => { getCodeImg().then((res) => {


+ 8
- 1
src/views/homestead/login.vue 查看文件

@@ -1,5 +1,5 @@
<template> <template>
<div class="app-container">
<div class="app-container" :style="{ height: windowHeight + 'px' }">
<div class="login_header"></div> <div class="login_header"></div>
<div class="login_content"> <div class="login_content">
<div class="homestead_wrap"> <div class="homestead_wrap">
@@ -21,6 +21,7 @@
<div class="signIn_input_wrap"> <div class="signIn_input_wrap">
<van-field <van-field
autosize autosize
type="password"
placeholder="请输入密码" placeholder="请输入密码"
v-model="formData.password" v-model="formData.password"
/> />
@@ -60,6 +61,7 @@
<script> <script>
import { getCodeImg } from "@/api/login"; import { getCodeImg } from "@/api/login";
import Cookies from "js-cookie"; import Cookies from "js-cookie";
import $ from "jquery";
export default { export default {
name: "homesteadLogin", name: "homesteadLogin",
data() { data() {
@@ -72,6 +74,7 @@ export default {
}, },
codeUrl: "", //图片验证码 codeUrl: "", //图片验证码
rememberPassword: false, //记住密码 1记住 2不记住 rememberPassword: false, //记住密码 1记住 2不记住
windowHeight: 0,
}; };
}, },
created() { created() {
@@ -86,6 +89,10 @@ export default {
this.formData.password = password; this.formData.password = password;
} }
}, },
mounted() {
let windowHeight = document.documentElement.clientHeight;
this.windowHeight = windowHeight;
},
methods: { methods: {
getCode() { getCode() {
getCodeImg().then((res) => { getCodeImg().then((res) => {


Loading…
取消
儲存