Merge branch 'brandDraw' of git.yoho.cn:yoho30/yohobuy-activity into brandDraw
Conflicts: web/src/main/webapp/brand/index.html
Showing
1 changed file
with
9 additions
and
13 deletions
@@ -14,16 +14,7 @@ | @@ -14,16 +14,7 @@ | ||
14 | <script type="text/javascript" src="js/autoSize.js"></script> | 14 | <script type="text/javascript" src="js/autoSize.js"></script> |
15 | <script type="text/javascript" src="js/style.js"></script> | 15 | <script type="text/javascript" src="js/style.js"></script> |
16 | <script> | 16 | <script> |
17 | - | ||
18 | - | ||
19 | $(function() { | 17 | $(function() { |
20 | - /* var thisURL = window.location.href; | ||
21 | - if(thisURL.indexOf("openby") == -1){ | ||
22 | - var shareURL = thisURL+'?openby:yohobuy={"action":"go.h5","params":{"param":{"share_id":"956","title":"YOHOOD 2016"},"andfinish":"1","share":"/operations/api/v5/webshare/getShare","shareparam":{"share_id":"956"},"title":"YOHOOD 2016","url":"'+thisURL+'"}}'; | ||
23 | - debugger; | ||
24 | - window.location.href = shareURL; | ||
25 | - } */ | ||
26 | - | ||
27 | var uid = null; | 18 | var uid = null; |
28 | var clickBoxArr = {}; | 19 | var clickBoxArr = {}; |
29 | //判定登录 | 20 | //判定登录 |
@@ -33,11 +24,16 @@ | @@ -33,11 +24,16 @@ | ||
33 | if (json.code === 200) { | 24 | if (json.code === 200) { |
34 | uid=json.data; | 25 | uid=json.data; |
35 | } else { | 26 | } else { |
36 | - var thisURL = window.location.href; | ||
37 | var url ='http://m.yohobuy.com/signin.html?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":' | 27 | var url ='http://m.yohobuy.com/signin.html?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":' |
38 | - + thisURL +'","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"Y"}}'; | ||
39 | - window.location.href=url; | ||
40 | - } | 28 | + +'/activity/brand/index.html'+'","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"Y"}}'; |
29 | + //window.location.href=url; | ||
30 | + if ($("#collocation-link").length <= 0) { | ||
31 | + $("body").append('<a href=\'' + url + '\' style="display:none;" id="collocation-link">' + | ||
32 | + '<span class="collocation-link"></span>' + | ||
33 | + '</a>'); | ||
34 | + } | ||
35 | + $(".collocation-link").click(); | ||
36 | + } | ||
41 | } | 37 | } |
42 | ); | 38 | ); |
43 | 39 |
-
Please register or login to post a comment