Authored by 毕凯

完善 JS 加载方式

@@ -15,7 +15,10 @@ exports.index = function(req, res, next) { @@ -15,7 +15,10 @@ exports.index = function(req, res, next) {
15 title: result.name || 'Yoho!Buy有货', 15 title: result.name || 'Yoho!Buy有货',
16 content: result, 16 content: result,
17 activity_id: req.params.code, 17 activity_id: req.params.code,
18 - isFeature: true 18 + isFeature: true,
  19 + loadJs: [{
  20 + src: global.yoho.config.jsSdk
  21 + }]
19 }); 22 });
20 }).catch(next); 23 }).catch(next);
21 }; 24 };
@@ -124,9 +124,6 @@ @@ -124,9 +124,6 @@
124 {{#loadJs}} 124 {{#loadJs}}
125 <script type="text/javascript" src="{{src}}"></script> 125 <script type="text/javascript" src="{{src}}"></script>
126 {{/loadJs}} 126 {{/loadJs}}
127 - {{#isFeature}}  
128 - <script type="text/javascript" src="//cdn.yoho.cn/js-sdk/1.2.2/jssdk.js"></script>  
129 - {{/isFeature}}  
130 {{#unless devEnv}} 127 {{#unless devEnv}}
131 {{> analysis}} 128 {{> analysis}}
132 {{/unless}} 129 {{/unless}}