使用的http://wwcdn.weixin.qq.com/node/wework/wwopen/js/wwLogin-1.2.7.js,将企业微信二维码封装到登录页面.如下配置:
$("[fgcname='qrcode']").empty();
var baseurl = Forguncy.Helper.SpecialPath.getBaseUrl();
var wwlogin = new WwLogin({
"id"("[fgcname='qrcode']")[0].id,
"appid":"",
"agentid":"10000XX",
"redirect_uri":"应用域名",
"state": 'loginState',
"redirect_type": 'callback',
"lang":"zh"
});
wwlogin.destroyed();
|