Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thinkApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
游洁
thinkApp
Commits
cb9f1ead
Commit
cb9f1ead
authored
Sep 27, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
d7fa1e2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
7 deletions
+26
-7
addChild.vue
src/pages/MyChild/addChild.vue
+26
-7
No files found.
src/pages/MyChild/addChild.vue
View file @
cb9f1ead
...
...
@@ -103,8 +103,9 @@
<view
class=
"header-text"
>
输入该账号注册的手机号
</view>
<view
class=
"header-input"
>
<van-cell-group>
<van-field
type=
"tel"
:value=
"Account"
placeholder=
"输入手机号"
clearable
input-align=
"center"
right-icon=
"search"
@
blur=
"usernameInput"
@
click-icon=
"clickIcon"
/>
<van-field
type=
"tel"
:value=
"Account"
placeholder=
"输入手机号"
clearable
input-align=
"center"
right-icon=
"search"
@
blur=
"usernameInput"
@
click-icon=
"clickIcon"
/>
</van-cell-group>
</view>
</view>
...
...
@@ -175,7 +176,7 @@
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
KeyWords
:
'182155'
,
//关键词
StuTel
:
''
,
//13823311062
},
pageCount
:
0
,
dataList
:
[],
...
...
@@ -202,11 +203,29 @@
},
clickIcon
(){
that
.
getData
()
var
phonereg
=
11
&&
/^
((
13|14|15|16|17|18|19
)[
0-9
]{1}\d{8})
$/
if
(
!
phonereg
.
test
(
data
.
msg
.
StuTel
))
{
uni
.
showToast
({
title
:
'请输入正确的手机号'
,
icon
:
'none'
,
duration
:
1000
})
}
else
{
that
.
getData
()
}
},
usernameInput
(
val
)
{
data
.
msg
.
KeyWords
=
val
.
detail
.
value
that
.
getData
()
var
phonereg
=
11
&&
/^
((
13|14|15|16|17|18|19
)[
0-9
]{1}\d{8})
$/
if
(
!
phonereg
.
test
(
val
.
detail
.
value
))
{
uni
.
showToast
({
title
:
'请输入正确的手机号'
,
icon
:
'none'
,
duration
:
1000
})
}
else
{
data
.
msg
.
StuTel
=
val
.
detail
.
value
that
.
getData
()
}
},
async
addChild
(){
if
(
!
data
.
form
.
StuId
){
...
...
@@ -259,7 +278,7 @@
};
let
that
=
methods
;
onMounted
(()
=>
{
that
.
getData
()
//
that.getData()
});
return
{
...
toRefs
(
data
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment