Authored by 陈轩

new-arrial guang type helpers

... ... @@ -17,7 +17,7 @@ module.exports = {
assetUrl: '//127.0.0.1:5001',
testCode: 'yoho4946abcdef#$%&!@',
domains: {
api: 'http://api-test2.yohops.com:9999/',
api: 'http://api-test3.yohops.com:9999/',
// api: 'http://api-test3.yohops.com:9999/',
// service: 'http://service-test3.yohops.com:9999/',
// liveApi: 'http://testapi.live.yohops.com:9999/',
... ...
<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
... ...
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
... ...