|
|
@@ -6,13 +6,13 @@
|
|
|
|
|
|
<p class="title">邹平未保客户端</p>
|
|
|
<van-form @submit="onSubmit">
|
|
|
- <van-field v-model="username" name="用户名" label="用户名:" placeholder="请输入用户名" :rules="[{ required: true}]" />
|
|
|
- <van-field v-model="password" type="password" name="密码:" label="密码:" placeholder="请输入密码" :rules="[{ required: true}]" />
|
|
|
+ <van-field v-model="username" name="用户名" label="用户名:" placeholder="请输入用户名" :rules="[{ required: true}]" @focus="focusOn" @blur="blurOff" />
|
|
|
+ <van-field v-model="password" type="password" name="密码:" label="密码:" placeholder="请输入密码" :rules="[{ required: true}]" @focus="focusOn" @blur="blurOff" />
|
|
|
<div class="submit_bg" style="margin: 60px 26px">
|
|
|
<van-button round block type="info" native-type="submit">登录</van-button>
|
|
|
</div>
|
|
|
</van-form>
|
|
|
- <div class="img_bottom">
|
|
|
+ <div class="img_bottom" :hidden='hiddenBottom'>
|
|
|
<img class="img" src="../../assets/login/bottomBg1.png" />
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -27,10 +27,17 @@ export default {
|
|
|
imgUrl: '../../assets/login/bg.jpeg',
|
|
|
username: '',
|
|
|
password: '',
|
|
|
+ hiddenBottom:false
|
|
|
}
|
|
|
},
|
|
|
created() {},
|
|
|
methods: {
|
|
|
+ focusOn() {
|
|
|
+ this.hiddenBottom = true
|
|
|
+ },
|
|
|
+ blurOff() {
|
|
|
+ this.hiddenBottom = false
|
|
|
+ },
|
|
|
async onSubmit() {
|
|
|
// if (this.username == '' || this.password == '') {
|
|
|
// this.$toast('请输入账号或密码')
|