Showing
1 changed file
with
16 additions
and
0 deletions
@@ -18,6 +18,22 @@ | @@ -18,6 +18,22 @@ | ||
18 | var boxNumLimit = 9;//箱子个数 | 18 | var boxNumLimit = 9;//箱子个数 |
19 | $( | 19 | $( |
20 | function () { | 20 | function () { |
21 | + | ||
22 | + //判定登录 | ||
23 | + var dataRequestUrl="http://m.yohobuy.com/passport/login/user"; | ||
24 | + $.getJSON(dataRequestUrl+"?callback=?", | ||
25 | + function(json) { | ||
26 | + if (json.code === 200) { | ||
27 | + alert('登录成功!!!!ID:' + json.data); | ||
28 | + } else { | ||
29 | + alert("请先登录!!!"); | ||
30 | + var url = `https://m.yohobuy.com/signin.html?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"http:\/\/localhost\/%E6%8A%BD%E5%A5%96%E6%B4%BB%E5%8A%A8v3\/index.html","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"Y"}}`; | ||
31 | + window.location.href=url; | ||
32 | + } | ||
33 | + } | ||
34 | + ); | ||
35 | + | ||
36 | + | ||
21 | $(".a-box-ul li").live("click", function () { | 37 | $(".a-box-ul li").live("click", function () { |
22 | var liNnm = $(this).index(); | 38 | var liNnm = $(this).index(); |
23 | 39 |
-
Please register or login to post a comment