md编辑

作者: 阿根廷斗牛 | 来源:发表于2018-11-08 11:28 被阅读0次

引用文件:

http://ossweb-img.qq.com/images/js/mobile_bundle/util/zepto.js

http://ossweb-img.qq.com/images/js/mobile_bundle/milo.js

var targetUrl = window.location.href.split('?')[0] + '?appid=wx0abed84681090cfd&acctype=wx',

    redirectUrl = 'https://tgpwxapi.lol.qq.com/redirect.html?url=' + encodeURIComponent(targetUrl);

// 登录

milo.ready(function() {

    need("biz.login", function(LoginManager) {

        LoginManager.init({

            appConfig: {

                "WxAppId": "wx0abed84681090cfd" //配置的appid

            }

        });

        LoginManager.checkLogin(function(userInfo) { //验证是否登录

            //登录

            alert(document.cookie)

            console.log(document.cookie)

        }, function() {

            //未登录

            LoginManager.login({ //进行qq登录

            });

            LoginManager.loginByWX({ //进行微信登录

                redirect_wx_url: redirectUrl

            });

            console.log(document.cookie)

        });

    })

});

相关文章

网友评论

      本文标题:md编辑

      本文链接:https://www.haomeiwen.com/subject/doemjxtx.html