activate.js 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674
  1. var Ne = Object.defineProperty;
  2. var re = Object.getOwnPropertySymbols;
  3. var Ve = Object.prototype.hasOwnProperty, Fe = Object.prototype.propertyIsEnumerable;
  4. var ue = (m, e, c) => e in m ? Ne(m, e, { enumerable: !0, configurable: !0, writable: !0, value: c }) : m[e] = c, B = (m, e) => {
  5. for (var c in e || (e = {}))
  6. Ve.call(e, c) && ue(m, c, e[c]);
  7. if (re)
  8. for (var c of re(e))
  9. Fe.call(e, c) && ue(m, c, e[c]);
  10. return m;
  11. };
  12. var W = (m, e, c) => new Promise((f, _) => {
  13. var U = (g) => {
  14. try {
  15. d(c.next(g));
  16. } catch ($) {
  17. _($);
  18. }
  19. }, j = (g) => {
  20. try {
  21. d(c.throw(g));
  22. } catch ($) {
  23. _($);
  24. }
  25. }, d = (g) => g.done ? f(g.value) : Promise.resolve(g.value).then(U, j);
  26. d((c = c.apply(m, e)).next());
  27. });
  28. import { ref as n, reactive as X, watch as Ae, onMounted as Re, openBlock as x, createElementBlock as P, createElementVNode as l, toDisplayString as o, createVNode as s, withCtx as i, createCommentVNode as R, createTextVNode as V, normalizeStyle as Z, withDirectives as Ue, vShow as Ee, normalizeClass as Y, unref as Te, nextTick as Le } from "vue";
  29. import { useRouter as ze } from "vue-router";
  30. import { n as Me, I as qe, B as De, dE as Oe, dL as Be } from "./index2.js";
  31. import { e as Ze, f as je, h as Ge, i as He } from "./account.js";
  32. import { s as Je } from "./success-qrcode.js";
  33. import { C as Ke } from "./index19.js";
  34. import { _ as Qe, S as We } from "./index12.js";
  35. import { F as Xe, _ as Ye } from "./index5.js";
  36. import { _ as ea, a as aa } from "./index11.js";
  37. import { S as ta } from "./index17.js";
  38. const la = { class: "activate-page" }, sa = { class: "header" }, oa = { class: "header-inner" }, na = { class: "logo-box" }, ia = ["src", "alt"], ra = { class: "sub-title" }, ua = { class: "main-wrap" }, ca = { key: 0 }, da = { class: "tip-text" }, va = { class: "bold-text" }, pa = { class: "small-text" }, fa = { id: "verification-code-div" }, _a = ["title"], ma = ["src"], ha = { class: "btn-group" }, ga = {
  39. key: 1,
  40. class: "form-wrap"
  41. }, wa = { class: "page-title" }, ba = { class: "page-desc" }, ya = {
  42. key: 0,
  43. class: "error-tip-box"
  44. }, ka = { class: "error-text" }, Ca = { key: 1 }, xa = { class: "info-display-box" }, Pa = { class: "label-text" }, $a = { class: "value-text" }, Sa = { class: "verify-between" }, Ia = { class: "verify-button-name" }, Na = { class: "djs" }, Va = { class: "btn-group" }, Fa = {
  45. key: 2,
  46. class: "btn-group only-prev-btn"
  47. }, Aa = {
  48. key: 2,
  49. class: "form-wrap"
  50. }, Ra = { class: "page-title" }, Ua = { class: "page-desc" }, Ea = { class: "pwd-strength-bar" }, Ta = { class: "pwd-rule-tips" }, La = { class: "btn-group" }, za = {
  51. key: 3,
  52. class: "form-wrap finish-wrap"
  53. }, Ma = { class: "success-icon" }, qa = ["src", "alt"], Da = { class: "finish-title" }, Oa = { class: "finish-desc" }, Ba = { class: "account-info-card" }, Za = { class: "info-item" }, ja = { class: "info-label" }, Ga = { class: "info-value" }, Ha = { class: "info-item" }, Ja = { class: "info-label" }, Ka = { class: "info-value" }, Qa = { class: "info-item" }, Wa = { class: "info-label" }, Xa = { class: "info-value" }, Ya = { class: "btn-group finish-btn-group" }, et = { class: "footer" }, at = /* @__PURE__ */ Object.assign({ name: "LoginActivate" }, {
  54. __name: "activate",
  55. setup(m) {
  56. const e = (a) => window.$l ? window.$l(a) : a, c = ze(), f = n(0), _ = n(!1), U = n(""), j = n(null), d = X({
  57. no: "",
  58. name: "",
  59. certNo: "",
  60. verificationCode: ""
  61. }), g = {
  62. no: [{ required: !0, message: e("请输入工号/学号/手机号") }],
  63. name: [{ required: !0, message: e("请输入姓名") }],
  64. certNo: [{ required: !0, message: e("请输入证件号后6位") }],
  65. verificationCode: [{ required: !0, message: e("请输入验证码") }]
  66. }, $ = n(null), G = n(""), E = n(""), ee = n(null), M = X({
  67. code: ""
  68. }), ce = {
  69. code: [{ required: !0, message: e("请输入4位验证码") }]
  70. }, r = n(""), q = n(""), S = n(""), A = n(e("获取验证码")), D = n(Date.now() + 60 * 1e3), w = n(!1), b = n(null), ae = n(null), y = X({
  71. password: "",
  72. confirmPassword: ""
  73. });
  74. function de(a, t) {
  75. const u = y.password;
  76. if (t) {
  77. if (t !== u)
  78. return Promise.reject(new Error(e("两次输入的密码不一致")));
  79. } else return Promise.reject(new Error(e("请再次输入密码")));
  80. return Promise.resolve();
  81. }
  82. const ve = {
  83. password: [
  84. { required: !0, message: e("请设置登录密码") },
  85. { min: 8, max: 16, message: e("密码长度为8~16位") },
  86. {
  87. pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+\-=\[\]{};:\\|,.<>\/?!¥()【】;:,。、?“”‘’]).+$/,
  88. message: e("必须同时包含:大小写字母、数字、特殊字符")
  89. }
  90. ],
  91. confirmPassword: [
  92. { required: !0, message: e("请再次输入密码") },
  93. { validator: de }
  94. ]
  95. }, T = n(""), k = n(0), L = n(""), z = n(""), I = n(""), N = n(""), O = n(""), te = n(""), le = n(""), H = n(U), pe = {
  96. 1: "var(--s-color-success)",
  97. 2: "var(--s-color-warning)",
  98. 3: "var(--s-color-error)"
  99. };
  100. function J(a) {
  101. return {
  102. background: k.value >= a ? pe[a] : "var(--s-border-color-light)"
  103. };
  104. }
  105. function se() {
  106. c.push(window.$utils.env.VITE_APP_LOGIN_PATH || "/login");
  107. }
  108. function K() {
  109. Oe().then((a) => {
  110. $.value = `data:image/gif;base64,${a.verificationImage}`, G.value = a.verificationCodeId;
  111. }).catch(() => {
  112. $.value = null, G.value = "";
  113. });
  114. }
  115. function fe() {
  116. return W(this, null, function* () {
  117. const a = B({}, d);
  118. _.value = !0;
  119. try {
  120. const t = yield Ze(
  121. a.no,
  122. a.name,
  123. a.certNo,
  124. a.verificationCode,
  125. G.value
  126. );
  127. r.value = t.verifyType || "", S.value = t.realValue || "", E.value = t.userId || "", T.value = t.no || "", r.value === "telphone" ? q.value = ne(S.value) : r.value === "email" ? q.value = ie(S.value) : q.value = "", f.value = 1;
  128. } catch (t) {
  129. K();
  130. } finally {
  131. _.value = !1;
  132. }
  133. });
  134. }
  135. function _e() {
  136. if (w.value) return;
  137. if (!r.value) {
  138. window.$message.error(e("未获取到验证类型,请返回上一步重试"));
  139. return;
  140. }
  141. if (!S.value) {
  142. window.$message.error(
  143. `${r.value === "telphone" ? e("手机号") : e("邮箱")}${e("不能为空")}`
  144. );
  145. return;
  146. }
  147. if (!E.value) {
  148. window.$message.error(e("用户ID不存在,请返回上一步重新核验身份"));
  149. return;
  150. }
  151. let a = !0;
  152. if (r.value === "telphone" ? /^(((13[0-9]{1})|(15[0-9]{1})|(16[0-9]{1})|(17[3-8]{1})|(18[0-9]{1})|(19[0-9]{1})|(14[5-7]{1}))+\d{8})$/.test(S.value) || (window.$message.error(e("手机号码格式错误")), a = !1) : r.value === "email" && (/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(S.value) || (window.$message.error(e("邮箱地址格式错误")), a = !1)), !a) return;
  153. A.value = e("重新发送"), w.value = !0, D.value = Date.now() + 60 * 1e3;
  154. const t = {
  155. userId: E.value,
  156. no: T.value,
  157. // 互斥传递 mobile/email
  158. mobile: r.value === "telphone" ? S.value : "",
  159. email: r.value === "email" ? S.value : "",
  160. type: r.value === "telphone" ? 0 : 1
  161. };
  162. Ge(t).then(() => {
  163. window.$message.success(
  164. `${e("已向")}${r.value === "telphone" ? e("手机") : e("邮箱")}${e("发送验证码")}`
  165. );
  166. }).catch(() => {
  167. w.value = !1, A.value = e("获取验证码");
  168. });
  169. }
  170. function me() {
  171. w.value = !1, A.value = e("获取验证码"), b.value && (clearInterval(b.value), b.value = null);
  172. }
  173. function oe() {
  174. var a;
  175. (a = ee.value) == null || a.resetFields(), f.value = 0, w.value = !1, A.value = e("获取验证码"), D.value = Date.now() + 60 * 1e3, b.value && (clearInterval(b.value), b.value = null);
  176. }
  177. function he() {
  178. const a = B({}, M);
  179. return _.value = !0, je(a.code, E.value).then(() => {
  180. f.value = 2;
  181. }).catch(() => {
  182. }).finally(() => {
  183. _.value = !1;
  184. });
  185. }
  186. function ge(a) {
  187. const t = a && a.target ? a.target.value : a;
  188. le.value = JSON.parse(JSON.stringify(t));
  189. }
  190. function we(a) {
  191. if (!a) {
  192. k.value = 0;
  193. return;
  194. }
  195. let t = 0;
  196. /[a-z]/.test(a) && t++, /[A-Z]/.test(a) && t++, /\d/.test(a) && t++, /[!@#$%^&*()_+\-=\[\]{};:\\|,.<>\/?!¥()【】;:,。、?“”‘’]/.test(a) && t++, t <= 1 ? k.value = 1 : t <= 3 ? k.value = 2 : k.value = 3;
  197. }
  198. function be() {
  199. Le(() => {
  200. const a = y.confirmPassword || "", t = y.password || "";
  201. if (!a) {
  202. I.value = "", N.value = "";
  203. return;
  204. }
  205. a !== t ? (I.value = "error", N.value = e("两次输入的密码不一致")) : (I.value = "success", N.value = "");
  206. });
  207. }
  208. function ye({ errorFields: a = [] }) {
  209. const t = a.find((v) => v.name && v.name[0] === "password"), u = a.find((v) => v.name && v.name[0] === "confirmPassword");
  210. t ? (L.value = "error", z.value = t.errors[0]) : (L.value = "", z.value = ""), u ? (I.value = "error", N.value = u.errors[0]) : (I.value = "", N.value = "");
  211. }
  212. function ke() {
  213. var a;
  214. (a = ae.value) == null || a.resetFields(), f.value = 1, k.value = 0, L.value = "", z.value = "", I.value = "", N.value = "", w.value = !1, A.value = e("获取验证码"), D.value = Date.now() + 60 * 1e3, b.value && (clearInterval(b.value), b.value = null);
  215. }
  216. function Ce() {
  217. L.value = "success", z.value = "", I.value = "success", N.value = "", _.value = !0;
  218. const t = B({}, y).password;
  219. He(E.value, t).then((u) => {
  220. T.value = u.accountNo || "", te.value = u.activateTime || "";
  221. let v = "";
  222. r.value === "telphone" ? (v = u.telphone || "", O.value = ne(v)) : r.value === "email" ? (v = u.email || "", O.value = ie(v)) : O.value = "", f.value = 3;
  223. }).catch(() => {
  224. }).finally(() => {
  225. _.value = !1;
  226. });
  227. }
  228. function ne(a) {
  229. return !a || !/^\d{11}$/.test(a) ? a : a.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2");
  230. }
  231. function ie(a) {
  232. if (!a || !a.includes("@")) return a;
  233. const [t, u] = a.split("@");
  234. return `${t.slice(0, 1) + "****"}@${u}`;
  235. }
  236. function xe() {
  237. return W(this, null, function* () {
  238. const a = yield Be();
  239. H.value = a.indexPageLogoUrl || U;
  240. });
  241. }
  242. return Ae(
  243. le,
  244. (a) => {
  245. we(a);
  246. },
  247. { immediate: !0, deep: !0 }
  248. ), Re(() => {
  249. K(), xe().catch(() => {
  250. H.value = U;
  251. });
  252. }), (a, t) => {
  253. const u = We, v = Qe, F = qe, h = Ye, Pe = aa, $e = ea, C = De, Q = Xe, Se = ta, Ie = Ke;
  254. return x(), P("div", la, [
  255. l("div", sa, [
  256. l("div", oa, [
  257. l("div", na, [
  258. l("img", {
  259. src: H.value,
  260. alt: e("logo"),
  261. class: "logo-title-img"
  262. }, null, 8, ia),
  263. t[7] || (t[7] = l("span", { class: "split-line" }, "|", -1)),
  264. l("span", ra, o(e("统一身份认证账号激活")), 1)
  265. ])
  266. ])
  267. ]),
  268. l("div", ua, [
  269. s(Ie, { class: "activate-card" }, {
  270. default: i(() => [
  271. s(v, {
  272. current: f.value,
  273. class: "step-bar"
  274. }, {
  275. default: i(() => [
  276. s(u, {
  277. title: e("身份核验")
  278. }, null, 8, ["title"]),
  279. s(u, {
  280. title: e("安全验证")
  281. }, null, 8, ["title"]),
  282. s(u, {
  283. title: e("设置密码")
  284. }, null, 8, ["title"]),
  285. s(u, {
  286. title: e("完成")
  287. }, null, 8, ["title"])
  288. ]),
  289. _: 1
  290. }, 8, ["current"]),
  291. f.value === 0 ? (x(), P("div", ca, [
  292. l("div", da, [
  293. l("p", va, o(e("验证您的身份")), 1),
  294. l("p", pa, o(e("请填写学校登记的个人信息")), 1)
  295. ]),
  296. s(Q, {
  297. ref_key: "formRef0",
  298. ref: j,
  299. class: "activate-form",
  300. model: d,
  301. rules: g,
  302. onFinish: fe
  303. }, {
  304. default: i(() => [
  305. s(h, {
  306. class: "m-l-55",
  307. label: e("工号/学号/手机号"),
  308. name: "no",
  309. "label-col": { span: 8 },
  310. "wrapper-col": { span: 16 }
  311. }, {
  312. default: i(() => [
  313. s(F, {
  314. value: d.no,
  315. "onUpdate:value": t[0] || (t[0] = (p) => d.no = p),
  316. type: "text",
  317. placeholder: e("请输入工号/学号/手机号")
  318. }, null, 8, ["value", "placeholder"])
  319. ]),
  320. _: 1
  321. }, 8, ["label"]),
  322. s(h, {
  323. class: "m-l-55",
  324. label: e("姓名"),
  325. name: "name",
  326. "label-col": { span: 8 },
  327. "wrapper-col": { span: 16 }
  328. }, {
  329. default: i(() => [
  330. s(F, {
  331. value: d.name,
  332. "onUpdate:value": t[1] || (t[1] = (p) => d.name = p),
  333. type: "text",
  334. placeholder: e("请输入姓名")
  335. }, null, 8, ["value", "placeholder"])
  336. ]),
  337. _: 1
  338. }, 8, ["label"]),
  339. s(h, {
  340. class: "m-l-55",
  341. label: e("证件号后6位"),
  342. name: "certNo",
  343. "label-col": { span: 8 },
  344. "wrapper-col": { span: 16 }
  345. }, {
  346. default: i(() => [
  347. s(F, {
  348. value: d.certNo,
  349. "onUpdate:value": t[2] || (t[2] = (p) => d.certNo = p),
  350. type: "text",
  351. placeholder: e("请输入证件号后6位")
  352. }, null, 8, ["value", "placeholder"])
  353. ]),
  354. _: 1
  355. }, 8, ["label"]),
  356. s(h, {
  357. class: "m-l-55",
  358. label: e("验证码"),
  359. name: "verificationCode",
  360. "label-col": { span: 8 },
  361. "wrapper-col": { span: 16 }
  362. }, {
  363. default: i(() => [
  364. s($e, { gutter: 12 }, {
  365. default: i(() => [
  366. s(Pe, { span: 24 }, {
  367. default: i(() => [
  368. l("div", fa, [
  369. s(F, {
  370. value: d.verificationCode,
  371. "onUpdate:value": t[3] || (t[3] = (p) => d.verificationCode = p),
  372. placeholder: e("请输入右侧验证码")
  373. }, null, 8, ["value", "placeholder"]),
  374. l("div", {
  375. id: "verificationCode",
  376. title: e("刷新一下"),
  377. onClick: K
  378. }, [
  379. $.value ? (x(), P("img", {
  380. key: 0,
  381. style: { width: "100%", "font-size": "0" },
  382. src: $.value
  383. }, null, 8, ma)) : R("", !0)
  384. ], 8, _a)
  385. ])
  386. ]),
  387. _: 1
  388. })
  389. ]),
  390. _: 1
  391. })
  392. ]),
  393. _: 1
  394. }, 8, ["label"]),
  395. s(h, {
  396. class: "m-l-55",
  397. "wrapper-col": { span: 24 }
  398. }, {
  399. default: i(() => [
  400. l("div", ha, [
  401. s(C, { onClick: se }, {
  402. default: i(() => [
  403. V(o(e("返回登录页面")), 1)
  404. ]),
  405. _: 1
  406. }),
  407. s(C, {
  408. type: "primary",
  409. "html-type": "submit",
  410. loading: _.value
  411. }, {
  412. default: i(() => [
  413. V(o(e("下一步")), 1)
  414. ]),
  415. _: 1
  416. }, 8, ["loading"])
  417. ])
  418. ]),
  419. _: 1
  420. })
  421. ]),
  422. _: 1
  423. }, 8, ["model"])
  424. ])) : R("", !0),
  425. f.value === 1 ? (x(), P("div", ga, [
  426. l("h2", wa, o(r.value === "telphone" ? e("验证预留手机号") : e("验证预留邮箱")), 1),
  427. l("p", ba, o(e("请查看")) + o(r.value === "telphone" ? e("短信") : e("邮件")) + o(e(",输入 4 位验证码。")), 1),
  428. r.value ? (x(), P("div", Ca, [
  429. l("div", xa, [
  430. l("span", Pa, o(r.value === "telphone" ? e("预留手机号") : e("预留邮箱")), 1),
  431. l("span", $a, o(q.value), 1)
  432. ]),
  433. s(Q, {
  434. ref_key: "formRef1",
  435. ref: ee,
  436. class: "activate-form",
  437. model: M,
  438. rules: ce,
  439. onFinish: he
  440. }, {
  441. default: i(() => [
  442. s(h, {
  443. class: "m-l-55",
  444. label: e("验证码"),
  445. name: "code",
  446. "label-col": { span: 8 },
  447. "wrapper-col": { span: 16 }
  448. }, {
  449. default: i(() => [
  450. l("div", Sa, [
  451. s(F, {
  452. value: M.code,
  453. "onUpdate:value": t[4] || (t[4] = (p) => M.code = p),
  454. style: { width: "200px" },
  455. placeholder: e("4 位数字")
  456. }, null, 8, ["value", "placeholder"]),
  457. s(C, {
  458. disabled: w.value,
  459. type: "link",
  460. style: Z({ color: w.value ? "var(--s-text-color-disabled)" : "var(--s-color)" }),
  461. class: "phone-verify-button",
  462. onClick: _e
  463. }, {
  464. default: i(() => [
  465. l("span", Ia, o(A.value), 1),
  466. Ue(l("div", Na, [
  467. t[9] || (t[9] = l("span", { class: "verify-button-brackets" }, "(", -1)),
  468. s(Se, {
  469. value: D.value,
  470. format: "s",
  471. class: "button-number",
  472. onFinish: me
  473. }, null, 8, ["value"]),
  474. t[10] || (t[10] = l("span", null, "s", -1)),
  475. t[11] || (t[11] = l("span", { class: "verify-button-brackets" }, ")", -1))
  476. ], 512), [
  477. [Ee, w.value]
  478. ])
  479. ]),
  480. _: 1
  481. }, 8, ["disabled", "style"])
  482. ])
  483. ]),
  484. _: 1
  485. }, 8, ["label"]),
  486. s(h, {
  487. class: "m-l-55",
  488. "wrapper-col": { span: 24 }
  489. }, {
  490. default: i(() => [
  491. l("div", Va, [
  492. s(C, { onClick: oe }, {
  493. default: i(() => [
  494. V(o(e("上一步")), 1)
  495. ]),
  496. _: 1
  497. }),
  498. s(C, {
  499. type: "primary",
  500. "html-type": "submit",
  501. loading: _.value
  502. }, {
  503. default: i(() => [
  504. V(o(e("下一步")), 1)
  505. ]),
  506. _: 1
  507. }, 8, ["loading"])
  508. ])
  509. ]),
  510. _: 1
  511. })
  512. ]),
  513. _: 1
  514. }, 8, ["model"])
  515. ])) : (x(), P("div", ya, [
  516. t[8] || (t[8] = l("i", { class: "error-icon" }, "⚠", -1)),
  517. l("span", ka, o(e("未登记预留手机号/邮箱,无法在线激活,请联系管理员")), 1)
  518. ])),
  519. r.value ? R("", !0) : (x(), P("div", Fa, [
  520. s(C, { onClick: oe }, {
  521. default: i(() => [
  522. V(o(e("上一步")), 1)
  523. ]),
  524. _: 1
  525. })
  526. ]))
  527. ])) : R("", !0),
  528. f.value === 2 ? (x(), P("div", Aa, [
  529. l("h2", Ra, o(e("设置登录密码")), 1),
  530. l("p", Ua, o(e("身份验证通过,请为账号")) + " " + o(T.value) + " " + o(e("设置登录密码,激活后使用该密码登录。")), 1),
  531. s(Q, {
  532. ref_key: "formRef2",
  533. ref: ae,
  534. class: "activate-form",
  535. model: y,
  536. rules: ve,
  537. onFinish: Ce,
  538. onFinishFailed: ye
  539. }, {
  540. default: i(() => [
  541. s(h, {
  542. label: e("密码"),
  543. name: "password",
  544. "label-col": { span: 8 },
  545. "wrapper-col": { span: 16 },
  546. "validate-status": L.value,
  547. help: z.value
  548. }, {
  549. default: i(() => [
  550. s(F, {
  551. value: y.password,
  552. "onUpdate:value": t[5] || (t[5] = (p) => y.password = p),
  553. type: "password",
  554. placeholder: e("请设置登录密码"),
  555. onChange: ge
  556. }, null, 8, ["value", "placeholder"]),
  557. l("div", Ea, [
  558. l("div", {
  559. class: Y(["strength-item", { active: k.value >= 1 }]),
  560. style: Z(J(1))
  561. }, null, 6),
  562. l("div", {
  563. class: Y(["strength-item", { active: k.value >= 2 }]),
  564. style: Z(J(2))
  565. }, null, 6),
  566. l("div", {
  567. class: Y(["strength-item", { active: k.value >= 3 }]),
  568. style: Z(J(3))
  569. }, null, 6)
  570. ]),
  571. l("div", Ta, [
  572. l("p", null, "✓ " + o(e("长度为 8~16 位")), 1),
  573. l("p", null, "✓ " + o(e("必须同时包含:大小写字母、数字、特殊字符")), 1)
  574. ])
  575. ]),
  576. _: 1
  577. }, 8, ["label", "validate-status", "help"]),
  578. s(h, {
  579. label: e("确认密码"),
  580. name: "confirmPassword",
  581. "label-col": { span: 8 },
  582. "wrapper-col": { span: 16 },
  583. "validate-status": I.value,
  584. help: N.value
  585. }, {
  586. default: i(() => [
  587. s(F, {
  588. value: y.confirmPassword,
  589. "onUpdate:value": t[6] || (t[6] = (p) => y.confirmPassword = p),
  590. type: "password",
  591. placeholder: e("请再次输入密码"),
  592. onChange: be
  593. }, null, 8, ["value", "placeholder"])
  594. ]),
  595. _: 1
  596. }, 8, ["label", "validate-status", "help"]),
  597. s(h, {
  598. class: "m-l-55",
  599. "wrapper-col": { span: 24 }
  600. }, {
  601. default: i(() => [
  602. l("div", La, [
  603. s(C, { onClick: ke }, {
  604. default: i(() => [
  605. V(o(e("上一步")), 1)
  606. ]),
  607. _: 1
  608. }),
  609. s(C, {
  610. type: "primary",
  611. "html-type": "submit",
  612. loading: _.value
  613. }, {
  614. default: i(() => [
  615. V(o(e("下一步")), 1)
  616. ]),
  617. _: 1
  618. }, 8, ["loading"])
  619. ])
  620. ]),
  621. _: 1
  622. })
  623. ]),
  624. _: 1
  625. }, 8, ["model"])
  626. ])) : R("", !0),
  627. f.value === 3 ? (x(), P("div", za, [
  628. l("div", Ma, [
  629. l("img", {
  630. style: { width: "60px" },
  631. src: Te(Je),
  632. alt: e("成功")
  633. }, null, 8, qa)
  634. ]),
  635. l("h2", Da, o(e("账号激活成功")), 1),
  636. l("p", Oa, o(e("您的账号已成功激活,今后请使用账号 + 新密码登录统一信息平台。")), 1),
  637. l("div", Ba, [
  638. l("div", Za, [
  639. l("span", ja, o(e("账号")), 1),
  640. l("span", Ga, o(T.value), 1)
  641. ]),
  642. l("div", Ha, [
  643. l("span", Ja, o(r.value === "telphone" ? e("绑定手机号") : e("绑定邮箱")), 1),
  644. l("span", Ka, o(O.value), 1)
  645. ]),
  646. l("div", Qa, [
  647. l("span", Wa, o(e("激活时间")), 1),
  648. l("span", Xa, o(te.value), 1)
  649. ])
  650. ]),
  651. l("div", Ya, [
  652. s(C, {
  653. type: "primary",
  654. onClick: se
  655. }, {
  656. default: i(() => [
  657. V(o(e("返回登录")), 1)
  658. ]),
  659. _: 1
  660. })
  661. ])
  662. ])) : R("", !0)
  663. ]),
  664. _: 1
  665. })
  666. ]),
  667. l("div", et, o(e("无法使用预留联系方式接收验证码?请联系管理员")), 1)
  668. ]);
  669. };
  670. }
  671. }), pt = /* @__PURE__ */ Me(at, [["__scopeId", "data-v-135ab6bd"]]);
  672. export {
  673. pt as default
  674. };