weixin.js 871 B

12345678910111213
  1. !function (a, b, c) {
  2. function d(a) {
  3. var c = "default";
  4. a.self_redirect === !0 ? c = "true" : a.self_redirect === !1 && (c = "false");
  5. var d = b.createElement("iframe"),
  6. e = "https://open.weixin.qq.com/connect/qrconnect?appid=" + a.appid + "&scope=" + a.scope + "&redirect_uri=" + a.redirect_uri + "&state=" + a.state + "&login_type=jssdk&self_redirect=" + c + '&styletype=' + (a.styletype || '') + '&sizetype=' + (a.sizetype || '') + '&bgcolor=' + (a.bgcolor || '') + '&rst=' + (a.rst || '');
  7. e += a.style ? "&style=" + a.style : "", e += a.href ? "&href=" + a.href : "", d.src = e, d.frameBorder = "0", d.allowTransparency = "true", d.scrolling = "no", d.width = "300px", d.height = "400px";
  8. var f = b.getElementById(a.id);
  9. f.innerHTML = "", f.appendChild(d)
  10. }
  11. a.WxLogin = d
  12. }(window, document);