Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
2016-12-20 21:20:45 +0800
Commit
153b6e4d717989bdf628308943b0a64a6d029010
1 parent
a21d8bfe
fix reg bug
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
14 deletions
apps/passport/controllers/cert.js
apps/passport/controllers/reg.js
public/js/passport/reg/reg.js
apps/passport/controllers/cert.js
View file @
153b6e4
...
...
@@ -207,8 +207,6 @@ const cert = {
let
email
;
userService
.
profile
(
uid
).
then
(
info
=>
{
console
.
log
(
JSON
.
stringify
(
info
));
if
(
info
&&
info
.
code
===
200
)
{
email
=
_
.
get
(
info
,
'data.email'
);
}
else
{
...
...
apps/passport/controllers/reg.js
View file @
153b6e4
...
...
@@ -73,7 +73,7 @@ let index = (req, res, next) => {
let
area
=
req
.
query
.
area
;
refer
&&
res
.
cookie
(
'refer'
,
encodeURI
(
refer
),
{
domain
:
'yohobuy.com'
domain
:
config
.
cookieDomain
});
regService
.
getRegData
().
then
((
result
)
=>
{
...
...
public/js/passport/reg/reg.js
View file @
153b6e4
...
...
@@ -720,15 +720,4 @@ exports.init = function(page) {
$countDown
.
text
(
countDown
--
);
},
1000
);
}
// 设置 refer 信息
(
function
()
{
var
refer
=
queryString
().
refer
||
''
;
// eslint-disable-line
if
(
refer
)
{
setCookie
(
'refer'
,
refer
);
// eslint-disable-line
}
else
{
setCookie
(
'refer'
,
''
);
// eslint-disable-line
}
}());
};
...
...
Please
register
or
login
to post a comment