Authored by ping

update

@@ -52,4 +52,5 @@ gateway.url=http://192.168.102.205:8080/gateway @@ -52,4 +52,5 @@ gateway.url=http://192.168.102.205:8080/gateway
52 #调用运维发送短信接口时的,需要传入的密码(AES加密) 52 #调用运维发送短信接口时的,需要传入的密码(AES加密)
53 sendSMS.password=7jVEde87bLffoTnt6tGxmw== 53 sendSMS.password=7jVEde87bLffoTnt6tGxmw==
54 #可口可乐活动,微信分享地址 54 #可口可乐活动,微信分享地址
  55 +#cocacola.wechat.share.url=http://testservice.yoho.cn/activity/cocacola/html/index1.html
55 cocacola.wechat.share.url=http://testservice.yoho.cn/activity/cocacola/html/index1.html 56 cocacola.wechat.share.url=http://testservice.yoho.cn/activity/cocacola/html/index1.html
@@ -200,7 +200,7 @@ @@ -200,7 +200,7 @@
200 </div> 200 </div>
201 <div class="footer"> 201 <div class="footer">
202 <div class="btn"> 202 <div class="btn">
203 - <a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho"><img src="/activity/cocacola/images/cokeBtn.png"></a> 203 + <img src="/activity/cocacola/images/cokeBtn.png">
204 </div> 204 </div>
205 <span>活动说明</span> 205 <span>活动说明</span>
206 </div> 206 </div>
@@ -212,7 +212,7 @@ @@ -212,7 +212,7 @@
212 <span>Yoho!Buy有货优惠券</span> 212 <span>Yoho!Buy有货优惠券</span>
213 </div> 213 </div>
214 <div class="btn-list"> 214 <div class="btn-list">
215 - <span><a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho">下载Yoho!Buy有货</a></span> 215 + <span>下载Yoho!Buy有货</span>
216 <span style="color: red;">我知道了</span> 216 <span style="color: red;">我知道了</span>
217 </div> 217 </div>
218 </div> 218 </div>
@@ -284,7 +284,7 @@ @@ -284,7 +284,7 @@
284 }, true); 284 }, true);
285 } 285 }
286 setTimeout(function(){ 286 setTimeout(function(){
287 - console.log(1); 287 + window.location.href = "http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho";
288 }, 2000) 288 }, 2000)
289 }) 289 })
290 $('.btn-list span:eq(1)').on('click',function(){ 290 $('.btn-list span:eq(1)').on('click',function(){
@@ -298,7 +298,7 @@ @@ -298,7 +298,7 @@
298 }, true); 298 }, true);
299 } 299 }
300 setTimeout(function(){ 300 setTimeout(function(){
301 - console.log(1); 301 + window.location.href = "http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho";
302 }, 2000) 302 }, 2000)
303 }) 303 })
304 </script> 304 </script>
@@ -307,95 +307,96 @@ @@ -307,95 +307,96 @@
307 /** 307 /**
308 * 微信分享 308 * 微信分享
309 */ 309 */
310 -(function($) {  
311 - if (typeof(wx) == "undefined") {  
312 - return;  
313 - }  
314 - /* var shareUrl = "";  
315 - $.ajax({  
316 - async : false,  
317 - url : "/activity/cocacola/CocacolaController/getWechatShareUrl",  
318 - dataType : "json",  
319 - cache : false,  
320 - success : function(data) {  
321 - if (!data || data.code != 200) {  
322 - return;  
323 - }  
324 - shareUrl = data.data.wechatShareUrl;  
325 - }  
326 - }); */  
327 - var _weChatInterface = 'http://www.yohoshow.com/api/wechat/getSignPackage';  
328 - var shareTitle = '来Yoho!Buy有货玩潮流,潮流逛不停';  
329 - var shareImg = 'http://img12.static.yhbimg.com/activity/2016/04/07/11/02b3b297581ace1ca6251f7f9e67ca7937.jpg';  
330 - var shareDesc = '揭盖赢福利,潮流逛不停';  
331 - //var shareLink = "http://feature.yoho.cn/activity/cocacola/index.html";  
332 - var shareLink = "http://service.yoho.cn/activity/cocacola/html/index1.html";  
333 - $.getJSON(_weChatInterface + '?pageurl=' +  
334 - encodeURIComponent(location.href.split('#')[0]) + '&callback=?', function(json) {  
335 - var _appId, _timestamp, _nonceStr, _signature;  
336 - if (json !== undefined && json !== '') {  
337 - _appId = json.appId.toString();  
338 - _timestamp = json.timestamp;  
339 - _nonceStr = json.nonceStr.toString();  
340 - _signature = json.signature.toString(); 310 + (function($) {
  311 + if (typeof(wx) == "undefined") {
  312 + return;
  313 + }
  314 + /* var shareUrl = "";
  315 + $.ajax({
  316 + async : false,
  317 + url : "/activity/cocacola/CocacolaController/getWechatShareUrl",
  318 + dataType : "json",
  319 + cache : false,
  320 + success : function(data) {
  321 + if (!data || data.code != 200) {
  322 + return;
  323 + }
  324 + shareUrl = data.data.wechatShareUrl;
  325 + }
  326 + }); */
  327 + var _weChatInterface = 'http://www.yohoshow.com/api/wechat/getSignPackage';
  328 + var shareTitle = '来Yoho!Buy有货玩潮流,潮流逛不停';
  329 + var shareImg = 'http://img12.static.yhbimg.com/activity/2016/04/07/11/02b3b297581ace1ca6251f7f9e67ca7937.jpg';
  330 + var shareDesc = '揭盖赢福利,潮流逛不停';
  331 + //var shareLink = "http://feature.yoho.cn/activity/cocacola/index.html";
  332 + var shareLink = "http://service.yoho.cn/activity/cocacola/html/index1.html";
  333 + $.getJSON(_weChatInterface + '?pageurl=' +
  334 + encodeURIComponent(location.href.split('#')[0]) + '&callback=?', function(json) {
  335 + var _appId, _timestamp, _nonceStr, _signature;
  336 + if (json !== undefined && json !== '') {
  337 + _appId = json.appId.toString();
  338 + _timestamp = json.timestamp;
  339 + _nonceStr = json.nonceStr.toString();
  340 + _signature = json.signature.toString();
341 341
342 - wx.config({  
343 - debug: false,  
344 - appId: _appId,  
345 - timestamp: _timestamp,  
346 - nonceStr: _nonceStr,  
347 - signature: _signature,  
348 - jsApiList: [  
349 - 'checkJsApi',  
350 - 'onMenuShareTimeline',  
351 - 'onMenuShareAppMessage',  
352 - 'onMenuShareQQ',  
353 - 'onMenuShareWeibo',  
354 - 'hideMenuItems',  
355 - 'showMenuItems',  
356 - 'hideAllNonBaseMenuItem',  
357 - 'showAllNonBaseMenuItem',  
358 - 'translateVoice',  
359 - 'startRecord',  
360 - 'stopRecord',  
361 - 'onRecordEnd',  
362 - 'playVoice',  
363 - 'pauseVoice',  
364 - 'stopVoice',  
365 - 'uploadVoice',  
366 - 'downloadVoice',  
367 - 'chooseImage',  
368 - 'previewImage',  
369 - 'uploadImage',  
370 - 'downloadImage',  
371 - 'getNetworkType',  
372 - 'openLocation',  
373 - 'getLocation',  
374 - 'hideOptionMenu',  
375 - 'showOptionMenu',  
376 - 'closeWindow',  
377 - 'scanQRCode',  
378 - 'chooseWXPay',  
379 - 'openProductSpecificView',  
380 - 'addCard',  
381 - 'chooseCard',  
382 - 'openCard'  
383 - ]  
384 - });  
385 - }  
386 - });  
387 - wx.ready(function() {  
388 -  
389 - var shareData = {  
390 - title: shareTitle,  
391 - desc: shareDesc,  
392 - imgUrl: shareImg,  
393 - link: shareLink  
394 - };  
395 - wx.onMenuShareAppMessage(shareData);  
396 - wx.onMenuShareTimeline(shareData);  
397 - wx.onMenuShareQQ(shareData);  
398 - wx.onMenuShareWeibo(shareData);  
399 - });  
400 -}(jQuery)); 342 + wx.config({
  343 + debug: false,
  344 + appId: _appId,
  345 + timestamp: _timestamp,
  346 + nonceStr: _nonceStr,
  347 + signature: _signature,
  348 + jsApiList: [
  349 + 'checkJsApi',
  350 + 'onMenuShareTimeline',
  351 + 'onMenuShareAppMessage',
  352 + 'onMenuShareQQ',
  353 + 'onMenuShareWeibo',
  354 + 'hideMenuItems',
  355 + 'showMenuItems',
  356 + 'hideAllNonBaseMenuItem',
  357 + 'showAllNonBaseMenuItem',
  358 + 'translateVoice',
  359 + 'startRecord',
  360 + 'stopRecord',
  361 + 'onRecordEnd',
  362 + 'playVoice',
  363 + 'pauseVoice',
  364 + 'stopVoice',
  365 + 'uploadVoice',
  366 + 'downloadVoice',
  367 + 'chooseImage',
  368 + 'previewImage',
  369 + 'uploadImage',
  370 + 'downloadImage',
  371 + 'getNetworkType',
  372 + 'openLocation',
  373 + 'getLocation',
  374 + 'hideOptionMenu',
  375 + 'showOptionMenu',
  376 + 'closeWindow',
  377 + 'scanQRCode',
  378 + 'chooseWXPay',
  379 + 'openProductSpecificView',
  380 + 'addCard',
  381 + 'chooseCard',
  382 + 'openCard'
  383 + ]
  384 + });
  385 + }
  386 + });
  387 + wx.ready(function() {
  388 +
  389 + var shareData = {
  390 + title: shareTitle,
  391 + desc: shareDesc,
  392 + imgUrl: shareImg,
  393 + link: shareLink
  394 + };
  395 + wx.onMenuShareAppMessage(shareData);
  396 + wx.onMenuShareTimeline(shareData);
  397 + wx.onMenuShareQQ(shareData);
  398 + wx.onMenuShareWeibo(shareData);
  399 + });
  400 + }(jQuery));
  401 + </script>
401 </html> 402 </html>
@@ -146,7 +146,7 @@ @@ -146,7 +146,7 @@
146 </div> 146 </div>
147 <div class="footer"> 147 <div class="footer">
148 <div class="btn"> 148 <div class="btn">
149 - <a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho"><img src="/activity/cocacola/images/cokeBtn.png"></a> 149 + <img src="/activity/cocacola/images/cokeBtn.png">
150 </div> 150 </div>
151 <span>活动说明</span> 151 <span>活动说明</span>
152 </div> 152 </div>
@@ -185,6 +185,18 @@ @@ -185,6 +185,18 @@
185 } 185 }
186 }()); 186 }());
187 </script> 187 </script>
  188 +<script>
  189 +$('.btn img').on('click',function(){
  190 + if (window._yas) {
  191 + window._yas.sendCustomInfo({
  192 + 'downApp': 'Y'
  193 + }, true);
  194 + }
  195 + setTimeout(function(){
  196 + window.location.href = "http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho";
  197 + }, 2000)
  198 +})
  199 +</script>
188 <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script> 200 <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
189 <script type="text/javascript"> 201 <script type="text/javascript">
190 /** 202 /**