hs-admin-ui 17.2.2 → 17.2.3

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,4 +1,4 @@
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";
1
+ import { j as X, b as J, i as Q, E as Z, a as y, h as ee, f as ae } from "./index-B8U2y1zY.js";
2
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
3
  import { K as Y, H as N, b9 as j, S as T, aj as K, M as H, a3 as W, E as pe, bf as ce, aP as _, bg as q, aR as me } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-CEIF4C5E.js";
4
4
  const fe = {
@@ -45,7 +45,7 @@ const fe = {
45
45
  const c = u, x = Y(), k = 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(() => N.pick(x, ["company_id"])), g = I(!1), l = E, d = te(), s = A({
49
49
  loading: !1,
50
50
  preview: !1,
51
51
  index: 0,
@@ -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,14 +97,14 @@ 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
110
  H({
@@ -114,11 +114,11 @@ const fe = {
114
114
  Authorization: U
115
115
  },
116
116
  data: {
117
- attach_paths: g,
117
+ attach_paths: h,
118
118
  ...N.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) => {
@@ -129,7 +129,7 @@ const fe = {
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,
@@ -139,7 +139,7 @@ const fe = {
139
139
  limit: k.value,
140
140
  multiple: k.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
@@ -177,9 +177,10 @@ const fe = {
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
182
  n(a(j), {
183
+ disabled: g.value,
183
184
  size: "large",
184
185
  type: "primary",
185
186
  onClick: r
@@ -188,16 +189,16 @@ const fe = {
188
189
  P("上传", -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__ */ W(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,11 +254,11 @@ 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]
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]
261
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" }, Ee = { class: "submit-area" }, ke = /* @__PURE__ */ z({
262
263
  __name: "MemberRegister",
263
264
  props: {
@@ -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: E, isCountingDown: c, stopCountdown: x, sendSmsCode: k } = 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;
@@ -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
  }, {
@@ -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
  }, {