Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
姜枫
2016-07-29 13:39:02 +0800
Commit
a844c98cb24cc27420085187858b0de51b181cd3
1 parent
9cc176de
change url to this.url in front hbs
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
public/js/product/shop.page.js
public/tpl/product/shop-goods.hbs
public/js/product/shop.page.js
View file @
a844c98
...
...
@@ -2,9 +2,8 @@ var lazyload = require('yoho-jquery-lazyload');
var
tplFn
=
require
(
'../../tpl/product/shop-goods.hbs'
);
// require('../common/header');
// require('./list/favorite');
require
(
'../common/header'
);
require
(
'./list/favorite'
);
lazyload
();
...
...
public/tpl/product/shop-goods.hbs
View file @
a844c98
{{#
each
products
}}
<div
class=
"goods-info"
data-skn=
"
{{
productSkn
}}
"
>
<a
href=
"
{{
url
}}
"
target=
"_blank"
>
<img
class=
"lazy thumb"
src=
"
{{
defaultImages
}}
"
style=
"display: block;"
>
<a
href=
"
{{
this
.
url
}}
"
target=
"_blank"
>
<img
class=
"lazy thumb"
src=
"
{{
defaultImages
}}
"
>
</a>
<div
class=
"desc"
>
<a
class=
"name"
href=
"
{{
url
}}
"
target=
"_blank"
>
{{
productName
}}
</a>
<a
class=
"name"
href=
"
{{
this
.
url
}}
"
target=
"_blank"
>
{{
productName
}}
</a>
<p
class=
"price"
>
¥
{{
salesPrice
}}
</p>
</div>
</div>
...
...
Please
register
or
login
to post a comment