Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
018311c25d09d884902176e36d8cb6db4b209a49
1 parent
737af150
extract url
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
44 deletions
static/js/product/extract-url.js
static/js/product/extract-url.js
View file @
018311c
...
...
@@ -19,52 +19,25 @@ for (i = keyVal.length; i > 0; i--) {
key
=
key
[
0
];
//初始化默认参数
switch
(
key
)
{
case
'gender'
:
opt
.
gender
=
val
;
break
;
case
'brand'
:
opt
.
brand
=
val
;
break
;
case
'sort'
:
opt
.
sort
=
val
;
break
;
case
'msort'
:
opt
.
msort
=
val
;
break
;
case
'misort'
:
opt
.
misort
=
val
;
break
;
case
'color'
:
opt
.
color
=
val
;
break
;
case
'size'
:
opt
.
size
=
val
;
break
;
case
'price'
:
opt
.
price
=
val
;
break
;
case
'discount'
:
opt
.
discount
=
val
;
break
;
case
'query'
:
opt
.
query
=
val
;
break
;
case
'style'
:
opt
.
style
=
val
;
break
;
case
'limit'
:
opt
.
limit
=
val
;
break
;
case
'channel'
:
opt
.
channel
=
val
;
break
;
case
'p_d'
:
opt
.
p_d
=
val
;
opt
[
key
]
=
val
;
//discount = p_d,同时需要两个参数
if
(
key
===
'discount'
||
key
===
'p_d'
)
{
opt
.
discount
=
val
;
opt
.
p_d
=
val
;
}
}
if
(
typeof
opt
.
gender
===
'undefined'
)
{
switch
(
window
.
cookie
(
'_Channel'
))
{
case
'boys'
:
opt
.
gender
=
'1,3'
;
break
;
case
'dayLimit'
:
opt
.
dayLimit
=
val
;
case
'girls'
:
opt
.
gender
=
'2,3'
;
break
;
default
:
opt
.
gender
=
'1,2,3'
;
}
}
...
...
Please
register
or
login
to post a comment