|
|
let Handlebars = require('handlebars/dist/handlebars.js');
|
|
|
|
|
|
module.exports = guangType => {
|
|
|
let html = '';
|
|
|
let html = '<div class="cate fashion-good">潮品</div>';
|
|
|
|
|
|
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;
|
|
|
}
|
|
|
// 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);
|
|
|
}; |
...
|
...
|
|