Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a62b3bb7
authored
Oct 17, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' of
http://192.168.3.233:8090/saas_plus/business-assistant
into develop
2 parents
1fa2c11e
78d55a50
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
10 deletions
login/index/components/Box/Box.scss
login/index/components/InputIcon/InputIcon.scss
login/index/index.js
login/index/index.scss
login/index/components/Box/Box.scss
View file @
a62b3bb
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
padding
:
24rpx
0
;
padding
:
24rpx
0
;
position
:
relative
;
position
:
relative
;
input
{
input
{
flex
:
1
;
flex
:
1
;
...
@@ -53,10 +53,12 @@
...
@@ -53,10 +53,12 @@
font-size
:
24rpx
;
font-size
:
24rpx
;
padding
:
0
;
padding
:
0
;
text-align
:
right
;
text-align
:
right
;
&
[
disabled
]
:not
([
type
])
{
transition
:
all
.25s
;
&
[
disabled
]
:not
([
type
])
{
color
:
#CCCED1
;
color
:
#CCCED1
;
}
}
}
}
.error
{
.error
{
position
:
absolute
;
position
:
absolute
;
font-size
:
24rpx
;
font-size
:
24rpx
;
...
@@ -67,4 +69,4 @@
...
@@ -67,4 +69,4 @@
}
}
}
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
login/index/components/InputIcon/InputIcon.scss
View file @
a62b3bb
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
transition
:
all
.25s
;
.icon
{
.icon
{
width
:
32rpx
;
width
:
32rpx
;
height
:
32rpx
;
height
:
32rpx
;
...
...
login/index/index.js
View file @
a62b3bb
...
@@ -75,16 +75,19 @@ Page({
...
@@ -75,16 +75,19 @@ Page({
})
})
},
},
checkLoginBtn
(
disabled
=
false
)
{
checkLoginBtn
(
disabled
=
false
)
{
const
{
loginType
}
=
this
.
data
,
const
{
{
loginType
data
:
{
formData
},
}
=
this
.
data
,
{
loginToken
data
:
{
}
=
this
.
selectComponent
(
'#box'
)
formData
},
loginToken
}
=
this
.
selectComponent
(
'#box'
)
if
(
loginType
==
0
)
{
if
(
loginType
==
0
)
{
disabled
=
loginToken
disabled
=
loginToken
}
else
disabled
=
loginType
==
1
?
formData
.
phone
&&
this
.
validate
.
methods
.
tel
(
formData
.
phone
)
&&
formData
.
code
:
formData
.
account
&&
formData
.
password
}
else
disabled
=
loginType
==
1
?
formData
.
phone
&&
this
.
validate
.
methods
.
tel
(
formData
.
phone
)
&&
(
formData
.
code
&&
formData
.
code
.
length
==
4
)
:
formData
.
account
&&
formData
.
password
this
.
setData
({
this
.
setData
({
disabled
:
!
disabled
disabled
:
!
disabled
})
})
}
}
})
})
\ No newline at end of file
\ No newline at end of file
login/index/index.scss
View file @
a62b3bb
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
color
:
#FFFFFF
;
color
:
#FFFFFF
;
line-height
:
88rpx
;
line-height
:
88rpx
;
padding
:
0
;
padding
:
0
;
transition
:
all
.1s
;
&
[
disabled
]
:not
([
type
])
{
&
[
disabled
]
:not
([
type
])
{
background
:
#CCCED1
!
important
;
background
:
#CCCED1
!
important
;
color
:
#fff
!
important
;
color
:
#fff
!
important
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment