Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
ztx_wx_gzt
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
bebae732
authored
2026-04-15 14:49:03 +0800
by
张猛
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
登录
1 parent
bb440033
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
login/loginC.vue
login/loginC.vue
View file @
bebae73
...
...
@@ -105,6 +105,7 @@ import {
const
isActive
=
ref
(
0
)
const
agree
=
ref
(
false
)
const
isRember
=
ref
(
true
)
const
loading
=
ref
(
false
)
const
codeUrl
=
ref
(
null
)
const
inputstyle
=
ref
({
borderColor
:
'transparent'
,
...
...
@@ -176,13 +177,15 @@ function login() {
})
return
}
if
(
loading
.
value
)
return
;
loading
.
value
=
true
pcLogin
(
form
.
value
).
then
((
res
)
=>
{
app
.
globalData
.
isLogin
=
true
uni
.
redirectTo
({
url
:
'/pages/index/home'
})
}).
finally
(()
=>
{
loading
.
value
=
false
})
}
else
if
(
isActive
.
value
==
1
)
{
if
(
!
form2
.
value
.
telNo
)
{
...
...
@@ -208,13 +211,16 @@ function login() {
})
return
}
if
(
loading
.
value
)
return
;
loading
.
value
=
true
loginByPhone
(
form2
.
value
.
telNo
,
form2
.
value
.
code
)
.
then
(()
=>
{
app
.
globalData
.
isLogin
=
true
uni
.
redirectTo
({
url
:
'/pages/index/home'
})
}).
finally
(()
=>
{
loading
.
value
=
false
})
}
}
...
...
Write
Preview
Styling with
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