@yoooloo42/joker 1.0.189 → 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.cjs.js
CHANGED
|
@@ -22157,6 +22157,40 @@ var request = {
|
|
|
22157
22157
|
ly0: ly0request$1
|
|
22158
22158
|
};
|
|
22159
22159
|
|
|
22160
|
+
// <script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
|
|
22161
|
+
function fun() {
|
|
22162
|
+
!function (e, t) {
|
|
22163
|
+
e.WxLogin = function (e) {
|
|
22164
|
+
var r = "default";
|
|
22165
|
+
true === e.self_redirect ? r = "true" : false === e.self_redirect && (r = "false");
|
|
22166
|
+
var i = t.createElement("iframe"),
|
|
22167
|
+
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 || "");
|
|
22168
|
+
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";
|
|
22169
|
+
var l = t.getElementById(e.id);
|
|
22170
|
+
l.innerHTML = "", l.appendChild(i);
|
|
22171
|
+
};
|
|
22172
|
+
}(window, document);
|
|
22173
|
+
}
|
|
22174
|
+
function run(para) {
|
|
22175
|
+
// para.elementId
|
|
22176
|
+
// para.redirect_uri
|
|
22177
|
+
// para.appid
|
|
22178
|
+
|
|
22179
|
+
// 生成二维码图片
|
|
22180
|
+
fun();
|
|
22181
|
+
new WxLogin({
|
|
22182
|
+
self_redirect: true,
|
|
22183
|
+
id: para.elementId,
|
|
22184
|
+
appid: para.appid,
|
|
22185
|
+
scope: "snsapi_login",
|
|
22186
|
+
redirect_uri: encodeURIComponent(para.redirect_uri),
|
|
22187
|
+
href: "data:text/css;base64,LmltcG93ZXJCb3ggLnFyY29kZSB7d2lkdGg6IDIwMHB4O30KLmltcG93ZXJCb3ggLnRpdGxlIHtkaXNwbGF5OiBub25lO30KLmltcG93ZXJCb3ggLmluZm8ge3dpZHRoOiAyMDBweDt9Ci5zdGF0dXNfaWNvbiB7ZGlzcGxheTogbm9uZX0KLmltcG93ZXJCb3ggLnN0YXR1cyB7dGV4dC1hbGlnbjogY2VudGVyO30="
|
|
22188
|
+
});
|
|
22189
|
+
}
|
|
22190
|
+
var WeChat = {
|
|
22191
|
+
WxLogin: run
|
|
22192
|
+
};
|
|
22193
|
+
|
|
22160
22194
|
// 引用标准:GB/T 2260
|
|
22161
22195
|
|
|
22162
22196
|
/**
|
|
@@ -45380,10 +45414,12 @@ var index = {
|
|
|
45380
45414
|
},
|
|
45381
45415
|
FileSaver: FileSaver$1,
|
|
45382
45416
|
request,
|
|
45417
|
+
WeChat,
|
|
45383
45418
|
withTable
|
|
45384
45419
|
};
|
|
45385
45420
|
|
|
45386
45421
|
exports.FileSaver = FileSaver$1;
|
|
45422
|
+
exports.WeChat = WeChat;
|
|
45387
45423
|
exports.default = index;
|
|
45388
45424
|
exports.request = request;
|
|
45389
45425
|
exports.withTable = withTable;
|