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
Plain Diff
Browse Files
Authored by
hf
2015-11-09 10:18:02 +0800
Commit
217f9ab138147bf86047df4a021180080d171770
2 parents
153ec87c
80210de2
Merge remote-tracking branch 'origin/develop' into test
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
145 additions
and
1 deletions
.gitignore
template/m.yohobuy.com/actions/product/newsale/hotrank.phtml
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
yohobuy/m.yohobuy.com/configs/routes.index.ini
.gitignore
View file @
217f9ab
...
...
@@ -10,4 +10,8 @@ npm-debug.log
composer.lock
vendor/
.jscsrc
.jshintrc
\ No newline at end of file
.jshintrc
.tags
.tags_sorted_by_file
yohobuyP.sublime-project
yohobuyP.sublime-workspace
...
...
template/m.yohobuy.com/actions/product/newsale/hotrank.phtml
0 → 100644
View file @
217f9ab
{
{>
layout/header
}
}
<div
class=
"discount-page yoho-page"
>
{
{#
headerBanner
}
}
{
{>
product/banner_swipe_and_single
}
}
{
{/
headerBanner
}
}
<ul
id=
"list-nav"
class=
"list-nav clearfix"
>
<li
class=
"new active"
>
<a
href=
"javascript:void(0);"
>
<span
class=
"spanTest"
>最新</span>
<span
class=
"iconfont cur"
>
616
;</span>
</a>
</li>
<li
class=
"price"
>
<a
href=
"javascript:void(0);"
>
<span
class=
"spanTest"
>价格</span>
<span
class=
"icon"
>
<i
class=
"iconfont up"
>
615
;</i>
<i
class=
"iconfont down cur"
>
616
;</i>
</span>
</a>
</li>
<li
class=
"discount"
>
<a
href=
"javascript:void(0);"
>
<span
class=
"spanTest"
>折扣</span>
<span
class=
"icon"
>
<i
class=
"iconfont up"
>
615
;</i>
<i
class=
"iconfont down cur"
>
616
;</i>
</span>
</a>
</li>
<li
class=
"filter"
>
<a
href=
"javascript:void(0);"
>
<span
class=
"spanTest"
>筛选</span>
<span
class=
"iconfont"
>
613
;</span>
</a>
</li>
</ul>
<div
id=
"goods-container"
class=
"goods-container"
>
<div
class=
"new-goods container clearfix"
>
{
{#
goods
}
}
{
{>
good
}
}
{
{/
goods
}
}
</div>
<div
class=
"price-goods container hide clearfix"
></div>
<div
class=
"discount-goods container hide clearfix"
></div>
{
{>
filter
}
}
</div>
{
{#if
brand
}
}
<input
id=
"brand"
type=
"hidden"
value=
{
{brand
}
}>
{
{/if
}
}
{
{#if
gender
}
}
<input
id=
"gender"
type=
"hidden"
value=
{
{gender
}
}>
{
{/if
}
}
{
{#if
sort
}
}
<input
id=
"sort"
type=
"hidden"
value=
{
{sort
}
}>
{
{/if
}
}
{
{#if
msort
}
}
<input
id=
"msort"
type=
"hidden"
value=
{
{msort
}
}>
{
{/if
}
}
{
{#if
misort
}
}
<input
id=
"misort"
type=
"hidden"
value=
{
{misort
}
}>
{
{/if
}
}
{
{#if
color
}
}
<input
id=
"color"
type=
"hidden"
value=
{
{color
}
}>
{
{/if
}
}
{
{#if
size
}
}
<input
id=
"size"
type=
"hidden"
value=
{
{size
}
}>
{
{/if
}
}
{
{#if
price
}
}
<input
id=
"price"
type=
"hidden"
value=
{
{price
}
}>
{
{/if
}
}
{
{#if
p_d
}
}
<input
id=
"p_d"
type=
"hidden"
value=
{
{p_d
}
}>
{
{/if
}
}
{
{#if
channel
}
}
<input
id=
"channel"
type=
"hidden"
value=
{
{channel
}
}>
{
{/if
}
}
{
{#if
limit
}
}
<input
id=
"limit"
type=
"hidden"
value=
{
{limit
}
}>
{
{/if
}
}
{
{#if
page
}
}
<input
id=
"page"
type=
"hidden"
value=
{
{page
}
}>
{
{/if
}
}
{
{#if
discount
}
}
<input
id=
"discount"
type=
"hidden"
value=
{
{discount
}
}>
{
{/if
}
}
{
{>
product/suspend-cart
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
View file @
217f9ab
...
...
@@ -70,6 +70,33 @@ class NewsaleController extends AbstractAction
}
/**
* 热销排行榜
*
* @param int channel 1:男生,2:女生,3:潮童,4:创意生活
*/
public
function
hotrankAction
()
{
$this
->
setTitle
(
'热销排行榜'
);
$this
->
setNavHeader
(
'热销排行榜'
);
// 设置一些默认参数
$data
=
array
(
'discountPage'
=>
true
,
'showDownloadApp'
=>
true
,
'pageFooter'
=>
true
,
'brand'
=>
'0'
,
'sort'
=>
'0'
,
'gender'
=>
Helpers
::
getGenderByCookie
(),
'price'
=>
'0'
,
'size'
=>
'0'
,
'discount'
=>
'0.1,0.9'
,
'cartUrl'
=>
Helpers
::
url
(
'/cart/index/index'
,
null
),
);
$this
->
_view
->
display
(
'hotrank'
,
$data
);
}
/**
* Ajax方式筛选新品到着、折扣专区商品
*
* @return array 根据指定条件筛选之后的商品
...
...
yohobuy/m.yohobuy.com/configs/routes.index.ini
View file @
217f9ab
...
...
@@ -89,6 +89,13 @@ routes.productsale.route.module = Product
routes.productsale.route.controller
=
Newsale
routes.productsale.route.action
=
Discount
; 热销排行榜
routes.productsale.type
=
"rewrite"
routes.productsale.match
=
"/hotrank"
routes.productsale.route.module
=
Product
routes.productsale.route.controller
=
Newsale
routes.productsale.route.action
=
Hotrank
; 女生首页
routes.girls.type
=
"rewrite"
routes.girls.match
=
"/girl$"
...
...
Please
register
or
login
to post a comment