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-10-29 13:25:20 +0800
Commit
0b52cb9537f02be739b9457e17455d5c84c06545
2 parents
a60fe3eb
5bc169d6
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
static/js/product/list.js
template/m.yohobuy.com/partials/good.phtml
template/m.yohobuy.com/partials/product/list.phtml
static/js/product/list.js
View file @
0b52cb9
...
...
@@ -40,8 +40,8 @@ var $listNav = $('#list-nav'),
navInfo
=
{
newest
:
{
order
:
1
,
reload
:
false
,
page
:
1
,
reload
:
true
,
page
:
0
,
end
:
false
},
price
:
{
...
...
@@ -356,3 +356,6 @@ $brandHeader.children('.btn-col').bind('tap', function() {
}
});
});
//初始请求最新第一页数据
search
();
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/good.phtml
View file @
0b52cb9
<div class="good-info" data-id="{{id}}">
{
{#if
.
}
}
{
{!--
剔除值为false的项
--
}
}
<div
class=
"good-info"
data-id=
"{{id}}"
>
<div
class=
"tag-container clearfix"
>
{
{#
tags
}
}
{
{#
is_new
}
}
...
...
@@ -37,4 +38,5 @@
{
{/price
}
}
</div>
</div>
</div>
</div>
{
{/if
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/product/list.phtml
View file @
0b52cb9
...
...
@@ -82,11 +82,7 @@
</li>
</ul>
<div
id=
"goods-container"
class=
"goods-container"
>
<div
class=
"new-goods container clearfix"
>
{
{#
new
}
}
{
{>
good
}
}
{
{/
new
}
}
</div>
<div
class=
"new-goods container clearfix"
></div>
<div
class=
"price-goods container clearfix hide"
></div>
<div
class=
"discount-goods container clearfix hide"
></div>
...
...
Please
register
or
login
to post a comment