This commit is contained in:
@@ -10,12 +10,12 @@
|
||||
<view class="login-form">
|
||||
<view class="input-row">
|
||||
<image class="iconfont" src="/static/ic_login_phone.png" />
|
||||
<input class="login-input" type="text" placeholder="输入手机号" v-model="username" />
|
||||
<input class="login-input" type="text" placeholder="请输入账号" v-model="username" />
|
||||
</view>
|
||||
<view class="input-row">
|
||||
<image class="iconfont2" src="/static/ic_login_code.png" />
|
||||
<input class="login-input" type="text" placeholder="请输入验证码" v-model="password" />
|
||||
<button class="code-btn">获取校验码</button>
|
||||
<input class="login-input" type="text" placeholder="请输入密码" v-model="password" />
|
||||
<!-- <button class="code-btn">获取校验码</button> -->
|
||||
</view>
|
||||
<view class="protocol-row">
|
||||
<label class="custom-checkbox-label">
|
||||
@@ -38,10 +38,12 @@
|
||||
import base64 from '@/common/base64.js';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
return {
|
||||
// username: 'admin',
|
||||
// password: 'admin123',
|
||||
phoneNo: '',
|
||||
username: 'admin',
|
||||
password: 'admin123',
|
||||
username: '',
|
||||
password: '',
|
||||
loginType: 'currentPhone',
|
||||
showPassword: false,
|
||||
remember: true,
|
||||
@@ -62,7 +64,11 @@
|
||||
this.getUserInfo()
|
||||
},
|
||||
methods: {
|
||||
async submit() {
|
||||
async submit() {
|
||||
if(!this.checked){
|
||||
this.$u.toast('请先同意用户协议和隐私政策');
|
||||
return;
|
||||
}
|
||||
if (this.username.length == 0) {
|
||||
this.$u.toast('请输入账号');
|
||||
return;
|
||||
@@ -184,8 +190,8 @@
|
||||
.iconfont {
|
||||
font-size: 32rpx;
|
||||
margin-right: 16rpx;
|
||||
width: 27rpx;
|
||||
height: 43rpx;
|
||||
width: 35rpx;
|
||||
height: 35rpx;
|
||||
}
|
||||
|
||||
.iconfont2 {
|
||||
|
Reference in New Issue
Block a user