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
Plain Diff
Browse Files
Authored by
周少峰
9 years ago
Commit
f2e2715cfaf817615f52680b42e4ba808b64950b
2 parents
b6bab865
800a77fa
Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into feature/web-list
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
9 deletions
library/WebPlugin/HelperSearch.php
template/www.yohobuy.com/partials/product/good.phtml
web-static/js/header.js
web-static/sass/product/_good.scss
yohobuy/www.yohobuy.com/application/models/Product/Index.php
yohobuy/www.yohobuy.com/application/models/Product/Search.php
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Search.php
library/WebPlugin/HelperSearch.php
View file @
f2e2715
...
...
@@ -396,8 +396,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'
];
...
...
@@ -993,7 +995,7 @@ class HelperSearch
$url
= self::buildUrl(array_merge(
$params
, array(
'order' => 'p_d_desc'
)));
$desc
=
tru
e;
$desc
=
fals
e;
$active
= true;
}
else {
...
...
template/www.yohobuy.com/partials/product/good.phtml
View file @
f2e2715
...
...
@@ -38,6 +38,11 @@
</div>
<div class="good-detail-text">
<a href="{{url}}" target="_blank">{{{name}}}</a>
{{#brand}}
<p class="brand">
<a href="{{url}}">{{name}}</a>
</p>
{{/brand}}
<p class="price">
{{# marketPrice}}
<span class="market-price">¥{{.}}</span>
...
...
@@ -47,4 +52,4 @@
</span>
</p>
</div>
</div>
\ No newline at end of file
</div>
...
...
web-static/js/header.js
View file @
f2e2715
...
...
@@ -840,7 +840,7 @@ function closeCover() {
* @return {[type]} [description]
*/
function
actionCover
()
{
var
gender
=
cookieMap
.
_Gender
;
var
gender
=
window
.
cookie
(
'_Gender'
)
;
var
newMask
=
''
;
var
windowheight
=
''
;
var
selfheight
=
''
;
...
...
@@ -1477,6 +1477,7 @@ function init() {
actionNav
();
//处理导航
actionTipPic
();
//鼠标移入后查询
actionExeTemplate
();
//处理模板
actionCover
();
//初次登录弹框
actionInitCookie
();
//初始化cookie
actionExeCookieMap
();
//格式化cookie
actionGoodsCart
();
//初始化购物车插件
...
...
@@ -1494,7 +1495,6 @@ function init() {
actionListenDelCarGoods
();
//监听购物车删除
actionListenCartMore
();
//
actionLoginInfo
();
//获取登录信息
actionCover
();
//初次登录弹框
actionAddKeyWords
();
//增加关键字
}
init
();
...
...
web-static/sass/product/_good.scss
View file @
f2e2715
...
...
@@ -50,7 +50,14 @@
}
>
.price
{
margin-top
:
10px
;
margin-top
:
5px
;
}
.brand
{
a
{
color
:
#666
;
line-height
:
1
.5
;
}
}
.market-price
{
...
...
yohobuy/www.yohobuy.com/application/models/Product/Index.php
View file @
f2e2715
...
...
@@ -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 @
f2e2715
...
...
@@ -158,7 +158,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
();
...
...
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Search.php
View file @
f2e2715
...
...
@@ -70,4 +70,4 @@ class SearchController extends WebAction
$this
->
setWebNavHeader
();
$this
->
_view
->
display
(
'search'
,
$data
);
}
}
\ No newline at end of file
}
...
...
Please
register
or
login
to post a comment