Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Aiden Xu
9 years ago
Commit
f13c52ea28757d1496f5c1f66df13314c6751ed5
1 parent
c2ba451d
分期订单
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
apps/home/controllers/installment.js
public/js/home/installment.starting-service.page.js
apps/home/controllers/installment.js
View file @
f13c52e
...
...
@@ -221,11 +221,14 @@ const startingService = (req, res) => {
};
const
activateService
=
(
req
,
res
,
next
)
=>
{
installmentModel
.
activateService
({
uid
:
req
.
cookies
.
installmentUid
||
532892
,
userName
:
req
.
body
.
userName
,
identityCardNo
:
req
.
body
.
identityCardNo
,
cardNo
:
req
.
body
.
cardNo
,
cardNo
:
((
function
()
{
return
req
.
body
.
cardNo
?
req
.
body
.
cardNo
.
replace
(
/
\s
/g
,
''
)
:
''
;
})()),
mobile
:
req
.
body
.
mobile
,
snsCheckCode
:
req
.
body
.
snsCheckCode
,
verifyId
:
req
.
body
.
verifyId
...
...
public/js/home/installment.starting-service.page.js
View file @
f13c52e
...
...
@@ -133,7 +133,7 @@ $('#send-sms').click(function() {
*/
$
(
'#cardNo'
).
keyup
(
function
()
{
var
value
=
$
(
this
).
val
();
var
cardNo
=
$
(
this
).
val
().
replace
(
/
\s
/
,
''
);
var
cardNo
=
$
(
this
).
val
().
replace
(
/
\s
/
g
,
''
);
$
(
this
).
val
(
value
.
replace
(
/
[^\d]
/g
,
''
).
replace
(
/
(\d{4})(?=\d)
/g
,
'$1 '
)).
trigger
(
'change'
);
...
...
Please
register
or
login
to post a comment