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
Rock Zhang
9 years ago
Commit
8ed5706b8509483cea4339bd966d8d870928cfb3
1 parent
5a57c913
添加筛选的拼接字段
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
library/Plugin/DataProcess/ListProcess.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/List.php
library/Plugin/DataProcess/ListProcess.php
View file @
8ed5706
...
...
@@ -91,6 +91,7 @@ class ListProcess
$result
=
array
(
'title'
=>
'品牌'
,
'name'
=>
'所有品牌'
,
'dataType'
=>
'brand'
,
'subs'
=>
array
(
array
(
'chosed'
=>
true
,
...
...
@@ -119,6 +120,7 @@ class ListProcess
$result
=
array
(
'title'
=>
'颜色'
,
'name'
=>
'所有颜色'
,
'dataType'
=>
'color'
,
'subs'
=>
array
(
array
(
'chosed'
=>
true
,
...
...
@@ -144,6 +146,7 @@ class ListProcess
$result
=
array
(
'title'
=>
'折扣'
,
'name'
=>
'所有商品'
,
'dataType'
=>
'p_d'
,
'subs'
=>
array
(
array
(
'chosed'
=>
true
,
...
...
@@ -169,6 +172,7 @@ class ListProcess
$result
=
array
(
'title'
=>
'性别'
,
'name'
=>
'所有性别'
,
'dataType'
=>
'gender'
,
'subs'
=>
array
(
array
(
'chosed'
=>
true
,
...
...
@@ -176,11 +180,11 @@ class ListProcess
'name'
=>
'所有性别'
),
array
(
'dataId'
=>
1
,
'dataId'
=>
'boys'
,
'name'
=>
'男'
),
array
(
'dataId'
=>
2
,
'dataId'
=>
'girls'
,
'name'
=>
'女'
),
)
...
...
@@ -194,6 +198,7 @@ class ListProcess
$result
=
array
(
'title'
=>
'品类'
,
'name'
=>
'所有品类'
,
'dataType'
=>
'msort'
,
'subs'
=>
array
(
array
(
'chosed'
=>
true
,
...
...
@@ -232,6 +237,7 @@ class ListProcess
$result
=
array
(
'title'
=>
'价格'
,
'name'
=>
'所有价格'
,
'dataType'
=>
'price'
,
'subs'
=>
array
(
array
(
'chosed'
=>
true
,
...
...
@@ -256,6 +262,7 @@ class ListProcess
$result
=
array
(
'title'
=>
'尺码'
,
'name'
=>
'所有尺码'
,
'dataType'
=>
'size'
,
'subs'
=>
array
(
array
(
'chosed'
=>
true
,
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/List.php
View file @
8ed5706
...
...
@@ -35,7 +35,7 @@ class ListController extends AbstractAction
'goodList'
=>
array
(
'brand'
=>
0
,
'msort'
=>
0
,
'gender'
=>
$this
->
getCookie
(
'_Channel'
,
'
1,2
'
),
'gender'
=>
$this
->
getCookie
(
'_Channel'
,
'
boys
'
),
'sort'
=>
0
,
'price'
=>
0
,
'size'
=>
0
,
...
...
@@ -104,7 +104,7 @@ class ListController extends AbstractAction
// 转换性别
if
(
$gender
===
'boys'
)
{
$gender
=
'1,
2
'
;
$gender
=
'1,
3
'
;
}
elseif
(
$gender
===
'girls'
)
{
...
...
@@ -180,7 +180,7 @@ class ListController extends AbstractAction
),
'brand'
=>
$brand
,
'msort'
=>
0
,
'gender'
=>
$this
->
getCookie
(
'_Channel'
,
'
1,3
'
),
'gender'
=>
$this
->
getCookie
(
'_Channel'
,
'
boys
'
),
'sort'
=>
0
,
'price'
=>
0
,
'size'
=>
0
,
...
...
Please
register
or
login
to post a comment