Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
张丽霞
9 years ago
Commit
c23370a4a1b79675ba28380045cd733314377841
1 parent
010f9d7b
猜你喜欢-物流页面数据
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
static/js/home/maybe-like.js
static/js/home/maybe-like.js
View file @
c23370a
...
...
@@ -25,7 +25,8 @@ module.exports = function(specificGender) {
var
kidsType
=
specificGender
===
'kids'
||
$
(
'.mobile-wrap'
).
hasClass
(
'kids-wrap'
)
?
true
:
false
,
lifestyleType
=
specificGender
===
'lifestyle'
||
$
(
'.mobile-wrap'
).
hasClass
(
'lifestyle-wrap'
)
?
true
:
false
,
yohoCoinType
=
$
(
'.coin'
).
length
?
true
:
false
;
yohoCoinType
=
$
(
'.coin'
).
length
?
true
:
false
,
logisticType
=
$
(
'.logistic-page'
).
length
?
true
:
false
;
var
$curNav
,
index
,
$navList
=
$
(
'#maybe-like-nav'
);
...
...
@@ -41,12 +42,17 @@ module.exports = function(specificGender) {
}
else
if
(
lifestyleType
)
{
//有货币页面加载男生首页的数据
url
=
specificGender
===
'lifestyle'
?
'/product/recom/maylike?gender=1,3&rec_pos=10000
9
'
:
'/product/recom/maylikelife'
;
url
=
specificGender
===
'lifestyle'
?
'/product/recom/maylike?gender=1,3&rec_pos=10000
1
'
:
'/product/recom/maylikelife'
;
}
else
if
(
yohoCoinType
)
{
gender
=
(
specificGender
===
'boys'
||
$
(
'.mobile-wrap'
).
hasClass
(
'boys-wrap'
))
?
'1,3&rec_pos=100009'
:
'2,3&rec_pos=100009'
,
url
=
'/product/recom/maylike?gender='
+
gender
;
}
else
if
(
logisticType
)
{
//物流页面
gender
=
(
specificGender
===
'boys'
||
$
(
'.mobile-wrap'
).
hasClass
(
'boys-wrap'
))
?
'1,3&rec_pos=100006'
:
'2,3&rec_pos=100006'
,
url
=
'/product/recom/maylike?gender='
+
gender
;
}
else
{
gender
=
(
specificGender
===
'boys'
||
$
(
'.mobile-wrap'
).
hasClass
(
'boys-wrap'
))
?
'1,3&rec_pos=100001'
:
'2,3&rec_pos=100002'
,
...
...
Please
register
or
login
to post a comment