hs-admin-ui 17.1.7 → 17.1.9

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