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
b5489586fef366bb939ecb433a59584f7092584f
1 parent
92762cc2
修复新品到着,折扣专区js报错,有关页面app下载浮层添加
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
17 deletions
static/js/product/newsale/discount.js
static/js/product/newsale/newarrival.js
template/m.yohobuy.com/actions/category/brand/index.phtml
template/m.yohobuy.com/actions/category/class/index.phtml
template/m.yohobuy.com/actions/product/index/index.phtml
template/m.yohobuy.com/actions/product/newsale/new.phtml
template/m.yohobuy.com/actions/product/newsale/sale.phtml
template/m.yohobuy.com/partials/layout/use.phtml
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
static/js/product/newsale/discount.js
View file @
b548958
...
...
@@ -217,7 +217,7 @@ function search(opt) {
lazyLoad
(
$
(
'.lazy'
));
filter
.
registerCbFn
(
search
);
loading
.
initLoadingMask
();
//
loading.initLoadingMask();
//导航栏点击逻辑说明:
//1.点击非active项时切换active状态
...
...
@@ -323,4 +323,7 @@ $(window).scroll(function() {
search
();
}
}
});
\ No newline at end of file
});
//初始请求最新第一页数据
search
();
...
...
static/js/product/newsale/newarrival.js
View file @
b548958
...
...
@@ -244,7 +244,7 @@ function search(opt) {
lazyLoad
(
$
(
'.lazy'
));
filter
.
registerCbFn
(
search
);
loading
.
initLoadingMask
();
//
loading.initLoadingMask();
//导航栏点击逻辑说明:
//1.点击非active项时切换active状态
...
...
@@ -337,4 +337,7 @@ $(window).scroll(function() {
search
();
}
}
});
\ No newline at end of file
});
//初始请求最新第一页数据
search
();
...
...
template/m.yohobuy.com/actions/category/brand/index.phtml
View file @
b548958
...
...
@@ -83,4 +83,5 @@
</div>
</div>
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
{
{>
layout/footer
}
}
{
{>
layout/download_app
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/category/class/index.phtml
View file @
b548958
...
...
@@ -40,4 +40,5 @@
</div>
{
{/
category
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
{
{>
layout/footer
}
}
{
{>
layout/download_app
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/product/index/index.phtml
View file @
b548958
...
...
@@ -2,4 +2,5 @@
<div
class=
"good-list-page yoho-page"
>
{
{>
product/list
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
{
{>
layout/footer
}
}
{
{>
layout/download_app
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/product/newsale/new.phtml
View file @
b548958
...
...
@@ -83,4 +83,5 @@
{
{/if
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
{
{>
layout/footer
}
}
{
{>
layout/download_app
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/product/newsale/sale.phtml
View file @
b548958
...
...
@@ -94,4 +94,5 @@
{
{/if
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
{
{>
layout/footer
}
}
{
{>
layout/download_app
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/layout/use.phtml
View file @
b548958
...
...
@@ -122,6 +122,7 @@
{{#if newArrivalPage}}
<script>
seajs.use('js/product/newsale/newarrival');
seajs.use('js/index/footer');
</script>
{{/if}}
...
...
@@ -129,6 +130,7 @@
{{#if discountPage}}
<script>
seajs.use('js/product/newsale/discount');
seajs.use('js/index/footer');
</script>
{{/if}}
...
...
@@ -136,6 +138,7 @@
{{#if goodListPage}}
<script>
seajs.use('js/product/list');
seajs.use('js/index/footer');
</script>
{{/if}}
...
...
@@ -150,6 +153,7 @@
{{#if categoryPage}}
<script>
seajs.use('js/category/index');
seajs.use('js/index/footer');
</script>
{{/if}}
...
...
@@ -157,6 +161,7 @@
{{#if brandPage}}
<script>
seajs.use('js/category/brand');
seajs.use('js/index/footer');
</script>
{{/if}}
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
View file @
b548958
...
...
@@ -26,10 +26,6 @@ class NewsaleController extends AbstractAction
$data
=
array
();
$data
[
'newArrivalPage'
]
=
true
;
$data
[
'headerBanner'
]
=
\Product\NewsaleModel
::
getNewFocus
(
$channel
);
$goodsList
=
\Product\NewsaleModel
::
getNewProducts
(
$channel
,
60
);
if
(
!
empty
(
$goodsList
))
{
$data
+=
$goodsList
;
}
// 设置一些筛选的默认参数
$data
+=
array
(
'showDownloadApp'
=>
true
,
...
...
@@ -60,10 +56,6 @@ class NewsaleController extends AbstractAction
$data
=
array
();
$data
[
'discountPage'
]
=
true
;
$data
[
'headerBanner'
]
=
\Product\NewsaleModel
::
getNewFocus
(
$channel
);
$goodsList
=
\Product\NewsaleModel
::
getSaleProducts
(
$channel
,
60
);
if
(
!
empty
(
$goodsList
))
{
$data
+=
$goodsList
;
}
// 设置一些筛选的默认参数
$data
+=
array
(
'showDownloadApp'
=>
true
,
...
...
Please
register
or
login
to post a comment