1.登录页面修改
Some checks failed
Uniapp 自动化打包 CI/CD / 打包 Uniapp 项目 (push) Has been cancelled

This commit is contained in:
2025-09-15 16:02:46 +08:00
parent 2476011b07
commit 86cfe5a464
5 changed files with 101 additions and 88 deletions

View File

@@ -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 {