hs-admin-ui 17.2.0 → 17.2.2

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/h5.mjs CHANGED
@@ -1,7 +1,10 @@
1
- import { j as K, b as W, i as X, E as J, a as h, h as Q, f as Z } from "./index-MdkQpTY8.js";
2
- import { defineComponent as H, computed as E, shallowRef as ee, reactive as q, watch as ae, resolveDirective as te, withDirectives as le, createElementBlock as A, openBlock as k, createElementVNode as d, createBlock as z, createCommentVNode as ne, createVNode as o, unref as a, withCtx as s, createTextVNode as U, ref as I, onMounted as oe, onUnmounted as re, toDisplayString as M, Fragment as se, renderList as ie } from "vue";
3
- import { K as G, H as $, b9 as F, M as j, a3 as Y, E as de, bf as ue, aP as v, bg as O, aj as pe, S as B, aR as ce } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-Bj9qTYzH.js";
4
- const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" }, fe = /* @__PURE__ */ H({
1
+ import { j as X, b as J, i as Q, E as Z, a as h, h as ee, f as ae } from "./index-B8U2y1zY.js";
2
+ import { defineComponent as z, computed as S, ref as I, shallowRef as te, reactive as A, watch as le, resolveDirective as ne, withDirectives as oe, createElementBlock as F, openBlock as L, createElementVNode as p, createBlock as G, createCommentVNode as re, createVNode as n, unref as a, withCtx as i, createTextVNode as P, onMounted as se, onUnmounted as ie, toDisplayString as O, Fragment as de, renderList as ue } from "vue";
3
+ import { K as Y, H as N, b9 as j, S as T, aj as K, M as H, a3 as W, E as pe, bf as ce, aP as _, bg as q, aR as me } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-CEIF4C5E.js";
4
+ const fe = {
5
+ class: "upload-wrapper",
6
+ "element-loading-text": "上传中..."
7
+ }, ge = { class: "upload-wrapper-inner" }, he = /* @__PURE__ */ z({
5
8
  __name: "Upload",
6
9
  props: {
7
10
  action: {
@@ -38,103 +41,117 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
38
41
  }
39
42
  },
40
43
  emits: ["success"],
41
- setup(i, { emit: C }) {
42
- const c = i, _ = G(), x = E(() => _.limit || c.limit), m = E(() => _.proxy.replace("/", "") || c.proxy.replace("/", "")), g = E(() => $.pick(_, ["company_id"])), V = C, l = ee(), n = q({
44
+ setup(u, { emit: E }) {
45
+ const c = u, x = Y(), k = S(() => x.limit || c.limit), m = S(() => {
46
+ var e;
47
+ return ((e = x.proxy) == null ? void 0 : e.replace("/", "")) || c.proxy.replace("/", "");
48
+ }), f = S(() => N.pick(x, ["company_id"])), v = I(!1), l = E, d = te(), s = A({
43
49
  loading: !1,
44
50
  preview: !1,
45
51
  index: 0,
46
52
  headers: c.headers,
47
53
  fileList: []
48
- }), D = E(() => n.fileList.map((e) => e.url));
49
- ae(
50
- () => n.fileList.length,
54
+ }), R = S(() => s.fileList.map((e) => e.url));
55
+ le(
56
+ () => s.fileList.length,
51
57
  (e) => {
52
58
  setTimeout(() => {
53
- const t = document.querySelector(".upload-wrapper .el-upload--picture-card");
54
- t && (t.style.display = e >= x.value && e > 0 ? "none" : "inline-flex");
59
+ const o = document.querySelector(".upload-wrapper .el-upload--picture-card");
60
+ o && (o.style.display = e >= k.value && e > 0 ? "none" : "inline-flex");
55
61
  }, 100);
56
62
  },
57
63
  {
58
64
  immediate: !0
59
65
  }
60
66
  );
61
- function S() {
62
- return j({
67
+ function D() {
68
+ return H({
63
69
  url: `${window.location.origin}/${m.value}/sys/get_pub_token`
64
70
  }).then((e) => `Bearer ${e == null ? void 0 : e.data}`);
65
71
  }
66
- async function P() {
67
- if ($.isEmpty(c.headers))
68
- return S().then((e) => {
69
- n.headers = {
72
+ async function B() {
73
+ if (N.isEmpty(c.headers))
74
+ return D().then((e) => {
75
+ s.headers = {
70
76
  Authorization: e
71
77
  };
72
78
  });
73
79
  }
74
- function N(e) {
75
- n.index = n.fileList.findIndex((t) => t.url === e.url), n.preview = !0;
80
+ function M(e) {
81
+ s.index = s.fileList.findIndex((o) => o.url === e.url), s.preview = !0;
76
82
  }
77
- let w = [];
78
- async function R() {
79
- n.loading = !0, w = [], l.value.submit();
83
+ let C = [];
84
+ async function r() {
85
+ if (!v.value) {
86
+ if (!s.fileList.length)
87
+ return T.warning("请上传图片");
88
+ K.confirm("图片上传成功后页面会禁用,是否确定上传图片?", "提示", {
89
+ confirmButtonText: "确定",
90
+ cancelButtonText: "取消",
91
+ type: "warning"
92
+ }).then(() => {
93
+ s.loading = !0, C = [], d.value.submit();
94
+ });
95
+ }
80
96
  }
81
- async function r(e, t, u) {
82
- if (e.data && w.push(...e.data), w.length < n.fileList.length)
97
+ async function t(e, o, b) {
98
+ if (e.data && C.push(...e.data), C.length < s.fileList.length)
83
99
  return;
84
- const p = w.map((f) => ({
85
- extname: f.suffix.replace(".", ""),
86
- id: f.id,
87
- name: f.name,
88
- path: f.path,
89
- url: c.ossUrl + f.path
100
+ const g = C.map((V) => ({
101
+ extname: V.suffix.replace(".", ""),
102
+ id: V.id,
103
+ name: V.name,
104
+ path: V.path,
105
+ url: c.ossUrl + V.path
90
106
  }));
91
- if (n.loading = !1, !p.length)
107
+ if (s.loading = !1, !g.length)
92
108
  return;
93
- const T = await S();
94
- j({
109
+ const U = await D();
110
+ H({
95
111
  url: `${window.location.origin}/${m.value}/pub_token/mobile_attach_push`,
96
112
  method: "post",
97
113
  headers: {
98
- Authorization: T
114
+ Authorization: U
99
115
  },
100
116
  data: {
101
- attach_paths: p,
102
- ...$.pick(_, ["company_id", "user_id"])
117
+ attach_paths: g,
118
+ ...N.pick(x, ["company_id", "user_id"])
103
119
  }
104
120
  }).then(() => {
105
- n.fileList = [], V("success", { result: p, file: t, files: u });
121
+ v.value = !0, l("success", { result: g, file: o, files: b });
106
122
  });
107
123
  }
108
- return (e, t) => {
109
- const u = te("loading");
110
- return le((k(), A("div", me, [
111
- d("div", ge, [
112
- o(a(K), {
124
+ return (e, o) => {
125
+ const b = ne("loading");
126
+ return oe((L(), F("div", fe, [
127
+ p("div", ge, [
128
+ n(a(X), {
113
129
  ref_key: "uploadRef",
114
- ref: l,
115
- "file-list": n.fileList,
116
- "onUpdate:fileList": t[0] || (t[0] = (p) => n.fileList = p),
117
- "list-type": i.listType,
118
- accept: i.accept,
119
- name: i.name,
120
- data: g.value,
121
- action: m.value + i.action,
122
- headers: n.headers,
123
- limit: x.value,
124
- multiple: x.value > 1,
130
+ ref: d,
131
+ "file-list": s.fileList,
132
+ "onUpdate:fileList": o[0] || (o[0] = (g) => s.fileList = g),
133
+ "list-type": u.listType,
134
+ accept: u.accept,
135
+ name: u.name,
136
+ data: f.value,
137
+ action: m.value + u.action,
138
+ headers: s.headers,
139
+ limit: k.value,
140
+ multiple: k.value > 1,
125
141
  "auto-upload": !1,
126
- "on-preview": N,
127
- "before-upload": P,
128
- "on-success": r
142
+ disabled: v.value,
143
+ "on-preview": M,
144
+ "before-upload": B,
145
+ "on-success": t
129
146
  }, {
130
- default: s(() => [...t[2] || (t[2] = [
131
- d("svg", {
147
+ default: i(() => [...o[2] || (o[2] = [
148
+ p("svg", {
132
149
  width: "34",
133
150
  height: "34",
134
151
  viewBox: "0 0 100 100",
135
152
  xmlns: "http://www.w3.org/2000/svg"
136
153
  }, [
137
- d("rect", {
154
+ p("rect", {
138
155
  x: "45",
139
156
  y: "20",
140
157
  width: "10",
@@ -142,7 +159,7 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
142
159
  rx: "2",
143
160
  fill: "#1677ff"
144
161
  }),
145
- d("rect", {
162
+ p("rect", {
146
163
  x: "20",
147
164
  y: "45",
148
165
  width: "60",
@@ -153,31 +170,31 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
153
170
  ], -1)
154
171
  ])]),
155
172
  _: 1
156
- }, 8, ["file-list", "list-type", "accept", "name", "data", "action", "headers", "limit", "multiple"])
173
+ }, 8, ["file-list", "list-type", "accept", "name", "data", "action", "headers", "limit", "multiple", "disabled"])
157
174
  ]),
158
- n.preview ? (k(), z(a(W), {
175
+ s.preview ? (L(), G(a(J), {
159
176
  key: 0,
160
- "url-list": D.value,
177
+ "url-list": R.value,
161
178
  "show-progress": "",
162
- "initial-index": n.index,
163
- onClose: t[1] || (t[1] = (p) => n.preview = !1)
164
- }, null, 8, ["url-list", "initial-index"])) : ne("", !0),
165
- o(a(F), {
179
+ "initial-index": s.index,
180
+ onClose: o[1] || (o[1] = (g) => s.preview = !1)
181
+ }, null, 8, ["url-list", "initial-index"])) : re("", !0),
182
+ n(a(j), {
166
183
  size: "large",
167
184
  type: "primary",
168
- onClick: R
185
+ onClick: r
169
186
  }, {
170
- default: s(() => [...t[3] || (t[3] = [
171
- U("上传", -1)
187
+ default: i(() => [...o[3] || (o[3] = [
188
+ P("上传", -1)
172
189
  ])]),
173
190
  _: 1
174
191
  })
175
192
  ])), [
176
- [u, n.loading]
193
+ [b, s.loading]
177
194
  ]);
178
195
  };
179
196
  }
180
- }), he = /* @__PURE__ */ Y(fe, [["__scopeId", "data-v-01ea424d"]]), ye = [
197
+ }), ye = /* @__PURE__ */ W(he, [["__scopeId", "data-v-afb445b6"]]), ve = [
181
198
  { label: "男", value: "男" },
182
199
  { label: "女", value: "女" }
183
200
  ], y = {
@@ -222,7 +239,7 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
222
239
  message: "验证码为6位",
223
240
  trigger: "blur"
224
241
  }
225
- }, b = {
242
+ }, w = {
226
243
  name: "请输入姓名",
227
244
  phone: "请输入手机号",
228
245
  idCard: "请输入身份证号",
@@ -230,18 +247,18 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
230
247
  address: "请输入地址",
231
248
  remark: "请输入备注",
232
249
  captcha: "请输入验证码"
233
- }, L = {
250
+ }, $ = {
234
251
  phone: 11,
235
252
  idCard: 18,
236
253
  age: 3,
237
254
  captcha: 6
238
- }, ve = {
255
+ }, be = {
239
256
  name: [y.name, y.nameLength],
240
257
  phone: [y.phone, y.phonePattern],
241
258
  idCard: [y.idCardPattern],
242
259
  age: [y.agePattern],
243
260
  captcha: [y.captcha, y.captchaLength]
244
- }, be = { class: "member-register-page" }, _e = { class: "page-header" }, we = { class: "page-subtitle" }, Ce = { class: "form-container" }, xe = { class: "form-content" }, Ve = { class: "sms-code-wrapper" }, Ie = { class: "submit-area" }, Ee = /* @__PURE__ */ H({
261
+ }, _e = { class: "member-register-page" }, we = { class: "page-header" }, xe = { class: "page-subtitle" }, Ce = { class: "form-container" }, Ve = { class: "form-content" }, Ie = { class: "sms-code-wrapper" }, Ee = { class: "submit-area" }, ke = /* @__PURE__ */ z({
245
262
  __name: "MemberRegister",
246
263
  props: {
247
264
  proxy: {
@@ -249,8 +266,8 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
249
266
  required: !1
250
267
  }
251
268
  },
252
- setup(i) {
253
- const { countdownText: C, isCountingDown: c, stopCountdown: _, sendSmsCode: x } = w(), m = I(), g = I(!1), V = i, l = q({
269
+ setup(u) {
270
+ const { countdownText: E, isCountingDown: c, stopCountdown: x, sendSmsCode: k } = M(), m = I(), f = I(!1), v = u, l = A({
254
271
  name: "",
255
272
  gender: "男",
256
273
  phone: "",
@@ -259,13 +276,13 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
259
276
  address: "",
260
277
  remark: "",
261
278
  captcha: ""
262
- }), n = q({
279
+ }), d = A({
263
280
  topCompanyId: "",
264
281
  companyId: "",
265
282
  companyName: "",
266
283
  defaultMemberType: "",
267
284
  discount: 0
268
- }), D = async () => {
285
+ }), s = async () => {
269
286
  if (!m.value)
270
287
  return !1;
271
288
  try {
@@ -273,11 +290,11 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
273
290
  } catch {
274
291
  return !1;
275
292
  }
276
- }, S = async () => {
277
- if (!await D())
293
+ }, R = async () => {
294
+ if (!await s())
278
295
  return;
279
- g.value = !0;
280
- const e = {
296
+ f.value = !0;
297
+ const t = {
281
298
  vip_name: l.name,
282
299
  sex: l.gender,
283
300
  telephone: l.phone,
@@ -286,13 +303,13 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
286
303
  address: l.address,
287
304
  remark: l.remark,
288
305
  valid_code: l.captcha,
289
- vip_type: n.defaultMemberType,
290
- top_company_id: n.topCompanyId,
291
- company_id: n.companyId,
292
- discount: n.discount
306
+ vip_type: d.defaultMemberType,
307
+ top_company_id: d.topCompanyId,
308
+ company_id: d.companyId,
309
+ discount: d.discount
293
310
  };
294
311
  try {
295
- await O.post(`${V.proxy}/pub/add_vip_info`, e), pe.alert("注册成功!", "提示", {
312
+ await q.post(`${v.proxy}/pub/add_vip_info`, t), K.alert("注册成功!", "提示", {
296
313
  closeOnClickModal: !1,
297
314
  // 禁止点击遮罩关闭
298
315
  closeOnPressEscape: !1,
@@ -304,154 +321,154 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
304
321
  });
305
322
  } catch {
306
323
  } finally {
307
- g.value = !1;
324
+ f.value = !1;
308
325
  }
309
- }, P = async () => {
326
+ }, D = async () => {
310
327
  try {
311
- return (await O.get(`${V.proxy}/pub/get_list_vip_price_set?top_company_id=${n.topCompanyId}`)).data;
328
+ return (await q.get(`${v.proxy}/pub/get_list_vip_price_set?top_company_id=${d.topCompanyId}`)).data;
312
329
  } catch {
313
- B.error("获取默认会员等级失败");
330
+ T.error("获取默认会员等级失败");
314
331
  }
315
- }, N = async () => {
316
- const r = G();
317
- n.topCompanyId = r.top_company_id || "", n.companyId = r.company_id || "", n.companyName = r.company_name || "";
318
- const e = await P();
319
- n.defaultMemberType = (e == null ? void 0 : e.id) || "", n.discount = (e == null ? void 0 : e.discount) || 0;
332
+ }, B = async () => {
333
+ const r = Y();
334
+ d.topCompanyId = r.top_company_id || "", d.companyId = r.company_id || "", d.companyName = r.company_name || "";
335
+ const t = await D();
336
+ d.defaultMemberType = (t == null ? void 0 : t.id) || "", d.discount = (t == null ? void 0 : t.discount) || 0;
320
337
  };
321
- function w() {
322
- const r = I(0), e = I(null), t = 60, u = I(!1), p = E(() => r.value > 0 ? `${r.value}秒后重新发送` : "获取验证码"), T = () => {
323
- r.value = t, u.value = !0, e.value = setInterval(() => {
324
- r.value--, r.value <= 0 && f();
338
+ function M() {
339
+ const r = I(0), t = I(null), e = 60, o = I(!1), b = S(() => r.value > 0 ? `${r.value}秒后重新发送` : "获取验证码"), g = () => {
340
+ r.value = e, o.value = !0, t.value = setInterval(() => {
341
+ r.value--, r.value <= 0 && U();
325
342
  }, 1e3);
326
- }, f = () => {
327
- e.value && (clearInterval(e.value), e.value = null), r.value = 0, u.value = !1;
343
+ }, U = () => {
344
+ t.value && (clearInterval(t.value), t.value = null), r.value = 0, o.value = !1;
328
345
  };
329
346
  return {
330
- countdownText: p,
331
- isCountingDown: u,
332
- stopCountdown: f,
347
+ countdownText: b,
348
+ isCountingDown: o,
349
+ stopCountdown: U,
333
350
  sendSmsCode: async () => {
334
- if (u.value || !m.value)
351
+ if (o.value || !m.value)
335
352
  return;
336
353
  if (!await m.value.validateField("phone")) {
337
- B.warning("请先输入正确的手机号");
354
+ T.warning("请先输入正确的手机号");
338
355
  return;
339
356
  }
340
- g.value = !0;
357
+ f.value = !0;
341
358
  try {
342
- await O.post(`${V.proxy}/pub/send_sms_vip_valid_code`, {
359
+ await q.post(`${v.proxy}/pub/send_sms_vip_valid_code`, {
343
360
  telephone: l.phone,
344
- top_company_id: n.topCompanyId,
345
- company_id: n.companyId
346
- }), B.success("验证码发送成功"), T();
361
+ top_company_id: d.topCompanyId,
362
+ company_id: d.companyId
363
+ }), T.success("验证码发送成功"), g();
347
364
  } catch {
348
365
  } finally {
349
- g.value = !1;
366
+ f.value = !1;
350
367
  }
351
368
  }
352
369
  };
353
370
  }
354
- function R() {
371
+ function C() {
355
372
  if (l.idCard.length === 18) {
356
- const r = l.idCard.substring(6, 14), e = parseInt(r.substring(0, 4)), t = parseInt(r.substring(4, 6)), u = parseInt(r.substring(6, 8)), p = (/* @__PURE__ */ new Date()).getFullYear() - e - ((/* @__PURE__ */ new Date()).getMonth() + 1 < t || (/* @__PURE__ */ new Date()).getMonth() + 1 === t && (/* @__PURE__ */ new Date()).getDate() < u ? 1 : 0);
357
- l.age = p.toString(), l.gender = Number(l.idCard.charAt(16)) % 2 === 0 ? "女" : "男";
373
+ const r = l.idCard.substring(6, 14), t = parseInt(r.substring(0, 4)), e = parseInt(r.substring(4, 6)), o = parseInt(r.substring(6, 8)), b = (/* @__PURE__ */ new Date()).getFullYear() - t - ((/* @__PURE__ */ new Date()).getMonth() + 1 < e || (/* @__PURE__ */ new Date()).getMonth() + 1 === e && (/* @__PURE__ */ new Date()).getDate() < o ? 1 : 0);
374
+ l.age = b.toString(), l.gender = Number(l.idCard.charAt(16)) % 2 === 0 ? "女" : "男";
358
375
  }
359
376
  }
360
- return oe(() => {
361
- N();
362
- }), re(() => {
363
- _();
364
- }), (r, e) => (k(), A("div", be, [
365
- d("header", _e, [
366
- e[8] || (e[8] = d("h1", { class: "page-title" }, "会员信息登记", -1)),
367
- d("p", we, [
368
- o(a(de), null, {
369
- default: s(() => [
370
- o(a(ue))
377
+ return se(() => {
378
+ B();
379
+ }), ie(() => {
380
+ x();
381
+ }), (r, t) => (L(), F("div", _e, [
382
+ p("header", we, [
383
+ t[8] || (t[8] = p("h1", { class: "page-title" }, "会员信息登记", -1)),
384
+ p("p", xe, [
385
+ n(a(pe), null, {
386
+ default: i(() => [
387
+ n(a(ce))
371
388
  ]),
372
389
  _: 1
373
390
  }),
374
- d("span", null, M(n.companyName), 1)
391
+ p("span", null, O(d.companyName), 1)
375
392
  ])
376
393
  ]),
377
- d("main", Ce, [
378
- o(a(X), { class: "form-scroll" }, {
379
- default: s(() => [
380
- d("div", xe, [
381
- o(a(J), {
394
+ p("main", Ce, [
395
+ n(a(Q), { class: "form-scroll" }, {
396
+ default: i(() => [
397
+ p("div", Ve, [
398
+ n(a(Z), {
382
399
  ref_key: "formRef",
383
400
  ref: m,
384
401
  model: l,
385
- rules: a(ve),
402
+ rules: a(be),
386
403
  "label-position": "left",
387
404
  "label-width": "70px",
388
405
  class: "member-form"
389
406
  }, {
390
- default: s(() => [
391
- o(a(h), {
407
+ default: i(() => [
408
+ n(a(h), {
392
409
  label: "姓名",
393
410
  prop: "name"
394
411
  }, {
395
- default: s(() => [
396
- o(a(v), {
412
+ default: i(() => [
413
+ n(a(_), {
397
414
  modelValue: l.name,
398
- "onUpdate:modelValue": e[0] || (e[0] = (t) => l.name = t),
399
- placeholder: a(b).name,
415
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => l.name = e),
416
+ placeholder: a(w).name,
400
417
  clearable: ""
401
418
  }, null, 8, ["modelValue", "placeholder"])
402
419
  ]),
403
420
  _: 1
404
421
  }),
405
- o(a(h), {
422
+ n(a(h), {
406
423
  label: "手机号",
407
424
  prop: "phone"
408
425
  }, {
409
- default: s(() => [
410
- o(a(v), {
426
+ default: i(() => [
427
+ n(a(_), {
411
428
  modelValue: l.phone,
412
- "onUpdate:modelValue": e[1] || (e[1] = (t) => l.phone = t),
429
+ "onUpdate:modelValue": t[1] || (t[1] = (e) => l.phone = e),
413
430
  type: "tel",
414
- placeholder: a(b).phone,
415
- maxlength: a(L).phone,
431
+ placeholder: a(w).phone,
432
+ maxlength: a($).phone,
416
433
  clearable: ""
417
434
  }, null, 8, ["modelValue", "placeholder", "maxlength"])
418
435
  ]),
419
436
  _: 1
420
437
  }),
421
- o(a(h), {
438
+ n(a(h), {
422
439
  label: "身份证号",
423
440
  prop: "idCard"
424
441
  }, {
425
- default: s(() => [
426
- o(a(v), {
442
+ default: i(() => [
443
+ n(a(_), {
427
444
  modelValue: l.idCard,
428
- "onUpdate:modelValue": e[2] || (e[2] = (t) => l.idCard = t),
429
- onInput: R,
430
- placeholder: a(b).idCard,
431
- maxlength: a(L).idCard,
445
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => l.idCard = e),
446
+ onInput: C,
447
+ placeholder: a(w).idCard,
448
+ maxlength: a($).idCard,
432
449
  clearable: ""
433
450
  }, null, 8, ["modelValue", "placeholder", "maxlength"])
434
451
  ]),
435
452
  _: 1
436
453
  }),
437
- o(a(h), {
454
+ n(a(h), {
438
455
  label: "性别",
439
456
  prop: "gender"
440
457
  }, {
441
- default: s(() => [
442
- o(a(Q), {
458
+ default: i(() => [
459
+ n(a(ee), {
443
460
  modelValue: l.gender,
444
- "onUpdate:modelValue": e[3] || (e[3] = (t) => l.gender = t),
461
+ "onUpdate:modelValue": t[3] || (t[3] = (e) => l.gender = e),
445
462
  class: "gender-radio-group"
446
463
  }, {
447
- default: s(() => [
448
- (k(!0), A(se, null, ie(a(ye), (t) => (k(), z(a(Z), {
449
- key: t.value,
450
- value: t.value,
464
+ default: i(() => [
465
+ (L(!0), F(de, null, ue(a(ve), (e) => (L(), G(a(ae), {
466
+ key: e.value,
467
+ value: e.value,
451
468
  border: ""
452
469
  }, {
453
- default: s(() => [
454
- U(M(t.label), 1)
470
+ default: i(() => [
471
+ P(O(e.label), 1)
455
472
  ]),
456
473
  _: 2
457
474
  }, 1032, ["value"]))), 128))
@@ -461,73 +478,73 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
461
478
  ]),
462
479
  _: 1
463
480
  }),
464
- o(a(h), {
481
+ n(a(h), {
465
482
  label: "年龄",
466
483
  prop: "age"
467
484
  }, {
468
- default: s(() => [
469
- o(a(v), {
485
+ default: i(() => [
486
+ n(a(_), {
470
487
  type: "number",
471
488
  modelValue: l.age,
472
- "onUpdate:modelValue": e[4] || (e[4] = (t) => l.age = t),
473
- placeholder: a(b).age,
474
- maxlength: a(L).age,
489
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => l.age = e),
490
+ placeholder: a(w).age,
491
+ maxlength: a($).age,
475
492
  clearable: ""
476
493
  }, null, 8, ["modelValue", "placeholder", "maxlength"])
477
494
  ]),
478
495
  _: 1
479
496
  }),
480
- o(a(h), {
497
+ n(a(h), {
481
498
  label: "地址",
482
499
  prop: "address"
483
500
  }, {
484
- default: s(() => [
485
- o(a(v), {
501
+ default: i(() => [
502
+ n(a(_), {
486
503
  modelValue: l.address,
487
- "onUpdate:modelValue": e[5] || (e[5] = (t) => l.address = t),
488
- placeholder: a(b).address,
504
+ "onUpdate:modelValue": t[5] || (t[5] = (e) => l.address = e),
505
+ placeholder: a(w).address,
489
506
  clearable: ""
490
507
  }, null, 8, ["modelValue", "placeholder"])
491
508
  ]),
492
509
  _: 1
493
510
  }),
494
- o(a(h), {
511
+ n(a(h), {
495
512
  label: "备注",
496
513
  prop: "remark"
497
514
  }, {
498
- default: s(() => [
499
- o(a(v), {
515
+ default: i(() => [
516
+ n(a(_), {
500
517
  modelValue: l.remark,
501
- "onUpdate:modelValue": e[6] || (e[6] = (t) => l.remark = t),
502
- placeholder: a(b).remark,
518
+ "onUpdate:modelValue": t[6] || (t[6] = (e) => l.remark = e),
519
+ placeholder: a(w).remark,
503
520
  clearable: ""
504
521
  }, null, 8, ["modelValue", "placeholder"])
505
522
  ]),
506
523
  _: 1
507
524
  }),
508
- o(a(h), {
525
+ n(a(h), {
509
526
  label: "验证码",
510
527
  prop: "captcha"
511
528
  }, {
512
- default: s(() => [
513
- d("div", Ve, [
514
- o(a(v), {
529
+ default: i(() => [
530
+ p("div", Ie, [
531
+ n(a(_), {
515
532
  modelValue: l.captcha,
516
- "onUpdate:modelValue": e[7] || (e[7] = (t) => l.captcha = t),
517
- placeholder: a(b).captcha,
518
- maxlength: a(L).captcha,
533
+ "onUpdate:modelValue": t[7] || (t[7] = (e) => l.captcha = e),
534
+ placeholder: a(w).captcha,
535
+ maxlength: a($).captcha,
519
536
  clearable: "",
520
537
  class: "sms-code-input"
521
538
  }, null, 8, ["modelValue", "placeholder", "maxlength"]),
522
- o(a(F), {
539
+ n(a(j), {
523
540
  type: "primary",
524
541
  disabled: a(c),
525
- loading: g.value,
542
+ loading: f.value,
526
543
  class: "sms-code-btn",
527
- onClick: a(x)
544
+ onClick: a(k)
528
545
  }, {
529
- default: s(() => [
530
- U(M(a(C)), 1)
546
+ default: i(() => [
547
+ P(O(a(E)), 1)
531
548
  ]),
532
549
  _: 1
533
550
  }, 8, ["disabled", "loading", "onClick"])
@@ -538,16 +555,16 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
538
555
  ]),
539
556
  _: 1
540
557
  }, 8, ["model", "rules"]),
541
- d("div", Ie, [
542
- o(a(F), {
558
+ p("div", Ee, [
559
+ n(a(j), {
543
560
  type: "primary",
544
561
  round: "",
545
562
  class: "submit-btn",
546
- loading: g.value,
547
- onClick: S
563
+ loading: f.value,
564
+ onClick: R
548
565
  }, {
549
- default: s(() => [...e[9] || (e[9] = [
550
- U(" 提交 ", -1)
566
+ default: i(() => [...t[9] || (t[9] = [
567
+ P(" 提交 ", -1)
551
568
  ])]),
552
569
  _: 1
553
570
  }, 8, ["loading"])
@@ -559,17 +576,17 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
559
576
  ])
560
577
  ]));
561
578
  }
562
- }), ke = /* @__PURE__ */ Y(Ee, [["__scopeId", "data-v-992af5c2"]]), Se = {
563
- Upload: he,
564
- MemberRegister: ke
579
+ }), Se = /* @__PURE__ */ W(ke, [["__scopeId", "data-v-992af5c2"]]), Le = {
580
+ Upload: ye,
581
+ MemberRegister: Se
565
582
  };
566
- function Le(i) {
567
- for (const [C, c] of Object.entries(Se))
568
- i.component(`H${C}`, c);
583
+ function De(u) {
584
+ for (const [E, c] of Object.entries(Le))
585
+ u.component(`H${E}`, c);
569
586
  }
570
- function Te(i) {
571
- $.has(i, "_context.directives.loading") || i.directive("loading", ce.directive), i.use(Le);
587
+ function Re(u) {
588
+ N.has(u, "_context.directives.loading") || u.directive("loading", me.directive), u.use(De);
572
589
  }
573
590
  export {
574
- Te as useHsAdminUi
591
+ Re as useHsAdminUi
575
592
  };