Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6124a1be
authored
Jul 08, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
40f640fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
pages/common/login.vue
pages/common/login.vue
View file @
6124a1b
<
template
>
<view
class=
"layout"
>
<view
class=
"bg"
></view>
<view
class=
"login"
:key=
"dateKey"
>
<view
class=
"login"
>
<view
class=
"title"
>
登录
</view>
<view
class=
"sub-title"
>
手机号码登录
</view>
<view
class=
"input"
>
...
...
@@ -11,6 +11,7 @@
placeholder=
"请输入手机号"
maxlength=
"11"
@
blur=
"input($event, 'mobile')"
:key=
"dateKey.mobile"
/>
<template
v-if=
"mobile"
>
<view
class=
"icon"
@
click=
"mobile = ''"
>
...
...
@@ -18,13 +19,14 @@
</view>
</
template
>
</view>
<view
class=
"input"
>
<view
class=
"input"
>
<input
type=
"number"
:value=
"code"
placeholder=
"请输入验证码"
maxlength=
"4"
@
blur=
"input($event, 'code')"
:key=
"dateKey.code"
/>
<
template
v-if=
"code"
>
<view
class=
"icon"
@
click=
"code = ''"
>
...
...
@@ -71,7 +73,10 @@ export default {
count
:
''
,
noSignIn
:
true
,
readingStatus
:
true
,
dateKey
:
null
dateKey
:
{
mobile
:
0
,
code
:
0
}
};
},
onLoad
(
options
)
{
...
...
@@ -194,7 +199,7 @@ export default {
numbers
=
value
.
match
(
/
\d
+/g
)
console
.
log
(
numbers
)
this
[
key
]
=
numbers
?
numbers
.
join
(
''
)
:
''
this
.
dateKey
=
Date
.
now
()
this
.
dateKey
[
key
]
=
Date
.
now
()
},
0
)
}
},
...
...
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