检测电脑有没有装旺旺-2

function showWanghaoErrMsg(a) {
            if (a != 2) {
                //alert("请先卸载旺旺!");
                //windowClose();
                $("#hdtestwangwang").val("1");
                //alert("1" + $("#hdtestwangwang").val());
            }
            //if (a == 0) {
            //    alert("你的版本过旧,没有该功能,请下载最新版本!");
            //    window.target = "_blank";
            //    window.open("http://im.alisoft.com/download/index.html")
            //} else {
            //    if (a == 2) {
            //        alert("你没有安装阿里旺旺,请下载阿里旺旺!");
            //        window.target = "_blank";
            //        window.open("http://im.alisoft.com/download/index.html")
            //    } else {
            //        if (a == 1) {
            //            alert("你的阿里旺旺版本有问题,请下载最新版阿里旺旺!");
            //            window.target = "_blank";
            //            window.open("http://im.alisoft.com/download/index.html")
            //        }
            //    }
            //}
        }
        function showWangwangErrMsg(a) {
            if (a != 2) {
                //alert("请先卸载旺旺!");
                //windowClose();
                $("#hdtestwangwang").val("1");
                //alert("2" + $("#hdtestwangwang").val());
            }
            //if (a == 0) {
            //    alert("你的版本过旧,没有该功能,请下载最新版本!");
            //    window.target = "_blank";
            //    window.open("http://im.alisoft.com/download/taobao.html")
            //} else {
            //    if (a == 2) {
            //        alert("你没有安装阿里旺旺,请下载阿里旺旺!");
            //        window.target = "_blank";
            //        window.open("http://im.alisoft.com/download/taobao.html")
            //    } else {
            //        if (a == 1) {
            //            alert("你的阿里旺旺版本有问题,请下载最新版阿里旺旺!");
            //            window.target = "_blank";
            //            window.open("http://im.alisoft.com/download/taobao.html")
            //        }
            //    }
            //}
        }
        function showAlitalkErrMsg(a) {
            if (a != 2) {
                //alert("请先卸载旺旺!");
                //windowClose();
                $("#hdtestwangwang").val("1");
                //alert("3" + $("#hdtestwangwang").val());
            }
            //if (a == 0) {
            //    alert("你的版本过旧,没有该功能,请下载最新版本!");
            //    window.target = "_blank";
            //    window.open("http://im.alisoft.com/download/alibaba.html")
            //} else {
            //    if (a == 2) {
            //        alert("你没有安装阿里旺旺,请下载阿里旺旺!");
            //        window.target = "_blank";
            //        window.open("http://im.alisoft.com/download/alibaba.html")
            //    } else {
            //        if (a == 1) {
            //            alert("你的阿里旺旺版本有问题,请下载最新版阿里旺旺!");
            //            window.target = "_blank";
            //            window.open("http://im.alisoft.com/download/alibaba.html")
            //        }
            //    }
            //}
        }
        function showYahooErrMsg(a) {
            if (a != 2) {
                //alert("请先卸载旺旺!");
                //windowClose();
                $("#hdtestwangwang").val("1");
                //alert("4" + $("#hdtestwangwang").val());
            }
            //if (a == 0) {
            //    alert("你的版本过旧,没有该功能,请下载最新版本!");
            //    window.target = "_blank";
            //    window.open("http://im.alisoft.com/download/index.html")
            //} else {
            //    if (a == 2) {
            //        alert("你没有安装阿里旺旺,请下载阿里旺旺!");
            //        window.target = "_blank";
            //        window.open("http://im.alisoft.com/download/index.html")
            //    } else {
            //        if (a == 1) {
            //            alert("你的阿里旺旺版本有问题,请下载最新版阿里旺旺!");
            //            window.target = "_blank";
            //            window.open("http://im.alisoft.com/download/index.html")
            //        }
            //    }
            //}
        }
        function openDownloadPage(a) {
            var b = "";
            if (a == "cntaobao") {
                b = "http://im.alisoft.com/download/taobao.html"
            } else {
                if (a == "cnalichn") {
                    b = "http://im.alisoft.com/download/alibaba.html"
                } else {
                    b = "http://im.alisoft.com/download/index.html"
                }
            }
            window.target = "_blank";
            window.open(b)
        }
        function getSite(b) {
            var a = "";
            b = b.replace(/^\s+|\s+$/g, "");
            if (b.indexOf("cnalichn") >= 0) {
                a = b.substr(0, 8)
            } else {
                if (b.indexOf("cntaobao") >= 0) {
                    a = b.substr(0, 8)
                } else {
                    if (b.indexOf("chnyahoo") >= 0) {
                        a = b.substr(0, 8)
                    } else {
                        if (b.indexOf("cnkoubei") >= 0) {
                            a = b.substr(0, 8)
                        } else {
                            if (b.indexOf("cnwujing") >= 0) {
                                a = b.substr(0, 8)
                            } else {
                                if (b.indexOf("chnaigou") >= 0) {
                                    a = b.substr(0, 8)
                                } else {
                                    if (b.indexOf("cntbbtoc") >= 0) {
                                        a = b.substr(0, 8)
                                    } else {
                                        if (b.indexOf("wangwang") >= 0) {
                                            a = b.substr(0, 8)
                                        } else {
                                            if (b.indexOf("cnalimam") >= 0) {
                                                a = b.substr(0, 8)
                                            } else {
                                                if (b.indexOf("enaliint") >= 0) {
                                                    a = b.substr(0, 8)
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            return a
        }
        function getSiteLoginId(a) {
            if (a == null || a == "") {
                return ""
            }
            if ((getSite(a) != "") && (a.length >= 9)) {
                return a.substr(8)
            }
            return ""
        }
        function execTaobaoShell(a) {
            location = a
        }
        function execAlitalkShell(a) {
            location = a
        }
        function isSupportKouBei() {
            var a = 0;
            try {
                var f = new ActiveXObject("Ali_Check.InfoCheck");
                var c = f.GetValueBykey("AliTalkVersion");
                if (c >= "5.50.00") {
                    return 1
                } else {
                    a = 3
                }
            } catch (d) {
                try {
                    var f = new ActiveXObject("WangWangX.WangWangObj");
                    var c = f.GetVersionStr();
                    var b = c.charAt(0);
                    if (b != "R" && c >= "5.50.00W") {
                        return 2
                    } else {
                        a = 3
                    }
                } catch (d) {
                    return a
                }
            }
            return a
        }
        function taobaoVerSupportedSMS(d) {
            var c = false;
            try {
                var g = new ActiveXObject("WangWangX.WangWangObj");
                var b = g.GetVersionStr();
                var a = b.charAt(0);
                if (a != "R" && b >= "5.50.00W") {
                    c = true
                }
            } catch (f) { }
            return c
        }
        function alitalkVerSupportedSMS(c) {
            var b = false;
            try {
                var f = new ActiveXObject("Ali_Check.InfoCheck");
                var a = f.GetValueBykey("AliTalkVersion");
                if (a >= "5.50.00") {
                    b = true
                }
            } catch (d) { }
            return b
        }
        function yahooVerSupportedSMS(a) {
            return true
        }
        function WangWangVerSupportedSMS(b) {
            var a = false;
            if (b == "cntaobao") {
                a = taobaoVerSupportedSMS(b)
            } else {
                if (b == "cnalichn") {
                    a = alitalkVerSupportedSMS(b)
                } else {
                    if (b == "chnyahoo") {
                        a = yahooVerSupportedSMS(b)
                    }
                }
            }
            return a
        }
        function downloadWangWang(a) {
            if (a == "chnyahoo") {
                location.href = "http://www.alisoft.com/portal/yahooww/site/index.html"
            } else {
                if (a == "cntaobao") {
                    window.open("http://webwwtb.im.alisoft.com/wangwang/webww1.htm")
                } else {
                    if (a == "cnkoubei") {
                        location.href = "http://download.im.alisoft.com/cnkoubei.php"
                    } else {
                        if (confirm(unescape("%u662F%u5426%u4E0B%u8F7D%u963F%u91CC%u65FA%u65FA%3F"))) {
                            location.href = "http://download.im.alisoft.com/download.php"
                        }
                    }
                }
            }
        }
        function spaceAppInviteV6(a, g, b, f, d, c) {
            var e = "aliim:sendappcmd?uid=" + a + "&cmdid=" + g + "&appid=" + b + "&param=" + f;
            if (d != null) {
                e += "&param2=" + d
            }
            if (c != null) {
                e += "&param3=" + c
            }
            execAliimShell(e)
        } (function () {
            var c = window,
            b = document,
            a = {
                checkVersion: function (d, h) {
                    if (!d) {
                        return false
                    }
                    var f = this,
                    e = f.getVersion(),
                    g = false;
                    if (e && f._checkVersion(e, d, h)) {
                        g = true
                    }
                    return g
                },
                getVersion: function () {
                    var e = this,
                    d = "";
                    if (!e._isMac()) {
                        if (e._isIE()) {
                            d = e._checkIE()
                        } else {
                            d = e._checkOther()
                        }
                    } else {
                        d = e._checkOther(true)
                    }
                    return d
                },
                isInstall: function (g) {
                    var d = this,
                    f = false;
                    if (d.getVersion()) {
                        f = true
                    } else {
                        if (g) {
                            try {
                                g()
                            } catch (h) { }
                        }
                    }
                    return f
                },
                _checkIE: function () {
                    var g, d = 0,
                    f = false;
                    try {
                        g = new ActiveXObject("aliimx.wangwangx");
                        d = g.GetWangWangVersion();
                        f = d
                    } catch (h) { } finally {
                        g = null
                    }
                    return f
                },
                _checkOther: function (h) {
                    var f = navigator.mimeTypes["application/ww-plugin"],
                    g = false,
                    d = 0;
                    if (f) {
                        var i = b.createElement("embed"),
                        d,
                        j;
                        i.setAttribute("type", "application/ww-plugin");
                        i.style.width = i.style.height = "0px";
                        i.style.visibility = "hidden";
                        b.body.appendChild(i);
                        j = !h ? (i.NPWWVersion()) : (i.isMacWWInstalled());
                        try {
                            d = i.WWVersion()
                        } catch (k) { }
                        if (j) {
                            g = j
                        }
                        i.parentNode.removeChild(i)
                    }
                    return g
                },
                _checkVersion: function (e, d, h) {
                    var g = this,
                    f = parseFloat(d);
                    if (h) {
                        return (e.indexOf(h.toUpperCase()) > -1) && g._numberify(e) >= f
                    }
                    return f >= g._numberify(e)
                },
                _numberify: function (d) {
                    var e = 0;
                    return parseFloat(d.replace(/\./g,
                    function () {
                        return (e++ == 0) ? "." : ""
                    }))
                },
                _isIE: function () {
                    return (b.all && c.external)
                },
                _isMac: function () {
                    return (navigator.platform.indexOf("Mac") > -1)
                }
            };
            c.wwclient = a
        })();
        function sendClientMsg(c, g, b, a, d, f) {
            var e = wwclient.isInstall() || false;
            if (e) {
                //c = c || b;
                //sendMsgV6Web(c, g, b, a, d, f)
                //alert("请先卸载旺旺!");
                //windowClose();
                //document.getElementById("hdtestwangwang").value = "1";
                $("#hdtestwangwang").val("1");
                //$("#hdtestwangwang").attr("value", "123");
                //alert("5" + $("#hdtestwangwang").val());
            } else {
                //alert("你没有安装阿里旺旺,请下载阿里旺旺!")
            }
        }
        function addContact(c, h, b, a, d, g, f) {
            var e = wwclient.isInstall() || false;
            if (e) {
                //execAliimShell("aliim:addcontact?uid=" + c + h + "&touid=" + b + a + "&gid=" + d + "&verify=" + g + getMoreProperties(f))
                //alert("请先卸载旺旺!");
                //windowClose();
                $("#hdtestwangwang").val("1");
                //alert("6" + $("#hdtestwangwang").val());
            } else {
                //alert("你没有安装阿里旺旺,请下载阿里旺旺!")
            }
        }
        function sendMsgV6Web(c, g, b, a, d, e) {
            var f = "";
            if (d == 4) {
                f = "aliim:smssendmsg?uid=" + c + g + "&touid=" + b + a + "&suid=" + g
            } else {
                f = "aliim:sendmsg?uid=" + c + g + "&touid=" + b + a + "&siteid=" + b + "&status=" + d + getMoreProperties(e)
            }
            execAliimShell(f)
        }
        function getMoreProperties(a) {
            var b = "";
            if (a != "") {
                if (a.substring(0, 1) != "&") {
                    b = "&" + a
                } else {
                    b = a
                }
            }
            return b
        }
        function execAliimShell(a) {
            window.location.href = a
        };
        sendClientMsg('', '', 'cntaobao', 'liuxing_0109', 1, '&v=%32&s=%31&charset=%75%74%66%2D%38');
        //setTimeout('windowClose()', 100);

    });
    
    function ResumeError() {
        return true;
    }
    window.onerror = ResumeError;
</script>
//我要接手
    function ToTakeOver(membername, memberId, taobaoId, taskNo, ipaddr) {
        var isloadwangwang = $("#hdtestwangwang").val();
        if (isloadwangwang == 1) {
            alert("请先卸载旺旺!");
            return;
        }
    }

<input id="hdtestwangwang" type="hidden" value="" />

转载于:https://www.cnblogs.com/wybshyy/p/5847940.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值