Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
Email Patches
Plain Diff
Browse Files
Authored by
徐炜
2016-12-05 17:14:36 +0800
Commit
56513ff55f6e6a57126e141dd699c6027e84cf15
1 parent
21bfd27e
商品列表不使用lazyload
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
apps/product/controllers/search.js
doraemon/views/partial/common/goods.hbs
public/js/product/search/list.js
apps/product/controllers/search.js
View file @
56513ff
...
...
@@ -191,7 +191,8 @@ const search = (req, res, next) => {
res
.
render
(
'search/page'
,
{
layout
:
false
,
new
:
result
.
list
,
total
:
result
.
total
total
:
result
.
total
,
_noLazy
:
params
.
noLazy
||
false
});
}
else
{
res
.
json
(
result
);
...
...
doraemon/views/partial/common/goods.hbs
View file @
56513ff
...
...
@@ -31,10 +31,7 @@
{{#if
@root
.
_noLazy
}}
<img
src=
"
{{
image
default_images
235
314
}}
"
/>
{{else}}
{{!--
<img
class=
"lazy"
data-original=
"
{{
image
default_images
235
314
}}
"
/>
--}}
<img
src=
"
{{
image
default_images
235
314
}}
"
/>
{{/if}}
</a>
{{#
is_soon_sold_out
}}
...
...
public/js/product/search/list.js
View file @
56513ff
...
...
@@ -362,7 +362,8 @@ function search(opt) {
params
=
{
type
:
navType
,
order
:
nav
.
order
,
page
:
page
page
:
page
,
noLazy
:
true
};
if
(
shopId
)
{
...
...
Please
register
or
login
to post a comment