@yoooloo42/joker 1.0.190 → 1.0.191
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +36 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +36 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -22153,6 +22153,40 @@ var request = {
|
|
|
22153
22153
|
ly0: ly0request
|
|
22154
22154
|
};
|
|
22155
22155
|
|
|
22156
|
+
// <script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
|
|
22157
|
+
function fun() {
|
|
22158
|
+
!function (e, t) {
|
|
22159
|
+
e.WxLogin = function (e) {
|
|
22160
|
+
var r = "default";
|
|
22161
|
+
true === e.self_redirect ? r = "true" : false === e.self_redirect && (r = "false");
|
|
22162
|
+
var i = t.createElement("iframe"),
|
|
22163
|
+
n = "https://open.weixin.qq.com/connect/qrconnect?appid=" + e.appid + "&scope=" + e.scope + "&redirect_uri=" + e.redirect_uri + "&state=" + e.state + "&login_type=jssdk&self_redirect=" + r + "&styletype=" + (e.styletype || "") + "&sizetype=" + (e.sizetype || "") + "&bgcolor=" + (e.bgcolor || "") + "&rst=" + (e.rst || "");
|
|
22164
|
+
n += e.style ? "&style=" + e.style : "", n += e.href ? "&href=" + e.href : "", n += "en" === e.lang ? "&lang=en" : "", n += 1 === e.stylelite ? "&stylelite=1" : "", n += 0 === e.fast_login ? "&fast_login=0" : "", i.src = n, i.frameBorder = "0", i.allowTransparency = "true", i.scrolling = "no", i.width = "300px", i.height = "400px";
|
|
22165
|
+
var l = t.getElementById(e.id);
|
|
22166
|
+
l.innerHTML = "", l.appendChild(i);
|
|
22167
|
+
};
|
|
22168
|
+
}(window, document);
|
|
22169
|
+
}
|
|
22170
|
+
function run(para) {
|
|
22171
|
+
// para.elementId
|
|
22172
|
+
// para.redirect_uri
|
|
22173
|
+
// para.appid
|
|
22174
|
+
|
|
22175
|
+
// 生成二维码图片
|
|
22176
|
+
fun();
|
|
22177
|
+
new WxLogin({
|
|
22178
|
+
self_redirect: true,
|
|
22179
|
+
id: para.elementId,
|
|
22180
|
+
appid: para.appid,
|
|
22181
|
+
scope: "snsapi_login",
|
|
22182
|
+
redirect_uri: encodeURIComponent(para.redirect_uri),
|
|
22183
|
+
href: "data:text/css;base64,LmltcG93ZXJCb3ggLnFyY29kZSB7d2lkdGg6IDIwMHB4O30KLmltcG93ZXJCb3ggLnRpdGxlIHtkaXNwbGF5OiBub25lO30KLmltcG93ZXJCb3ggLmluZm8ge3dpZHRoOiAyMDBweDt9Ci5zdGF0dXNfaWNvbiB7ZGlzcGxheTogbm9uZX0KLmltcG93ZXJCb3ggLnN0YXR1cyB7dGV4dC1hbGlnbjogY2VudGVyO30="
|
|
22184
|
+
});
|
|
22185
|
+
}
|
|
22186
|
+
var WeChat = {
|
|
22187
|
+
WxLogin: run
|
|
22188
|
+
};
|
|
22189
|
+
|
|
22156
22190
|
// 引用标准:GB/T 2260
|
|
22157
22191
|
|
|
22158
22192
|
/**
|
|
@@ -45376,8 +45410,9 @@ var index = {
|
|
|
45376
45410
|
},
|
|
45377
45411
|
FileSaver,
|
|
45378
45412
|
request,
|
|
45413
|
+
WeChat,
|
|
45379
45414
|
withTable
|
|
45380
45415
|
};
|
|
45381
45416
|
|
|
45382
|
-
export { FileSaver, index as default, request, withTable };
|
|
45417
|
+
export { FileSaver, WeChat, index as default, request, withTable };
|
|
45383
45418
|
//# sourceMappingURL=index.esm.js.map
|