1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
| ... case "down": if (isClient() || isAndroidClient1() || isAndroidClient2()) { if (window.confirm('该版本解析已失效,请前往官网下载新版本。\r\n确定则:前往下载。')) { if (isClient()) { OpenClientIe("http://www.heikeyun.net"); } else if (isAndroidClient1() || isAndroidClient2()) { OpenAndroidIe("http://www.heikeyun.net"); } } obj.attr("class", "btn success"); } else if (isIOSClientOne() || isIOSClientTwo() || isIOSClient3()) { if (window.confirm('该版本解析已失效,请前往官网下载新版本。\r\n确定则:前往下载。')) { OpenIosIe("http://www.heikeyun.net"); } obj.attr("class", "btn success"); } else if (isPcOne()) { if (window.confirm('该版本解析已失效,请前往官网下载新版本。\r\n确定则:前往下载。')) { window.location.href = "http://www.heikeyun.net"; } obj.attr("class", "btn success"); } else { $.messager.show("<i class='icon icon-check-circle'></i> 下载地址解析中,大概需要1-15秒。", { type: 'success', placement: 'button' }); var playName = vname; var tp; if (isIOSClient4()) { tp = "ios"; } else if (isAndroidClient3()) { tp = "Android"; } else if (isPcClient()) { tp = "pc"; } else { tp = "web"; } $.ajax({ type: "post", url: "CommonAjax.ashx?type=DownUrl", data: "{'d':'" + data + "','s1':'" + s1 + "','tp':'" + tp + "'}", dataType: "json", async: true, success: function (d) { if (d.IsOk) { if (tp == "ios") { DownIOS(d.DownUrl, d.Cookie, playName, ftios, d.m5, d.Down_header); } else if (tp == "Android") { DownAndroid(d.DownUrl, d.Cookie, playName, ftios, d.m5, d.Down_header); } else if (tp == "pc") { DownPc(d.DownUrl, d.Cookie, playName, ftios, d.m5, d.Down_header); } else if (tp == "web") { window.location.href = bcone(d.DownUrl); } } else { if (d.MsgUrl != null) { alert(d.Msg); window.location = d.MsgUrl; } else { $.messager.show("<i class='icon icon-exclamation-sign'></i> " + d.Msg, { type: 'danger', placement: 'button' }); return; } } }, error: function (err) { $.messager.show("<i class='icon icon-exclamation-sign'></i> " + err, { type: 'danger', placement: 'button' }); return; obj.attr("class", "btn success"); }, complete: function () { obj.attr("class", "btn success"); } }); } break; ...
|