hs-admin-ui 17.3.6 → 17.3.7

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,10 +1,7 @@
1
- import { j as W, b as X, i as J, E as Z, a as y, h as ee, f as ae } from "./index-0X9kqoJy.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 N, onMounted as se, onUnmounted as ie, toDisplayString as O, Fragment as de, renderList as ue } from "vue";
3
- import { K as Y, H as P, ba as H, S as T, ak as K, M as j, a4 as Q, E as pe, bg as ce, aQ as _, bh as q, aS as me } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-Cs3hFcRT.js";
4
- const fe = {
5
- class: "upload-wrapper",
6
- "element-loading-text": "上传中..."
7
- }, ge = { class: "upload-wrapper-inner" }, he = /* @__PURE__ */ z({
1
+ import { j as W, b as X, f as J, h as K, a as Z, E as $, i as ee } from "./index-B0s7oSSc.js";
2
+ import { defineComponent as q, computed as L, ref as C, shallowRef as ae, reactive as B, watch as te, resolveDirective as ne, withDirectives as oe, createElementBlock as A, openBlock as S, createElementVNode as u, createBlock as j, createCommentVNode as m, createVNode as o, withCtx as i, createTextVNode as R, onMounted as le, onUnmounted as re, toDisplayString as N, Fragment as ie, renderList as de } from "vue";
3
+ import { L as G, I as U, N as H, T as F, ak as z, ba as Y, H as Q, bg as M, bh as se, E as ce, aQ as me, aS as ue } from "./bcVisual.vue_vue_type_style_index_0_scoped_39bc1e22_lang-DIm1RA0A.js";
4
+ const pe = /* @__PURE__ */ q({
8
5
  __name: "Upload",
9
6
  props: {
10
7
  action: {
@@ -41,161 +38,189 @@ const fe = {
41
38
  }
42
39
  },
43
40
  emits: ["success"],
44
- setup(u, { emit: k }) {
45
- const c = u, x = Y(), E = 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(() => P.pick(x, ["company_id"])), g = I(!1), l = k, d = te(), s = A({
41
+ setup(p, { expose: t, emit: f }) {
42
+ t();
43
+ const e = p, g = G(), w = L(() => g.limit || e.limit), n = L(() => {
44
+ var a;
45
+ return ((a = g.proxy) == null ? void 0 : a.replace("/", "")) || e.proxy.replace("/", "");
46
+ }), h = L(() => U.pick(g, ["company_id"])), b = C(!1), r = f, d = ae(), s = B({
49
47
  loading: !1,
50
48
  preview: !1,
51
49
  index: 0,
52
- headers: c.headers,
50
+ headers: e.headers,
53
51
  fileList: []
54
- }), R = S(() => s.fileList.map((e) => e.url));
55
- le(
52
+ }), D = L(() => s.fileList.map((a) => a.url));
53
+ te(
56
54
  () => s.fileList.length,
57
- (e) => {
55
+ (a) => {
58
56
  setTimeout(() => {
59
- const o = document.querySelector(".upload-wrapper .el-upload--picture-card");
60
- o && (o.style.display = e >= E.value && e > 0 ? "none" : "inline-flex");
57
+ const c = document.querySelector(".upload-wrapper .el-upload--picture-card");
58
+ c && (c.style.display = a >= w.value && a > 0 ? "none" : "inline-flex");
61
59
  }, 100);
62
60
  },
63
61
  {
64
62
  immediate: !0
65
63
  }
66
64
  );
67
- function D() {
68
- return j({
69
- url: `${window.location.origin}/${m.value}/sys/get_pub_token`
70
- }).then((e) => `Bearer ${e == null ? void 0 : e.data}`);
65
+ function x() {
66
+ return H({
67
+ url: `${window.location.origin}/${n.value}/sys/get_pub_token`
68
+ }).then((a) => `Bearer ${a == null ? void 0 : a.data}`);
71
69
  }
72
- async function B() {
73
- if (P.isEmpty(c.headers))
74
- return D().then((e) => {
70
+ async function V() {
71
+ if (U.isEmpty(e.headers))
72
+ return x().then((a) => {
75
73
  s.headers = {
76
- Authorization: e
74
+ Authorization: a
77
75
  };
78
76
  });
79
77
  }
80
- function M(e) {
81
- s.index = s.fileList.findIndex((o) => o.url === e.url), s.preview = !0;
78
+ function k(a) {
79
+ s.index = s.fileList.findIndex((c) => c.url === a.url), s.preview = !0;
82
80
  }
83
- let C = [];
84
- async function r() {
85
- if (!g.value) {
81
+ let _ = [];
82
+ async function O() {
83
+ if (!b.value) {
86
84
  if (!s.fileList.length)
87
- return T.warning("请上传图片");
88
- K.confirm("图片上传成功后页面会禁用,是否确定上传图片?", "提示", {
85
+ return F.warning("请上传图片");
86
+ z.confirm("图片上传成功后页面会禁用,是否确定上传图片?", "提示", {
89
87
  confirmButtonText: "确定",
90
88
  cancelButtonText: "取消",
91
89
  type: "warning"
92
90
  }).then(() => {
93
- s.loading = !0, C = [], d.value.submit();
91
+ s.loading = !0, _ = [], d.value.submit();
94
92
  });
95
93
  }
96
94
  }
97
- async function t(e, o, b) {
98
- if (e.data && C.push(...e.data), C.length < s.fileList.length)
95
+ async function P(a, c, E) {
96
+ if (a.data && _.push(...a.data), _.length < s.fileList.length)
99
97
  return;
100
- const h = 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
98
+ const I = _.map((y) => ({
99
+ extname: y.suffix.replace(".", ""),
100
+ id: y.id,
101
+ name: y.name,
102
+ path: y.path,
103
+ url: e.ossUrl + y.path
106
104
  }));
107
- if (s.loading = !1, !h.length)
105
+ if (s.loading = !1, !I.length)
108
106
  return;
109
- const U = await D();
110
- j({
111
- url: `${window.location.origin}/${m.value}/pub_token/mobile_attach_push`,
107
+ const T = await x();
108
+ H({
109
+ url: `${window.location.origin}/${n.value}/pub_token/mobile_attach_push`,
112
110
  method: "post",
113
111
  headers: {
114
- Authorization: U
112
+ Authorization: T
115
113
  },
116
114
  data: {
117
- attach_paths: h,
118
- ...P.pick(x, ["company_id", "user_id"])
115
+ attach_paths: I,
116
+ ...U.pick(g, ["company_id", "user_id"])
119
117
  }
120
118
  }).then(() => {
121
- g.value = !0, l("success", { result: h, file: o, files: b });
119
+ b.value = !0, r("success", { result: I, file: c, files: E });
122
120
  });
123
121
  }
124
- return (e, o) => {
125
- const b = ne("loading");
126
- return oe((L(), F("div", fe, [
127
- p("div", ge, [
128
- n(a(W), {
129
- ref_key: "uploadRef",
130
- ref: d,
131
- "file-list": s.fileList,
132
- "onUpdate:fileList": o[0] || (o[0] = (h) => s.fileList = h),
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: E.value,
140
- multiple: E.value > 1,
141
- "auto-upload": !1,
142
- disabled: g.value,
143
- "on-preview": M,
144
- "before-upload": B,
145
- "on-success": t
146
- }, {
147
- default: i(() => [...o[2] || (o[2] = [
148
- p("svg", {
149
- width: "34",
150
- height: "34",
151
- viewBox: "0 0 100 100",
152
- xmlns: "http://www.w3.org/2000/svg"
153
- }, [
154
- p("rect", {
155
- x: "45",
156
- y: "20",
157
- width: "10",
158
- height: "60",
159
- rx: "2",
160
- fill: "#1677ff"
161
- }),
162
- p("rect", {
163
- x: "20",
164
- y: "45",
165
- width: "60",
166
- height: "10",
167
- rx: "2",
168
- fill: "#1677ff"
169
- })
170
- ], -1)
171
- ])]),
172
- _: 1
173
- }, 8, ["file-list", "list-type", "accept", "name", "data", "action", "headers", "limit", "multiple", "disabled"])
174
- ]),
175
- s.preview ? (L(), G(a(X), {
176
- key: 0,
177
- "url-list": R.value,
178
- "show-progress": "",
179
- "initial-index": s.index,
180
- onClose: o[1] || (o[1] = (h) => s.preview = !1)
181
- }, null, 8, ["url-list", "initial-index"])) : re("", !0),
182
- n(a(H), {
183
- disabled: g.value,
184
- size: "large",
185
- type: "primary",
186
- onClick: r
187
- }, {
188
- default: i(() => [...o[3] || (o[3] = [
189
- N("上传", -1)
190
- ])]),
191
- _: 1
192
- }, 8, ["disabled"])
193
- ])), [
194
- [b, s.loading]
195
- ]);
196
- };
122
+ const l = { props: e, urlParams: g, _limit: w, _proxy: n, formData: h, uploadDisabled: b, emit: r, uploadRef: d, state: s, fileList: D, getPubToken: x, beforeUpload: V, onPreview: k, get uploadCount() {
123
+ return _;
124
+ }, set uploadCount(a) {
125
+ _ = a;
126
+ }, submitUpload: O, onSuccess: P, get ElButton() {
127
+ return Y;
128
+ }, get ElImageViewer() {
129
+ return X;
130
+ }, get ElUpload() {
131
+ return W;
132
+ } };
133
+ return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
197
134
  }
198
- }), ye = /* @__PURE__ */ Q(he, [["__scopeId", "data-v-096fc7c1"]]), ve = [
135
+ }), fe = {
136
+ class: "upload-wrapper",
137
+ "element-loading-text": "上传中..."
138
+ }, ge = { class: "upload-wrapper-inner" };
139
+ function he(p, t, f, e, g, w) {
140
+ const n = ne("loading");
141
+ return oe((S(), A("div", fe, [
142
+ u("div", ge, [
143
+ o(e.ElUpload, {
144
+ ref: "uploadRef",
145
+ "file-list": e.state.fileList,
146
+ "onUpdate:fileList": t[0] || (t[0] = (h) => e.state.fileList = h),
147
+ "list-type": f.listType,
148
+ accept: f.accept,
149
+ name: f.name,
150
+ data: e.formData,
151
+ action: e._proxy + f.action,
152
+ headers: e.state.headers,
153
+ limit: e._limit,
154
+ multiple: e._limit > 1,
155
+ "auto-upload": !1,
156
+ disabled: e.uploadDisabled,
157
+ "on-preview": e.onPreview,
158
+ "before-upload": e.beforeUpload,
159
+ "on-success": e.onSuccess
160
+ }, {
161
+ default: i(() => [...t[2] || (t[2] = [
162
+ u(
163
+ "svg",
164
+ {
165
+ width: "34",
166
+ height: "34",
167
+ viewBox: "0 0 100 100",
168
+ xmlns: "http://www.w3.org/2000/svg"
169
+ },
170
+ [
171
+ u("rect", {
172
+ x: "45",
173
+ y: "20",
174
+ width: "10",
175
+ height: "60",
176
+ rx: "2",
177
+ fill: "#1677ff"
178
+ }),
179
+ u("rect", {
180
+ x: "20",
181
+ y: "45",
182
+ width: "60",
183
+ height: "10",
184
+ rx: "2",
185
+ fill: "#1677ff"
186
+ })
187
+ ],
188
+ -1
189
+ /* CACHED */
190
+ )
191
+ ])]),
192
+ _: 1
193
+ /* STABLE */
194
+ }, 8, ["file-list", "list-type", "accept", "name", "data", "action", "headers", "limit", "multiple", "disabled"])
195
+ ]),
196
+ e.state.preview ? (S(), j(e.ElImageViewer, {
197
+ key: 0,
198
+ "url-list": e.fileList,
199
+ "show-progress": "",
200
+ "initial-index": e.state.index,
201
+ onClose: t[1] || (t[1] = (h) => e.state.preview = !1)
202
+ }, null, 8, ["url-list", "initial-index"])) : m("v-if", !0),
203
+ o(e.ElButton, {
204
+ disabled: e.uploadDisabled,
205
+ size: "large",
206
+ type: "primary",
207
+ onClick: e.submitUpload
208
+ }, {
209
+ default: i(() => [...t[3] || (t[3] = [
210
+ R(
211
+ "上传",
212
+ -1
213
+ /* CACHED */
214
+ )
215
+ ])]),
216
+ _: 1
217
+ /* STABLE */
218
+ }, 8, ["disabled"])
219
+ ])), [
220
+ [n, e.state.loading]
221
+ ]);
222
+ }
223
+ const _e = /* @__PURE__ */ Q(pe, [["render", he], ["__scopeId", "data-v-7a370a2b"], ["__file", "C:/workspace/华速/xin/数据配置系统-hs-admin-ui/packages/components/src/components/h5/Upload/Upload.vue"]]), be = [
199
224
  { label: "男", value: "男" },
200
225
  { label: "女", value: "女" }
201
226
  ], v = {
@@ -240,7 +265,7 @@ const fe = {
240
265
  message: "验证码为6位",
241
266
  trigger: "blur"
242
267
  }
243
- }, w = {
268
+ }, Ee = {
244
269
  name: "请输入姓名",
245
270
  phone: "请输入手机号",
246
271
  idCard: "请输入身份证号",
@@ -248,18 +273,18 @@ const fe = {
248
273
  address: "请输入地址",
249
274
  remark: "请输入备注",
250
275
  captcha: "请输入验证码"
251
- }, $ = {
276
+ }, ye = {
252
277
  phone: 11,
253
278
  idCard: 18,
254
279
  age: 3,
255
280
  captcha: 6
256
- }, be = {
281
+ }, ve = {
257
282
  name: [v.name, v.nameLength],
258
283
  phone: [v.phone, v.phonePattern],
259
284
  idCard: [v.idCardPattern],
260
285
  age: [v.agePattern],
261
286
  captcha: [v.captcha, v.captchaLength]
262
- }, _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" }, ke = { class: "submit-area" }, Ee = /* @__PURE__ */ z({
287
+ }, Ie = /* @__PURE__ */ q({
263
288
  __name: "MemberRegister",
264
289
  props: {
265
290
  proxy: {
@@ -267,8 +292,9 @@ const fe = {
267
292
  required: !1
268
293
  }
269
294
  },
270
- setup(u) {
271
- const { countdownText: k, isCountingDown: c, stopCountdown: x, sendSmsCode: E } = M(), m = I(), f = I(!1), g = u, l = A({
295
+ setup(p, { expose: t }) {
296
+ t();
297
+ const { countdownText: f, isCountingDown: e, stopCountdown: g, sendSmsCode: w } = _(), n = C(), h = C(!1), b = p, r = B({
272
298
  name: "",
273
299
  gender: "男",
274
300
  phone: "",
@@ -277,40 +303,43 @@ const fe = {
277
303
  address: "",
278
304
  remark: "",
279
305
  captcha: ""
280
- }), d = A({
306
+ }), d = B({
281
307
  topCompanyId: "",
282
308
  companyId: "",
283
309
  companyName: "",
284
310
  defaultMemberType: "",
285
311
  discount: 0
286
- }), s = async () => {
287
- if (!m.value)
312
+ }), s = () => {
313
+ var l;
314
+ (l = n.value) == null || l.resetFields(), g();
315
+ }, D = async () => {
316
+ if (!n.value)
288
317
  return !1;
289
318
  try {
290
- return await m.value.validate();
319
+ return await n.value.validate();
291
320
  } catch {
292
321
  return !1;
293
322
  }
294
- }, R = async () => {
295
- if (!await s())
323
+ }, x = async () => {
324
+ if (!await D())
296
325
  return;
297
- f.value = !0;
298
- const t = {
299
- vip_name: l.name,
300
- sex: l.gender,
301
- telephone: l.phone,
302
- identity_card: l.idCard,
303
- age: l.age,
304
- address: l.address,
305
- remark: l.remark,
306
- valid_code: l.captcha,
326
+ h.value = !0;
327
+ const a = {
328
+ vip_name: r.name,
329
+ sex: r.gender,
330
+ telephone: r.phone,
331
+ identity_card: r.idCard,
332
+ age: r.age,
333
+ address: r.address,
334
+ remark: r.remark,
335
+ valid_code: r.captcha,
307
336
  vip_type: d.defaultMemberType,
308
337
  top_company_id: d.topCompanyId,
309
338
  company_id: d.companyId,
310
339
  discount: d.discount
311
340
  };
312
341
  try {
313
- await q.post(`${g.proxy}/pub/add_vip_info`, t), K.alert("注册成功!", "提示", {
342
+ await M.post(`${b.proxy}/pub/add_vip_info`, a), z.alert("注册成功!", "提示", {
314
343
  closeOnClickModal: !1,
315
344
  // 禁止点击遮罩关闭
316
345
  closeOnPressEscape: !1,
@@ -322,272 +351,359 @@ const fe = {
322
351
  });
323
352
  } catch {
324
353
  } finally {
325
- f.value = !1;
354
+ h.value = !1;
326
355
  }
327
- }, D = async () => {
356
+ }, V = async () => {
328
357
  try {
329
- return (await q.get(`${g.proxy}/pub/get_list_vip_price_set?top_company_id=${d.topCompanyId}`)).data;
358
+ return (await M.get(`${b.proxy}/pub/get_list_vip_price_set?top_company_id=${d.topCompanyId}`)).data;
330
359
  } catch {
331
- T.error("获取默认会员等级失败");
360
+ F.error("获取默认会员等级失败");
332
361
  }
333
- }, B = async () => {
334
- const r = Y();
335
- d.topCompanyId = r.top_company_id || "", d.companyId = r.company_id || "", d.companyName = r.company_name || "";
336
- const t = await D();
337
- d.defaultMemberType = (t == null ? void 0 : t.id) || "", d.discount = (t == null ? void 0 : t.discount) || 0;
362
+ }, k = async () => {
363
+ const l = G();
364
+ d.topCompanyId = l.top_company_id || "", d.companyId = l.company_id || "", d.companyName = l.company_name || "";
365
+ const a = await V();
366
+ d.defaultMemberType = (a == null ? void 0 : a.id) || "", d.discount = (a == null ? void 0 : a.discount) || 0;
338
367
  };
339
- function M() {
340
- const r = I(0), t = I(null), e = 60, o = I(!1), b = S(() => r.value > 0 ? `${r.value}秒后重新发送` : "获取验证码"), h = () => {
341
- r.value = e, o.value = !0, t.value = setInterval(() => {
342
- r.value--, r.value <= 0 && U();
368
+ function _() {
369
+ const l = C(0), a = C(null), c = 60, E = C(!1), I = L(() => l.value > 0 ? `${l.value}秒后重新发送` : "获取验证码"), T = () => {
370
+ l.value = c, E.value = !0, a.value = setInterval(() => {
371
+ l.value--, l.value <= 0 && y();
343
372
  }, 1e3);
344
- }, U = () => {
345
- t.value && (clearInterval(t.value), t.value = null), r.value = 0, o.value = !1;
373
+ }, y = () => {
374
+ a.value && (clearInterval(a.value), a.value = null), l.value = 0, E.value = !1;
346
375
  };
347
376
  return {
348
- countdownText: b,
349
- isCountingDown: o,
350
- stopCountdown: U,
377
+ countdownText: I,
378
+ isCountingDown: E,
379
+ stopCountdown: y,
351
380
  sendSmsCode: async () => {
352
- if (o.value || !m.value)
381
+ if (E.value || !n.value)
353
382
  return;
354
- if (!await m.value.validateField("phone")) {
355
- T.warning("请先输入正确的手机号");
383
+ if (!await n.value.validateField("phone")) {
384
+ F.warning("请先输入正确的手机号");
356
385
  return;
357
386
  }
358
- f.value = !0;
387
+ h.value = !0;
359
388
  try {
360
- await q.post(`${g.proxy}/pub/send_sms_vip_valid_code`, {
361
- telephone: l.phone,
389
+ await M.post(`${b.proxy}/pub/send_sms_vip_valid_code`, {
390
+ telephone: r.phone,
362
391
  top_company_id: d.topCompanyId,
363
392
  company_id: d.companyId
364
- }), T.success("验证码发送成功"), h();
393
+ }), F.success("验证码发送成功"), T();
365
394
  } catch {
366
395
  } finally {
367
- f.value = !1;
396
+ h.value = !1;
368
397
  }
369
398
  }
370
399
  };
371
400
  }
372
- function C() {
373
- if (l.idCard.length === 18) {
374
- 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);
375
- l.age = b.toString(), l.gender = Number(l.idCard.charAt(16)) % 2 === 0 ? "女" : "男";
401
+ function O() {
402
+ if (r.idCard.length === 18) {
403
+ const l = r.idCard.substring(6, 14), a = parseInt(l.substring(0, 4)), c = parseInt(l.substring(4, 6)), E = parseInt(l.substring(6, 8)), I = (/* @__PURE__ */ new Date()).getFullYear() - a - ((/* @__PURE__ */ new Date()).getMonth() + 1 < c || (/* @__PURE__ */ new Date()).getMonth() + 1 === c && (/* @__PURE__ */ new Date()).getDate() < E ? 1 : 0);
404
+ r.age = I.toString(), r.gender = Number(r.idCard.charAt(16)) % 2 === 0 ? "女" : "男";
376
405
  }
377
406
  }
378
- return se(() => {
379
- B();
380
- }), ie(() => {
381
- x();
382
- }), (r, t) => (L(), F("div", _e, [
383
- p("header", we, [
384
- t[8] || (t[8] = p("h1", { class: "page-title" }, "会员信息登记", -1)),
385
- p("p", xe, [
386
- n(a(pe), null, {
387
- default: i(() => [
388
- n(a(ce))
389
- ]),
390
- _: 1
391
- }),
392
- p("span", null, O(d.companyName), 1)
393
- ])
394
- ]),
395
- p("main", Ce, [
396
- n(a(J), { class: "form-scroll" }, {
407
+ le(() => {
408
+ k();
409
+ }), re(() => {
410
+ g();
411
+ });
412
+ const P = { countdownText: f, isCountingDown: e, stopCountdown: g, sendSmsCode: w, formRef: n, loading: h, props: b, form: r, companyInfo: d, resetForm: s, validateForm: D, handleSubmit: x, getVipPriceSet: V, dataLoad: k, useSmsCode: _, handleIdCardInputEnd: O, get ElScrollbar() {
413
+ return ee;
414
+ }, get ElInput() {
415
+ return me;
416
+ }, get ElButton() {
417
+ return Y;
418
+ }, get ElIcon() {
419
+ return ce;
420
+ }, get ElForm() {
421
+ return $;
422
+ }, get ElFormItem() {
423
+ return Z;
424
+ }, get ElRadioGroup() {
425
+ return K;
426
+ }, get ElRadio() {
427
+ return J;
428
+ }, get Location() {
429
+ return se;
430
+ }, get GENDER_OPTIONS() {
431
+ return be;
432
+ }, get rules() {
433
+ return ve;
434
+ }, get PLACEHOLDERS() {
435
+ return Ee;
436
+ }, get FIELD_LIMITS() {
437
+ return ye;
438
+ } };
439
+ return Object.defineProperty(P, "__isScriptSetup", { enumerable: !1, value: !0 }), P;
440
+ }
441
+ }), we = { class: "member-register-page" }, Ce = { class: "page-header" }, xe = { class: "page-subtitle" }, Le = { class: "form-container" }, Se = { class: "form-content" }, De = { class: "sms-code-wrapper" }, Ve = { class: "submit-area" };
442
+ function ke(p, t, f, e, g, w) {
443
+ return S(), A("div", we, [
444
+ m(" 顶部标题栏 "),
445
+ u("header", Ce, [
446
+ t[8] || (t[8] = u(
447
+ "h1",
448
+ { class: "page-title" },
449
+ "会员信息登记",
450
+ -1
451
+ /* CACHED */
452
+ )),
453
+ u("p", xe, [
454
+ o(e.ElIcon, null, {
397
455
  default: i(() => [
398
- p("div", Ve, [
399
- n(a(Z), {
400
- ref_key: "formRef",
401
- ref: m,
402
- model: l,
403
- rules: a(be),
404
- "label-position": "left",
405
- "label-width": "70px",
406
- class: "member-form"
407
- }, {
408
- default: i(() => [
409
- n(a(y), {
410
- label: "姓名",
411
- prop: "name"
412
- }, {
413
- default: i(() => [
414
- n(a(_), {
415
- modelValue: l.name,
416
- "onUpdate:modelValue": t[0] || (t[0] = (e) => l.name = e),
417
- placeholder: a(w).name,
418
- clearable: ""
419
- }, null, 8, ["modelValue", "placeholder"])
420
- ]),
421
- _: 1
422
- }),
423
- n(a(y), {
424
- label: "手机号",
425
- prop: "phone"
426
- }, {
427
- default: i(() => [
428
- n(a(_), {
429
- modelValue: l.phone,
430
- "onUpdate:modelValue": t[1] || (t[1] = (e) => l.phone = e),
431
- type: "tel",
432
- placeholder: a(w).phone,
433
- maxlength: a($).phone,
434
- clearable: ""
435
- }, null, 8, ["modelValue", "placeholder", "maxlength"])
436
- ]),
437
- _: 1
438
- }),
439
- n(a(y), {
440
- label: "身份证号",
441
- prop: "idCard"
442
- }, {
443
- default: i(() => [
444
- n(a(_), {
445
- modelValue: l.idCard,
446
- "onUpdate:modelValue": t[2] || (t[2] = (e) => l.idCard = e),
447
- onInput: C,
448
- placeholder: a(w).idCard,
449
- maxlength: a($).idCard,
450
- clearable: ""
451
- }, null, 8, ["modelValue", "placeholder", "maxlength"])
452
- ]),
453
- _: 1
454
- }),
455
- n(a(y), {
456
- label: "性别",
457
- prop: "gender"
458
- }, {
459
- default: i(() => [
460
- n(a(ee), {
461
- modelValue: l.gender,
462
- "onUpdate:modelValue": t[3] || (t[3] = (e) => l.gender = e),
463
- class: "gender-radio-group"
464
- }, {
465
- default: i(() => [
466
- (L(!0), F(de, null, ue(a(ve), (e) => (L(), G(a(ae), {
467
- key: e.value,
468
- value: e.value,
456
+ o(e.Location)
457
+ ]),
458
+ _: 1
459
+ /* STABLE */
460
+ }),
461
+ u(
462
+ "span",
463
+ null,
464
+ N(e.companyInfo.companyName),
465
+ 1
466
+ /* TEXT */
467
+ )
468
+ ])
469
+ ]),
470
+ m(" 表单容器 "),
471
+ u("main", Le, [
472
+ o(e.ElScrollbar, { class: "form-scroll" }, {
473
+ default: i(() => [
474
+ u("div", Se, [
475
+ o(e.ElForm, {
476
+ ref: "formRef",
477
+ model: e.form,
478
+ rules: e.rules,
479
+ "label-position": "left",
480
+ "label-width": "70px",
481
+ class: "member-form"
482
+ }, {
483
+ default: i(() => [
484
+ m(" 姓名 "),
485
+ o(e.ElFormItem, {
486
+ label: "姓名",
487
+ prop: "name"
488
+ }, {
489
+ default: i(() => [
490
+ o(e.ElInput, {
491
+ modelValue: e.form.name,
492
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => e.form.name = n),
493
+ placeholder: e.PLACEHOLDERS.name,
494
+ clearable: ""
495
+ }, null, 8, ["modelValue", "placeholder"])
496
+ ]),
497
+ _: 1
498
+ /* STABLE */
499
+ }),
500
+ m(" 手机号 "),
501
+ o(e.ElFormItem, {
502
+ label: "手机号",
503
+ prop: "phone"
504
+ }, {
505
+ default: i(() => [
506
+ o(e.ElInput, {
507
+ modelValue: e.form.phone,
508
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => e.form.phone = n),
509
+ type: "tel",
510
+ placeholder: e.PLACEHOLDERS.phone,
511
+ maxlength: e.FIELD_LIMITS.phone,
512
+ clearable: ""
513
+ }, null, 8, ["modelValue", "placeholder", "maxlength"])
514
+ ]),
515
+ _: 1
516
+ /* STABLE */
517
+ }),
518
+ m(" 身份证号 "),
519
+ o(e.ElFormItem, {
520
+ label: "身份证号",
521
+ prop: "idCard"
522
+ }, {
523
+ default: i(() => [
524
+ o(e.ElInput, {
525
+ modelValue: e.form.idCard,
526
+ "onUpdate:modelValue": t[2] || (t[2] = (n) => e.form.idCard = n),
527
+ onInput: e.handleIdCardInputEnd,
528
+ placeholder: e.PLACEHOLDERS.idCard,
529
+ maxlength: e.FIELD_LIMITS.idCard,
530
+ clearable: ""
531
+ }, null, 8, ["modelValue", "placeholder", "maxlength"])
532
+ ]),
533
+ _: 1
534
+ /* STABLE */
535
+ }),
536
+ m(" 性别 "),
537
+ o(e.ElFormItem, {
538
+ label: "性别",
539
+ prop: "gender"
540
+ }, {
541
+ default: i(() => [
542
+ o(e.ElRadioGroup, {
543
+ modelValue: e.form.gender,
544
+ "onUpdate:modelValue": t[3] || (t[3] = (n) => e.form.gender = n),
545
+ class: "gender-radio-group"
546
+ }, {
547
+ default: i(() => [
548
+ (S(!0), A(
549
+ ie,
550
+ null,
551
+ de(e.GENDER_OPTIONS, (n) => (S(), j(e.ElRadio, {
552
+ key: n.value,
553
+ value: n.value,
469
554
  border: ""
470
555
  }, {
471
556
  default: i(() => [
472
- N(O(e.label), 1)
557
+ R(
558
+ N(n.label),
559
+ 1
560
+ /* TEXT */
561
+ )
473
562
  ]),
474
563
  _: 2
475
- }, 1032, ["value"]))), 128))
564
+ /* DYNAMIC */
565
+ }, 1032, ["value"]))),
566
+ 128
567
+ /* KEYED_FRAGMENT */
568
+ ))
569
+ ]),
570
+ _: 1
571
+ /* STABLE */
572
+ }, 8, ["modelValue"])
573
+ ]),
574
+ _: 1
575
+ /* STABLE */
576
+ }),
577
+ m(" 年龄 "),
578
+ o(e.ElFormItem, {
579
+ label: "年龄",
580
+ prop: "age"
581
+ }, {
582
+ default: i(() => [
583
+ o(e.ElInput, {
584
+ type: "number",
585
+ modelValue: e.form.age,
586
+ "onUpdate:modelValue": t[4] || (t[4] = (n) => e.form.age = n),
587
+ placeholder: e.PLACEHOLDERS.age,
588
+ maxlength: e.FIELD_LIMITS.age,
589
+ clearable: ""
590
+ }, null, 8, ["modelValue", "placeholder", "maxlength"])
591
+ ]),
592
+ _: 1
593
+ /* STABLE */
594
+ }),
595
+ m(" 地址 "),
596
+ o(e.ElFormItem, {
597
+ label: "地址",
598
+ prop: "address"
599
+ }, {
600
+ default: i(() => [
601
+ o(e.ElInput, {
602
+ modelValue: e.form.address,
603
+ "onUpdate:modelValue": t[5] || (t[5] = (n) => e.form.address = n),
604
+ placeholder: e.PLACEHOLDERS.address,
605
+ clearable: ""
606
+ }, null, 8, ["modelValue", "placeholder"])
607
+ ]),
608
+ _: 1
609
+ /* STABLE */
610
+ }),
611
+ m(" 备注 "),
612
+ o(e.ElFormItem, {
613
+ label: "备注",
614
+ prop: "remark"
615
+ }, {
616
+ default: i(() => [
617
+ o(e.ElInput, {
618
+ modelValue: e.form.remark,
619
+ "onUpdate:modelValue": t[6] || (t[6] = (n) => e.form.remark = n),
620
+ placeholder: e.PLACEHOLDERS.remark,
621
+ clearable: ""
622
+ }, null, 8, ["modelValue", "placeholder"])
623
+ ]),
624
+ _: 1
625
+ /* STABLE */
626
+ }),
627
+ m(" 验证码 "),
628
+ o(e.ElFormItem, {
629
+ label: "验证码",
630
+ prop: "captcha"
631
+ }, {
632
+ default: i(() => [
633
+ u("div", De, [
634
+ o(e.ElInput, {
635
+ modelValue: e.form.captcha,
636
+ "onUpdate:modelValue": t[7] || (t[7] = (n) => e.form.captcha = n),
637
+ placeholder: e.PLACEHOLDERS.captcha,
638
+ maxlength: e.FIELD_LIMITS.captcha,
639
+ clearable: "",
640
+ class: "sms-code-input"
641
+ }, null, 8, ["modelValue", "placeholder", "maxlength"]),
642
+ o(e.ElButton, {
643
+ type: "primary",
644
+ disabled: e.isCountingDown,
645
+ loading: e.loading,
646
+ class: "sms-code-btn",
647
+ onClick: e.sendSmsCode
648
+ }, {
649
+ default: i(() => [
650
+ R(
651
+ N(e.countdownText),
652
+ 1
653
+ /* TEXT */
654
+ )
476
655
  ]),
477
656
  _: 1
478
- }, 8, ["modelValue"])
479
- ]),
480
- _: 1
481
- }),
482
- n(a(y), {
483
- label: "年龄",
484
- prop: "age"
485
- }, {
486
- default: i(() => [
487
- n(a(_), {
488
- type: "number",
489
- modelValue: l.age,
490
- "onUpdate:modelValue": t[4] || (t[4] = (e) => l.age = e),
491
- placeholder: a(w).age,
492
- maxlength: a($).age,
493
- clearable: ""
494
- }, null, 8, ["modelValue", "placeholder", "maxlength"])
495
- ]),
496
- _: 1
497
- }),
498
- n(a(y), {
499
- label: "地址",
500
- prop: "address"
501
- }, {
502
- default: i(() => [
503
- n(a(_), {
504
- modelValue: l.address,
505
- "onUpdate:modelValue": t[5] || (t[5] = (e) => l.address = e),
506
- placeholder: a(w).address,
507
- clearable: ""
508
- }, null, 8, ["modelValue", "placeholder"])
509
- ]),
510
- _: 1
511
- }),
512
- n(a(y), {
513
- label: "备注",
514
- prop: "remark"
515
- }, {
516
- default: i(() => [
517
- n(a(_), {
518
- modelValue: l.remark,
519
- "onUpdate:modelValue": t[6] || (t[6] = (e) => l.remark = e),
520
- placeholder: a(w).remark,
521
- clearable: ""
522
- }, null, 8, ["modelValue", "placeholder"])
523
- ]),
524
- _: 1
525
- }),
526
- n(a(y), {
527
- label: "验证码",
528
- prop: "captcha"
529
- }, {
530
- default: i(() => [
531
- p("div", Ie, [
532
- n(a(_), {
533
- modelValue: l.captcha,
534
- "onUpdate:modelValue": t[7] || (t[7] = (e) => l.captcha = e),
535
- placeholder: a(w).captcha,
536
- maxlength: a($).captcha,
537
- clearable: "",
538
- class: "sms-code-input"
539
- }, null, 8, ["modelValue", "placeholder", "maxlength"]),
540
- n(a(H), {
541
- type: "primary",
542
- disabled: a(c),
543
- loading: f.value,
544
- class: "sms-code-btn",
545
- onClick: a(E)
546
- }, {
547
- default: i(() => [
548
- N(O(a(k)), 1)
549
- ]),
550
- _: 1
551
- }, 8, ["disabled", "loading", "onClick"])
552
- ])
553
- ]),
554
- _: 1
555
- })
556
- ]),
557
- _: 1
558
- }, 8, ["model", "rules"]),
559
- p("div", ke, [
560
- n(a(H), {
561
- type: "primary",
562
- round: "",
563
- class: "submit-btn",
564
- loading: f.value,
565
- onClick: R
566
- }, {
567
- default: i(() => [...t[9] || (t[9] = [
568
- N(" 提交 ", -1)
569
- ])]),
657
+ /* STABLE */
658
+ }, 8, ["disabled", "loading", "onClick"])
659
+ ])
660
+ ]),
570
661
  _: 1
571
- }, 8, ["loading"])
572
- ])
662
+ /* STABLE */
663
+ })
664
+ ]),
665
+ _: 1
666
+ /* STABLE */
667
+ }, 8, ["model", "rules"]),
668
+ m(" 提交按钮 "),
669
+ u("div", Ve, [
670
+ o(e.ElButton, {
671
+ type: "primary",
672
+ round: "",
673
+ class: "submit-btn",
674
+ loading: e.loading,
675
+ onClick: e.handleSubmit
676
+ }, {
677
+ default: i(() => [...t[9] || (t[9] = [
678
+ R(
679
+ " 提交 ",
680
+ -1
681
+ /* CACHED */
682
+ )
683
+ ])]),
684
+ _: 1
685
+ /* STABLE */
686
+ }, 8, ["loading"])
573
687
  ])
574
- ]),
575
- _: 1
576
- })
577
- ])
578
- ]));
579
- }
580
- }), Se = /* @__PURE__ */ Q(Ee, [["__scopeId", "data-v-992af5c2"]]), Le = {
581
- Upload: ye,
582
- MemberRegister: Se
688
+ ])
689
+ ]),
690
+ _: 1
691
+ /* STABLE */
692
+ })
693
+ ])
694
+ ]);
695
+ }
696
+ const Pe = /* @__PURE__ */ Q(Ie, [["render", ke], ["__scopeId", "data-v-1a039403"], ["__file", "C:/workspace/华速/xin/数据配置系统-hs-admin-ui/packages/components/src/components/h5/MemberRegister/MemberRegister.vue"]]), Re = {
697
+ Upload: _e,
698
+ MemberRegister: Pe
583
699
  };
584
- function De(u) {
585
- for (const [k, c] of Object.entries(Le))
586
- u.component(`H${k}`, c);
700
+ function Ue(p) {
701
+ for (const [t, f] of Object.entries(Re))
702
+ p.component(`H${t}`, f);
587
703
  }
588
- function Re(u) {
589
- P.has(u, "_context.directives.loading") || u.directive("loading", me.directive), u.use(De);
704
+ function Ae(p) {
705
+ U.has(p, "_context.directives.loading") || p.directive("loading", ue.directive), p.use(Ue);
590
706
  }
591
707
  export {
592
- Re as useHsAdminUi
708
+ Ae as useHsAdminUi
593
709
  };