xyvcard-settle 0.0.50 → 0.0.52
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/images/login-bg.jpg +0 -0
- package/dist/images/logo.png +0 -0
- package/dist/images/one.png +0 -0
- package/dist/images/qrcode-success.jpg +0 -0
- package/dist/images/three.png +0 -0
- package/dist/images/two.png +0 -0
- package/dist/{index-C2M_dK36.mjs → index-B3GHU-xb.mjs} +43 -43
- package/dist/{index-Ds4E1nsC.mjs → index-B980qpom.mjs} +1 -1
- package/dist/{index-IYVODwmA.mjs → index-BbLVtP78.mjs} +79 -79
- package/dist/{index-DcQ0Bjxl.mjs → index-CyNqqr6S.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{merchant-u4dNCa0T.mjs → merchant-ibw0xLmI.mjs} +1 -1
- package/dist/{merchant.vue_vue_type_script_setup_true_lang-CvB7L7G7.mjs → merchant.vue_vue_type_script_setup_true_lang-BPRwQ1GY.mjs} +1 -1
- package/dist/{sale-CuEqsPD7.mjs → sale-CNIgtQg_.mjs} +1 -1
- package/dist/{sale.vue_vue_type_script_setup_true_lang-DXUIMGjh.mjs → sale.vue_vue_type_script_setup_true_lang-B2lFWyJR.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/three-IXQGxYzQ.mjs +6 -0
- package/package.json +63 -62
- package/dist/index copy-BMOSe9EZ.mjs +0 -287
- package/dist/qrcode-success-RhATc5cS.mjs +0 -5
- package/dist/three-BE8B3lbG.mjs +0 -6
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { onMounted as
|
|
2
|
-
import {
|
|
3
|
-
import { useI18n as pe } from "vue-i18n";
|
|
1
|
+
import { onMounted as j, nextTick as X, getCurrentInstance as Q, unref as R, getCurrentScope as Z, onScopeDispose as ee, ref as m, watch as U, watchEffect as B, computed as z, defineComponent as te, resolveComponent as C, createElementBlock as ne, openBlock as oe, createElementVNode as u, createVNode as i, withCtx as b, withDirectives as re, normalizeStyle as le, vShow as se, withKeys as N, withModifiers as ae, createTextVNode as ie, toDisplayString as ue } from "vue";
|
|
2
|
+
import { useI18n as ce } from "vue-i18n";
|
|
4
3
|
import "element-plus";
|
|
5
|
-
import { useRoute as
|
|
6
|
-
import { vueMetaEnv as M, useAppStore as O, useUserStore as
|
|
7
|
-
import { _ as
|
|
4
|
+
import { useRoute as de, useRouter as pe } from "vue-router";
|
|
5
|
+
import { vueMetaEnv as M, useAppStore as O, useUserStore as me, netEncrypt as fe, getCaptchaApi as ve, createLoginQrcode as ge } from "jmash-core";
|
|
6
|
+
import { _ as he } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
|
+
const _e = "/node_modules/xyvcard-settle/dist/images/logo.png";
|
|
8
8
|
function H(e) {
|
|
9
9
|
return Z() ? (ee(e), !0) : !1;
|
|
10
10
|
}
|
|
11
11
|
function $(e) {
|
|
12
|
-
return typeof e == "function" ? e() :
|
|
12
|
+
return typeof e == "function" ? e() : R(e);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const ye = typeof window < "u" && typeof document < "u";
|
|
15
15
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
16
|
-
const
|
|
16
|
+
const we = Object.prototype.toString, be = (e) => we.call(e) === "[object Object]", Ce = () => {
|
|
17
17
|
};
|
|
18
|
-
function
|
|
19
|
-
return
|
|
18
|
+
function Ee(e) {
|
|
19
|
+
return Q();
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
|
|
21
|
+
function Ie(e, n = !0, o) {
|
|
22
|
+
Ee() ? j(e, o) : n ? e() : X(e);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Se(e) {
|
|
25
25
|
var n;
|
|
26
26
|
const o = $(e);
|
|
27
27
|
return (n = o == null ? void 0 : o.$el) != null ? n : o;
|
|
28
28
|
}
|
|
29
|
-
const x =
|
|
30
|
-
function
|
|
29
|
+
const x = ye ? window : void 0;
|
|
30
|
+
function Te(...e) {
|
|
31
31
|
let n, o, a, t;
|
|
32
32
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, a, t] = e, n = x) : [n, o, a, t] = e, !n)
|
|
33
|
-
return
|
|
33
|
+
return Ce;
|
|
34
34
|
Array.isArray(o) || (o = [o]), Array.isArray(a) || (a = [a]);
|
|
35
35
|
const c = [], s = () => {
|
|
36
36
|
c.forEach((f) => f()), c.length = 0;
|
|
37
|
-
}, d = (f, v, E, g) => (f.addEventListener(v, E, g), () => f.removeEventListener(v, E, g)), p =
|
|
38
|
-
() => [
|
|
37
|
+
}, d = (f, v, E, g) => (f.addEventListener(v, E, g), () => f.removeEventListener(v, E, g)), p = U(
|
|
38
|
+
() => [Se(n), $(t)],
|
|
39
39
|
([f, v]) => {
|
|
40
40
|
if (s(), !f)
|
|
41
41
|
return;
|
|
42
|
-
const E =
|
|
42
|
+
const E = be(v) ? { ...v } : v;
|
|
43
43
|
c.push(
|
|
44
44
|
...o.flatMap((g) => a.map((S) => d(f, g, S, E)))
|
|
45
45
|
);
|
|
@@ -50,18 +50,18 @@ function Ve(...e) {
|
|
|
50
50
|
};
|
|
51
51
|
return H(_), _;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
const e = m(!1), n =
|
|
55
|
-
return n &&
|
|
53
|
+
function Ve() {
|
|
54
|
+
const e = m(!1), n = Q();
|
|
55
|
+
return n && j(() => {
|
|
56
56
|
e.value = !0;
|
|
57
57
|
}, n), e;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
const n =
|
|
59
|
+
function ke(e) {
|
|
60
|
+
const n = Ve();
|
|
61
61
|
return z(() => (n.value, !!e()));
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
const { window: o = x } = n, a =
|
|
63
|
+
function qe(e, n = {}) {
|
|
64
|
+
const { window: o = x } = n, a = ke(() => o && "matchMedia" in o && typeof o.matchMedia == "function");
|
|
65
65
|
let t;
|
|
66
66
|
const c = m(!1), s = (_) => {
|
|
67
67
|
c.value = _.matches;
|
|
@@ -74,7 +74,7 @@ function Ae(e, n = {}) {
|
|
|
74
74
|
p(), d(), t = void 0;
|
|
75
75
|
}), c;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Ae(e = {}) {
|
|
78
78
|
const {
|
|
79
79
|
window: n = x,
|
|
80
80
|
initialWidth: o = Number.POSITIVE_INFINITY,
|
|
@@ -84,16 +84,16 @@ function Le(e = {}) {
|
|
|
84
84
|
} = e, s = m(o), d = m(a), p = () => {
|
|
85
85
|
n && (c ? (s.value = n.innerWidth, d.value = n.innerHeight) : (s.value = n.document.documentElement.clientWidth, d.value = n.document.documentElement.clientHeight));
|
|
86
86
|
};
|
|
87
|
-
if (p(),
|
|
88
|
-
const _ =
|
|
89
|
-
|
|
87
|
+
if (p(), Ie(p), Te("resize", p, { passive: !0 }), t) {
|
|
88
|
+
const _ = qe("(orientation: portrait)");
|
|
89
|
+
U(_, () => p());
|
|
90
90
|
}
|
|
91
91
|
return { width: s, height: d };
|
|
92
92
|
}
|
|
93
|
-
const Me = { class: "login-container" }, Pe = { class: "login-top flex items-center" }, Oe = { class: "qrcode-container" }, $e = ["src"], xe = { class: "flex justify-between items-center w-full" }, We = ["src"], De = 992, Ne = /* @__PURE__ */ te({
|
|
93
|
+
const Le = "/node_modules/xyvcard-settle/dist/images/qrcode-success.jpg", Me = { class: "login-container" }, Pe = { class: "login-top flex items-center" }, Oe = { class: "qrcode-container" }, $e = ["src"], xe = { class: "flex justify-between items-center w-full" }, We = ["src"], De = 992, Ne = /* @__PURE__ */ te({
|
|
94
94
|
__name: "index",
|
|
95
95
|
setup(e) {
|
|
96
|
-
const { t: n } =
|
|
96
|
+
const { t: n } = ce(), o = m(M.APP_ACTIVE), a = (r) => {
|
|
97
97
|
r.props.name === "user" ? (L(), g()) : P(), o.value = r.props.name;
|
|
98
98
|
}, t = m({
|
|
99
99
|
scope: "",
|
|
@@ -127,10 +127,10 @@ const Me = { class: "login-container" }, Pe = { class: "login-top flex items-cen
|
|
|
127
127
|
}
|
|
128
128
|
]
|
|
129
129
|
};
|
|
130
|
-
}), s = m(!1), d = m(), p =
|
|
130
|
+
}), s = m(!1), d = m(), p = de(), _ = pe(), f = me(), v = () => {
|
|
131
131
|
var r;
|
|
132
132
|
(r = d.value) == null || r.validate((l) => {
|
|
133
|
-
l && (s.value = !0, f.login({ ...t.value, password:
|
|
133
|
+
l && (s.value = !0, f.login({ ...t.value, password: fe(t.value.password) }).then(() => {
|
|
134
134
|
const y = p.query, h = y.redirect ?? M.APP_REDIRECT, w = Object.keys(y).reduce(
|
|
135
135
|
(T, q) => (q !== "redirect" && (T[q] = y[q]), T),
|
|
136
136
|
{}
|
|
@@ -143,7 +143,7 @@ const Me = { class: "login-container" }, Pe = { class: "login-top flex items-cen
|
|
|
143
143
|
}));
|
|
144
144
|
});
|
|
145
145
|
}, E = m(""), g = () => {
|
|
146
|
-
|
|
146
|
+
ve().then(({ data: r }) => {
|
|
147
147
|
t.value.captchaKey = r.captchaId, E.value = r.base64Image;
|
|
148
148
|
});
|
|
149
149
|
};
|
|
@@ -151,14 +151,14 @@ const Me = { class: "login-container" }, Pe = { class: "login-top flex items-cen
|
|
|
151
151
|
let S = setInterval(W, 3e3);
|
|
152
152
|
const V = m({});
|
|
153
153
|
function P() {
|
|
154
|
-
|
|
154
|
+
ge().then(({ data: r }) => {
|
|
155
155
|
V.value = r, k.value = !1, K(), S = setInterval(W, 3e3);
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
o.value === "qrCode" && P();
|
|
159
159
|
function W() {
|
|
160
160
|
V.value.ticket && f.loginByQrcode({ ticket: V.value.ticket }).then(() => {
|
|
161
|
-
L(), k.value = !1, V.value.qrcodeUrl =
|
|
161
|
+
L(), k.value = !1, V.value.qrcodeUrl = Le;
|
|
162
162
|
const r = p.query, l = r.redirect ?? M.APP_REDIRECT, y = Object.keys(r).reduce(
|
|
163
163
|
(h, w) => (w !== "redirect" && (h[w] = r[w]), h),
|
|
164
164
|
{}
|
|
@@ -176,7 +176,7 @@ const Me = { class: "login-container" }, Pe = { class: "login-top flex items-cen
|
|
|
176
176
|
L(), k.value = !0;
|
|
177
177
|
}, M.APP_TIMEOUT);
|
|
178
178
|
}
|
|
179
|
-
const D = O(), { width: F } =
|
|
179
|
+
const D = O(), { width: F } = Ae();
|
|
180
180
|
return B(() => {
|
|
181
181
|
F.value < De ? D.toggleDevice("mobile") : D.toggleDevice("desktop");
|
|
182
182
|
}), (r, l) => {
|
|
@@ -184,7 +184,7 @@ const Me = { class: "login-container" }, Pe = { class: "login-top flex items-cen
|
|
|
184
184
|
return oe(), ne("div", Me, [
|
|
185
185
|
u("div", Pe, [
|
|
186
186
|
l[4] || (l[4] = u("img", {
|
|
187
|
-
src:
|
|
187
|
+
src: _e,
|
|
188
188
|
class: "logo-img",
|
|
189
189
|
alt: "logo"
|
|
190
190
|
}, null, -1)),
|
|
@@ -192,7 +192,7 @@ const Me = { class: "login-container" }, Pe = { class: "login-top flex items-cen
|
|
|
192
192
|
i(y, { class: "ml-2 cursor-pointer language" })
|
|
193
193
|
]),
|
|
194
194
|
i(J, {
|
|
195
|
-
device:
|
|
195
|
+
device: R(O)().device,
|
|
196
196
|
class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83"
|
|
197
197
|
}, {
|
|
198
198
|
default: b(() => [
|
|
@@ -307,7 +307,7 @@ const Me = { class: "login-container" }, Pe = { class: "login-top flex items-cen
|
|
|
307
307
|
]);
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
|
-
}),
|
|
310
|
+
}), He = /* @__PURE__ */ he(Ne, [["__scopeId", "data-v-2265d770"]]);
|
|
311
311
|
export {
|
|
312
|
-
|
|
312
|
+
He as default
|
|
313
313
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as A, ref as u, resolveComponent as c, resolveDirective
|
|
|
2
2
|
import { useRouter as w } from "vue-router";
|
|
3
3
|
import { T, m as p } from "./trend-C4uCFrLb.mjs";
|
|
4
4
|
import "jmash-core";
|
|
5
|
-
import { h as v } from "./index-
|
|
5
|
+
import { h as v } from "./index-BbLVtP78.mjs";
|
|
6
6
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
const M = { class: "app" }, P = { class: "app-title" }, E = { class: "row-container" }, V = { class: "tatals" }, B = { class: "tatal" }, N = { class: "text" }, S = { class: "tatal" }, F = { class: "text" }, H = { class: "tatal" }, I = { class: "text" }, R = { class: "tatal" }, j = { class: "text" }, q = { class: "tatals" }, z = { class: "tatal" }, G = { class: "text" }, J = { class: "tatal" }, K = { class: "text" }, L = { class: "tatal" }, O = { class: "text" }, Q = { class: "tatal" }, U = { class: "text" }, W = { class: "app-title-time" }, X = { class: "chart-header" }, Z = /* @__PURE__ */ A({
|
|
8
8
|
__name: "index",
|