短视频app制作开发通过手机浏览器调用三方社交软件

软件工具
0 678
function qqcao(){
            var type = undefined;
            var param = "";
            var sid = 2;
            var rawuin = <{$qq}>;
            var qsig = "undefined";
            var QQApi = {
                openURL: function(url){
                    var i = document.createElement('iframe');
                    i.style.display = 'none';
                    i.onload = function() { i.parentNode.removeChild(i); };
                    i.src = url;
                    document.body.appendChild(i);
               
                    var returnValue = QQApi.__RETURN_VALUE;
                    QQApi.__RETURN_VALUE = undefined;
                    return returnValue;
                },
                isAppInstalled: function(scheme) {
                    var parameters = {'scheme':scheme};
                    var r = QQApi.openURL('jsbridge://app/isInstalled_?p=' + encodeURIComponent(JSON.stringify(parameters)));
                    return r ? r.result : null;
                },
                isQQWebView: function(){
                    return QQApi.isAppInstalled('mqq') == true;
                },
                __RETURN_VALUE: undefined
            };
            var usa=navigator.userAgent;
            var p;
            var mobile_q_jump = {
                android:"https://play.google.com/store/apps/details?id=com.tencent.mobileqq",
                ios:"itms-apps://itunes.apple.com/cn/app/qq-2011/id444934666?mt=8",
                winphone:"http://www.windowsphone.com/zh-cn/store/app/qq/b45f0a5f-13d8-422b-9be5-c750af531762",
                pc:"http://mobile.qq.com/index.html"
            };
            var isMQ = 0;
            if(typeof type == "undefined") type = 1;
            if(usa.indexOf("Android")>-1){
                p = "android";
            }
            else if(usa.indexOf("iPhone")>-1 || usa.indexOf("iPad")>-1 || usa.indexOf("iPod")>-1){
                p = "ios";
            }
            else if(usa.indexOf("Windows Phone") > -1 || usa.indexOf("WPDesktop") > -1){
                p = "winphone";
            }
            else {
                p = "pc";
            }
            if(p == "ios"){
                //防止循环
                if(history.pushState)
                    history.pushState({},"t","#");
                isMQ = QQApi.isQQWebView();
                if (!isMQ){
                    var sc = document.createElement("script");
                    sc.src = "http://__.qq.com/api/qqapi.js";
                    sc.onload = function(){
                        if(window['iOSQQApi']){
                            isMQ =iOSQQApi.device.isMobileQQ();
                        }
                    };
                    document.body.appendChild(sc);
                }
            }
            else if(p == "pc" && qsig != "undefined"){
                window.open(qsig,"_self");
            }
            if(type == 1){//手Q
                var isSuccess = true;
                var f = document.createElement("iframe");
                f.style.display = "none";
                document.body.appendChild(f);
                f.onload = function(){
                    isSuccess = false;
                };
                if(p == "ios" && sid == 1){
                    f.src = "mqqapi://card/show_pslcard?src_type=internal&version=1&uin="+ rawuin +"&card_type=person&source=qrcode";
                }
                if(p == "ios" && sid == 2){//ios并且为群名片
                    f.src = "mqqapi://card/show_pslcard?src_type=internal&version=1&uin="+ rawuin +"&card_type=person&source=qrcode";
                }
                else if(p != "pc"){
                    var url = window.location.href.split("&");
                    f.src = "mqqopensdkapi://bizAgent/qm/qr?url=" + encodeURIComponent(url[0]);
                }
                if(p == "android" && sid == 1){
                    f.src = "mqqapi://card/show_pslcard?src_type=internal&version=1&uin="+ rawuin +"&card_type=person&source=qrcode";
                }
                if(p == "android" && sid == 2){//ios并且为群名片
                    f.src = "mqqapi://card/show_pslcard?src_type=internal&version=1&uin="+ rawuin +"&card_type=person&source=qrcode";
                }
                var now = Date.now();
                setTimeout( function(){
                    if((p == "ios" && !isMQ && Date.now() - now < 2000) || (p == "android" && !isSuccess) || ((p == "winphone" && Date.now() - now < 2000))){
                        var jumpUrl = mobile_q_jump[p];
                        if(jumpUrl) window.open(jumpUrl,"_self");
                    }
                } , 1500);
                
            }
        }


字数统计
精选帖子
Android QQ音乐 v11.3.7 定制版解锁免费听歌无广告版 1501
Android 草图大师SKP v1.5 解锁会员版 6893
Android OmoFun追漫神器 v4.2.1 无广告绿色版 3997
AdobeGenP Adobe全家桶系列激活工具 v3.5.0/3.4.14.1 绿色版 4600
Android 七猫免费听书 v1.4 解锁高级版 2822
超良心的抢票神器——Bypass1.16 2171
Android 玲珑加速器 v6.10.9.40 解锁无限时间 1389
Android 大师兄影视 v3.3.8 去广告会员版 574
DAWN 融资3300万美金,下一个挖矿空投大项目类似grass 866
热门帖子
新玩法!利用DeepSeek,复制粘贴,无脑简单答题,疯狂撸新平台收益,轻… 2850
最新实操红利项目,一台手机日入50-500,无限批量玩法,零基础易上手 2790
零撸模式,有快手就可以做,每天零碎时间搞个几百块不成问题 2096
首发零撸项目 不看广告 手机随时可做 单日收益三位数 1986
Android 畅看视频 v1.5.4 去广告纯净版 1737
Android 南影优门 v4.2.0 去广告纯净版 1299
手机发评论就有收益,一单10元日入9000+,新手小白复制粘贴秒上手 883
今日头条视频纯原创玩法,拒绝搬运,AI一键成片, 2分钟一条爆款视频,… 825
Android 绘梦轩 v1.0.0 去广告纯净版 453