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.
- package/dist/h5.mjs +216 -201
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/h5.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { K as
|
|
4
|
-
const
|
|
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(
|
|
42
|
-
const c =
|
|
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
|
-
}),
|
|
49
|
-
|
|
50
|
-
() =>
|
|
54
|
+
}), R = S(() => s.fileList.map((e) => e.url));
|
|
55
|
+
le(
|
|
56
|
+
() => s.fileList.length,
|
|
51
57
|
(e) => {
|
|
52
58
|
setTimeout(() => {
|
|
53
|
-
const
|
|
54
|
-
|
|
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
|
|
62
|
-
return
|
|
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
|
|
67
|
-
if (
|
|
68
|
-
return
|
|
69
|
-
|
|
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
|
|
75
|
-
|
|
80
|
+
function M(e) {
|
|
81
|
+
s.index = s.fileList.findIndex((o) => o.url === e.url), s.preview = !0;
|
|
76
82
|
}
|
|
77
|
-
let
|
|
78
|
-
async function
|
|
79
|
-
|
|
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
|
|
82
|
-
if (e.data &&
|
|
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
|
|
85
|
-
extname:
|
|
86
|
-
id:
|
|
87
|
-
name:
|
|
88
|
-
path:
|
|
89
|
-
url: c.ossUrl +
|
|
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 (
|
|
105
|
+
if (s.loading = !1, !f.length)
|
|
92
106
|
return;
|
|
93
|
-
const
|
|
94
|
-
|
|
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:
|
|
112
|
+
Authorization: U
|
|
99
113
|
},
|
|
100
114
|
data: {
|
|
101
|
-
attach_paths:
|
|
102
|
-
|
|
115
|
+
attach_paths: f,
|
|
116
|
+
...N.pick(w, ["company_id", "user_id"])
|
|
103
117
|
}
|
|
104
118
|
}).then(() => {
|
|
105
|
-
|
|
119
|
+
x.value = !0, l("success", { result: f, file: o, files: v });
|
|
106
120
|
});
|
|
107
121
|
}
|
|
108
|
-
return (e,
|
|
109
|
-
const
|
|
110
|
-
return
|
|
111
|
-
|
|
112
|
-
|
|
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:
|
|
115
|
-
"file-list":
|
|
116
|
-
"onUpdate:fileList":
|
|
117
|
-
"list-type":
|
|
118
|
-
accept:
|
|
119
|
-
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 +
|
|
122
|
-
headers:
|
|
123
|
-
limit:
|
|
124
|
-
multiple:
|
|
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
|
-
|
|
127
|
-
"
|
|
128
|
-
"
|
|
140
|
+
disabled: x.value,
|
|
141
|
+
"on-preview": M,
|
|
142
|
+
"before-upload": B,
|
|
143
|
+
"on-success": t
|
|
129
144
|
}, {
|
|
130
|
-
default:
|
|
131
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
173
|
+
s.preview ? (L(), G(a(J), {
|
|
159
174
|
key: 0,
|
|
160
|
-
"url-list":
|
|
175
|
+
"url-list": R.value,
|
|
161
176
|
"show-progress": "",
|
|
162
|
-
"initial-index":
|
|
163
|
-
onClose:
|
|
164
|
-
}, null, 8, ["url-list", "initial-index"])) :
|
|
165
|
-
|
|
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:
|
|
183
|
+
onClick: r
|
|
169
184
|
}, {
|
|
170
|
-
default:
|
|
171
|
-
|
|
185
|
+
default: i(() => [...o[3] || (o[3] = [
|
|
186
|
+
P("上传", -1)
|
|
172
187
|
])]),
|
|
173
188
|
_: 1
|
|
174
189
|
})
|
|
175
190
|
])), [
|
|
176
|
-
[
|
|
191
|
+
[v, s.loading]
|
|
177
192
|
]);
|
|
178
193
|
};
|
|
179
194
|
}
|
|
180
|
-
}),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
248
|
+
}, $ = {
|
|
234
249
|
phone: 11,
|
|
235
250
|
idCard: 18,
|
|
236
251
|
age: 3,
|
|
237
252
|
captcha: 6
|
|
238
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
253
|
-
const { countdownText:
|
|
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
|
-
}),
|
|
277
|
+
}), d = A({
|
|
263
278
|
topCompanyId: "",
|
|
264
279
|
companyId: "",
|
|
265
280
|
companyName: "",
|
|
266
281
|
defaultMemberType: "",
|
|
267
282
|
discount: 0
|
|
268
|
-
}),
|
|
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
|
-
},
|
|
277
|
-
if (!await
|
|
291
|
+
}, R = async () => {
|
|
292
|
+
if (!await s())
|
|
278
293
|
return;
|
|
279
294
|
g.value = !0;
|
|
280
|
-
const
|
|
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:
|
|
290
|
-
top_company_id:
|
|
291
|
-
company_id:
|
|
292
|
-
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
|
|
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
|
-
},
|
|
324
|
+
}, D = async () => {
|
|
310
325
|
try {
|
|
311
|
-
return (await
|
|
326
|
+
return (await q.get(`${x.proxy}/pub/get_list_vip_price_set?top_company_id=${d.topCompanyId}`)).data;
|
|
312
327
|
} catch {
|
|
313
|
-
|
|
328
|
+
T.error("获取默认会员等级失败");
|
|
314
329
|
}
|
|
315
|
-
},
|
|
316
|
-
const r =
|
|
317
|
-
|
|
318
|
-
const
|
|
319
|
-
|
|
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
|
|
322
|
-
const r = I(0),
|
|
323
|
-
r.value =
|
|
324
|
-
r.value--, r.value <= 0 &&
|
|
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
|
-
},
|
|
327
|
-
|
|
341
|
+
}, U = () => {
|
|
342
|
+
t.value && (clearInterval(t.value), t.value = null), r.value = 0, o.value = !1;
|
|
328
343
|
};
|
|
329
344
|
return {
|
|
330
|
-
countdownText:
|
|
331
|
-
isCountingDown:
|
|
332
|
-
stopCountdown:
|
|
345
|
+
countdownText: v,
|
|
346
|
+
isCountingDown: o,
|
|
347
|
+
stopCountdown: U,
|
|
333
348
|
sendSmsCode: async () => {
|
|
334
|
-
if (
|
|
349
|
+
if (o.value || !m.value)
|
|
335
350
|
return;
|
|
336
351
|
if (!await m.value.validateField("phone")) {
|
|
337
|
-
|
|
352
|
+
T.warning("请先输入正确的手机号");
|
|
338
353
|
return;
|
|
339
354
|
}
|
|
340
355
|
g.value = !0;
|
|
341
356
|
try {
|
|
342
|
-
await
|
|
357
|
+
await q.post(`${x.proxy}/pub/send_sms_vip_valid_code`, {
|
|
343
358
|
telephone: l.phone,
|
|
344
|
-
top_company_id:
|
|
345
|
-
company_id:
|
|
346
|
-
}),
|
|
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
|
|
369
|
+
function C() {
|
|
355
370
|
if (l.idCard.length === 18) {
|
|
356
|
-
const r = l.idCard.substring(6, 14),
|
|
357
|
-
l.age =
|
|
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
|
|
361
|
-
|
|
362
|
-
}),
|
|
363
|
-
|
|
364
|
-
}), (r,
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
default:
|
|
370
|
-
|
|
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
|
-
|
|
389
|
+
p("span", null, O(d.companyName), 1)
|
|
375
390
|
])
|
|
376
391
|
]),
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
default:
|
|
380
|
-
|
|
381
|
-
|
|
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(
|
|
400
|
+
rules: a(be),
|
|
386
401
|
"label-position": "left",
|
|
387
402
|
"label-width": "70px",
|
|
388
403
|
class: "member-form"
|
|
389
404
|
}, {
|
|
390
|
-
default:
|
|
391
|
-
|
|
405
|
+
default: i(() => [
|
|
406
|
+
n(a(h), {
|
|
392
407
|
label: "姓名",
|
|
393
408
|
prop: "name"
|
|
394
409
|
}, {
|
|
395
|
-
default:
|
|
396
|
-
|
|
410
|
+
default: i(() => [
|
|
411
|
+
n(a(b), {
|
|
397
412
|
modelValue: l.name,
|
|
398
|
-
"onUpdate:modelValue":
|
|
399
|
-
placeholder: a(
|
|
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
|
-
|
|
420
|
+
n(a(h), {
|
|
406
421
|
label: "手机号",
|
|
407
422
|
prop: "phone"
|
|
408
423
|
}, {
|
|
409
|
-
default:
|
|
410
|
-
|
|
424
|
+
default: i(() => [
|
|
425
|
+
n(a(b), {
|
|
411
426
|
modelValue: l.phone,
|
|
412
|
-
"onUpdate:modelValue":
|
|
427
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => l.phone = e),
|
|
413
428
|
type: "tel",
|
|
414
|
-
placeholder: a(
|
|
415
|
-
maxlength: a(
|
|
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
|
-
|
|
436
|
+
n(a(h), {
|
|
422
437
|
label: "身份证号",
|
|
423
438
|
prop: "idCard"
|
|
424
439
|
}, {
|
|
425
|
-
default:
|
|
426
|
-
|
|
440
|
+
default: i(() => [
|
|
441
|
+
n(a(b), {
|
|
427
442
|
modelValue: l.idCard,
|
|
428
|
-
"onUpdate:modelValue":
|
|
429
|
-
onInput:
|
|
430
|
-
placeholder: a(
|
|
431
|
-
maxlength: a(
|
|
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
|
-
|
|
452
|
+
n(a(h), {
|
|
438
453
|
label: "性别",
|
|
439
454
|
prop: "gender"
|
|
440
455
|
}, {
|
|
441
|
-
default:
|
|
442
|
-
|
|
456
|
+
default: i(() => [
|
|
457
|
+
n(a(ee), {
|
|
443
458
|
modelValue: l.gender,
|
|
444
|
-
"onUpdate:modelValue":
|
|
459
|
+
"onUpdate:modelValue": t[3] || (t[3] = (e) => l.gender = e),
|
|
445
460
|
class: "gender-radio-group"
|
|
446
461
|
}, {
|
|
447
|
-
default:
|
|
448
|
-
(
|
|
449
|
-
key:
|
|
450
|
-
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:
|
|
454
|
-
|
|
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
|
-
|
|
479
|
+
n(a(h), {
|
|
465
480
|
label: "年龄",
|
|
466
481
|
prop: "age"
|
|
467
482
|
}, {
|
|
468
|
-
default:
|
|
469
|
-
|
|
483
|
+
default: i(() => [
|
|
484
|
+
n(a(b), {
|
|
470
485
|
type: "number",
|
|
471
486
|
modelValue: l.age,
|
|
472
|
-
"onUpdate:modelValue":
|
|
473
|
-
placeholder: a(
|
|
474
|
-
maxlength: a(
|
|
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
|
-
|
|
495
|
+
n(a(h), {
|
|
481
496
|
label: "地址",
|
|
482
497
|
prop: "address"
|
|
483
498
|
}, {
|
|
484
|
-
default:
|
|
485
|
-
|
|
499
|
+
default: i(() => [
|
|
500
|
+
n(a(b), {
|
|
486
501
|
modelValue: l.address,
|
|
487
|
-
"onUpdate:modelValue":
|
|
488
|
-
placeholder: a(
|
|
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
|
-
|
|
509
|
+
n(a(h), {
|
|
495
510
|
label: "备注",
|
|
496
511
|
prop: "remark"
|
|
497
512
|
}, {
|
|
498
|
-
default:
|
|
499
|
-
|
|
513
|
+
default: i(() => [
|
|
514
|
+
n(a(b), {
|
|
500
515
|
modelValue: l.remark,
|
|
501
|
-
"onUpdate:modelValue":
|
|
502
|
-
placeholder: a(
|
|
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
|
-
|
|
523
|
+
n(a(h), {
|
|
509
524
|
label: "验证码",
|
|
510
525
|
prop: "captcha"
|
|
511
526
|
}, {
|
|
512
|
-
default:
|
|
513
|
-
|
|
514
|
-
|
|
527
|
+
default: i(() => [
|
|
528
|
+
p("div", Ie, [
|
|
529
|
+
n(a(b), {
|
|
515
530
|
modelValue: l.captcha,
|
|
516
|
-
"onUpdate:modelValue":
|
|
517
|
-
placeholder: a(
|
|
518
|
-
maxlength: a(
|
|
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
|
-
|
|
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(
|
|
542
|
+
onClick: a(k)
|
|
528
543
|
}, {
|
|
529
|
-
default:
|
|
530
|
-
|
|
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
|
-
|
|
542
|
-
|
|
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:
|
|
562
|
+
onClick: R
|
|
548
563
|
}, {
|
|
549
|
-
default:
|
|
550
|
-
|
|
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
|
-
}),
|
|
563
|
-
Upload:
|
|
564
|
-
MemberRegister:
|
|
577
|
+
}), Se = /* @__PURE__ */ W(ke, [["__scopeId", "data-v-992af5c2"]]), Le = {
|
|
578
|
+
Upload: ye,
|
|
579
|
+
MemberRegister: Se
|
|
565
580
|
};
|
|
566
|
-
function
|
|
567
|
-
for (const [
|
|
568
|
-
|
|
581
|
+
function De(u) {
|
|
582
|
+
for (const [E, c] of Object.entries(Le))
|
|
583
|
+
u.component(`H${E}`, c);
|
|
569
584
|
}
|
|
570
|
-
function
|
|
571
|
-
|
|
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
|
-
|
|
589
|
+
Re as useHsAdminUi
|
|
575
590
|
};
|