登录
This commit is contained in:
@@ -12,20 +12,41 @@ uni-page-body {
|
|||||||
/** iconfont */
|
/** iconfont */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'iconfont';
|
font-family: 'iconfont';
|
||||||
src: url('@/static/iconfont/iconfont.woff2?t=1628753103983') format('woff2'),
|
src: url('@/static/iconfont/iconfont.woff2?t=1665454521636') format('woff2'),
|
||||||
url('@/static/iconfont/iconfont.woff?t=1628753103983') format('woff'),
|
url('@/static/iconfont/iconfont.woff?t=1665454521636') format('woff'),
|
||||||
url('@/static/iconfont/iconfont.ttf?t=1628753103983') format('truetype');
|
url('@/static/iconfont/iconfont.ttf?t=1665454521636') format('truetype');
|
||||||
}
|
}
|
||||||
.iconfont {
|
.iconfont {
|
||||||
font-family: "iconfont" !important;
|
font-family: "iconfont" !important;
|
||||||
font-size: 16rem;
|
font-size: 50rpx;
|
||||||
|
color: #000;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
.open_icon::before {
|
.icon_eye_close {
|
||||||
content: '\ec0c'
|
color: #bbb;
|
||||||
}
|
}
|
||||||
|
.icon_eye_active {
|
||||||
|
color: #ff6a00;
|
||||||
|
}
|
||||||
|
.icon_unchecked {
|
||||||
|
color: #fff;
|
||||||
|
width: 32rpx;
|
||||||
|
height: 32rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
font-size: 24rpx;
|
||||||
|
border: 1rpx solid #bbb;
|
||||||
|
}
|
||||||
|
.icon_checked {
|
||||||
|
color: #ff6a00;
|
||||||
|
border: 1rpx solid #ff6a00;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* .open_icon::before {
|
||||||
|
content: '\ec0c'
|
||||||
|
} */
|
||||||
|
|
||||||
/** 内容 */
|
/** 内容 */
|
||||||
.content {
|
.content {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
$red = #e74f1a
|
$red = #ff6a00
|
||||||
$green = #6CBE8B
|
$green = #6CBE8B
|
||||||
$yellow = #E9B451
|
$yellow = #E9B451
|
||||||
$blue = #6798ef
|
$blue = #6798ef
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
</view>
|
</view>
|
||||||
<div class="input-box">
|
<div class="input-box">
|
||||||
<input class="large-input" :password="!showPassword" placeholder="请输入密码" v-model="password">
|
<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>
|
</div>
|
||||||
<view class="radio-box">
|
<view class="radio-box">
|
||||||
<view class="radio-wrap">
|
<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>
|
<text class="radio-label">记住用户名</text>
|
||||||
</view>
|
</view>
|
||||||
<text class="setup-text" @click="setup">设置</text>
|
<text class="setup-text" @click="setup">设置</text>
|
||||||
@@ -46,9 +46,9 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
async toLogin() {
|
async toLogin() {
|
||||||
// uni.redirectTo({
|
uni.redirectTo({
|
||||||
// url: '/pages/home/home'
|
url: '/pages/home/home'
|
||||||
// })
|
})
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (this.user === '') {
|
if (this.user === '') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (this.password === '') {
|
if (this.password === '') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '密码不能为空',
|
title: '密码不能为空',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
@@ -104,13 +104,6 @@
|
|||||||
_wh(calc(100% - 40rpx), 74rpx)
|
_wh(calc(100% - 40rpx), 74rpx)
|
||||||
_font(32rpx,74rpx,#999)
|
_font(32rpx,74rpx,#999)
|
||||||
padding-left 10rpx
|
padding-left 10rpx
|
||||||
.uni-icon
|
|
||||||
_wh(37rpx,37rpx)
|
|
||||||
font-family uniicons
|
|
||||||
_font(37rpx,37rpx, #999)
|
|
||||||
.uni-eye-active {
|
|
||||||
color: #007AFF;
|
|
||||||
}
|
|
||||||
.radio-box
|
.radio-box
|
||||||
_fj()
|
_fj()
|
||||||
margin: 25rpx 0 70rpx 0
|
margin: 25rpx 0 70rpx 0
|
||||||
@@ -118,18 +111,11 @@
|
|||||||
.radio-wrap
|
.radio-wrap
|
||||||
_fj()
|
_fj()
|
||||||
height: 34rpx
|
height: 34rpx
|
||||||
.icon-check
|
|
||||||
_wh(30rpx,30rpx)
|
|
||||||
background-color: #ffffff
|
|
||||||
border: 1px solid #d7592f
|
|
||||||
border-radius: 50%
|
|
||||||
.icon-checked
|
|
||||||
background-color: #d7592f
|
|
||||||
.radio-label
|
.radio-label
|
||||||
_font(28rpx, 28rpx,#333)
|
_font(28rpx, 28rpx,#333)
|
||||||
padding-left: 20rpx
|
padding-left: 10rpx
|
||||||
.setup-text
|
.setup-text
|
||||||
_font(28rpx, 28rpx,$blue,,right)
|
_font(28rpx, 28rpx,$red,,right)
|
||||||
.bg
|
.bg
|
||||||
_bis('../../static/image/login_bg.png', 100%,,bottom)
|
_bis('../../static/image/login_bg.png', 100%,,bottom)
|
||||||
.login-btn
|
.login-btn
|
||||||
|
|||||||
BIN
static/.DS_Store
vendored
BIN
static/.DS_Store
vendored
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0
utils/getData1.js
Normal file
0
utils/getData1.js
Normal file
0
utils/getData2.js
Normal file
0
utils/getData2.js
Normal file
Reference in New Issue
Block a user