Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mini-program-wepy
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
ui
mini-program-wepy
Commits
1e484363
Commit
1e484363
authored
May 27, 2020
by
ziyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvement: 优化
parent
ee2f2d9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
prize.wpy
src/pages/prize.wpy
+5
-0
No files found.
src/pages/prize.wpy
View file @
1e484363
...
@@ -121,10 +121,15 @@
...
@@ -121,10 +121,15 @@
Notify({message: '请填写收货人', background:'#FF5D15'});
Notify({message: '请填写收货人', background:'#FF5D15'});
return;
return;
}
}
let reg = /^1\d{10}$/
if(!this.phone){
if(!this.phone){
Notify({message: '请填写手机号码', background:'#FF5D15'});
Notify({message: '请填写手机号码', background:'#FF5D15'});
return;
return;
}
}
if(!reg.test(this.phone)) {
Notify({message: '请填写正确的手机号码', background:'#FF5D15'});
return;
}
if(!this.city){
if(!this.city){
Notify({message: '请选择所在地区', background:'#FF5D15'});
Notify({message: '请选择所在地区', background:'#FF5D15'});
return;
return;
...
...
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