Authored by htoooth

Merge branch 'feature/new-product-detail' of http://git.yoho.cn/fe/yohobuy-node

…into feature/new-product-detail
... ... @@ -28,3 +28,15 @@ exports.if_cond = (left, operator, right, options) => {
}
};
exports.escapeType = (value) => {
console.log(value);
let strs = value.split('');
console.log(strs);
if (strs.length === 2) {
strs[2] = strs[1];
strs[1] = '        ';
}
console.log(strs.join(''));
return strs.join('');
};
... ...
... ... @@ -46,7 +46,7 @@
{{# basic}}
<li>
{{#if dColor}}
{{key}}: <span id="desc-color">{{value}}</span>
{{{escapeType key}}}: <span id="desc-color">{{value}}</span>
{{^}}
{{key}}: {{value}}
{{/if}}
... ...