nxd-plugin 1.8.35 → 1.8.37
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/chunks/YCServiceSummary-tHEqhFHj.mjs +2 -0
- package/dist/chunks/{component-Agent-Cr-ntDoH.mjs → component-Agent-DqXO06Ql.mjs} +27610 -1518
- package/dist/chunks/{component-AiChat-DApn4-2y.mjs → component-AiChat-C8NFYtVc.mjs} +155 -151
- package/dist/chunks/{component-AqiMonitor-BUXDYKbQ.mjs → component-AqiMonitor-WvrknfI9.mjs} +9 -9
- package/dist/chunks/{component-ChartCumulativePre-BaHd1iUO.mjs → component-ChartCumulativePre-B9Prk8Sx.mjs} +7 -7
- package/dist/chunks/{component-ChartServiceMaterial-R-h4rGRH.mjs → component-ChartServiceMaterial-dSZ_Pec0.mjs} +6 -6
- package/dist/chunks/{component-Duty-D_8KvfNe.mjs → component-Duty-CcPTE385.mjs} +6 -6
- package/dist/chunks/{component-EarlyWarningStatistic-BCrTZD4q.mjs → component-EarlyWarningStatistic-Ug-1jfiU.mjs} +6 -6
- package/dist/chunks/{component-EarlyWarningStatistic2-BR0gmPUZ.mjs → component-EarlyWarningStatistic2-BnZqgK4P.mjs} +15 -15
- package/dist/chunks/{component-Forecast72h-B85PYYlt.mjs → component-Forecast72h-5DGIhVUd.mjs} +16 -16
- package/dist/chunks/{component-GeologyLiveAlarm-D-8PLp8C.mjs → component-GeologyLiveAlarm-Bg710d1g.mjs} +7 -7
- package/dist/chunks/{component-GridForecastMsg-DP0QB8OG.mjs → component-GridForecastMsg-D0jzurbN.mjs} +8 -8
- package/dist/chunks/{component-HDSeaLegend-Lx4CVdBe.mjs → component-HDSeaLegend-D5FWHvmR.mjs} +2 -2
- package/dist/chunks/component-HdCameraList-4ArboSf0.mjs +916 -0
- package/dist/chunks/{component-HdFarmStation-QWV3F5p7.mjs → component-HdFarmStation-D9qZ2csY.mjs} +11 -11
- package/dist/chunks/{component-HdFarmStationDialog-C42Kalh1.mjs → component-HdFarmStationDialog-DHGlfkae.mjs} +33 -33
- package/dist/chunks/{component-HdForecastProducts-BgjJEfkx.mjs → component-HdForecastProducts-qj9Yzh7D.mjs} +10 -10
- package/dist/chunks/{component-HdHeatChart-CCRZPuMc.mjs → component-HdHeatChart-Br63YpFN.mjs} +65 -63
- package/dist/chunks/{component-HdHeatChartDialog-DeoxDSyl.mjs → component-HdHeatChartDialog-DOkB8heB.mjs} +11 -11
- package/dist/chunks/{component-HdHeatService-CmbwlkaA.mjs → component-HdHeatService-BeUpAmBA.mjs} +34 -34
- package/dist/chunks/{component-HdInsectDetailList-By-U2peB.mjs → component-HdInsectDetailList-C9tAtciq.mjs} +16 -16
- package/dist/chunks/{component-HdInsectList-BlVzoIgO.mjs → component-HdInsectList-pU1-mQ-C.mjs} +18 -18
- package/dist/chunks/{component-HdMajorActivity-DNeXIzo9.mjs → component-HdMajorActivity-DSPYsbdQ.mjs} +23 -23
- package/dist/chunks/{component-HdObservation-CT3xn1ly.mjs → component-HdObservation-osOGizJv.mjs} +10 -10
- package/dist/chunks/{component-HdPreSituation-DDNcwiwp.mjs → component-HdPreSituation-Ca_d4L11.mjs} +9 -9
- package/dist/chunks/{component-HdQxServiceEffects-BBzdn4-G.mjs → component-HdQxServiceEffects-CtlLJVdx.mjs} +10 -10
- package/dist/chunks/{component-HdRadarList-BqobCRLG.mjs → component-HdRadarList-CgWMdwBo.mjs} +3 -3
- package/dist/chunks/{component-HdRadarTime-D_4TfBtL.mjs → component-HdRadarTime-Bp7D80GJ.mjs} +12 -12
- package/dist/chunks/{component-HdRadarTimeLine-1eC-qOqz.mjs → component-HdRadarTimeLine-DfOce6fK.mjs} +13 -13
- package/dist/chunks/{component-HdRisk-Dq273IqG.mjs → component-HdRisk-Bd3if-1-.mjs} +11 -11
- package/dist/chunks/{component-HdSeaCase-FmlzNkBj.mjs → component-HdSeaCase-CbY3FsOy.mjs} +26 -26
- package/dist/chunks/{component-HdServiceMarterial-C7D1ZwhV.mjs → component-HdServiceMarterial-B7FEviHO.mjs} +17 -17
- package/dist/chunks/{component-HdServiceRequirements-BTUKNojU.mjs → component-HdServiceRequirements-DKJ8uQja.mjs} +13 -13
- package/dist/chunks/{component-HdSoil-2_TlWGNW.mjs → component-HdSoil-ztBxJspH.mjs} +11 -11
- package/dist/chunks/{component-HdSoilDetailList-BwRGMjV9.mjs → component-HdSoilDetailList-1gMQt-uL.mjs} +12 -12
- package/dist/chunks/{component-HdStationTem-D0Dt3LHl.mjs → component-HdStationTem-DfJ0I_2S.mjs} +17 -17
- package/dist/chunks/{component-HdSuggestion-ofUMSp3s.mjs → component-HdSuggestion-FXvLu_OD.mjs} +13 -13
- package/dist/chunks/{component-HdThreeWeatherTrend-Kh64QzKx.mjs → component-HdThreeWeatherTrend-DGLSVUb8.mjs} +18 -18
- package/dist/chunks/{component-HdWaveForcast-DppP_HvM.mjs → component-HdWaveForcast-dTEB0h8d.mjs} +11 -11
- package/dist/chunks/{component-HighQuality-C7RXFw-E.mjs → component-HighQuality-DZGJXvJC.mjs} +16 -16
- package/dist/chunks/{component-HighWayEarlyWarningRed-Cv-Rh-cC.mjs → component-HighWayEarlyWarningRed-F0q1FCTw.mjs} +16 -16
- package/dist/chunks/{component-HighWayFreeze-DLqbbIG5.mjs → component-HighWayFreeze-d4Xwkwf1.mjs} +8 -8
- package/dist/chunks/{component-HighwayLiveAlarm-B7jI-RZI.mjs → component-HighwayLiveAlarm-ChAdlgNB.mjs} +6 -6
- package/dist/chunks/{component-HighwayLiveAlarmNew-B-jkZXom.mjs → component-HighwayLiveAlarmNew-B-KnOey_.mjs} +11 -11
- package/dist/chunks/{component-HighwayStations-C7bVg74m.mjs → component-HighwayStations-CknEywO_.mjs} +6 -6
- package/dist/chunks/{component-HighwayWeatherForecast-C0Z_0C3X.mjs → component-HighwayWeatherForecast-B4szOq2G.mjs} +9 -9
- package/dist/chunks/{component-IframeWeb-BM0dqiO9.mjs → component-IframeWeb-iDh9lrPn.mjs} +1 -1
- package/dist/chunks/{component-ImageGeneration-5Bdvbyfs.mjs → component-ImageGeneration-CsIZ2Kz2.mjs} +2 -2
- package/dist/chunks/{component-IntroducePic-_nigmGDe.mjs → component-IntroducePic-BggfUWvz.mjs} +13 -13
- package/dist/chunks/{component-LithiumBatteryMiningArea-B21dEJLE.mjs → component-LithiumBatteryMiningArea-RpuBju1r.mjs} +12 -12
- package/dist/chunks/{component-MapPopup-52oQnhOj.mjs → component-MapPopup-LFWUnUl3.mjs} +1 -1
- package/dist/chunks/{component-MaterialPreview-CrfvJxHz.mjs → component-MaterialPreview-DvNKoDNy.mjs} +5 -5
- package/dist/chunks/{component-PieLegend-CgHQfWD4.mjs → component-PieLegend-B2Nor3pz.mjs} +1 -1
- package/dist/chunks/{component-PrecipitationRanking-C0TROtSR.mjs → component-PrecipitationRanking-ClwjH24B.mjs} +27 -27
- package/dist/chunks/{component-RadarChart-COc4gmuU.mjs → component-RadarChart-BMoy8MXR.mjs} +10 -10
- package/dist/chunks/{component-RadarLegend-CjhaPfOW.mjs → component-RadarLegend-rXlAb8lF.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-DJgvtI9c.mjs → component-RadarShortTerm-4RS7HYWc.mjs} +13 -13
- package/dist/chunks/{component-RadarTime-Br0xVEuq.mjs → component-RadarTime-W1ZVEA9e.mjs} +18 -18
- package/dist/chunks/{component-RenderMarkdown-InDC2lO4.mjs → component-RenderMarkdown-DO4bEFoj.mjs} +6 -6
- package/dist/chunks/{component-ReservoirLiveAlarm-DP-lWjfx.mjs → component-ReservoirLiveAlarm-ZD1RSFHm.mjs} +8 -8
- package/dist/chunks/{component-ServiceMaterial-Cijz6IMh.mjs → component-ServiceMaterial-DrxeAmRt.mjs} +9 -9
- package/dist/chunks/{component-ServiceMaterialsBtn-BdnH5TSY.mjs → component-ServiceMaterialsBtn-CZFRzpDr.mjs} +2 -2
- package/dist/chunks/{component-StationDialog-CcpEWARd.mjs → component-StationDialog-NhNr3lY1.mjs} +9 -9
- package/dist/chunks/{component-StationList-DyspLaBT.mjs → component-StationList-CSU1nUgF.mjs} +9 -9
- package/dist/chunks/{component-TimeBasedForecast-DS12UnL3.mjs → component-TimeBasedForecast-BObdyMNh.mjs} +10 -10
- package/dist/chunks/{component-Typhoon-BLL7-FHD.mjs → component-Typhoon-AxGQ8VuM.mjs} +16 -16
- package/dist/chunks/{component-WarningLine-CjXljhuQ.mjs → component-WarningLine-Biz0NEC8.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-BUq7JNyw.mjs → component-WarningSignal-D5ux6LCy.mjs} +17 -17
- package/dist/chunks/{component-WeatherForecast-CBY40Y1j.mjs → component-WeatherForecast-DnvELAB8.mjs} +16 -16
- package/dist/chunks/{component-YCDataMonitor-Clu5RdqK.mjs → component-YCDataMonitor-Dumu7_mw.mjs} +16 -16
- package/dist/chunks/{component-YCDataService-BX8obEW9.mjs → component-YCDataService-CibX3y21.mjs} +10 -10
- package/dist/chunks/{component-YCHighWaySummary-DfDlTv13.mjs → component-YCHighWaySummary-B4rfNY9B.mjs} +7 -7
- package/dist/chunks/{component-YCHome-CoTwNCRI.mjs → component-YCHome-BgH2uOoL.mjs} +36 -36
- package/dist/chunks/{component-YCHomeLegend--xlIidkR.mjs → component-YCHomeLegend-BpForfu4.mjs} +2 -2
- package/dist/chunks/{component-YCLoginNew-CQ9V5l-b.mjs → component-YCLoginNew-BsQr4jFy.mjs} +17 -17
- package/dist/chunks/{component-YCServiceSummary-DeDBpyuC.mjs → component-YCServiceSummary-CnnEfTaE.mjs} +162 -162
- package/dist/components/Agent/Agent.vue.d.ts +1 -0
- package/dist/nxd-plugin.mjs +73 -73
- package/dist/styles/component-Agent.css +1 -1
- package/dist/styles/component-AiChat.css +1 -1
- package/dist/styles/component-HdHeatChart.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/YCServiceSummary-D6Jrh3KH.mjs +0 -2
- package/dist/chunks/component-HdCameraList-BkpFsBPc.mjs +0 -26871
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./component-Forecast72h-
|
|
3
|
-
import { n } from "./component-AiChat-
|
|
4
|
-
import { n as r } from "./component-LithiumBatteryMiningArea-
|
|
1
|
+
import { d as e, m as t } from "./component-Agent-DqXO06Ql.mjs";
|
|
2
|
+
import "./component-Forecast72h-5DGIhVUd.mjs";
|
|
3
|
+
import { n } from "./component-AiChat-C8NFYtVc.mjs";
|
|
4
|
+
import { n as r } from "./component-LithiumBatteryMiningArea-RpuBju1r.mjs";
|
|
5
5
|
import { ElButton as i, ElDialog as ee, ElForm as te, ElFormItem as ne, ElIcon as re, ElInput as ie } from "element-plus/es";
|
|
6
6
|
import { Fragment as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createStaticVNode as u, createTextVNode as d, createVNode as f, normalizeClass as p, normalizeStyle as ae, onBeforeUnmount as m, onMounted as h, openBlock as g, reactive as _, ref as v, renderList as y, toDisplayString as b, unref as x, withCtx as S, withKeys as oe, withModifiers as se } from "vue";
|
|
7
7
|
import { ArrowLeft as ce, ArrowRight as le, Lock as ue, User as de } from "@element-plus/icons-vue";
|
|
@@ -41,7 +41,7 @@ var fe = { class: "ychome" }, pe = { class: "aksu-weather-content" }, me = { cla
|
|
|
41
41
|
}, Le = { class: "main-shift-name" }, Re = {
|
|
42
42
|
key: 0,
|
|
43
43
|
class: "duty-section"
|
|
44
|
-
}, ze = ["innerHTML"], Be = { class: "dialog-footer" }, j = /* @__PURE__ */
|
|
44
|
+
}, ze = ["innerHTML"], Be = { class: "dialog-footer" }, j = /* @__PURE__ */ e({
|
|
45
45
|
__name: "YCHome",
|
|
46
46
|
props: {
|
|
47
47
|
appKey: {
|
|
@@ -94,8 +94,8 @@ var fe = { class: "ychome" }, pe = { class: "aksu-weather-content" }, me = { cla
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
emits: ["toPage", "openPagePop"],
|
|
97
|
-
setup(
|
|
98
|
-
let M =
|
|
97
|
+
setup(e, { emit: j }) {
|
|
98
|
+
let M = e, N = j, P = v(!0), F = v(!1), I = v({
|
|
99
99
|
x: 0,
|
|
100
100
|
y: 0
|
|
101
101
|
}), L = v({
|
|
@@ -274,7 +274,7 @@ var fe = { class: "ychome" }, pe = { class: "aksu-weather-content" }, me = { cla
|
|
|
274
274
|
document.removeEventListener("mousemove", Q), document.removeEventListener("mouseup", $), clearInterval(U.value);
|
|
275
275
|
});
|
|
276
276
|
let Ge = async () => {
|
|
277
|
-
let
|
|
277
|
+
let e = (await t({
|
|
278
278
|
appKey: M.appKey,
|
|
279
279
|
appSalt: M.appSalt,
|
|
280
280
|
id: M.ids.data.id,
|
|
@@ -283,14 +283,14 @@ var fe = { class: "ychome" }, pe = { class: "aksu-weather-content" }, me = { cla
|
|
|
283
283
|
reqType: M.ids.data.reqType,
|
|
284
284
|
isFormData: M.ids.data.isFormData
|
|
285
285
|
})).data.result.output;
|
|
286
|
-
!
|
|
287
|
-
let r =
|
|
288
|
-
r && (
|
|
286
|
+
!e || e.length === 0 || (W.value.forEach((t, n) => {
|
|
287
|
+
let r = e.find((e) => e.web_page === t.url);
|
|
288
|
+
r && (t.title = r.menu_name), J && J.length > 0 ? J.find((e) => e.web_page === t.url) && (t.show = !0) : t.show = !0;
|
|
289
289
|
}), Y(), X(), M.showDutyAndFollow && (U.value = setInterval(() => {
|
|
290
290
|
Y(), X();
|
|
291
291
|
}, 1e3 * 60 * 10)));
|
|
292
292
|
}, Y = async () => {
|
|
293
|
-
K.value = (await
|
|
293
|
+
K.value = (await t({
|
|
294
294
|
appKey: M.appKey,
|
|
295
295
|
appSalt: M.appSalt,
|
|
296
296
|
id: M.ids.duty.id,
|
|
@@ -300,7 +300,7 @@ var fe = { class: "ychome" }, pe = { class: "aksu-weather-content" }, me = { cla
|
|
|
300
300
|
isFormData: M.ids.duty.isFormData
|
|
301
301
|
})).data.result.output || [];
|
|
302
302
|
}, X = async () => {
|
|
303
|
-
q.value = (await
|
|
303
|
+
q.value = (await t({
|
|
304
304
|
appKey: M.appKey,
|
|
305
305
|
appSalt: M.appSalt,
|
|
306
306
|
id: M.ids.follow.id,
|
|
@@ -319,58 +319,58 @@ var fe = { class: "ychome" }, pe = { class: "aksu-weather-content" }, me = { cla
|
|
|
319
319
|
}), window.sessionStorage.setItem("user", JSON.stringify({ id: 1 })), B.value = !1, N("toPage", He.value?.url);
|
|
320
320
|
}, 1e3));
|
|
321
321
|
});
|
|
322
|
-
}, Ke = (
|
|
322
|
+
}, Ke = (e) => {
|
|
323
323
|
let n = window.localStorage.getItem("uName"), i = window.localStorage.getItem("uPwd");
|
|
324
|
-
if (
|
|
324
|
+
if (t({
|
|
325
325
|
appKey: M.appKey,
|
|
326
326
|
appSalt: M.appSalt,
|
|
327
327
|
id: M.ids.log.id,
|
|
328
328
|
variables: {
|
|
329
|
-
action_name:
|
|
329
|
+
action_name: e.title,
|
|
330
330
|
action_type: "大屏系统-外网"
|
|
331
331
|
},
|
|
332
332
|
baseHttp: M.baseHttp,
|
|
333
333
|
reqType: M.ids.log.reqType,
|
|
334
334
|
isFormData: M.ids.log.isFormData
|
|
335
|
-
}),
|
|
336
|
-
let
|
|
337
|
-
n && i && (
|
|
338
|
-
title:
|
|
339
|
-
url:
|
|
335
|
+
}), e.url === "/public") {
|
|
336
|
+
let t = M.publicUrl;
|
|
337
|
+
n && i && (t += `?account=${r.decode(n)}&password=${r.decode(i)}&t=${Date.now()}`), N("openPagePop", {
|
|
338
|
+
title: e.title,
|
|
339
|
+
url: t.includes("?") ? t += "&t=" + Date.now() : t += "?t=" + Date.now()
|
|
340
340
|
});
|
|
341
341
|
return;
|
|
342
342
|
}
|
|
343
|
-
if (
|
|
344
|
-
let
|
|
345
|
-
n && i && (
|
|
346
|
-
title:
|
|
347
|
-
url:
|
|
343
|
+
if (e.url === "/agriculture") {
|
|
344
|
+
let t = M.agrUrl;
|
|
345
|
+
n && i && (t += `?account=${r.decode(n)}&password=${r.decode(i)}&t=${Date.now()}`), N("openPagePop", {
|
|
346
|
+
title: e.title,
|
|
347
|
+
url: t.includes("?") ? t += "&t=" + Date.now() : t += "?t=" + Date.now()
|
|
348
348
|
});
|
|
349
349
|
return;
|
|
350
350
|
}
|
|
351
|
-
if (
|
|
352
|
-
let
|
|
353
|
-
n && i && (
|
|
354
|
-
title:
|
|
355
|
-
url:
|
|
351
|
+
if (e.url === "/decision") {
|
|
352
|
+
let t = M.decisionUrl;
|
|
353
|
+
n && i && (t += `?account=${r.decode(n)}&password=${r.decode(i)}&t=${Date.now()}`), N("openPagePop", {
|
|
354
|
+
title: e.title,
|
|
355
|
+
url: t.includes("?") ? t += "&t=" + Date.now() : t += "?t=" + Date.now()
|
|
356
356
|
});
|
|
357
357
|
return;
|
|
358
358
|
}
|
|
359
|
-
if (
|
|
359
|
+
if (e.url === "/center") {
|
|
360
360
|
N("openPagePop", {
|
|
361
|
-
title:
|
|
361
|
+
title: e.title,
|
|
362
362
|
url: M.centerUrl.includes("?") ? M.centerUrl += "&t=" + Date.now() : M.centerUrl += "?t=" + Date.now()
|
|
363
363
|
});
|
|
364
364
|
return;
|
|
365
365
|
}
|
|
366
|
-
if (
|
|
366
|
+
if (e.url === "/stations") {
|
|
367
367
|
N("openPagePop", {
|
|
368
|
-
title:
|
|
368
|
+
title: e.title,
|
|
369
369
|
url: M.stationsUrl.includes("?") ? M.stationsUrl += "&t=" + Date.now() : M.stationsUrl += "?t=" + Date.now()
|
|
370
370
|
});
|
|
371
371
|
return;
|
|
372
372
|
}
|
|
373
|
-
N("toPage",
|
|
373
|
+
N("toPage", e.url);
|
|
374
374
|
}, Q = (e) => {
|
|
375
375
|
if (!F.value) return;
|
|
376
376
|
let t = e.clientX - L.value.x, n = e.clientY - L.value.y;
|
package/dist/chunks/{component-YCHomeLegend--xlIidkR.mjs → component-YCHomeLegend-BpForfu4.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./component-AqiMonitor-
|
|
2
|
-
import {
|
|
1
|
+
import "./component-AqiMonitor-WvrknfI9.mjs";
|
|
2
|
+
import { d as e } from "./component-Agent-DqXO06Ql.mjs";
|
|
3
3
|
import { createElementBlock as t, createElementVNode as n, createStaticVNode as r, onMounted as i, openBlock as a } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/YCHomeLegend/YCHomeLegend.vue
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as i } from "./component-LithiumBatteryMiningArea-
|
|
1
|
+
import { _ as e, d as t, h as n, m as r } from "./component-Agent-DqXO06Ql.mjs";
|
|
2
|
+
import { n as i } from "./component-LithiumBatteryMiningArea-RpuBju1r.mjs";
|
|
3
3
|
import { ElButton as ee, ElForm as a, ElFormItem as o, ElIcon as s, ElInput as te } from "element-plus/es";
|
|
4
4
|
import { Fragment as ne, createBlock as c, createElementBlock as l, createElementVNode as u, createTextVNode as re, createVNode as d, defineComponent as f, onBeforeUnmount as p, onMounted as ie, openBlock as m, reactive as h, ref as g, renderList as _, toDisplayString as v, unref as y, withCtx as b, withKeys as ae } from "vue";
|
|
5
5
|
import { Lock as x, Message as oe, Platform as se, User as S } from "@element-plus/icons-vue";
|
|
@@ -11,7 +11,7 @@ import "element-plus/es/components/icon/style/css";
|
|
|
11
11
|
import "element-plus/es/components/form/style/css";
|
|
12
12
|
import "element-plus/es/components/form-item/style/css";
|
|
13
13
|
//#region src/components/YCLoginNew/YCLoginNew.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
-
var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "login-container" }, de = { class: "login-wrapper" }, fe = { class: "login-box" }, w = { class: "login-header" }, T = { class: "header-icon" }, E = { class: "title" }, D = { class: "en-title" }, O = { class: "input-icon-box" }, k = { class: "input-icon-box" }, A = { class: "form-options" }, j = { class: "input-icon-box" }, M = { class: "code-input-wrapper" }, N = { class: "input-icon-box" }, P = { class: "input-icon-box" }, F = { class: "input-icon-box" }, I = { class: "split-btn-container" }, L = "yc_reset_code_expire", R = "yc_reset_code_value", z = /* @__PURE__ */
|
|
14
|
+
var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "login-container" }, de = { class: "login-wrapper" }, fe = { class: "login-box" }, w = { class: "login-header" }, T = { class: "header-icon" }, E = { class: "title" }, D = { class: "en-title" }, O = { class: "input-icon-box" }, k = { class: "input-icon-box" }, A = { class: "form-options" }, j = { class: "input-icon-box" }, M = { class: "code-input-wrapper" }, N = { class: "input-icon-box" }, P = { class: "input-icon-box" }, F = { class: "input-icon-box" }, I = { class: "split-btn-container" }, L = "yc_reset_code_expire", R = "yc_reset_code_value", z = /* @__PURE__ */ t(/* @__PURE__ */ f({
|
|
15
15
|
__name: "YCLoginNew",
|
|
16
16
|
props: {
|
|
17
17
|
appKey: {
|
|
@@ -39,8 +39,8 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
|
|
|
39
39
|
default: ""
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
-
setup(
|
|
43
|
-
let z =
|
|
42
|
+
setup(t, { emit: f }) {
|
|
43
|
+
let z = t, B = f, V = g(), H = g(!1), U = h({
|
|
44
44
|
username: "",
|
|
45
45
|
password: ""
|
|
46
46
|
}), pe = {
|
|
@@ -101,8 +101,8 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
|
|
|
101
101
|
q && clearInterval(q), q = setInterval(() => {
|
|
102
102
|
K.value--, K.value <= 0 && (q && clearInterval(q), q = null, window.localStorage.removeItem(L), window.localStorage.removeItem(R), J.value = "");
|
|
103
103
|
}, 1e3);
|
|
104
|
-
}, ge = () => Math.floor(Math.random() * 9e5).toString(), _e = async (
|
|
105
|
-
if (!
|
|
104
|
+
}, ge = () => Math.floor(Math.random() * 9e5).toString(), _e = async (t) => {
|
|
105
|
+
if (!t) {
|
|
106
106
|
C({
|
|
107
107
|
message: "请先输入手机号",
|
|
108
108
|
type: "warning",
|
|
@@ -113,7 +113,7 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
|
|
|
113
113
|
if (K.value > 0) return;
|
|
114
114
|
let n = ge();
|
|
115
115
|
try {
|
|
116
|
-
await t
|
|
116
|
+
await e(t, n, z.SMSUrl), J.value = n, K.value = 60;
|
|
117
117
|
let r = (/* @__PURE__ */ new Date()).getTime() + 60 * 1e3;
|
|
118
118
|
window.localStorage.setItem(L, r.toString()), window.localStorage.setItem(R, n), X(), C({
|
|
119
119
|
message: "验证码已发送",
|
|
@@ -146,7 +146,7 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
|
|
|
146
146
|
let e = {
|
|
147
147
|
loginName: Y.phone,
|
|
148
148
|
password: Y.newPassword
|
|
149
|
-
}, t = await
|
|
149
|
+
}, t = await n(z.resetPwdUrl, e);
|
|
150
150
|
t.errorCode === 0 ? (C({
|
|
151
151
|
message: "密码重置成功",
|
|
152
152
|
type: "success",
|
|
@@ -168,22 +168,22 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
|
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
170
|
}, $ = () => {
|
|
171
|
-
V.value && V.value.validate(async (
|
|
172
|
-
if (
|
|
171
|
+
V.value && V.value.validate(async (e) => {
|
|
172
|
+
if (e) {
|
|
173
173
|
H.value = !0;
|
|
174
|
-
let
|
|
174
|
+
let e = {
|
|
175
175
|
name: U.username,
|
|
176
176
|
pwd: U.password
|
|
177
|
-
},
|
|
177
|
+
}, t = (await r({
|
|
178
178
|
appKey: z.appKey,
|
|
179
179
|
appSalt: z.appSalt,
|
|
180
180
|
id: z.ids.data.id,
|
|
181
|
-
variables: { str: i.encode(JSON.stringify(
|
|
181
|
+
variables: { str: i.encode(JSON.stringify(e)) },
|
|
182
182
|
baseHttp: z.baseHttp,
|
|
183
183
|
reqType: z.ids.data.reqType,
|
|
184
184
|
isFormData: z.ids.data.isFormData
|
|
185
185
|
})).data.result.output;
|
|
186
|
-
if (H.value = !1, !
|
|
186
|
+
if (H.value = !1, !t || t.length === 0) {
|
|
187
187
|
C({
|
|
188
188
|
message: "账号或密码错误",
|
|
189
189
|
type: "error",
|
|
@@ -197,8 +197,8 @@ var ce = { class: "YCLoginNew" }, le = { class: "particles" }, ue = { class: "lo
|
|
|
197
197
|
type: "success",
|
|
198
198
|
zIndex: 6e3,
|
|
199
199
|
duration: 1500
|
|
200
|
-
}), window.localStorage.setItem("user", JSON.stringify(
|
|
201
|
-
|
|
200
|
+
}), window.localStorage.setItem("user", JSON.stringify(t)), window.localStorage.setItem("uName", i.encode(U.username)), window.localStorage.setItem("uPwd", i.encode(U.password)), setTimeout(() => {
|
|
201
|
+
t.length > 1 ? B("toPage", "/home") : B("toPage", t[0].web_page);
|
|
202
202
|
}, 1e3);
|
|
203
203
|
}
|
|
204
204
|
});
|