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
Plain Diff
Browse Files
Authored by
徐炜
8 years ago
Commit
a6a0ad29e9d1c32b6d3cd4c1b86f4ffae7317068
2 parents
c6e20322
ff11f363
Merge remote-tracking branch 'origin/master' into release/wap-optim
# Conflicts: # package.json
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
6 deletions
apps/passport/controllers/login.js
apps/product/models/search.js
package.json
public/js/passport/register/password.js
public/js/product/search/list.js
apps/passport/controllers/login.js
View file @
a6a0ad2
...
...
@@ -285,7 +285,8 @@ const wechat = {
doPassportCallback
(
openId
,
nickname
,
'wechat'
,
req
,
res
).
catch
(
next
);
})(
req
,
res
,
next
);
}
else
{
return
next
(
'Auth State Mismatch'
);
log
.
error
(
'Auth State Mismatch:'
+
req
.
originalUrl
);
return
res
.
redirect
(
loginPage
);
}
}
};
...
...
@@ -310,7 +311,8 @@ const sina = {
doPassportCallback
(
openId
,
nickname
,
'sina'
,
req
,
res
).
catch
(
next
);
})(
req
,
res
,
next
);
}
else
{
return
next
(
'Auth State Mismatch'
);
log
.
error
(
'Auth State Mismatch:'
+
req
.
originalUrl
);
return
res
.
redirect
(
loginPage
);
}
}
};
...
...
@@ -336,7 +338,8 @@ const qq = {
doPassportCallback
(
openId
,
nickname
,
'qq'
,
req
,
res
).
catch
(
next
);
})(
req
,
res
,
next
);
}
else
{
return
next
(
'Auth State Mismatch'
+
req
.
originalUrl
);
log
.
error
(
'Auth State Mismatch:'
+
req
.
originalUrl
);
return
res
.
redirect
(
loginPage
);
}
}
};
...
...
apps/product/models/search.js
View file @
a6a0ad2
...
...
@@ -106,7 +106,7 @@ const _searchGoods = (params) => {
delete
params
.
filter_poolId
;
}
if
(
params
.
shop_id
)
{
if
(
params
.
shop_id
&&
!
params
.
productPool
)
{
method
=
'app.search.li'
;
}
else
if
(
params
.
brand
)
{
method
=
'app.search.brand'
;
...
...
package.json
View file @
a6a0ad2
{
"name"
:
"m-yohobuy-node"
,
"version"
:
"
99.3.13
"
,
"version"
:
"
5.3.15
"
,
"private"
:
true
,
"description"
:
"A New Yohobuy Project With Express"
,
"repository"
:
{
...
...
public/js/passport/register/password.js
View file @
a6a0ad2
...
...
@@ -65,6 +65,7 @@ $('.pitch').on('click', function() {
});
function
setPassword
()
{
$btnSure
.
addClass
(
'disable'
);
return
$
.
ajax
({
type
:
'POST'
,
url
:
'/passport/reg/setpassword'
,
...
...
@@ -96,8 +97,12 @@ function setPassword() {
location
.
href
=
res
.
href
;
},
1500
);
}
else
{
$btnSure
.
removeClass
(
'disable'
);
showErrTip
(
data
.
message
);
}
},
error
:
function
()
{
$btnSure
.
removeClass
(
'disable'
);
}
});
}
...
...
@@ -114,6 +119,7 @@ $btnSure.on('touchstart', function() {
}
else
{
if
(
$
(
'.pitch'
).
hasClass
(
'select'
))
{
setPassword
();
}
else
{
$
(
'.prompt'
).
show
();
...
...
public/js/product/search/list.js
View file @
a6a0ad2
...
...
@@ -1070,7 +1070,7 @@ $listNav.on('touchend touchcancel', function(e) {
}
if
(
nav
.
reload
)
{
$
(
document
).
trigger
(
'shouldSendBpData'
,
[
bpIdData
]);
search
();
search
(
{
filtering
:
true
}
);
}
}
});
...
...
Please
register
or
login
to post a comment