hs-admin-ui 17.2.0 → 17.2.1

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