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
梁志锋
9 years ago
Commit
577f9024d423708cebd837d63e3f0698638ae99a
1 parent
f12db181
update
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
static/js/product/newsale/discount.js
template/m.yohobuy.com/actions/product/newsale/new.phtml
template/m.yohobuy.com/actions/product/newsale/sale.phtml
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
static/js/product/newsale/discount.js
View file @
577f902
...
...
@@ -13,9 +13,9 @@ var swiper;
var
filter
=
require
(
'../../plugin/filter'
);
var
$goodsContainer
=
$
(
'#goods-container'
),
$ngc
=
$goodsContainer
.
children
(
'.new-goods'
),
$pgc
=
$goodsContainer
.
children
(
'.price-goods'
),
$dgc
=
$goodsContainer
.
children
(
'.discount-goods'
);
$ngc
=
$
(
$goodsContainer
.
children
().
get
(
0
)),
$pgc
=
$
(
$goodsContainer
.
children
().
get
(
1
)),
$dgc
=
$
(
$goodsContainer
.
children
().
get
(
2
));
var
winH
=
$
(
window
).
height
();
...
...
template/m.yohobuy.com/actions/product/newsale/new.phtml
View file @
577f902
...
...
@@ -41,8 +41,6 @@
</div>
{
{/
goodsContainer
}
}
{
{>
filter
}
}
</div>
...
...
template/m.yohobuy.com/actions/product/newsale/sale.phtml
View file @
577f902
...
...
@@ -40,12 +40,18 @@
<div
id=
"goods-container"
class=
"goods-container"
>
{
{#
goodsContainer
}
}
<div
class=
"new-goods container"
>
{
{#if
goods
}
}
{
{#
goods
}
}
{
{>
good
}
}
{
{/
goods
}
}
{
{^
}
}
<p
class=
"no-result"
>未找到相关搜索结果</p>
{
{/if
}
}
</div>
<div
class=
"price-goods container hide"
></div>
<div
class=
"discount-goods container hide"
></div>
{
{/
goodsContainer
}
}
{
{>
filter
}
}
</div>
...
...
@@ -90,7 +96,7 @@
{
{/if
}
}
{
{#if
discount
}
}
<input
id=
"
page"
type=
"hidden"
value=
{
{page
}
}>
<input
id=
"
discount"
type=
"hidden"
value=
{
{discount
}
}>
{
{/if
}
}
</div>
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
View file @
577f902
...
...
@@ -58,6 +58,7 @@ class NewsaleController extends AbstractAction
$this
->
channelTrans
(
$channel
);
$data
=
array
();
$data
[
'discount'
]
=
true
;
$data
[
'headerBanner'
]
=
\Product\NewsaleModel
::
getNewFocus
(
$channel
);
$goodsList
=
\Product\NewsaleModel
::
getSaleProducts
(
$channel
,
60
);
if
(
!
empty
(
$goodsList
))
{
...
...
@@ -72,7 +73,7 @@ class NewsaleController extends AbstractAction
'size'
=>
0
,
'discount'
=>
'0.1,0.9'
);
//var_dump($data);exit;
$this
->
_view
->
display
(
'sale'
,
$data
);
}
...
...
Please
register
or
login
to post a comment