Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
yangyang
9 years ago
Commit
74241f25121dfc7bfc323d3dce56b8907e7266c9
1 parent
cd7417a9
修改一些bug
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
library/WebPlugin/HelperSearch.php
yohobuy/www.yohobuy.com/application/models/Product/Index.php
yohobuy/www.yohobuy.com/application/models/Product/Search.php
library/WebPlugin/HelperSearch.php
View file @
74241f2
...
...
@@ -391,8 +391,10 @@ class HelperSearch
$sortList
[
$key
][
'active'
]
=
isset
(
self
::
$params
[
'msort'
])
&&
self
::
$params
[
'msort'
]
==
$val
[
'sort_id'
]
?
true
:
false
;
$sortList
[
$key
][
'childList'
][]
=
array
(
'name'
=>
'全部'
.
$val
[
'sort_name'
],
'href'
=>
self
::
buildUrl
(
array_merge
(
$gender
,
array
(
'msort'
=>
$val
[
'sort_id'
])))
'href'
=>
self
::
buildUrl
(
array_merge
(
$gender
,
array
(
'msort'
=>
$val
[
'sort_id'
]))),
'childActive'
=>
isset
(
self
::
$params
[
'msort'
])
&&
!
isset
(
self
::
$params
[
'misort'
])
&&
self
::
$params
[
'msort'
]
==
$val
[
'sort_id'
]
?
true
:
false
);
if
(
isset
(
$val
[
'sub'
])
&&
!
empty
(
$val
[
'sub'
]))
{
foreach
(
$val
[
'sub'
]
as
$k
=>
$v
)
{
$sortList
[
$key
][
'childList'
][
$k
+
1
][
'name'
]
=
$v
[
'sort_name'
];
...
...
@@ -988,7 +990,7 @@ class HelperSearch
$url
= self::buildUrl(array_merge(
$params
, array(
'order' => 'p_d_desc'
)));
$desc
=
tru
e;
$desc
=
fals
e;
$active
= true;
}
else {
...
...
yohobuy/www.yohobuy.com/application/models/Product/Index.php
View file @
74241f2
...
...
@@ -23,7 +23,7 @@ class IndexModel
$urlList
[
'product'
]
=
SearchData
::
getProductUrl
(
$searchCondition
[
'condition'
]);
// 组合搜索分类url
$urlList
[
'sort'
]
=
SearchData
::
getClassesUrl
(
$searchCondition
[
'sortCondition'
]
);
$urlList
[
'sort'
]
=
SearchData
::
getClassesUrl
();
//批量调接口获取数据
$result
=
Yohobuy
::
getMulti
(
$urlList
);
...
...
yohobuy/www.yohobuy.com/application/models/Product/Search.php
View file @
74241f2
...
...
@@ -157,7 +157,6 @@ class SearchModel
// 组合搜索商品url
$urlList
[
'product'
]
=
SearchData
::
getProductUrl
(
$searchCondition
[
'condition'
]);
// 组合搜索分类url
//$urlList['sort'] = SearchData::getClassesUrl($searchCondition['sortCondition']);
$urlList
[
'sort'
]
=
SearchData
::
getClassesUrl
();
// 组合搜索折扣区间url
$urlList
[
'discount'
]
=
SearchData
::
getDiscountUrl
();
...
...
Please
register
or
login
to post a comment