This commit is contained in:
2022-10-11 10:31:02 +08:00
parent 1b66091da0
commit 2eab2ecf68
9 changed files with 36 additions and 29 deletions

View File

@@ -12,20 +12,41 @@ uni-page-body {
/** iconfont */
@font-face {
font-family: 'iconfont';
src: url('@/static/iconfont/iconfont.woff2?t=1628753103983') format('woff2'),
url('@/static/iconfont/iconfont.woff?t=1628753103983') format('woff'),
url('@/static/iconfont/iconfont.ttf?t=1628753103983') format('truetype');
src: url('@/static/iconfont/iconfont.woff2?t=1665454521636') format('woff2'),
url('@/static/iconfont/iconfont.woff?t=1665454521636') format('woff'),
url('@/static/iconfont/iconfont.ttf?t=1665454521636') format('truetype');
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16rem;
font-size: 50rpx;
color: #000;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.open_icon::before {
content: '\ec0c'
.icon_eye_close {
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 {

View File

@@ -1,4 +1,4 @@
$red = #e74f1a
$red = #ff6a00
$green = #6CBE8B
$yellow = #E9B451
$blue = #6798ef

View File

@@ -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">&#xe568;</text>
<span class="iconfont icon_eye_close" :class="[showPassword ? 'icon_eye_active' : '']" @click="changePassword">&#xe6a0;</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">&#xe66b;</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

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
View File

0
utils/getData2.js Normal file
View File