hs-admin-ui 17.2.2 → 17.2.4

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.
@@ -1,4 +1,4 @@
1
- import { b7 as ge, dR as i, dS as qi } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-CEIF4C5E.js";
1
+ import { b8 as ge, dS as i, dT as qi } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-Dhl_88yy.js";
2
2
  import { watch as Dt, reactive as wl, nextTick as fe, h as g, defineComponent as Ko, ref as je, inject as Lo, createCommentVNode as lt, onMounted as Jl, onUnmounted as en, provide as Ql, TransitionGroup as Bn, computed as Pe, Teleport as Xi, onActivated as ic, onDeactivated as ac, onBeforeUnmount as cc, resolveComponent as dc } from "vue";
3
3
  function vt(e) {
4
4
  return e && e.enabled !== !1;
@@ -1,17 +1,17 @@
1
- import { aT as r, b1 as u, b2 as l, b3 as m, H as E, aR as c } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-CEIF4C5E.js";
2
- import { W as N, b5 as R, b6 as i, aw as s } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-CEIF4C5E.js";
3
- import "./index-B8U2y1zY.js";
4
- import { p as d } from "./index-BnSUQzIk.js";
1
+ import { aU as r, b2 as u, b3 as l, b4 as m, H as E, aS as c } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-Dhl_88yy.js";
2
+ import { W as N, b6 as i, b7 as s, ax as M } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-Dhl_88yy.js";
3
+ import "./index-PK0nQ_BF.js";
4
+ import { p as d } from "./index-DfoQejeF.js";
5
5
  import "vue";
6
- import { i as T } from "./index-CUgkMch8.js";
7
- function b(a, e) {
6
+ import { i as A } from "./index-Bk4xbWSy.js";
7
+ function _(a, e) {
8
8
  r.value = e == null ? void 0 : e.NEXT_NAME, u.value = e == null ? void 0 : e.IS_DEV, l.value = e == null ? void 0 : e.currentRoute, m.value = e == null ? void 0 : e.currentRouter, E.has(a, "_context.directives.loading") || a.directive("loading", c.directive), a.use(d);
9
9
  }
10
10
  export {
11
11
  N as ElMessage,
12
- R as ElMessageBox,
13
- i as ElNotification,
14
- T as Utils,
15
- s as mathTool,
16
- b as useHsAdminUi
12
+ i as ElMessageBox,
13
+ s as ElNotification,
14
+ A as Utils,
15
+ M as mathTool,
16
+ _ as useHsAdminUi
17
17
  };
package/dist/h5.mjs CHANGED
@@ -1,6 +1,6 @@
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";
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-PK0nQ_BF.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-Dhl_88yy.js";
4
4
  const fe = {
5
5
  class: "upload-wrapper",
6
6
  "element-loading-text": "上传中..."
@@ -41,11 +41,11 @@ const fe = {
41
41
  }
42
42
  },
43
43
  emits: ["success"],
44
- setup(u, { emit: E }) {
45
- const c = u, x = Y(), k = S(() => x.limit || c.limit), m = S(() => {
44
+ setup(u, { emit: k }) {
45
+ const c = u, x = Y(), E = S(() => x.limit || c.limit), m = S(() => {
46
46
  var e;
47
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({
48
+ }), f = S(() => P.pick(x, ["company_id"])), g = I(!1), l = k, d = te(), s = A({
49
49
  loading: !1,
50
50
  preview: !1,
51
51
  index: 0,
@@ -57,7 +57,7 @@ const fe = {
57
57
  (e) => {
58
58
  setTimeout(() => {
59
59
  const o = document.querySelector(".upload-wrapper .el-upload--picture-card");
60
- o && (o.style.display = e >= k.value && e > 0 ? "none" : "inline-flex");
60
+ o && (o.style.display = e >= E.value && e > 0 ? "none" : "inline-flex");
61
61
  }, 100);
62
62
  },
63
63
  {
@@ -65,12 +65,12 @@ const fe = {
65
65
  }
66
66
  );
67
67
  function D() {
68
- return H({
68
+ return j({
69
69
  url: `${window.location.origin}/${m.value}/sys/get_pub_token`
70
70
  }).then((e) => `Bearer ${e == null ? void 0 : e.data}`);
71
71
  }
72
72
  async function B() {
73
- if (N.isEmpty(c.headers))
73
+ if (P.isEmpty(c.headers))
74
74
  return D().then((e) => {
75
75
  s.headers = {
76
76
  Authorization: e
@@ -82,7 +82,7 @@ const fe = {
82
82
  }
83
83
  let C = [];
84
84
  async function r() {
85
- if (!v.value) {
85
+ if (!g.value) {
86
86
  if (!s.fileList.length)
87
87
  return T.warning("请上传图片");
88
88
  K.confirm("图片上传成功后页面会禁用,是否确定上传图片?", "提示", {
@@ -97,49 +97,49 @@ const fe = {
97
97
  async function t(e, o, b) {
98
98
  if (e.data && C.push(...e.data), C.length < s.fileList.length)
99
99
  return;
100
- const g = C.map((V) => ({
100
+ const h = C.map((V) => ({
101
101
  extname: V.suffix.replace(".", ""),
102
102
  id: V.id,
103
103
  name: V.name,
104
104
  path: V.path,
105
105
  url: c.ossUrl + V.path
106
106
  }));
107
- if (s.loading = !1, !g.length)
107
+ if (s.loading = !1, !h.length)
108
108
  return;
109
109
  const U = await D();
110
- H({
110
+ j({
111
111
  url: `${window.location.origin}/${m.value}/pub_token/mobile_attach_push`,
112
112
  method: "post",
113
113
  headers: {
114
114
  Authorization: U
115
115
  },
116
116
  data: {
117
- attach_paths: g,
118
- ...N.pick(x, ["company_id", "user_id"])
117
+ attach_paths: h,
118
+ ...P.pick(x, ["company_id", "user_id"])
119
119
  }
120
120
  }).then(() => {
121
- v.value = !0, l("success", { result: g, file: o, files: b });
121
+ g.value = !0, l("success", { result: h, file: o, files: b });
122
122
  });
123
123
  }
124
124
  return (e, o) => {
125
125
  const b = ne("loading");
126
126
  return oe((L(), F("div", fe, [
127
127
  p("div", ge, [
128
- n(a(X), {
128
+ n(a(W), {
129
129
  ref_key: "uploadRef",
130
130
  ref: d,
131
131
  "file-list": s.fileList,
132
- "onUpdate:fileList": o[0] || (o[0] = (g) => s.fileList = g),
132
+ "onUpdate:fileList": o[0] || (o[0] = (h) => s.fileList = h),
133
133
  "list-type": u.listType,
134
134
  accept: u.accept,
135
135
  name: u.name,
136
136
  data: f.value,
137
137
  action: m.value + u.action,
138
138
  headers: s.headers,
139
- limit: k.value,
140
- multiple: k.value > 1,
139
+ limit: E.value,
140
+ multiple: E.value > 1,
141
141
  "auto-upload": !1,
142
- disabled: v.value,
142
+ disabled: g.value,
143
143
  "on-preview": M,
144
144
  "before-upload": B,
145
145
  "on-success": t
@@ -172,32 +172,33 @@ const fe = {
172
172
  _: 1
173
173
  }, 8, ["file-list", "list-type", "accept", "name", "data", "action", "headers", "limit", "multiple", "disabled"])
174
174
  ]),
175
- s.preview ? (L(), G(a(J), {
175
+ s.preview ? (L(), G(a(X), {
176
176
  key: 0,
177
177
  "url-list": R.value,
178
178
  "show-progress": "",
179
179
  "initial-index": s.index,
180
- onClose: o[1] || (o[1] = (g) => s.preview = !1)
180
+ onClose: o[1] || (o[1] = (h) => s.preview = !1)
181
181
  }, null, 8, ["url-list", "initial-index"])) : re("", !0),
182
- n(a(j), {
182
+ n(a(H), {
183
+ disabled: g.value,
183
184
  size: "large",
184
185
  type: "primary",
185
186
  onClick: r
186
187
  }, {
187
188
  default: i(() => [...o[3] || (o[3] = [
188
- P("上传", -1)
189
+ N("上传", -1)
189
190
  ])]),
190
191
  _: 1
191
- })
192
+ }, 8, ["disabled"])
192
193
  ])), [
193
194
  [b, s.loading]
194
195
  ]);
195
196
  };
196
197
  }
197
- }), ye = /* @__PURE__ */ W(he, [["__scopeId", "data-v-afb445b6"]]), ve = [
198
+ }), ye = /* @__PURE__ */ Q(he, [["__scopeId", "data-v-096fc7c1"]]), ve = [
198
199
  { label: "男", value: "男" },
199
200
  { label: "女", value: "女" }
200
- ], y = {
201
+ ], v = {
201
202
  name: {
202
203
  required: !0,
203
204
  message: "请输入姓名",
@@ -253,12 +254,12 @@ const fe = {
253
254
  age: 3,
254
255
  captcha: 6
255
256
  }, be = {
256
- name: [y.name, y.nameLength],
257
- phone: [y.phone, y.phonePattern],
258
- idCard: [y.idCardPattern],
259
- age: [y.agePattern],
260
- captcha: [y.captcha, y.captchaLength]
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({
257
+ name: [v.name, v.nameLength],
258
+ phone: [v.phone, v.phonePattern],
259
+ idCard: [v.idCardPattern],
260
+ age: [v.agePattern],
261
+ 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({
262
263
  __name: "MemberRegister",
263
264
  props: {
264
265
  proxy: {
@@ -267,7 +268,7 @@ const fe = {
267
268
  }
268
269
  },
269
270
  setup(u) {
270
- const { countdownText: E, isCountingDown: c, stopCountdown: x, sendSmsCode: k } = M(), m = I(), f = I(!1), v = u, l = A({
271
+ const { countdownText: k, isCountingDown: c, stopCountdown: x, sendSmsCode: E } = M(), m = I(), f = I(!1), g = u, l = A({
271
272
  name: "",
272
273
  gender: "男",
273
274
  phone: "",
@@ -309,7 +310,7 @@ const fe = {
309
310
  discount: d.discount
310
311
  };
311
312
  try {
312
- await q.post(`${v.proxy}/pub/add_vip_info`, t), K.alert("注册成功!", "提示", {
313
+ await q.post(`${g.proxy}/pub/add_vip_info`, t), K.alert("注册成功!", "提示", {
313
314
  closeOnClickModal: !1,
314
315
  // 禁止点击遮罩关闭
315
316
  closeOnPressEscape: !1,
@@ -325,7 +326,7 @@ const fe = {
325
326
  }
326
327
  }, D = async () => {
327
328
  try {
328
- return (await q.get(`${v.proxy}/pub/get_list_vip_price_set?top_company_id=${d.topCompanyId}`)).data;
329
+ return (await q.get(`${g.proxy}/pub/get_list_vip_price_set?top_company_id=${d.topCompanyId}`)).data;
329
330
  } catch {
330
331
  T.error("获取默认会员等级失败");
331
332
  }
@@ -336,7 +337,7 @@ const fe = {
336
337
  d.defaultMemberType = (t == null ? void 0 : t.id) || "", d.discount = (t == null ? void 0 : t.discount) || 0;
337
338
  };
338
339
  function M() {
339
- const r = I(0), t = I(null), e = 60, o = I(!1), b = S(() => r.value > 0 ? `${r.value}秒后重新发送` : "获取验证码"), g = () => {
340
+ const r = I(0), t = I(null), e = 60, o = I(!1), b = S(() => r.value > 0 ? `${r.value}秒后重新发送` : "获取验证码"), h = () => {
340
341
  r.value = e, o.value = !0, t.value = setInterval(() => {
341
342
  r.value--, r.value <= 0 && U();
342
343
  }, 1e3);
@@ -356,11 +357,11 @@ const fe = {
356
357
  }
357
358
  f.value = !0;
358
359
  try {
359
- await q.post(`${v.proxy}/pub/send_sms_vip_valid_code`, {
360
+ await q.post(`${g.proxy}/pub/send_sms_vip_valid_code`, {
360
361
  telephone: l.phone,
361
362
  top_company_id: d.topCompanyId,
362
363
  company_id: d.companyId
363
- }), T.success("验证码发送成功"), g();
364
+ }), T.success("验证码发送成功"), h();
364
365
  } catch {
365
366
  } finally {
366
367
  f.value = !1;
@@ -392,7 +393,7 @@ const fe = {
392
393
  ])
393
394
  ]),
394
395
  p("main", Ce, [
395
- n(a(Q), { class: "form-scroll" }, {
396
+ n(a(J), { class: "form-scroll" }, {
396
397
  default: i(() => [
397
398
  p("div", Ve, [
398
399
  n(a(Z), {
@@ -405,7 +406,7 @@ const fe = {
405
406
  class: "member-form"
406
407
  }, {
407
408
  default: i(() => [
408
- n(a(h), {
409
+ n(a(y), {
409
410
  label: "姓名",
410
411
  prop: "name"
411
412
  }, {
@@ -419,7 +420,7 @@ const fe = {
419
420
  ]),
420
421
  _: 1
421
422
  }),
422
- n(a(h), {
423
+ n(a(y), {
423
424
  label: "手机号",
424
425
  prop: "phone"
425
426
  }, {
@@ -435,7 +436,7 @@ const fe = {
435
436
  ]),
436
437
  _: 1
437
438
  }),
438
- n(a(h), {
439
+ n(a(y), {
439
440
  label: "身份证号",
440
441
  prop: "idCard"
441
442
  }, {
@@ -451,7 +452,7 @@ const fe = {
451
452
  ]),
452
453
  _: 1
453
454
  }),
454
- n(a(h), {
455
+ n(a(y), {
455
456
  label: "性别",
456
457
  prop: "gender"
457
458
  }, {
@@ -468,7 +469,7 @@ const fe = {
468
469
  border: ""
469
470
  }, {
470
471
  default: i(() => [
471
- P(O(e.label), 1)
472
+ N(O(e.label), 1)
472
473
  ]),
473
474
  _: 2
474
475
  }, 1032, ["value"]))), 128))
@@ -478,7 +479,7 @@ const fe = {
478
479
  ]),
479
480
  _: 1
480
481
  }),
481
- n(a(h), {
482
+ n(a(y), {
482
483
  label: "年龄",
483
484
  prop: "age"
484
485
  }, {
@@ -494,7 +495,7 @@ const fe = {
494
495
  ]),
495
496
  _: 1
496
497
  }),
497
- n(a(h), {
498
+ n(a(y), {
498
499
  label: "地址",
499
500
  prop: "address"
500
501
  }, {
@@ -508,7 +509,7 @@ const fe = {
508
509
  ]),
509
510
  _: 1
510
511
  }),
511
- n(a(h), {
512
+ n(a(y), {
512
513
  label: "备注",
513
514
  prop: "remark"
514
515
  }, {
@@ -522,7 +523,7 @@ const fe = {
522
523
  ]),
523
524
  _: 1
524
525
  }),
525
- n(a(h), {
526
+ n(a(y), {
526
527
  label: "验证码",
527
528
  prop: "captcha"
528
529
  }, {
@@ -536,15 +537,15 @@ const fe = {
536
537
  clearable: "",
537
538
  class: "sms-code-input"
538
539
  }, null, 8, ["modelValue", "placeholder", "maxlength"]),
539
- n(a(j), {
540
+ n(a(H), {
540
541
  type: "primary",
541
542
  disabled: a(c),
542
543
  loading: f.value,
543
544
  class: "sms-code-btn",
544
- onClick: a(k)
545
+ onClick: a(E)
545
546
  }, {
546
547
  default: i(() => [
547
- P(O(a(E)), 1)
548
+ N(O(a(k)), 1)
548
549
  ]),
549
550
  _: 1
550
551
  }, 8, ["disabled", "loading", "onClick"])
@@ -555,8 +556,8 @@ const fe = {
555
556
  ]),
556
557
  _: 1
557
558
  }, 8, ["model", "rules"]),
558
- p("div", Ee, [
559
- n(a(j), {
559
+ p("div", ke, [
560
+ n(a(H), {
560
561
  type: "primary",
561
562
  round: "",
562
563
  class: "submit-btn",
@@ -564,7 +565,7 @@ const fe = {
564
565
  onClick: R
565
566
  }, {
566
567
  default: i(() => [...t[9] || (t[9] = [
567
- P(" 提交 ", -1)
568
+ N(" 提交 ", -1)
568
569
  ])]),
569
570
  _: 1
570
571
  }, 8, ["loading"])
@@ -576,16 +577,16 @@ const fe = {
576
577
  ])
577
578
  ]));
578
579
  }
579
- }), Se = /* @__PURE__ */ W(ke, [["__scopeId", "data-v-992af5c2"]]), Le = {
580
+ }), Se = /* @__PURE__ */ Q(Ee, [["__scopeId", "data-v-992af5c2"]]), Le = {
580
581
  Upload: ye,
581
582
  MemberRegister: Se
582
583
  };
583
584
  function De(u) {
584
- for (const [E, c] of Object.entries(Le))
585
- u.component(`H${E}`, c);
585
+ for (const [k, c] of Object.entries(Le))
586
+ u.component(`H${k}`, c);
586
587
  }
587
588
  function Re(u) {
588
- N.has(u, "_context.directives.loading") || u.directive("loading", me.directive), u.use(De);
589
+ P.has(u, "_context.directives.loading") || u.directive("loading", me.directive), u.use(De);
589
590
  }
590
591
  export {
591
592
  Re as useHsAdminUi