xyvcard-settle 0.0.53 → 0.0.55

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.
Files changed (28) hide show
  1. package/dist/assets/09fcc36c527efda6.jpg +0 -0
  2. package/dist/assets/1ceaa63ddb015361.jpg +0 -0
  3. package/dist/assets/228d0bfe534e0e61.png +0 -0
  4. package/dist/assets/6e48b3e20382148c.png +0 -0
  5. package/dist/assets/7537a7335bb17b22.png +0 -0
  6. package/dist/assets/78ba92e6c076bd07.png +0 -0
  7. package/dist/index-B3iittmi.mjs +314 -0
  8. package/dist/{index-Dg9k1LtW.mjs → index-C8tSWVoy.mjs} +414 -414
  9. package/dist/{index-Cwhi9rvj.mjs → index-CVEOIlcb.mjs} +2 -2
  10. package/dist/{index-DTjubk-_.mjs → index-DAXtcEHB.mjs} +12 -13
  11. package/dist/{index-DcQ0Bjxl.mjs → index-UpMheR8A.mjs} +4 -4
  12. package/dist/index.mjs +1 -1
  13. package/dist/{merchant-u4dNCa0T.mjs → merchant-D3ctdb_L.mjs} +1 -1
  14. package/dist/{merchant.vue_vue_type_script_setup_true_lang-CvB7L7G7.mjs → merchant.vue_vue_type_script_setup_true_lang-YDwz4LiM.mjs} +20 -18
  15. package/dist/{pay-CZR9oAkw.mjs → pay-D5948kuF.mjs} +3 -3
  16. package/dist/{pay-fu3fGrJB.mjs → pay-DE3hsH6b.mjs} +3 -3
  17. package/dist/{sale-CuEqsPD7.mjs → sale-lKDJnhcE.mjs} +1 -1
  18. package/dist/{sale.vue_vue_type_script_setup_true_lang-DXUIMGjh.mjs → sale.vue_vue_type_script_setup_true_lang-b-hBu610.mjs} +22 -20
  19. package/dist/style.css +1 -1
  20. package/dist/{trend-BrSUujKu.mjs → trend-CD-Orlre.mjs} +2 -2
  21. package/dist/{trend-C4uCFrLb.mjs → trend-DCJoR00O.mjs} +2 -2
  22. package/dist/{trend-XEzpdsLj.mjs → trend-D__Df_wF.mjs} +2 -2
  23. package/dts/src/api/settle/agent-settle/types.d.ts +1 -0
  24. package/dts/src/api/settle/insts-settle/types.d.ts +1 -0
  25. package/package.json +63 -62
  26. package/dist/index-B8QmvLNr.mjs +0 -313
  27. package/dist/three-BE8B3lbG.mjs +0 -6
  28. package/dts/src/views/payment/instsLogin/index copy.vue.d.ts +0 -2
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,314 @@
1
+ import { onMounted as Q, nextTick as X, getCurrentInstance as R, unref as U, getCurrentScope as Z, onScopeDispose as ee, ref as m, watch as j, 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 ce from "./assets/6e48b3e20382148c.png";
3
+ import { useI18n as de } from "vue-i18n";
4
+ import "element-plus";
5
+ import { useRoute as pe, useRouter as me } from "vue-router";
6
+ import { vueMetaEnv as M, useAppStore as O, useUserStore as fe, netEncrypt as ve, getCaptchaApi as ge, createLoginQrcode as he } from "jmash-core";
7
+ import _e from "./assets/09fcc36c527efda6.jpg";
8
+ import { _ as ye } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
9
+ function H(e) {
10
+ return Z() ? (ee(e), !0) : !1;
11
+ }
12
+ function $(e) {
13
+ return typeof e == "function" ? e() : U(e);
14
+ }
15
+ const we = typeof window < "u" && typeof document < "u";
16
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
17
+ const be = Object.prototype.toString, Ce = (e) => be.call(e) === "[object Object]", Ee = () => {
18
+ };
19
+ function Ie(e) {
20
+ return R();
21
+ }
22
+ function Se(e, n = !0, o) {
23
+ Ie() ? Q(e, o) : n ? e() : X(e);
24
+ }
25
+ function Te(e) {
26
+ var n;
27
+ const o = $(e);
28
+ return (n = o == null ? void 0 : o.$el) != null ? n : o;
29
+ }
30
+ const x = we ? window : void 0;
31
+ function Ve(...e) {
32
+ let n, o, a, t;
33
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, a, t] = e, n = x) : [n, o, a, t] = e, !n)
34
+ return Ee;
35
+ Array.isArray(o) || (o = [o]), Array.isArray(a) || (a = [a]);
36
+ const c = [], s = () => {
37
+ c.forEach((f) => f()), c.length = 0;
38
+ }, d = (f, v, E, g) => (f.addEventListener(v, E, g), () => f.removeEventListener(v, E, g)), p = j(
39
+ () => [Te(n), $(t)],
40
+ ([f, v]) => {
41
+ if (s(), !f)
42
+ return;
43
+ const E = Ce(v) ? { ...v } : v;
44
+ c.push(
45
+ ...o.flatMap((g) => a.map((S) => d(f, g, S, E)))
46
+ );
47
+ },
48
+ { immediate: !0, flush: "post" }
49
+ ), _ = () => {
50
+ p(), s();
51
+ };
52
+ return H(_), _;
53
+ }
54
+ function ke() {
55
+ const e = m(!1), n = R();
56
+ return n && Q(() => {
57
+ e.value = !0;
58
+ }, n), e;
59
+ }
60
+ function qe(e) {
61
+ const n = ke();
62
+ return z(() => (n.value, !!e()));
63
+ }
64
+ function Ae(e, n = {}) {
65
+ const { window: o = x } = n, a = qe(() => o && "matchMedia" in o && typeof o.matchMedia == "function");
66
+ let t;
67
+ const c = m(!1), s = (_) => {
68
+ c.value = _.matches;
69
+ }, d = () => {
70
+ t && ("removeEventListener" in t ? t.removeEventListener("change", s) : t.removeListener(s));
71
+ }, p = B(() => {
72
+ a.value && (d(), t = o.matchMedia($(e)), "addEventListener" in t ? t.addEventListener("change", s) : t.addListener(s), c.value = t.matches);
73
+ });
74
+ return H(() => {
75
+ p(), d(), t = void 0;
76
+ }), c;
77
+ }
78
+ function Le(e = {}) {
79
+ const {
80
+ window: n = x,
81
+ initialWidth: o = Number.POSITIVE_INFINITY,
82
+ initialHeight: a = Number.POSITIVE_INFINITY,
83
+ listenOrientation: t = !0,
84
+ includeScrollbar: c = !0
85
+ } = e, s = m(o), d = m(a), p = () => {
86
+ n && (c ? (s.value = n.innerWidth, d.value = n.innerHeight) : (s.value = n.document.documentElement.clientWidth, d.value = n.document.documentElement.clientHeight));
87
+ };
88
+ if (p(), Se(p), Ve("resize", p, { passive: !0 }), t) {
89
+ const _ = Ae("(orientation: portrait)");
90
+ j(_, () => p());
91
+ }
92
+ return { width: s, height: d };
93
+ }
94
+ 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({
95
+ __name: "index",
96
+ setup(e) {
97
+ const { t: n } = de(), o = m(M.APP_ACTIVE), a = (r) => {
98
+ r.props.name === "user" ? (L(), g()) : P(), o.value = r.props.name;
99
+ }, t = m({
100
+ scope: "",
101
+ username: "",
102
+ password: ""
103
+ }), c = z(() => {
104
+ const r = O().language === "en" ? "Please enter " : "请输入";
105
+ return {
106
+ username: [
107
+ {
108
+ required: !0,
109
+ trigger: "blur",
110
+ message: `${r}${n("login.username")}`
111
+ }
112
+ ],
113
+ password: [
114
+ {
115
+ required: !0,
116
+ trigger: "blur",
117
+ validator: (l, y, h) => {
118
+ y.length < 5 ? h(new Error("The password can not be less than 5 digits")) : h();
119
+ },
120
+ message: `${r}${n("login.password")}`
121
+ }
122
+ ],
123
+ captchaCode: [
124
+ {
125
+ required: !0,
126
+ trigger: "blur",
127
+ message: `${r}${n("login.captchaCode")}`
128
+ }
129
+ ]
130
+ };
131
+ }), s = m(!1), d = m(), p = pe(), _ = me(), f = fe(), v = () => {
132
+ var r;
133
+ (r = d.value) == null || r.validate((l) => {
134
+ l && (s.value = !0, f.login({ ...t.value, password: ve(t.value.password) }).then(() => {
135
+ const y = p.query, h = y.redirect ?? M.APP_REDIRECT, w = Object.keys(y).reduce(
136
+ (T, q) => (q !== "redirect" && (T[q] = y[q]), T),
137
+ {}
138
+ );
139
+ _.push({ path: h, query: w }), g();
140
+ }).catch(() => {
141
+ g();
142
+ }).finally(() => {
143
+ s.value = !1;
144
+ }));
145
+ });
146
+ }, E = m(""), g = () => {
147
+ ge().then(({ data: r }) => {
148
+ t.value.captchaKey = r.captchaId, E.value = r.base64Image;
149
+ });
150
+ };
151
+ g();
152
+ let S = setInterval(W, 3e3);
153
+ const V = m({});
154
+ function P() {
155
+ he().then(({ data: r }) => {
156
+ V.value = r, k.value = !1, K(), S = setInterval(W, 3e3);
157
+ });
158
+ }
159
+ o.value === "qrCode" && P();
160
+ function W() {
161
+ V.value.ticket && f.loginByQrcode({ ticket: V.value.ticket }).then(() => {
162
+ L(), k.value = !1, V.value.qrcodeUrl = _e;
163
+ const r = p.query, l = r.redirect ?? M.APP_REDIRECT, y = Object.keys(r).reduce(
164
+ (h, w) => (w !== "redirect" && (h[w] = r[w]), h),
165
+ {}
166
+ );
167
+ _.push({ path: l, query: y });
168
+ });
169
+ }
170
+ let A = null;
171
+ const k = m(!1);
172
+ function L() {
173
+ S && (clearInterval(S), S = null), A && (clearTimeout(A), A = null);
174
+ }
175
+ function K() {
176
+ L(), A = setTimeout(() => {
177
+ L(), k.value = !0;
178
+ }, M.APP_TIMEOUT);
179
+ }
180
+ const D = O(), { width: F } = Le();
181
+ return B(() => {
182
+ F.value < De ? D.toggleDevice("mobile") : D.toggleDevice("desktop");
183
+ }), (r, l) => {
184
+ const y = C("lang-select"), h = C("el-tab-pane"), w = C("el-input"), T = C("el-form-item"), q = C("el-button"), G = C("el-form"), Y = C("el-tabs"), J = C("el-card");
185
+ return oe(), ne("div", Me, [
186
+ u("div", Pe, [
187
+ l[4] || (l[4] = u("img", {
188
+ src: ce,
189
+ class: "logo-img",
190
+ alt: "logo"
191
+ }, null, -1)),
192
+ l[5] || (l[5] = u("span", { class: "ml-3" }, "筋斗云管理平台", -1)),
193
+ i(y, { class: "ml-2 cursor-pointer language" })
194
+ ]),
195
+ i(J, {
196
+ device: U(O)().device,
197
+ class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83"
198
+ }, {
199
+ default: b(() => [
200
+ l[8] || (l[8] = u("div", { class: "login-container_title" }, "欢迎登录", -1)),
201
+ i(Y, {
202
+ modelValue: o.value,
203
+ "onUpdate:modelValue": l[3] || (l[3] = (I) => o.value = I),
204
+ class: "demo-tabs",
205
+ onTabClick: a
206
+ }, {
207
+ default: b(() => [
208
+ i(h, {
209
+ label: "扫码登录",
210
+ name: "qrCode"
211
+ }, {
212
+ default: b(() => [
213
+ u("div", Oe, [
214
+ u("img", {
215
+ src: V.value.qrcodeUrl,
216
+ style: le({ opacity: k.value ? 0.02 : 1 }),
217
+ alt: "二维码"
218
+ }, null, 12, $e),
219
+ re(u("div", null, [
220
+ l[6] || (l[6] = u("div", null, "二维码已过期", -1)),
221
+ u("div", { onClick: P }, "点击刷新")
222
+ ], 512), [
223
+ [se, k.value]
224
+ ])
225
+ ]),
226
+ l[7] || (l[7] = u("div", null, "微信扫一扫登录", -1))
227
+ ]),
228
+ _: 1
229
+ }),
230
+ i(h, {
231
+ label: "账号登录",
232
+ name: "user"
233
+ }, {
234
+ default: b(() => [
235
+ i(G, {
236
+ ref_key: "formRef",
237
+ ref: d,
238
+ model: t.value,
239
+ rules: c.value
240
+ }, {
241
+ default: b(() => [
242
+ i(T, { prop: "username" }, {
243
+ default: b(() => [
244
+ i(w, {
245
+ modelValue: t.value.username,
246
+ "onUpdate:modelValue": l[0] || (l[0] = (I) => t.value.username = I),
247
+ placeholder: r.$t("login.username")
248
+ }, null, 8, ["modelValue", "placeholder"])
249
+ ]),
250
+ _: 1
251
+ }),
252
+ i(T, { prop: "password" }, {
253
+ default: b(() => [
254
+ i(w, {
255
+ modelValue: t.value.password,
256
+ "onUpdate:modelValue": l[1] || (l[1] = (I) => t.value.password = I),
257
+ placeholder: r.$t("login.password"),
258
+ type: "password",
259
+ "show-password": "",
260
+ onKeyup: N(v, ["enter"])
261
+ }, null, 8, ["modelValue", "placeholder"])
262
+ ]),
263
+ _: 1
264
+ }),
265
+ i(T, { prop: "captchaCode" }, {
266
+ default: b(() => [
267
+ u("div", xe, [
268
+ i(w, {
269
+ style: { width: "65%" },
270
+ modelValue: t.value.captchaCode,
271
+ "onUpdate:modelValue": l[2] || (l[2] = (I) => t.value.captchaCode = I),
272
+ placeholder: r.$t("login.captchaCode"),
273
+ onKeyup: N(v, ["enter"])
274
+ }, null, 8, ["modelValue", "placeholder"]),
275
+ u("img", {
276
+ class: "flex-1 h-[40px] cursor-pointer ml-2",
277
+ src: E.value,
278
+ onClick: g,
279
+ alt: "验证码"
280
+ }, null, 8, We)
281
+ ])
282
+ ]),
283
+ _: 1
284
+ }),
285
+ i(q, {
286
+ loading: s.value,
287
+ type: "primary",
288
+ class: "w-full",
289
+ onClick: ae(v, ["prevent"])
290
+ }, {
291
+ default: b(() => [
292
+ ie(ue(r.$t("login.login")), 1)
293
+ ]),
294
+ _: 1
295
+ }, 8, ["loading"])
296
+ ]),
297
+ _: 1
298
+ }, 8, ["model", "rules"])
299
+ ]),
300
+ _: 1
301
+ })
302
+ ]),
303
+ _: 1
304
+ }, 8, ["modelValue"])
305
+ ]),
306
+ _: 1
307
+ }, 8, ["device"])
308
+ ]);
309
+ };
310
+ }
311
+ }), Fe = /* @__PURE__ */ ye(Ne, [["__scopeId", "data-v-f656b148"]]);
312
+ export {
313
+ Fe as default
314
+ };