登录
This commit is contained in:
@@ -7,11 +7,11 @@
|
||||
</view>
|
||||
<div class="input-box">
|
||||
<input class="large-input" :password="!showPassword" placeholder="请输入密码" v-model="password">
|
||||
<text class="uni-icon" :class="[showPassword ? 'uni-eye-active' : '']" @click="changePassword"></text>
|
||||
<span class="iconfont icon_eye_close" :class="[showPassword ? 'icon_eye_active' : '']" @click="changePassword"></span>
|
||||
</div>
|
||||
<view class="radio-box">
|
||||
<view class="radio-wrap">
|
||||
<view class="iconfont icon-check" :class="{'icon-checked': saveUser}" @click="toSaveUser"></view>
|
||||
<span class="iconfont icon_unchecked" :class="{'icon_checked': saveUser}" @click="toSaveUser"></span>
|
||||
<text class="radio-label">记住用户名</text>
|
||||
</view>
|
||||
<text class="setup-text" @click="setup">设置</text>
|
||||
@@ -46,9 +46,9 @@
|
||||
})
|
||||
},
|
||||
async toLogin() {
|
||||
// uni.redirectTo({
|
||||
// url: '/pages/home/home'
|
||||
// })
|
||||
uni.redirectTo({
|
||||
url: '/pages/home/home'
|
||||
})
|
||||
this.disabled = true
|
||||
if (this.user === '') {
|
||||
uni.showToast({
|
||||
@@ -58,7 +58,7 @@
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
if (this.password === '') {
|
||||
if (this.password === '') {
|
||||
uni.showToast({
|
||||
title: '密码不能为空',
|
||||
icon: 'none'
|
||||
@@ -104,13 +104,6 @@
|
||||
_wh(calc(100% - 40rpx), 74rpx)
|
||||
_font(32rpx,74rpx,#999)
|
||||
padding-left 10rpx
|
||||
.uni-icon
|
||||
_wh(37rpx,37rpx)
|
||||
font-family uniicons
|
||||
_font(37rpx,37rpx, #999)
|
||||
.uni-eye-active {
|
||||
color: #007AFF;
|
||||
}
|
||||
.radio-box
|
||||
_fj()
|
||||
margin: 25rpx 0 70rpx 0
|
||||
@@ -118,18 +111,11 @@
|
||||
.radio-wrap
|
||||
_fj()
|
||||
height: 34rpx
|
||||
.icon-check
|
||||
_wh(30rpx,30rpx)
|
||||
background-color: #ffffff
|
||||
border: 1px solid #d7592f
|
||||
border-radius: 50%
|
||||
.icon-checked
|
||||
background-color: #d7592f
|
||||
.radio-label
|
||||
_font(28rpx, 28rpx,#333)
|
||||
padding-left: 20rpx
|
||||
padding-left: 10rpx
|
||||
.setup-text
|
||||
_font(28rpx, 28rpx,$blue,,right)
|
||||
_font(28rpx, 28rpx,$red,,right)
|
||||
.bg
|
||||
_bis('../../static/image/login_bg.png', 100%,,bottom)
|
||||
.login-btn
|
||||
|
||||
Reference in New Issue
Block a user