Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend-h5
Project
Project
Details
Activity
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
songrui
frontend-h5
Commits
8bc6a62b
Commit
8bc6a62b
authored
Sep 29, 2024
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索框限制输入bug修复
parent
1812a13f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Doctor.vue
src/doctor/Doctor.vue
+1
-1
Search.vue
src/doctor/followUp/search/Search.vue
+5
-1
No files found.
src/doctor/Doctor.vue
View file @
8bc6a62b
...
@@ -52,7 +52,7 @@ export default {
...
@@ -52,7 +52,7 @@ export default {
if
(
!
token
)
{
if
(
!
token
)
{
token
=
sessionStorage
.
getItem
(
'token'
)
token
=
sessionStorage
.
getItem
(
'token'
)
if
(
process
.
env
.
NODE_ENV
!==
'production'
)
{
if
(
process
.
env
.
NODE_ENV
!==
'production'
)
{
token
=
'
93f10186-5252-4bec-ae1f-2e9c6a0b85bd
'
token
=
'
72b191d3-e3a0-49ce-884a-1dd3452b5d9a
'
}
}
}
}
if
(
token
)
{
if
(
token
)
{
...
...
src/doctor/followUp/search/Search.vue
View file @
8bc6a62b
...
@@ -6,9 +6,10 @@
...
@@ -6,9 +6,10 @@
</span>
</span>
<div
class=
"grow flex items-center px-2 mr-2 input-box"
>
<div
class=
"grow flex items-center px-2 mr-2 input-box"
>
<doc-icon
type=
"doc-search"
class=
"shrink-0"
style=
"color: #595959"
/>
<doc-icon
type=
"doc-search"
class=
"shrink-0"
style=
"color: #595959"
/>
<van-field
v-model=
"idCard"
type=
"digit"
placeholder=
"请输入身份证号查询"
<van-field
v-model=
"idCard"
placeholder=
"请输入身份证号查询"
autocomplete=
"off"
autocomplete=
"off"
clearable
clearable
:formatter=
"formatter"
@
clear=
"idCardClear"
@
clear=
"idCardClear"
ref=
"idCardField"
/>
ref=
"idCardField"
/>
<!--
<van-uploader
:max-size=
"5 * 1024 * 1024"
:after-read=
"afterRead"
max-count=
"1"
>
<!--
<van-uploader
:max-size=
"5 * 1024 * 1024"
:after-read=
"afterRead"
max-count=
"1"
>
...
@@ -132,6 +133,9 @@ export default {
...
@@ -132,6 +133,9 @@ export default {
this
.
history
=
getLocalStorage
(
this
.
historyKey
)
||
[]
this
.
history
=
getLocalStorage
(
this
.
historyKey
)
||
[]
},
},
methods
:
{
methods
:
{
formatter
(
value
)
{
return
value
.
replace
(
/
[\u
4e00-
\u
9fa5
/\s
+
/]
|
[^
a-zA-Z0-9
\u
4E00-
\u
9FA5
]
/g
,
''
);
},
search
()
{
search
()
{
if
(
!
this
.
idCard
)
return
if
(
!
this
.
idCard
)
return
if
(
!
validateIdCard
(
this
.
idCard
))
{
if
(
!
validateIdCard
(
this
.
idCard
))
{
...
...
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