Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuYingJiH5-ASD
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinzhedeai
GaoQuYingJiH5-ASD
Commits
6d83970d
Commit
6d83970d
authored
Aug 02, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better:消费者页面校验优化
parent
32e723cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
_consumer_home.js
src/_consumer_home.js
+8
-1
No files found.
src/_consumer_home.js
View file @
6d83970d
...
...
@@ -165,7 +165,7 @@ window.addEventListener("load", function () {
gemhoUtil
.
navigatePage
(
strurl
,
'
跳转中...
'
)
},
submitForm
()
{
if
(
!
this
.
formData
.
content
)
{
if
(
!
gemhoUtil
.
validateRequire
(
this
.
formData
.
content
)
)
{
vant
.
Dialog
.
alert
({
message
:
'
安全建议不可为空
'
,
})
...
...
@@ -194,6 +194,13 @@ window.addEventListener("load", function () {
return
;
}
if
(
this
.
formData
.
contactName
&&
!
gemhoUtil
.
validateChineseName
(
this
.
formData
.
contactName
))
{
vant
.
Dialog
.
alert
({
message
:
'
联系人格式不正确
'
,
})
return
;
}
vant
.
Toast
.
loading
({
message
:
'
正在处理...
'
,
forbidClick
:
true
,
...
...
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