Authored by 毕凯

完善 JS 加载方式

... ... @@ -15,7 +15,10 @@ exports.index = function(req, res, next) {
title: result.name || 'Yoho!Buy有货',
content: result,
activity_id: req.params.code,
isFeature: true
isFeature: true,
loadJs: [{
src: global.yoho.config.jsSdk
}]
});
}).catch(next);
};
... ...
... ... @@ -124,9 +124,6 @@
{{#loadJs}}
<script type="text/javascript" src="{{src}}"></script>
{{/loadJs}}
{{#isFeature}}
<script type="text/javascript" src="//cdn.yoho.cn/js-sdk/1.2.2/jssdk.js"></script>
{{/isFeature}}
{{#unless devEnv}}
{{> analysis}}
{{/unless}}
... ...