Authored by ping

update

... ... @@ -52,4 +52,5 @@ gateway.url=http://192.168.102.205:8080/gateway
#调用运维发送短信接口时的,需要传入的密码(AES加密)
sendSMS.password=7jVEde87bLffoTnt6tGxmw==
#可口可乐活动,微信分享地址
#cocacola.wechat.share.url=http://testservice.yoho.cn/activity/cocacola/html/index1.html
cocacola.wechat.share.url=http://testservice.yoho.cn/activity/cocacola/html/index1.html
\ No newline at end of file
... ...
... ... @@ -200,7 +200,7 @@
</div>
<div class="footer">
<div class="btn">
<a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho"><img src="/activity/cocacola/images/cokeBtn.png"></a>
<img src="/activity/cocacola/images/cokeBtn.png">
</div>
<span>活动说明</span>
</div>
... ... @@ -212,7 +212,7 @@
<span>Yoho!Buy有货优惠券</span>
</div>
<div class="btn-list">
<span><a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho">下载Yoho!Buy有货</a></span>
<span>下载Yoho!Buy有货</span>
<span style="color: red;">我知道了</span>
</div>
</div>
... ... @@ -284,7 +284,7 @@
}, true);
}
setTimeout(function(){
console.log(1);
window.location.href = "http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho";
}, 2000)
})
$('.btn-list span:eq(1)').on('click',function(){
... ... @@ -298,7 +298,7 @@
}, true);
}
setTimeout(function(){
console.log(1);
window.location.href = "http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho";
}, 2000)
})
</script>
... ... @@ -307,95 +307,96 @@
/**
* 微信分享
*/
(function($) {
if (typeof(wx) == "undefined") {
return;
}
/* var shareUrl = "";
$.ajax({
async : false,
url : "/activity/cocacola/CocacolaController/getWechatShareUrl",
dataType : "json",
cache : false,
success : function(data) {
if (!data || data.code != 200) {
return;
}
shareUrl = data.data.wechatShareUrl;
}
}); */
var _weChatInterface = 'http://www.yohoshow.com/api/wechat/getSignPackage';
var shareTitle = '来Yoho!Buy有货玩潮流,潮流逛不停';
var shareImg = 'http://img12.static.yhbimg.com/activity/2016/04/07/11/02b3b297581ace1ca6251f7f9e67ca7937.jpg';
var shareDesc = '揭盖赢福利,潮流逛不停';
//var shareLink = "http://feature.yoho.cn/activity/cocacola/index.html";
var shareLink = "http://service.yoho.cn/activity/cocacola/html/index1.html";
$.getJSON(_weChatInterface + '?pageurl=' +
encodeURIComponent(location.href.split('#')[0]) + '&callback=?', function(json) {
var _appId, _timestamp, _nonceStr, _signature;
if (json !== undefined && json !== '') {
_appId = json.appId.toString();
_timestamp = json.timestamp;
_nonceStr = json.nonceStr.toString();
_signature = json.signature.toString();
(function($) {
if (typeof(wx) == "undefined") {
return;
}
/* var shareUrl = "";
$.ajax({
async : false,
url : "/activity/cocacola/CocacolaController/getWechatShareUrl",
dataType : "json",
cache : false,
success : function(data) {
if (!data || data.code != 200) {
return;
}
shareUrl = data.data.wechatShareUrl;
}
}); */
var _weChatInterface = 'http://www.yohoshow.com/api/wechat/getSignPackage';
var shareTitle = '来Yoho!Buy有货玩潮流,潮流逛不停';
var shareImg = 'http://img12.static.yhbimg.com/activity/2016/04/07/11/02b3b297581ace1ca6251f7f9e67ca7937.jpg';
var shareDesc = '揭盖赢福利,潮流逛不停';
//var shareLink = "http://feature.yoho.cn/activity/cocacola/index.html";
var shareLink = "http://service.yoho.cn/activity/cocacola/html/index1.html";
$.getJSON(_weChatInterface + '?pageurl=' +
encodeURIComponent(location.href.split('#')[0]) + '&callback=?', function(json) {
var _appId, _timestamp, _nonceStr, _signature;
if (json !== undefined && json !== '') {
_appId = json.appId.toString();
_timestamp = json.timestamp;
_nonceStr = json.nonceStr.toString();
_signature = json.signature.toString();
wx.config({
debug: false,
appId: _appId,
timestamp: _timestamp,
nonceStr: _nonceStr,
signature: _signature,
jsApiList: [
'checkJsApi',
'onMenuShareTimeline',
'onMenuShareAppMessage',
'onMenuShareQQ',
'onMenuShareWeibo',
'hideMenuItems',
'showMenuItems',
'hideAllNonBaseMenuItem',
'showAllNonBaseMenuItem',
'translateVoice',
'startRecord',
'stopRecord',
'onRecordEnd',
'playVoice',
'pauseVoice',
'stopVoice',
'uploadVoice',
'downloadVoice',
'chooseImage',
'previewImage',
'uploadImage',
'downloadImage',
'getNetworkType',
'openLocation',
'getLocation',
'hideOptionMenu',
'showOptionMenu',
'closeWindow',
'scanQRCode',
'chooseWXPay',
'openProductSpecificView',
'addCard',
'chooseCard',
'openCard'
]
});
}
});
wx.ready(function() {
var shareData = {
title: shareTitle,
desc: shareDesc,
imgUrl: shareImg,
link: shareLink
};
wx.onMenuShareAppMessage(shareData);
wx.onMenuShareTimeline(shareData);
wx.onMenuShareQQ(shareData);
wx.onMenuShareWeibo(shareData);
});
}(jQuery));
wx.config({
debug: false,
appId: _appId,
timestamp: _timestamp,
nonceStr: _nonceStr,
signature: _signature,
jsApiList: [
'checkJsApi',
'onMenuShareTimeline',
'onMenuShareAppMessage',
'onMenuShareQQ',
'onMenuShareWeibo',
'hideMenuItems',
'showMenuItems',
'hideAllNonBaseMenuItem',
'showAllNonBaseMenuItem',
'translateVoice',
'startRecord',
'stopRecord',
'onRecordEnd',
'playVoice',
'pauseVoice',
'stopVoice',
'uploadVoice',
'downloadVoice',
'chooseImage',
'previewImage',
'uploadImage',
'downloadImage',
'getNetworkType',
'openLocation',
'getLocation',
'hideOptionMenu',
'showOptionMenu',
'closeWindow',
'scanQRCode',
'chooseWXPay',
'openProductSpecificView',
'addCard',
'chooseCard',
'openCard'
]
});
}
});
wx.ready(function() {
var shareData = {
title: shareTitle,
desc: shareDesc,
imgUrl: shareImg,
link: shareLink
};
wx.onMenuShareAppMessage(shareData);
wx.onMenuShareTimeline(shareData);
wx.onMenuShareQQ(shareData);
wx.onMenuShareWeibo(shareData);
});
}(jQuery));
</script>
</html>
\ No newline at end of file
... ...
... ... @@ -146,7 +146,7 @@
</div>
<div class="footer">
<div class="btn">
<a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho"><img src="/activity/cocacola/images/cokeBtn.png"></a>
<img src="/activity/cocacola/images/cokeBtn.png">
</div>
<span>活动说明</span>
</div>
... ... @@ -185,6 +185,18 @@
}
}());
</script>
<script>
$('.btn img').on('click',function(){
if (window._yas) {
window._yas.sendCustomInfo({
'downApp': 'Y'
}, true);
}
setTimeout(function(){
window.location.href = "http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho";
}, 2000)
})
</script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
<script type="text/javascript">
/**
... ...