@10yun/open-sdk 0.3.97 → 0.3.98
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/{404-DIY1-gwa.cjs → 404-BF-98DI2.cjs} +1 -1
- package/dist/{404-DE7Pk-6G.js → 404-CRUQ2RGL.js} +1 -1
- package/dist/{alone_run-B72RhBny.js → alone_run-D3hGeSjr.js} +1 -1
- package/dist/{alone_run-BR__Dya8.cjs → alone_run-ErREtrxQ.cjs} +1 -1
- package/dist/{index-eCmAf5ru.js → index-CYNRKRHo.js} +633 -620
- package/dist/index-UENhK8Dd.cjs +25 -0
- package/dist/{login-BCLKLSlo.js → login-CMkucPpJ.js} +124 -124
- package/dist/{login-DbsijHDN.cjs → login-DsaaTEyf.cjs} +1 -1
- package/dist/{none-CEhsRvE2.cjs → none-CxRhvKIK.cjs} +1 -1
- package/dist/{none-wMSqEt4-.js → none-GtWlMjrR.js} +1 -1
- package/dist/open-sdk.cjs.js +1 -1
- package/dist/open-sdk.es.js +1 -1
- package/package.json +1 -1
- package/dist/index-BcokQifq.cjs +0 -25
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as ee, S as te, H as ie, u as oe, a as se, b as ne, c as re } from "./index-
|
|
1
|
+
import { _ as ee, S as te, H as ie, u as oe, a as se, b as ne, c as re } from "./index-CYNRKRHo.js";
|
|
2
2
|
import "pinia";
|
|
3
3
|
import { resolveComponent as R, createElementBlock as I, openBlock as E, createCommentVNode as B, createBlock as G, createElementVNode as f, toDisplayString as b, createVNode as A, withCtx as N, createTextVNode as U, withKeys as ae } from "vue";
|
|
4
4
|
function le(n) {
|
|
@@ -7,11 +7,11 @@ function le(n) {
|
|
|
7
7
|
var Q = { exports: {} }, he = Q.exports, X;
|
|
8
8
|
function ce() {
|
|
9
9
|
return X || (X = 1, function(n, a) {
|
|
10
|
-
var
|
|
11
|
-
(function(
|
|
10
|
+
var v;
|
|
11
|
+
(function(_, h) {
|
|
12
12
|
n.exports = h();
|
|
13
13
|
})(he, function() {
|
|
14
|
-
function
|
|
14
|
+
function _(e) {
|
|
15
15
|
this.mode = d.MODE_8BIT_BYTE, this.data = e, this.parsedData = [];
|
|
16
16
|
for (var t = 0, i = this.data.length; t < i; t++) {
|
|
17
17
|
var o = [], s = this.data.charCodeAt(t);
|
|
@@ -19,7 +19,7 @@ function ce() {
|
|
|
19
19
|
}
|
|
20
20
|
this.parsedData = Array.prototype.concat.apply([], this.parsedData), this.parsedData.length != this.data.length && (this.parsedData.unshift(191), this.parsedData.unshift(187), this.parsedData.unshift(239));
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
_.prototype = {
|
|
23
23
|
getLength: function(e) {
|
|
24
24
|
return this.parsedData.length;
|
|
25
25
|
},
|
|
@@ -33,7 +33,7 @@ function ce() {
|
|
|
33
33
|
}
|
|
34
34
|
h.prototype = {
|
|
35
35
|
addData: function(e) {
|
|
36
|
-
var t = new
|
|
36
|
+
var t = new _(e);
|
|
37
37
|
this.dataList.push(t), this.dataCache = null;
|
|
38
38
|
},
|
|
39
39
|
isDark: function(e, t) {
|
|
@@ -65,7 +65,7 @@ function ce() {
|
|
|
65
65
|
getBestMaskPattern: function() {
|
|
66
66
|
for (var e = 0, t = 0, i = 0; i < 8; i++) {
|
|
67
67
|
this.makeImpl(!0, i);
|
|
68
|
-
var o =
|
|
68
|
+
var o = m.getLostPoint(this);
|
|
69
69
|
(i == 0 || e > o) && (e = o, t = i);
|
|
70
70
|
}
|
|
71
71
|
return t;
|
|
@@ -75,8 +75,8 @@ function ce() {
|
|
|
75
75
|
this.make();
|
|
76
76
|
for (var l = 0; l < this.modules.length; l++)
|
|
77
77
|
for (var c = l * s, r = 0; r < this.modules[l].length; r++) {
|
|
78
|
-
var u = r * s,
|
|
79
|
-
|
|
78
|
+
var u = r * s, p = this.modules[l][r];
|
|
79
|
+
p && (o.beginFill(0, 100), o.moveTo(u, c), o.lineTo(u + s, c), o.lineTo(u + s, c + s), o.lineTo(u, c + s), o.endFill());
|
|
80
80
|
}
|
|
81
81
|
return o;
|
|
82
82
|
},
|
|
@@ -87,7 +87,7 @@ function ce() {
|
|
|
87
87
|
this.modules[6][t] == null && (this.modules[6][t] = t % 2 == 0);
|
|
88
88
|
},
|
|
89
89
|
setupPositionAdjustPattern: function() {
|
|
90
|
-
for (var e =
|
|
90
|
+
for (var e = m.getPatternPosition(this.typeNumber), t = 0; t < e.length; t++)
|
|
91
91
|
for (var i = 0; i < e.length; i++) {
|
|
92
92
|
var o = e[t], s = e[i];
|
|
93
93
|
if (this.modules[o][s] == null)
|
|
@@ -97,7 +97,7 @@ function ce() {
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
setupTypeNumber: function(e) {
|
|
100
|
-
for (var t =
|
|
100
|
+
for (var t = m.getBCHTypeNumber(this.typeNumber), i = 0; i < 18; i++) {
|
|
101
101
|
var o = !e && (t >> i & 1) == 1;
|
|
102
102
|
this.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = o;
|
|
103
103
|
}
|
|
@@ -107,7 +107,7 @@ function ce() {
|
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
setupTypeInfo: function(e, t) {
|
|
110
|
-
for (var i = this.errorCorrectLevel << 3 | t, o =
|
|
110
|
+
for (var i = this.errorCorrectLevel << 3 | t, o = m.getBCHTypeInfo(i), s = 0; s < 15; s++) {
|
|
111
111
|
var l = !e && (o >> s & 1) == 1;
|
|
112
112
|
s < 6 ? this.modules[s][8] = l : s < 8 ? this.modules[s + 1][8] = l : this.modules[this.moduleCount - 15 + s][8] = l;
|
|
113
113
|
}
|
|
@@ -124,8 +124,8 @@ function ce() {
|
|
|
124
124
|
if (this.modules[o][c - r] == null) {
|
|
125
125
|
var u = !1;
|
|
126
126
|
l < e.length && (u = (e[l] >>> s & 1) == 1);
|
|
127
|
-
var
|
|
128
|
-
|
|
127
|
+
var p = m.getMask(t, o, c - r);
|
|
128
|
+
p && (u = !u), this.modules[o][c - r] = u, s--, s == -1 && (l++, s = 7);
|
|
129
129
|
}
|
|
130
130
|
if (o += i, o < 0 || this.moduleCount <= o) {
|
|
131
131
|
o -= i, i = -i;
|
|
@@ -136,7 +136,7 @@ function ce() {
|
|
|
136
136
|
}, h.PAD0 = 236, h.PAD1 = 17, h.createData = function(e, t, i) {
|
|
137
137
|
for (var o = k.getRSBlocks(e, t), s = new w(), l = 0; l < i.length; l++) {
|
|
138
138
|
var c = i[l];
|
|
139
|
-
s.put(c.mode, 4), s.put(c.getLength(),
|
|
139
|
+
s.put(c.mode, 4), s.put(c.getLength(), m.getLengthInBits(c.mode, e)), c.write(s);
|
|
140
140
|
}
|
|
141
141
|
for (var r = 0, l = 0; l < o.length; l++)
|
|
142
142
|
r += o[l].dataCount;
|
|
@@ -149,13 +149,13 @@ function ce() {
|
|
|
149
149
|
return h.createBytes(s, o);
|
|
150
150
|
}, h.createBytes = function(e, t) {
|
|
151
151
|
for (var i = 0, o = 0, s = 0, l = new Array(t.length), c = new Array(t.length), r = 0; r < t.length; r++) {
|
|
152
|
-
var u = t[r].dataCount,
|
|
153
|
-
o = Math.max(o, u), s = Math.max(s,
|
|
152
|
+
var u = t[r].dataCount, p = t[r].totalCount - u;
|
|
153
|
+
o = Math.max(o, u), s = Math.max(s, p), l[r] = new Array(u);
|
|
154
154
|
for (var g = 0; g < l[r].length; g++)
|
|
155
155
|
l[r][g] = 255 & e.buffer[g + i];
|
|
156
156
|
i += u;
|
|
157
|
-
var
|
|
158
|
-
c[r] = new Array(
|
|
157
|
+
var T = m.getErrorCorrectPolynomial(p), S = new O(l[r], T.getLength() - 1), M = S.mod(T);
|
|
158
|
+
c[r] = new Array(T.getLength() - 1);
|
|
159
159
|
for (var g = 0; g < c[r].length; g++) {
|
|
160
160
|
var D = g + M.getLength() - c[r].length;
|
|
161
161
|
c[r][g] = D >= 0 ? M.get(D) : 0;
|
|
@@ -171,7 +171,7 @@ function ce() {
|
|
|
171
171
|
g < c[r].length && (H[F++] = c[r][g]);
|
|
172
172
|
return H;
|
|
173
173
|
};
|
|
174
|
-
for (var d = { MODE_NUMBER: 1, MODE_ALPHA_NUM: 2, MODE_8BIT_BYTE: 4, MODE_KANJI: 8 },
|
|
174
|
+
for (var d = { MODE_NUMBER: 1, MODE_ALPHA_NUM: 2, MODE_8BIT_BYTE: 4, MODE_KANJI: 8 }, y = { L: 1, M: 0, Q: 3, H: 2 }, P = {
|
|
175
175
|
PATTERN000: 0,
|
|
176
176
|
PATTERN001: 1,
|
|
177
177
|
PATTERN010: 2,
|
|
@@ -180,7 +180,7 @@ function ce() {
|
|
|
180
180
|
PATTERN101: 5,
|
|
181
181
|
PATTERN110: 6,
|
|
182
182
|
PATTERN111: 7
|
|
183
|
-
},
|
|
183
|
+
}, m = {
|
|
184
184
|
PATTERN_POSITION_TABLE: [
|
|
185
185
|
[],
|
|
186
186
|
[6, 18],
|
|
@@ -227,13 +227,13 @@ function ce() {
|
|
|
227
227
|
G18: 7973,
|
|
228
228
|
G15_MASK: 21522,
|
|
229
229
|
getBCHTypeInfo: function(e) {
|
|
230
|
-
for (var t = e << 10;
|
|
231
|
-
t ^=
|
|
232
|
-
return (e << 10 | t) ^
|
|
230
|
+
for (var t = e << 10; m.getBCHDigit(t) - m.getBCHDigit(m.G15) >= 0; )
|
|
231
|
+
t ^= m.G15 << m.getBCHDigit(t) - m.getBCHDigit(m.G15);
|
|
232
|
+
return (e << 10 | t) ^ m.G15_MASK;
|
|
233
233
|
},
|
|
234
234
|
getBCHTypeNumber: function(e) {
|
|
235
|
-
for (var t = e << 12;
|
|
236
|
-
t ^=
|
|
235
|
+
for (var t = e << 12; m.getBCHDigit(t) - m.getBCHDigit(m.G18) >= 0; )
|
|
236
|
+
t ^= m.G18 << m.getBCHDigit(t) - m.getBCHDigit(m.G18);
|
|
237
237
|
return e << 12 | t;
|
|
238
238
|
},
|
|
239
239
|
getBCHDigit: function(e) {
|
|
@@ -242,7 +242,7 @@ function ce() {
|
|
|
242
242
|
return t;
|
|
243
243
|
},
|
|
244
244
|
getPatternPosition: function(e) {
|
|
245
|
-
return
|
|
245
|
+
return m.PATTERN_POSITION_TABLE[e - 1];
|
|
246
246
|
},
|
|
247
247
|
getMask: function(e, t, i) {
|
|
248
248
|
switch (e) {
|
|
@@ -325,8 +325,8 @@ function ce() {
|
|
|
325
325
|
}
|
|
326
326
|
for (var o = 0; o < t - 1; o++)
|
|
327
327
|
for (var s = 0; s < t - 1; s++) {
|
|
328
|
-
var
|
|
329
|
-
e.isDark(o, s) &&
|
|
328
|
+
var p = 0;
|
|
329
|
+
e.isDark(o, s) && p++, e.isDark(o + 1, s) && p++, e.isDark(o, s + 1) && p++, e.isDark(o + 1, s + 1) && p++, (p == 0 || p == 4) && (i += 3);
|
|
330
330
|
}
|
|
331
331
|
for (var o = 0; o < t; o++)
|
|
332
332
|
for (var s = 0; s < t - 6; s++)
|
|
@@ -337,8 +337,8 @@ function ce() {
|
|
|
337
337
|
for (var g = 0, s = 0; s < t; s++)
|
|
338
338
|
for (var o = 0; o < t; o++)
|
|
339
339
|
e.isDark(o, s) && g++;
|
|
340
|
-
var
|
|
341
|
-
return i +=
|
|
340
|
+
var T = Math.abs(100 * g / t / t - 50) / 5;
|
|
341
|
+
return i += T * 10, i;
|
|
342
342
|
}
|
|
343
343
|
}, C = {
|
|
344
344
|
glog: function(e) {
|
|
@@ -562,18 +562,18 @@ function ce() {
|
|
|
562
562
|
if (i == null)
|
|
563
563
|
throw new Error("bad rs block @ typeNumber:" + e + "/errorCorrectLevel:" + t);
|
|
564
564
|
for (var o = i.length / 3, s = [], l = 0; l < o; l++)
|
|
565
|
-
for (var c = i[l * 3 + 0], r = i[l * 3 + 1], u = i[l * 3 + 2],
|
|
565
|
+
for (var c = i[l * 3 + 0], r = i[l * 3 + 1], u = i[l * 3 + 2], p = 0; p < c; p++)
|
|
566
566
|
s.push(new k(r, u));
|
|
567
567
|
return s;
|
|
568
568
|
}, k.getRsBlockTable = function(e, t) {
|
|
569
569
|
switch (t) {
|
|
570
|
-
case
|
|
570
|
+
case y.L:
|
|
571
571
|
return k.RS_BLOCK_TABLE[(e - 1) * 4 + 0];
|
|
572
|
-
case
|
|
572
|
+
case y.M:
|
|
573
573
|
return k.RS_BLOCK_TABLE[(e - 1) * 4 + 1];
|
|
574
|
-
case
|
|
574
|
+
case y.Q:
|
|
575
575
|
return k.RS_BLOCK_TABLE[(e - 1) * 4 + 2];
|
|
576
|
-
case
|
|
576
|
+
case y.H:
|
|
577
577
|
return k.RS_BLOCK_TABLE[(e - 1) * 4 + 3];
|
|
578
578
|
default:
|
|
579
579
|
return;
|
|
@@ -660,9 +660,9 @@ function ce() {
|
|
|
660
660
|
return e.prototype.draw = function(t) {
|
|
661
661
|
var i = this._htOption, o = this._el, s = t.getModuleCount();
|
|
662
662
|
Math.floor(i.width / s), Math.floor(i.height / s), this.clear();
|
|
663
|
-
function l(g,
|
|
663
|
+
function l(g, T) {
|
|
664
664
|
var S = document.createElementNS("http://www.w3.org/2000/svg", g);
|
|
665
|
-
for (var M in
|
|
665
|
+
for (var M in T) T.hasOwnProperty(M) && S.setAttribute(M, T[M]);
|
|
666
666
|
return S;
|
|
667
667
|
}
|
|
668
668
|
var c = l("svg", {
|
|
@@ -675,8 +675,8 @@ function ce() {
|
|
|
675
675
|
for (var r = 0; r < s; r++)
|
|
676
676
|
for (var u = 0; u < s; u++)
|
|
677
677
|
if (t.isDark(r, u)) {
|
|
678
|
-
var
|
|
679
|
-
|
|
678
|
+
var p = l("use", { x: String(u), y: String(r) });
|
|
679
|
+
p.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#template"), c.appendChild(p);
|
|
680
680
|
}
|
|
681
681
|
}, e.prototype.clear = function() {
|
|
682
682
|
for (; this._el.hasChildNodes(); ) this._el.removeChild(this._el.lastChild);
|
|
@@ -687,7 +687,7 @@ function ce() {
|
|
|
687
687
|
}
|
|
688
688
|
if (this && this._android && this._android <= 2.1) {
|
|
689
689
|
var t = 1 / window.devicePixelRatio, i = CanvasRenderingContext2D.prototype.drawImage;
|
|
690
|
-
CanvasRenderingContext2D.prototype.drawImage = function(l, c, r, u,
|
|
690
|
+
CanvasRenderingContext2D.prototype.drawImage = function(l, c, r, u, p, g, T, S, M) {
|
|
691
691
|
if ("nodeName" in l && /img/i.test(l.nodeName))
|
|
692
692
|
for (var D = arguments.length - 1; D >= 1; D--)
|
|
693
693
|
arguments[D] = arguments[D] * t;
|
|
@@ -698,12 +698,12 @@ function ce() {
|
|
|
698
698
|
function o(l, c) {
|
|
699
699
|
var r = this;
|
|
700
700
|
if (r._fFail = c, r._fSuccess = l, r._bSupportDataURI === null) {
|
|
701
|
-
var u = document.createElement("img"),
|
|
701
|
+
var u = document.createElement("img"), p = function() {
|
|
702
702
|
r._bSupportDataURI = !1, r._fFail && r._fFail.call(r);
|
|
703
703
|
}, g = function() {
|
|
704
704
|
r._bSupportDataURI = !0, r._fSuccess && r._fSuccess.call(r);
|
|
705
705
|
};
|
|
706
|
-
u.onabort =
|
|
706
|
+
u.onabort = p, u.onerror = p, u.onload = g, u.src = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";
|
|
707
707
|
return;
|
|
708
708
|
} else r._bSupportDataURI === !0 && r._fSuccess ? r._fSuccess.call(r) : r._bSupportDataURI === !1 && r._fFail && r._fFail.call(r);
|
|
709
709
|
}
|
|
@@ -711,12 +711,12 @@ function ce() {
|
|
|
711
711
|
this._bIsPainted = !1, this._android = $(), this._htOption = c, this._elCanvas = document.createElement("canvas"), this._elCanvas.width = c.width, this._elCanvas.height = c.height, l.appendChild(this._elCanvas), this._el = l, this._oContext = this._elCanvas.getContext("2d"), this._bIsPainted = !1, this._elImage = document.createElement("img"), this._elImage.alt = "Scan me!", this._elImage.style.display = "none", this._el.appendChild(this._elImage), this._bSupportDataURI = null;
|
|
712
712
|
};
|
|
713
713
|
return s.prototype.draw = function(l) {
|
|
714
|
-
var c = this._elImage, r = this._oContext, u = this._htOption,
|
|
714
|
+
var c = this._elImage, r = this._oContext, u = this._htOption, p = l.getModuleCount(), g = u.width / p, T = u.height / p, S = Math.round(g), M = Math.round(T);
|
|
715
715
|
c.style.display = "none", this.clear();
|
|
716
|
-
for (var D = 0; D <
|
|
717
|
-
for (var x = 0; x <
|
|
718
|
-
var H = l.isDark(D, x), F = x * g, q = D *
|
|
719
|
-
r.strokeStyle = H ? u.colorDark : u.colorLight, r.lineWidth = 1, r.fillStyle = H ? u.colorDark : u.colorLight, r.fillRect(F, q, g,
|
|
716
|
+
for (var D = 0; D < p; D++)
|
|
717
|
+
for (var x = 0; x < p; x++) {
|
|
718
|
+
var H = l.isDark(D, x), F = x * g, q = D * T;
|
|
719
|
+
r.strokeStyle = H ? u.colorDark : u.colorLight, r.lineWidth = 1, r.fillStyle = H ? u.colorDark : u.colorLight, r.fillRect(F, q, g, T), r.strokeRect(Math.floor(F) + 0.5, Math.floor(q) + 0.5, S, M), r.strokeRect(Math.ceil(F) - 0.5, Math.ceil(q) - 0.5, S, M);
|
|
720
720
|
}
|
|
721
721
|
this._bIsPainted = !0;
|
|
722
722
|
}, s.prototype.makeImage = function() {
|
|
@@ -735,15 +735,15 @@ function ce() {
|
|
|
735
735
|
return e.prototype.draw = function(t) {
|
|
736
736
|
for (var i = this._htOption, o = this._el, s = t.getModuleCount(), l = Math.floor(i.width / s), c = Math.floor(i.height / s), r = ['<table style="border:0;border-collapse:collapse;">'], u = 0; u < s; u++) {
|
|
737
737
|
r.push("<tr>");
|
|
738
|
-
for (var
|
|
738
|
+
for (var p = 0; p < s; p++)
|
|
739
739
|
r.push(
|
|
740
|
-
'<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:' + l + "px;height:" + c + "px;background-color:" + (t.isDark(u,
|
|
740
|
+
'<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:' + l + "px;height:" + c + "px;background-color:" + (t.isDark(u, p) ? i.colorDark : i.colorLight) + ';"></td>'
|
|
741
741
|
);
|
|
742
742
|
r.push("</tr>");
|
|
743
743
|
}
|
|
744
744
|
r.push("</table>"), o.innerHTML = r.join("");
|
|
745
|
-
var g = o.childNodes[0],
|
|
746
|
-
|
|
745
|
+
var g = o.childNodes[0], T = (i.width - g.offsetWidth) / 2, S = (i.height - g.offsetHeight) / 2;
|
|
746
|
+
T > 0 && S > 0 && (g.style.margin = S + "px " + T + "px");
|
|
747
747
|
}, e.prototype.clear = function() {
|
|
748
748
|
this._el.innerHTML = "";
|
|
749
749
|
}, e;
|
|
@@ -752,16 +752,16 @@ function ce() {
|
|
|
752
752
|
for (var i = 1, o = Z(e), s = 0, l = V.length; s <= l; s++) {
|
|
753
753
|
var c = 0;
|
|
754
754
|
switch (t) {
|
|
755
|
-
case
|
|
755
|
+
case y.L:
|
|
756
756
|
c = V[s][0];
|
|
757
757
|
break;
|
|
758
|
-
case
|
|
758
|
+
case y.M:
|
|
759
759
|
c = V[s][1];
|
|
760
760
|
break;
|
|
761
|
-
case
|
|
761
|
+
case y.Q:
|
|
762
762
|
c = V[s][2];
|
|
763
763
|
break;
|
|
764
|
-
case
|
|
764
|
+
case y.H:
|
|
765
765
|
c = V[s][3];
|
|
766
766
|
break;
|
|
767
767
|
}
|
|
@@ -777,27 +777,27 @@ function ce() {
|
|
|
777
777
|
var t = encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g, "a");
|
|
778
778
|
return t.length + (t.length != e ? 3 : 0);
|
|
779
779
|
}
|
|
780
|
-
return
|
|
780
|
+
return v = function(e, t) {
|
|
781
781
|
if (this._htOption = {
|
|
782
782
|
width: 256,
|
|
783
783
|
height: 256,
|
|
784
784
|
typeNumber: 4,
|
|
785
785
|
colorDark: "#000000",
|
|
786
786
|
colorLight: "#ffffff",
|
|
787
|
-
correctLevel:
|
|
787
|
+
correctLevel: y.H
|
|
788
788
|
}, typeof t == "string" && (t = {
|
|
789
789
|
text: t
|
|
790
790
|
}), t)
|
|
791
791
|
for (var i in t)
|
|
792
792
|
this._htOption[i] = t[i];
|
|
793
793
|
typeof e == "string" && (e = document.getElementById(e)), this._htOption.useSVG && (J = K), this._android = $(), this._el = e, this._oQRCode = null, this._oDrawing = new J(this._el, this._htOption), this._htOption.text && this.makeCode(this._htOption.text);
|
|
794
|
-
},
|
|
794
|
+
}, v.prototype.makeCode = function(e) {
|
|
795
795
|
this._oQRCode = new h(j(e, this._htOption.correctLevel), this._htOption.correctLevel), this._oQRCode.addData(e), this._oQRCode.make(), this._el.title = e, this._oDrawing.draw(this._oQRCode), this.makeImage();
|
|
796
|
-
},
|
|
796
|
+
}, v.prototype.makeImage = function() {
|
|
797
797
|
typeof this._oDrawing.makeImage == "function" && (!this._android || this._android >= 3) && this._oDrawing.makeImage();
|
|
798
|
-
},
|
|
798
|
+
}, v.prototype.clear = function() {
|
|
799
799
|
this._oDrawing.clear();
|
|
800
|
-
},
|
|
800
|
+
}, v.CorrectLevel = y, v;
|
|
801
801
|
});
|
|
802
802
|
}(Q)), Q.exports;
|
|
803
803
|
}
|
|
@@ -859,8 +859,8 @@ const z = /* @__PURE__ */ le(ue), de = {
|
|
|
859
859
|
account_mobile(n) {
|
|
860
860
|
this.$nextTick(() => {
|
|
861
861
|
let a = this.$refs.account_mobile.$el.querySelector("input");
|
|
862
|
-
const
|
|
863
|
-
|
|
862
|
+
const _ = getComputedStyle(a).background.match(/rgb\((\d+,\s*\d+,\s*\d+)\)/);
|
|
863
|
+
_ && _[0] === "rgb(232, 240, 254)" && this.onBlur();
|
|
864
864
|
});
|
|
865
865
|
},
|
|
866
866
|
loginMode(n) {
|
|
@@ -868,17 +868,17 @@ const z = /* @__PURE__ */ le(ue), de = {
|
|
|
868
868
|
}
|
|
869
869
|
},
|
|
870
870
|
computed: {
|
|
871
|
-
|
|
871
|
+
openCasePrivacyUrl() {
|
|
872
872
|
var n;
|
|
873
|
-
return ((n = this.
|
|
873
|
+
return ((n = this.openCaseInfo) == null ? void 0 : n.privacy_url) || "";
|
|
874
874
|
},
|
|
875
875
|
loginLastLogo() {
|
|
876
|
-
return this.
|
|
876
|
+
return this.openCaseInfo.platinfo_log || "/logo-nobg.png";
|
|
877
877
|
},
|
|
878
|
-
|
|
879
|
-
var
|
|
880
|
-
let n = (
|
|
881
|
-
return
|
|
878
|
+
loginLastTitle() {
|
|
879
|
+
var _, h;
|
|
880
|
+
let n = (_ = this.openProductInfo) == null ? void 0 : _.info_title, a = (h = this.openCaseInfo) == null ? void 0 : h.system_type;
|
|
881
|
+
return n || a;
|
|
882
882
|
},
|
|
883
883
|
currentLanguage() {
|
|
884
884
|
return this.languageList[this.languageName] || "Language";
|
|
@@ -907,7 +907,7 @@ const z = /* @__PURE__ */ le(ue), de = {
|
|
|
907
907
|
this.$message.warning("请联系管理员!");
|
|
908
908
|
},
|
|
909
909
|
chackServerUrl(n) {
|
|
910
|
-
return new Promise((a,
|
|
910
|
+
return new Promise((a, v) => {
|
|
911
911
|
a();
|
|
912
912
|
});
|
|
913
913
|
},
|
|
@@ -981,21 +981,21 @@ const z = /* @__PURE__ */ le(ue), de = {
|
|
|
981
981
|
this.account_mobile = n.account_mobile_show, this.account_business_id = n.business_id, n.acc_role_type == "sy-org-admin" ? this.passportHandle2(null, "OrgAdminPwdLogin") : n.acc_role_type == "sy-org-staff" && this.passportHandle2(null, "OrgStaffPwdLogin");
|
|
982
982
|
},
|
|
983
983
|
passportHandle2(n, a) {
|
|
984
|
-
let
|
|
984
|
+
let v = this.$message({
|
|
985
985
|
iconClass: "ElIconLoading",
|
|
986
986
|
message: "正在登录...",
|
|
987
987
|
duration: 0
|
|
988
988
|
});
|
|
989
989
|
this.loadOngoing = !0, localStorage.setItem("cacheLoginMobile", this.account_mobile);
|
|
990
990
|
try {
|
|
991
|
-
let
|
|
992
|
-
this.loginMode == "access" ? (
|
|
991
|
+
let _ = {};
|
|
992
|
+
this.loginMode == "access" ? (_ = {
|
|
993
993
|
account_mobile: this.account_mobile,
|
|
994
994
|
business_id: this.account_business_id,
|
|
995
995
|
account_password: this.account_password,
|
|
996
996
|
captcha_code: this.captcha_code,
|
|
997
997
|
captcha_key: this.codeKey
|
|
998
|
-
}, (a == "OrgAdminPwdLogin" || a == "OrgStaffPwdLogin") && (
|
|
998
|
+
}, (a == "OrgAdminPwdLogin" || a == "OrgStaffPwdLogin") && (_.temp_token = this.chainTempToken)) : this.loginMode == "reg" && (_ = {
|
|
999
999
|
account_mobile: this.account_mobile,
|
|
1000
1000
|
business_id: this.account_business_id,
|
|
1001
1001
|
account_password: this.account_password,
|
|
@@ -1006,14 +1006,14 @@ const z = /* @__PURE__ */ le(ue), de = {
|
|
|
1006
1006
|
timeout: 1e4
|
|
1007
1007
|
}).flagPost("BASE_PASSPORT_PASSPORT", {
|
|
1008
1008
|
handleType: a,
|
|
1009
|
-
...
|
|
1009
|
+
..._
|
|
1010
1010
|
}).then((h) => {
|
|
1011
|
-
|
|
1011
|
+
v.close(), this.loadOngoing = !1, h.status == 200 ? this.adminLoginSucc(h) : h.status == 403 ? (this.$message.error("验证码有误!"), this.refreshCode(), this.codeNeed = !0) : (this.$message.error(h.msg), this.refreshCode());
|
|
1012
1012
|
}).catch((h) => {
|
|
1013
|
-
this.loadOngoing = !1, this.chainShowFlag = !1,
|
|
1013
|
+
this.loadOngoing = !1, this.chainShowFlag = !1, v.close(), this.refreshCode(), this.codeNeed = !0;
|
|
1014
1014
|
});
|
|
1015
1015
|
} catch {
|
|
1016
|
-
this.$message.error("登录异常"),
|
|
1016
|
+
this.$message.error("登录异常"), v.close(), this.loadOngoing = !1, this.refreshCode();
|
|
1017
1017
|
}
|
|
1018
1018
|
},
|
|
1019
1019
|
async adminLoginSucc(n) {
|
|
@@ -1021,8 +1021,8 @@ const z = /* @__PURE__ */ le(ue), de = {
|
|
|
1021
1021
|
if (a.result_type == "chain")
|
|
1022
1022
|
this.chainAccountList = a.result_data || [], this.chainShowFlag = !0, this.chainTempToken = a.result_token || "";
|
|
1023
1023
|
else {
|
|
1024
|
-
const
|
|
1025
|
-
await ne().SA_ACCOUNT_SIGNIN(
|
|
1024
|
+
const v = a.result_data || {};
|
|
1025
|
+
await ne().SA_ACCOUNT_SIGNIN(v), this.codeNeed = !1, this.$message({
|
|
1026
1026
|
type: "success",
|
|
1027
1027
|
message: "登录成功...",
|
|
1028
1028
|
duration: 800,
|
|
@@ -1060,8 +1060,8 @@ const z = /* @__PURE__ */ le(ue), de = {
|
|
|
1060
1060
|
}).then((n) => {
|
|
1061
1061
|
var a;
|
|
1062
1062
|
n.status == 200 ? (this.scanCreate((a = n == null ? void 0 : n.data) == null ? void 0 : a.checkLogin), this.qrcodeTimer = window.setInterval(() => {
|
|
1063
|
-
var
|
|
1064
|
-
this.scanCheckFunc((
|
|
1063
|
+
var v;
|
|
1064
|
+
this.scanCheckFunc((v = n == null ? void 0 : n.data) == null ? void 0 : v.scanCode);
|
|
1065
1065
|
}, 3e3)) : result.status == 404;
|
|
1066
1066
|
}).catch((n) => {
|
|
1067
1067
|
}).finally((n) => {
|
|
@@ -1077,10 +1077,10 @@ const z = /* @__PURE__ */ le(ue), de = {
|
|
|
1077
1077
|
fun: "scanCheck",
|
|
1078
1078
|
scanCode: n || ""
|
|
1079
1079
|
}).then((a) => {
|
|
1080
|
-
var
|
|
1080
|
+
var _, h;
|
|
1081
1081
|
if (a.status == 200) {
|
|
1082
|
-
var
|
|
1083
|
-
|
|
1082
|
+
var v = a.msg && ((_ = a == null ? void 0 : a.data) == null ? void 0 : _.scanCVal) || "";
|
|
1083
|
+
v != "" && (clearInterval(this.qrcodeTimer), this.scanLoginFunc(n, (h = a == null ? void 0 : a.data) == null ? void 0 : h.scanCVal));
|
|
1084
1084
|
} else a.status == 405 && (clearInterval(this.qrcodeTimer), this.qrcodeExpiredShow = !0);
|
|
1085
1085
|
}).catch(() => {
|
|
1086
1086
|
});
|
|
@@ -1095,17 +1095,17 @@ const z = /* @__PURE__ */ le(ue), de = {
|
|
|
1095
1095
|
fun: "scanLogin",
|
|
1096
1096
|
scanCode: n,
|
|
1097
1097
|
scanCVal: a
|
|
1098
|
-
}).then((
|
|
1099
|
-
if (
|
|
1100
|
-
let
|
|
1098
|
+
}).then((v) => {
|
|
1099
|
+
if (v.status == 200) {
|
|
1100
|
+
let _ = this.$message({
|
|
1101
1101
|
iconClass: "ElIconLoading",
|
|
1102
1102
|
message: "正在安全登录中,请稍后...",
|
|
1103
1103
|
duration: 0
|
|
1104
1104
|
});
|
|
1105
1105
|
setTimeout(() => {
|
|
1106
|
-
|
|
1107
|
-
message:
|
|
1108
|
-
type:
|
|
1106
|
+
_.close(), this.$message({
|
|
1107
|
+
message: v.msg,
|
|
1108
|
+
type: v.status == 200 ? "success" : "error"
|
|
1109
1109
|
});
|
|
1110
1110
|
}, 2e3);
|
|
1111
1111
|
}
|
|
@@ -1116,7 +1116,7 @@ const z = /* @__PURE__ */ le(ue), de = {
|
|
|
1116
1116
|
this.loginJump = !0;
|
|
1117
1117
|
let n = cvUtils.urlQueryToObj(this.$route.query);
|
|
1118
1118
|
const a = decodeURIComponent(n.from || "");
|
|
1119
|
-
a ? gbIdbObj.idbSetItem("clearCache", "login").then((
|
|
1119
|
+
a ? gbIdbObj.idbSetItem("clearCache", "login").then((v) => {
|
|
1120
1120
|
window.location.replace(a);
|
|
1121
1121
|
}) : this.$router.push({ path: "/" });
|
|
1122
1122
|
},
|
|
@@ -1129,21 +1129,21 @@ const z = /* @__PURE__ */ le(ue), de = {
|
|
|
1129
1129
|
inputServerUrl() {
|
|
1130
1130
|
},
|
|
1131
1131
|
inputServerChack(n) {
|
|
1132
|
-
return new Promise((a,
|
|
1133
|
-
let
|
|
1134
|
-
/\/api\/$/.test(
|
|
1132
|
+
return new Promise((a, v) => {
|
|
1133
|
+
let _ = n;
|
|
1134
|
+
/\/api\/$/.test(_) || (_ = _ + (cvUtils.strRightExists(_, "/") ? "api/" : "/api/")), /^https*:\/\//i.test(_) || (_ = `https://${_}`), ie.setOptions({
|
|
1135
1135
|
checkNetwork: !1
|
|
1136
1136
|
}).flagGet("SYS_SETT_ALL", {}).then(async ({ data: h }) => {
|
|
1137
|
-
typeof h.server_version > "u" && typeof h.all_group_mute > "u" ?
|
|
1137
|
+
typeof h.server_version > "u" && typeof h.all_group_mute > "u" ? v(`服务器(${cvUtils.urlGetDomain(n)})版本过低`) : (_ != this.cacheServerUrl && (await gbIdbObj.idbSetItem("cacheServerUrl", _), window.location.reload()), a());
|
|
1138
1138
|
}).catch(({ ret: h, msg: d }) => {
|
|
1139
1139
|
if (h === -1001) {
|
|
1140
1140
|
if (!/^https*:\/\//i.test(n)) {
|
|
1141
|
-
this.inputServerChack(`http://${n}`).then(a).catch(
|
|
1141
|
+
this.inputServerChack(`http://${n}`).then(a).catch(v);
|
|
1142
1142
|
return;
|
|
1143
1143
|
}
|
|
1144
1144
|
d = "服务器地址无效";
|
|
1145
1145
|
}
|
|
1146
|
-
|
|
1146
|
+
v(d);
|
|
1147
1147
|
});
|
|
1148
1148
|
});
|
|
1149
1149
|
}
|
|
@@ -1151,13 +1151,13 @@ const z = /* @__PURE__ */ le(ue), de = {
|
|
|
1151
1151
|
}, ge = { class: "cloud-login-wrap" }, fe = {
|
|
1152
1152
|
key: 0,
|
|
1153
1153
|
class: "cloud-login-main"
|
|
1154
|
-
},
|
|
1154
|
+
}, pe = { class: "cloud-login-logo no-dark-content can-click" }, _e = ["src"], ve = {
|
|
1155
1155
|
key: 0,
|
|
1156
1156
|
class: "cloud-login-box"
|
|
1157
|
-
},
|
|
1157
|
+
}, me = { class: "login-title" }, we = { class: "login-subtitle" }, Ce = { class: "cloud-login-mode-access" }, Le = { class: "login-switch" }, be = {
|
|
1158
1158
|
key: 1,
|
|
1159
1159
|
class: "cloud-login-box"
|
|
1160
|
-
},
|
|
1160
|
+
}, Te = { class: "login-mode-switch" }, ye = { class: "login-mode-switch-box" }, Ee = { class: "login-title" }, Ae = { class: "login-subtitle" }, ke = { class: "cloud-login-mode-access" }, Se = {
|
|
1161
1161
|
key: 0,
|
|
1162
1162
|
class: "code-load"
|
|
1163
1163
|
}, De = {
|
|
@@ -1179,22 +1179,22 @@ const z = /* @__PURE__ */ le(ue), de = {
|
|
|
1179
1179
|
key: 3,
|
|
1180
1180
|
class: "cloud-login-box"
|
|
1181
1181
|
}, qe = { class: "login-title" }, Ge = { class: "login-subtitle" }, $e = { class: "cloud-login-mode-access" }, Ke = { class: "page-login-oauth" };
|
|
1182
|
-
function Je(n, a,
|
|
1183
|
-
const
|
|
1182
|
+
function Je(n, a, v, _, h, d) {
|
|
1183
|
+
const y = R("el-input"), P = R("el-button"), m = R("cv-icons"), C = R("el-tooltip"), L = R("ElIconLoading"), O = R("el-checkbox"), k = R("SwitchBusiness");
|
|
1184
1184
|
return E(), I("div", ge, [
|
|
1185
1185
|
h.chainShowFlag ? B("", !0) : (E(), I("div", fe, [
|
|
1186
|
-
f("div",
|
|
1186
|
+
f("div", pe, [
|
|
1187
1187
|
f("img", {
|
|
1188
1188
|
src: d.loginLastLogo,
|
|
1189
1189
|
alt: ""
|
|
1190
|
-
}, null, 8,
|
|
1190
|
+
}, null, 8, _e)
|
|
1191
1191
|
]),
|
|
1192
|
-
h.loginMode == "reg" ? (E(), I("div",
|
|
1193
|
-
f("div",
|
|
1192
|
+
h.loginMode == "reg" ? (E(), I("div", ve, [
|
|
1193
|
+
f("div", me, b(d.loginLastTitle), 1),
|
|
1194
1194
|
f("div", we, b(n.$t("输入您的信息以创建帐户。")), 1),
|
|
1195
1195
|
f("div", Ce, [
|
|
1196
1196
|
f("form", null, [
|
|
1197
|
-
A(
|
|
1197
|
+
A(y, {
|
|
1198
1198
|
modelValue: h.account_password2,
|
|
1199
1199
|
"onUpdate:modelValue": a[0] || (a[0] = (w) => h.account_password2 = w),
|
|
1200
1200
|
ref: "account_password2",
|
|
@@ -1204,7 +1204,7 @@ function Je(n, a, m, p, h, d) {
|
|
|
1204
1204
|
size: "large",
|
|
1205
1205
|
clearable: ""
|
|
1206
1206
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1207
|
-
h.regInviteNeed ? (E(), G(
|
|
1207
|
+
h.regInviteNeed ? (E(), G(y, {
|
|
1208
1208
|
key: 0,
|
|
1209
1209
|
modelValue: h.reg_invite,
|
|
1210
1210
|
"onUpdate:modelValue": a[1] || (a[1] = (w) => h.reg_invite = w),
|
|
@@ -1237,8 +1237,8 @@ function Je(n, a, m, p, h, d) {
|
|
|
1237
1237
|
])
|
|
1238
1238
|
])) : B("", !0),
|
|
1239
1239
|
h.loginMode == "access" ? (E(), I("div", be, [
|
|
1240
|
-
f("div",
|
|
1241
|
-
f("div",
|
|
1240
|
+
f("div", Te, [
|
|
1241
|
+
f("div", ye, [
|
|
1242
1242
|
A(C, {
|
|
1243
1243
|
content: "扫码登录",
|
|
1244
1244
|
placement: "left"
|
|
@@ -1248,7 +1248,7 @@ function Je(n, a, m, p, h, d) {
|
|
|
1248
1248
|
class: "login-mode-switch-icon",
|
|
1249
1249
|
onClick: a[3] || (a[3] = (w) => d.switchLoginMode("qrcode"))
|
|
1250
1250
|
}, [
|
|
1251
|
-
A(
|
|
1251
|
+
A(m, {
|
|
1252
1252
|
type: "cvSvgBaseQrcode",
|
|
1253
1253
|
size: "45"
|
|
1254
1254
|
})
|
|
@@ -1258,11 +1258,11 @@ function Je(n, a, m, p, h, d) {
|
|
|
1258
1258
|
})
|
|
1259
1259
|
])
|
|
1260
1260
|
]),
|
|
1261
|
-
f("div", Ee, b(d.
|
|
1261
|
+
f("div", Ee, b(d.loginLastTitle), 1),
|
|
1262
1262
|
f("div", Ae, b(n.$t("输入您的凭证以访问您的帐户。")), 1),
|
|
1263
1263
|
f("div", ke, [
|
|
1264
1264
|
f("form", null, [
|
|
1265
|
-
A(
|
|
1265
|
+
A(y, {
|
|
1266
1266
|
modelValue: h.account_mobile,
|
|
1267
1267
|
"onUpdate:modelValue": a[4] || (a[4] = (w) => h.account_mobile = w),
|
|
1268
1268
|
ref: "account_mobile",
|
|
@@ -1274,7 +1274,7 @@ function Je(n, a, m, p, h, d) {
|
|
|
1274
1274
|
onBlur: d.onBlur,
|
|
1275
1275
|
clearable: ""
|
|
1276
1276
|
}, null, 8, ["modelValue", "placeholder", "onBlur"]),
|
|
1277
|
-
A(
|
|
1277
|
+
A(y, {
|
|
1278
1278
|
modelValue: h.account_password,
|
|
1279
1279
|
"onUpdate:modelValue": a[5] || (a[5] = (w) => h.account_password = w),
|
|
1280
1280
|
ref: "account_password",
|
|
@@ -1285,7 +1285,7 @@ function Je(n, a, m, p, h, d) {
|
|
|
1285
1285
|
clearable: "",
|
|
1286
1286
|
onKeydown: ae(d.accessLoginFunc, ["enter"])
|
|
1287
1287
|
}, null, 8, ["modelValue", "placeholder", "onKeydown"]),
|
|
1288
|
-
h.codeNeed ? (E(), G(
|
|
1288
|
+
h.codeNeed ? (E(), G(y, {
|
|
1289
1289
|
key: 0,
|
|
1290
1290
|
modelValue: h.captcha_code,
|
|
1291
1291
|
"onUpdate:modelValue": a[7] || (a[7] = (w) => h.captcha_code = w),
|
|
@@ -1297,7 +1297,7 @@ function Je(n, a, m, p, h, d) {
|
|
|
1297
1297
|
clearable: ""
|
|
1298
1298
|
}, {
|
|
1299
1299
|
prefix: N(() => [
|
|
1300
|
-
A(
|
|
1300
|
+
A(m, { type: "cvSvgCircleCheck" })
|
|
1301
1301
|
]),
|
|
1302
1302
|
append: N(() => [
|
|
1303
1303
|
f("div", {
|
|
@@ -1338,7 +1338,7 @@ function Je(n, a, m, p, h, d) {
|
|
|
1338
1338
|
default: N(() => [
|
|
1339
1339
|
a[16] || (a[16] = U(" 同意 ")),
|
|
1340
1340
|
f("a", {
|
|
1341
|
-
href: d.
|
|
1341
|
+
href: d.openCasePrivacyUrl,
|
|
1342
1342
|
target: "_blank"
|
|
1343
1343
|
}, "《隐私条款》", 8, Me)
|
|
1344
1344
|
]),
|
|
@@ -1378,7 +1378,7 @@ function Je(n, a, m, p, h, d) {
|
|
|
1378
1378
|
class: "login-mode-switch-icon",
|
|
1379
1379
|
onClick: a[12] || (a[12] = (w) => d.switchLoginMode("access"))
|
|
1380
1380
|
}, [
|
|
1381
|
-
A(
|
|
1381
|
+
A(m, {
|
|
1382
1382
|
type: "cvSvgBasePc",
|
|
1383
1383
|
size: "45"
|
|
1384
1384
|
})
|
|
@@ -1390,12 +1390,12 @@ function Je(n, a, m, p, h, d) {
|
|
|
1390
1390
|
]),
|
|
1391
1391
|
f("div", Ve, b(n.$t("扫码登录")), 1),
|
|
1392
1392
|
f("div", He, [
|
|
1393
|
-
A(
|
|
1393
|
+
A(m, {
|
|
1394
1394
|
type: "cvSvgActionScan",
|
|
1395
1395
|
size: "20",
|
|
1396
1396
|
style: { "margin-right": "10px" }
|
|
1397
1397
|
}),
|
|
1398
|
-
U(" " + b(n.$t(`请使用【${d.
|
|
1398
|
+
U(" " + b(n.$t(`请使用【${d.loginLastTitle}】移动端扫描二维码`)), 1)
|
|
1399
1399
|
]),
|
|
1400
1400
|
f("div", {
|
|
1401
1401
|
class: "login-qrcode",
|
|
@@ -1405,7 +1405,7 @@ function Je(n, a, m, p, h, d) {
|
|
|
1405
1405
|
])
|
|
1406
1406
|
])) : B("", !0),
|
|
1407
1407
|
h.loginMode == "oauth2" ? (E(), I("div", Qe, [
|
|
1408
|
-
f("div", qe, b(d.
|
|
1408
|
+
f("div", qe, b(d.loginLastTitle), 1),
|
|
1409
1409
|
f("div", Ge, b(n.$t("输入您的信息以创建帐户。")), 1),
|
|
1410
1410
|
f("div", $e, [
|
|
1411
1411
|
f("div", Ke, [
|