内嵌式 - 微信扫码登录
appid: "wxb92e4353fb2d7f1e",
返回:Scope 参数错误或没有 Scope 权限
类型: 服务号
网页授权地址:
wx.moodhoo.cn
cz.moodhoo.cn
var obj = new WxLogin({
self_redirect:false,
id:"login_container",
appid: "wxb92e4353fb2d7f1e",
scope: "snsapi_login",
redirect_uri: encodeURIComponent("http://cz.moodhoo.cn/"),
state: Math.ceil(Math.random()*1000),
style: "black",
href: ""
});
你好,麻烦提供下网页授权的完整请求包
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>内嵌式 - 微信扫码登录</title>
<!-- 引入微信扫码登录js文件 -->
<script type="text/javascript" src="http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
</head>
<body>
<!-- 放置二维码的div -->
<div id="login_container"></div>
</body>
<script type="text/javascript">
var obj = new WxLogin({
self_redirect:false,
id:"login_container",
appid: "wxb92e4353fb2d7f1e",
scope: "snsapi_login",
redirect_uri: encodeURIComponent("http://cz.moodhoo.cn/"),
state: Math.ceil(Math.random()*1000),
style: "black",
href: ""
});
</script>
</html>