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
陈轩
2017-01-10 11:44:21 +0800
Commit
2b8f263a0072584cda5177010d2731cebcc53d29
1 parent
72e04495
new-arrial guang type helpers
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
2 deletions
config/common.js
public/hbs/product/new/guang-article.hbs
public/hbs/product/new/guangType.js
config/common.js
View file @
2b8f263
...
...
@@ -17,7 +17,7 @@ module.exports = {
assetUrl
:
'//127.0.0.1:5001'
,
testCode
:
'yoho4946abcdef#$%&!@'
,
domains
:
{
api
:
'http://api-test
2
.yohops.com:9999/'
,
api
:
'http://api-test
3
.yohops.com:9999/'
,
// api: 'http://api-test3.yohops.com:9999/',
// service: 'http://service-test3.yohops.com:9999/',
// liveApi: 'http://testapi.live.yohops.com:9999/',
...
...
public/hbs/product/new/guang-article.hbs
View file @
2b8f263
<div
class=
"good-info"
>
<div
class=
"guang-article"
>
<div
class=
"cate tip"
>
潮品
</div>
<a
href=
"
{{
url
}}
"
>
{{
guangType
category_id
}}
<img
src=
"
{{
image
src
322
214
1
}}
"
alt=
""
>
<div
class=
"footer"
>
<p
class=
"digest"
>
{{
title
}}
</p>
...
...
@@ -13,5 +14,6 @@
</div>
</div>
</div>
</a>
</div>
</div>
\ No newline at end of file
...
...
public/hbs/product/new/guangType.js
0 → 100644
View file @
2b8f263
let
Handlebars
=
require
(
'handlebars'
);
module
.
exports
=
guangType
=>
{
let
html
=
''
;
switch
(
guangType
)
{
case
'1'
:
html
=
'<div class="cate topic">话题</div>'
;
break
;
case
'2'
:
html
=
'<div class="cate collocation">搭配</div>'
;
break
;
case
'3'
:
html
=
'<div class="cate fashion-man">潮人</div>'
;
break
;
case
'4'
:
html
=
'<div class="cate fashion-good">潮品</div>'
;
break
;
case
'5'
:
html
=
'<div class="cate tip">小贴士</div>'
;
break
;
case
'19'
:
html
=
'<div class="cate tip">专题</div>'
;
break
;
}
return
new
Handlebars
.
SafeString
(
html
);
};
\ No newline at end of file
...
...
Please
register
or
login
to post a comment