Authored by 张孝茹

js

... ... @@ -128,7 +128,7 @@
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
{{/wechatShare}}
{{#if devEnv}}
<script>
<!-- <script>
var STATIC_RESOURCE_HASH = '{{startTime}}';
var STATIC_RESOURCE_PATH = '//{{devHost}}:{{port}}';
window.jsFiles = [
... ... @@ -141,9 +141,11 @@
,'{{src}}'
{{/loadJs}}
];
</script>
</script> -->
<script src="//{{devHost}}:{{port}}/libs.js?t={{startTime}}"></script>
<script src="//{{devHost}}:{{port}}/{{module}}.{{page}}.js?t={{startTime}}"></script>
{{^}}
<script>
<!-- <script>
var STATIC_RESOURCE_HASH = '{{startTime}}';
var STATIC_RESOURCE_PATH = '//cdn.yoho.cn/yohobuywap-node/{{version}}';
window.jsFiles = [
... ... @@ -156,9 +158,12 @@
,'{{src}}'
{{/loadJs}}
];
</script>
</script> -->
<script src="//cdn.yoho.cn/yohobuywap-node/{{version}}/libs.js?t={{startTime}}"></script>
<script src="//cdn.yoho.cn/yohobuywap-node/{{version}}/{{module}}.{{page}}.js?t={{startTime}}"></script>
{{/if}}
<script>
<!-- <script>
(function() {
function addOnload(node, callback) {
var supportOnload = 'onload' in node;
... ... @@ -213,7 +218,7 @@
loadJS();
}());
</script>
</script> -->
{{#unless devEnv}}
{{> analysis}}
{{/unless}}
... ...
... ... @@ -38,11 +38,21 @@ let shareData = {
imgUrl: productPic
};
if (yoho.isMarsApp || yoho.isNowApp) {
yoho.ready(function() {
let nowShareData = {
title: `推荐这本城市指南给你:${productName}`,
link: location.href.split('?')[0],
desc: '最近很多 KOL 在推!据说是探索城市必备神器',
desCircle: `最近被刷屏的这本城市指南终于可以买到了!${productName}`,
imgUrl: productPic
};
yoho.ready(function() {
if (yoho.isMarsApp) {
yoho.invokeMethod('set.shareInfo', shareData);
});
}
} else if (yoho.isNowApp) {
yoho.invokeMethod('set.shareInfo', nowShareData);
}
});
window.rePosFooter && window.rePosFooter();
... ...