hs-admin-ui 17.1.7 → 17.1.9
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/{bcIcon-aEXZgEu5.js → bcIcon-CxnRT-My.js} +1 -1
- package/dist/{bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-DYfKrCjl.js → bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-hn7VbZYW.js} +6441 -6457
- package/dist/{components-LGf9TBTb.js → components-CbhIjmjo.js} +1 -1
- package/dist/element-plus-ui.mjs +5 -5
- package/dist/h5.mjs +266 -220
- package/dist/{index-xm49UXmE.js → index--fQX542M.js} +1 -1
- package/dist/{index-DDOAJ8Vh.js → index-CaEp_m5b.js} +7 -7
- package/dist/{index-D2baj7TP.js → index-DYKpZSxQ.js} +1 -1
- package/dist/{index-juXuFyDo.js → index-DbPr0xld.js} +2 -2
- package/dist/index.mjs +6 -6
- package/dist/{setting-CKCc_8zN.js → setting-8ZiesJf4.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{table-ByPYYrg6.js → table-_Gu_oDHm.js} +2 -2
- package/dist/types/index.d.ts +1 -2
- package/dist/types/src/components/business/bcForm/baseForm.vue.d.ts +2 -2
- package/dist/types/src/components/business/bcForm/useGuide.d.ts +6 -6
- package/dist/types/src/components/business/bcIcon/bcIcon.vue.d.ts +1 -1
- package/dist/types/src/components/business/bcTable/components/query/drag.vue.d.ts +2 -2
- package/dist/types/src/components/business/bcTable/components/query/query.vue.d.ts +2 -2
- package/dist/types/src/components/h5/Upload/Upload.vue.d.ts +37 -0
- package/dist/vxe-table-ui.mjs +4 -4
- package/package.json +1 -1
package/dist/h5.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import {
|
|
4
|
-
const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" }, fe = /* @__PURE__ */
|
|
1
|
+
import { h as K, g as W, E as X, a as h, f as J, d as Q } from "./index--fQX542M.js";
|
|
2
|
+
import { defineComponent as j, computed as E, shallowRef as Z, reactive as q, watch as ee, resolveComponent as ae, resolveDirective as te, withDirectives as le, createElementBlock as A, openBlock as S, createElementVNode as d, createBlock as z, createCommentVNode as ne, createVNode as o, unref as t, withCtx as s, createTextVNode as $, ref as k, onMounted as oe, onUnmounted as re, toDisplayString as M, Fragment as se, renderList as ie } from "vue";
|
|
3
|
+
import { K as G, H as D, b9 as F, M as H, 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-hn7VbZYW.js";
|
|
4
|
+
const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" }, fe = /* @__PURE__ */ j({
|
|
5
5
|
__name: "Upload",
|
|
6
6
|
props: {
|
|
7
7
|
action: {
|
|
@@ -10,85 +10,131 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
|
|
|
10
10
|
},
|
|
11
11
|
proxy: {
|
|
12
12
|
type: String,
|
|
13
|
-
|
|
13
|
+
default: ""
|
|
14
14
|
},
|
|
15
15
|
headers: {
|
|
16
16
|
type: Object,
|
|
17
17
|
default: () => ({})
|
|
18
18
|
},
|
|
19
|
+
name: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "files"
|
|
22
|
+
},
|
|
23
|
+
accept: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "image/*"
|
|
26
|
+
},
|
|
27
|
+
listType: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "picture-card"
|
|
30
|
+
},
|
|
19
31
|
limit: {
|
|
20
32
|
type: Number,
|
|
21
|
-
default:
|
|
33
|
+
default: 1
|
|
34
|
+
},
|
|
35
|
+
ossUrl: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: "https://oss-cn-beijing.hserp.cn"
|
|
22
38
|
}
|
|
23
39
|
},
|
|
24
40
|
emits: ["success"],
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
41
|
+
setup(i, { emit: x }) {
|
|
42
|
+
const p = i, _ = G(), V = E(() => _.limit || p.limit), c = E(() => _.proxy.replace("/", "") || p.proxy.replace("/", "")), g = E(() => D.pick(_, ["company_id"])), I = x, l = Z(), n = q({
|
|
27
43
|
loading: !1,
|
|
28
44
|
preview: !1,
|
|
29
45
|
index: 0,
|
|
30
|
-
headers:
|
|
46
|
+
headers: p.headers,
|
|
31
47
|
fileList: []
|
|
32
|
-
}),
|
|
33
|
-
|
|
34
|
-
() =>
|
|
35
|
-
(
|
|
48
|
+
}), P = E(() => n.fileList.map((e) => e.url));
|
|
49
|
+
ee(
|
|
50
|
+
() => n.fileList.length,
|
|
51
|
+
(e) => {
|
|
36
52
|
setTimeout(() => {
|
|
37
|
-
const
|
|
38
|
-
|
|
53
|
+
const a = document.querySelector(".upload-wrapper .el-upload--picture-card");
|
|
54
|
+
a && (a.style.display = e >= V.value && e > 0 ? "none" : "inline-flex");
|
|
39
55
|
}, 100);
|
|
40
56
|
},
|
|
41
57
|
{
|
|
42
58
|
immediate: !0
|
|
43
59
|
}
|
|
44
60
|
);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
61
|
+
function L() {
|
|
62
|
+
return H({
|
|
63
|
+
url: `${window.location.origin}/${c.value}/sys/get_pub_token`
|
|
64
|
+
}).then((e) => `Bearer ${e == null ? void 0 : e.data}`);
|
|
65
|
+
}
|
|
66
|
+
async function N() {
|
|
67
|
+
if (D.isEmpty(p.headers))
|
|
68
|
+
return L().then((e) => {
|
|
69
|
+
n.headers = {
|
|
70
|
+
Authorization: e
|
|
52
71
|
};
|
|
53
72
|
});
|
|
54
73
|
}
|
|
55
|
-
function
|
|
56
|
-
|
|
74
|
+
function R(e) {
|
|
75
|
+
n.index = n.fileList.findIndex((a) => a.url === e.url), n.preview = !0;
|
|
57
76
|
}
|
|
58
|
-
|
|
59
|
-
|
|
77
|
+
let w = [];
|
|
78
|
+
async function T() {
|
|
79
|
+
n.loading = !0, w = [], l.value.submit();
|
|
60
80
|
}
|
|
61
|
-
function
|
|
62
|
-
|
|
81
|
+
async function r(e, a, u) {
|
|
82
|
+
if (e.data && w.push(...e.data), w.length < n.fileList.length)
|
|
83
|
+
return;
|
|
84
|
+
const m = w.map((f) => ({
|
|
85
|
+
extname: f.suffix.replace(".", ""),
|
|
86
|
+
id: f.id,
|
|
87
|
+
name: f.name,
|
|
88
|
+
path: f.path,
|
|
89
|
+
url: p.ossUrl + f.path
|
|
90
|
+
}));
|
|
91
|
+
if (n.loading = !1, !m.length)
|
|
92
|
+
return;
|
|
93
|
+
const C = await L();
|
|
94
|
+
H({
|
|
95
|
+
url: `${window.location.origin}/${c.value}/pub_token/mobile_attach_push`,
|
|
96
|
+
method: "post",
|
|
97
|
+
headers: {
|
|
98
|
+
Authorization: C
|
|
99
|
+
},
|
|
100
|
+
data: {
|
|
101
|
+
attach_paths: m,
|
|
102
|
+
...D.pick(_, ["company_id", "user_id"])
|
|
103
|
+
}
|
|
104
|
+
}).then(() => {
|
|
105
|
+
n.fileList = [], I("success", { result: m, file: a, files: u });
|
|
106
|
+
});
|
|
63
107
|
}
|
|
64
|
-
return (
|
|
65
|
-
const
|
|
66
|
-
return
|
|
67
|
-
|
|
68
|
-
|
|
108
|
+
return (e, a) => {
|
|
109
|
+
const u = ae("el-image-viewer"), m = te("loading");
|
|
110
|
+
return le((S(), A("div", me, [
|
|
111
|
+
d("div", ge, [
|
|
112
|
+
o(t(K), {
|
|
69
113
|
ref_key: "uploadRef",
|
|
70
|
-
ref:
|
|
71
|
-
"file-list":
|
|
72
|
-
"onUpdate:fileList":
|
|
73
|
-
"list-type":
|
|
74
|
-
accept:
|
|
75
|
-
name:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
114
|
+
ref: l,
|
|
115
|
+
"file-list": n.fileList,
|
|
116
|
+
"onUpdate:fileList": a[0] || (a[0] = (C) => n.fileList = C),
|
|
117
|
+
"list-type": i.listType,
|
|
118
|
+
accept: i.accept,
|
|
119
|
+
name: i.name,
|
|
120
|
+
data: g.value,
|
|
121
|
+
action: c.value + i.action,
|
|
122
|
+
headers: n.headers,
|
|
123
|
+
limit: V.value,
|
|
124
|
+
multiple: V.value > 1,
|
|
79
125
|
"auto-upload": !1,
|
|
80
|
-
"on-preview":
|
|
81
|
-
"before-upload":
|
|
82
|
-
"on-success":
|
|
126
|
+
"on-preview": R,
|
|
127
|
+
"before-upload": N,
|
|
128
|
+
"on-success": r
|
|
83
129
|
}, {
|
|
84
|
-
default:
|
|
85
|
-
|
|
130
|
+
default: s(() => [...a[2] || (a[2] = [
|
|
131
|
+
d("svg", {
|
|
86
132
|
width: "34",
|
|
87
133
|
height: "34",
|
|
88
134
|
viewBox: "0 0 100 100",
|
|
89
135
|
xmlns: "http://www.w3.org/2000/svg"
|
|
90
136
|
}, [
|
|
91
|
-
|
|
137
|
+
d("rect", {
|
|
92
138
|
x: "45",
|
|
93
139
|
y: "20",
|
|
94
140
|
width: "10",
|
|
@@ -96,7 +142,7 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
|
|
|
96
142
|
rx: "2",
|
|
97
143
|
fill: "#1677ff"
|
|
98
144
|
}),
|
|
99
|
-
|
|
145
|
+
d("rect", {
|
|
100
146
|
x: "20",
|
|
101
147
|
y: "45",
|
|
102
148
|
width: "60",
|
|
@@ -107,34 +153,34 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
|
|
|
107
153
|
], -1)
|
|
108
154
|
])]),
|
|
109
155
|
_: 1
|
|
110
|
-
}, 8, ["file-list", "action", "headers", "limit"])
|
|
156
|
+
}, 8, ["file-list", "list-type", "accept", "name", "data", "action", "headers", "limit", "multiple"])
|
|
111
157
|
]),
|
|
112
|
-
|
|
158
|
+
n.preview ? (S(), z(u, {
|
|
113
159
|
key: 0,
|
|
114
|
-
"url-list":
|
|
160
|
+
"url-list": P.value,
|
|
115
161
|
"show-progress": "",
|
|
116
|
-
"initial-index":
|
|
117
|
-
onClose:
|
|
118
|
-
}, null, 8, ["url-list", "initial-index"])) :
|
|
119
|
-
|
|
162
|
+
"initial-index": n.index,
|
|
163
|
+
onClose: a[1] || (a[1] = (C) => n.preview = !1)
|
|
164
|
+
}, null, 8, ["url-list", "initial-index"])) : ne("", !0),
|
|
165
|
+
o(t(F), {
|
|
120
166
|
size: "large",
|
|
121
167
|
type: "primary",
|
|
122
|
-
onClick:
|
|
168
|
+
onClick: T
|
|
123
169
|
}, {
|
|
124
|
-
default:
|
|
125
|
-
|
|
170
|
+
default: s(() => [...a[3] || (a[3] = [
|
|
171
|
+
$("上传", -1)
|
|
126
172
|
])]),
|
|
127
173
|
_: 1
|
|
128
174
|
})
|
|
129
175
|
])), [
|
|
130
|
-
[
|
|
176
|
+
[m, n.loading]
|
|
131
177
|
]);
|
|
132
178
|
};
|
|
133
179
|
}
|
|
134
|
-
}), he = /* @__PURE__ */
|
|
180
|
+
}), he = /* @__PURE__ */ Y(fe, [["__scopeId", "data-v-d2e8fc94"]]), ye = [
|
|
135
181
|
{ label: "男", value: "男" },
|
|
136
182
|
{ label: "女", value: "女" }
|
|
137
|
-
],
|
|
183
|
+
], y = {
|
|
138
184
|
name: {
|
|
139
185
|
required: !0,
|
|
140
186
|
message: "请输入姓名",
|
|
@@ -176,7 +222,7 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
|
|
|
176
222
|
message: "验证码为6位",
|
|
177
223
|
trigger: "blur"
|
|
178
224
|
}
|
|
179
|
-
},
|
|
225
|
+
}, b = {
|
|
180
226
|
name: "请输入姓名",
|
|
181
227
|
phone: "请输入手机号",
|
|
182
228
|
idCard: "请输入身份证号",
|
|
@@ -184,18 +230,18 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
|
|
|
184
230
|
address: "请输入地址",
|
|
185
231
|
remark: "请输入备注",
|
|
186
232
|
captcha: "请输入验证码"
|
|
187
|
-
},
|
|
233
|
+
}, U = {
|
|
188
234
|
phone: 11,
|
|
189
235
|
idCard: 18,
|
|
190
236
|
age: 3,
|
|
191
237
|
captcha: 6
|
|
192
|
-
},
|
|
193
|
-
name: [
|
|
194
|
-
phone: [
|
|
195
|
-
idCard: [
|
|
196
|
-
age: [
|
|
197
|
-
captcha: [
|
|
198
|
-
}, 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" },
|
|
238
|
+
}, ve = {
|
|
239
|
+
name: [y.name, y.nameLength],
|
|
240
|
+
phone: [y.phone, y.phonePattern],
|
|
241
|
+
idCard: [y.idCardPattern],
|
|
242
|
+
age: [y.agePattern],
|
|
243
|
+
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" }, ke = /* @__PURE__ */ j({
|
|
199
245
|
__name: "MemberRegister",
|
|
200
246
|
props: {
|
|
201
247
|
proxy: {
|
|
@@ -203,8 +249,8 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
|
|
|
203
249
|
required: !1
|
|
204
250
|
}
|
|
205
251
|
},
|
|
206
|
-
setup(
|
|
207
|
-
const { countdownText:
|
|
252
|
+
setup(i) {
|
|
253
|
+
const { countdownText: x, isCountingDown: p, stopCountdown: _, sendSmsCode: V } = w(), c = k(), g = k(!1), I = i, l = q({
|
|
208
254
|
name: "",
|
|
209
255
|
gender: "男",
|
|
210
256
|
phone: "",
|
|
@@ -213,40 +259,40 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
|
|
|
213
259
|
address: "",
|
|
214
260
|
remark: "",
|
|
215
261
|
captcha: ""
|
|
216
|
-
}),
|
|
262
|
+
}), n = q({
|
|
217
263
|
topCompanyId: "",
|
|
218
264
|
companyId: "",
|
|
219
265
|
companyName: "",
|
|
220
266
|
defaultMemberType: "",
|
|
221
267
|
discount: 0
|
|
222
|
-
}),
|
|
223
|
-
if (!
|
|
268
|
+
}), P = async () => {
|
|
269
|
+
if (!c.value)
|
|
224
270
|
return !1;
|
|
225
271
|
try {
|
|
226
|
-
return await
|
|
272
|
+
return await c.value.validate();
|
|
227
273
|
} catch {
|
|
228
274
|
return !1;
|
|
229
275
|
}
|
|
230
|
-
},
|
|
231
|
-
if (!await
|
|
276
|
+
}, L = async () => {
|
|
277
|
+
if (!await P())
|
|
232
278
|
return;
|
|
233
279
|
g.value = !0;
|
|
234
|
-
const
|
|
235
|
-
vip_name:
|
|
236
|
-
sex:
|
|
237
|
-
telephone:
|
|
238
|
-
identity_card:
|
|
239
|
-
age:
|
|
240
|
-
address:
|
|
241
|
-
remark:
|
|
242
|
-
valid_code:
|
|
243
|
-
vip_type:
|
|
244
|
-
top_company_id:
|
|
245
|
-
company_id:
|
|
246
|
-
discount:
|
|
280
|
+
const e = {
|
|
281
|
+
vip_name: l.name,
|
|
282
|
+
sex: l.gender,
|
|
283
|
+
telephone: l.phone,
|
|
284
|
+
identity_card: l.idCard,
|
|
285
|
+
age: l.age,
|
|
286
|
+
address: l.address,
|
|
287
|
+
remark: l.remark,
|
|
288
|
+
valid_code: l.captcha,
|
|
289
|
+
vip_type: n.defaultMemberType,
|
|
290
|
+
top_company_id: n.topCompanyId,
|
|
291
|
+
company_id: n.companyId,
|
|
292
|
+
discount: n.discount
|
|
247
293
|
};
|
|
248
294
|
try {
|
|
249
|
-
await
|
|
295
|
+
await O.post(`${I.proxy}/pub/add_vip_info`, e), pe.alert("注册成功!", "提示", {
|
|
250
296
|
closeOnClickModal: !1,
|
|
251
297
|
// 禁止点击遮罩关闭
|
|
252
298
|
closeOnPressEscape: !1,
|
|
@@ -260,44 +306,44 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
|
|
|
260
306
|
} finally {
|
|
261
307
|
g.value = !1;
|
|
262
308
|
}
|
|
263
|
-
},
|
|
309
|
+
}, N = async () => {
|
|
264
310
|
try {
|
|
265
|
-
return (await
|
|
311
|
+
return (await O.get(`${I.proxy}/pub/get_list_vip_price_set?top_company_id=${n.topCompanyId}`)).data;
|
|
266
312
|
} catch {
|
|
267
|
-
|
|
313
|
+
B.error("获取默认会员等级失败");
|
|
268
314
|
}
|
|
269
|
-
},
|
|
270
|
-
const r =
|
|
271
|
-
|
|
272
|
-
const
|
|
273
|
-
|
|
315
|
+
}, R = 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 N();
|
|
319
|
+
n.defaultMemberType = (e == null ? void 0 : e.id) || "", n.discount = (e == null ? void 0 : e.discount) || 0;
|
|
274
320
|
};
|
|
275
|
-
function
|
|
276
|
-
const r =
|
|
277
|
-
r.value =
|
|
278
|
-
r.value--, r.value <= 0 &&
|
|
321
|
+
function w() {
|
|
322
|
+
const r = k(0), e = k(null), a = 60, u = k(!1), m = E(() => r.value > 0 ? `${r.value}秒后重新发送` : "获取验证码"), C = () => {
|
|
323
|
+
r.value = a, u.value = !0, e.value = setInterval(() => {
|
|
324
|
+
r.value--, r.value <= 0 && f();
|
|
279
325
|
}, 1e3);
|
|
280
|
-
},
|
|
281
|
-
|
|
326
|
+
}, f = () => {
|
|
327
|
+
e.value && (clearInterval(e.value), e.value = null), r.value = 0, u.value = !1;
|
|
282
328
|
};
|
|
283
329
|
return {
|
|
284
|
-
countdownText:
|
|
285
|
-
isCountingDown:
|
|
286
|
-
stopCountdown:
|
|
330
|
+
countdownText: m,
|
|
331
|
+
isCountingDown: u,
|
|
332
|
+
stopCountdown: f,
|
|
287
333
|
sendSmsCode: async () => {
|
|
288
|
-
if (
|
|
334
|
+
if (u.value || !c.value)
|
|
289
335
|
return;
|
|
290
|
-
if (!await
|
|
291
|
-
|
|
336
|
+
if (!await c.value.validateField("phone")) {
|
|
337
|
+
B.warning("请先输入正确的手机号");
|
|
292
338
|
return;
|
|
293
339
|
}
|
|
294
340
|
g.value = !0;
|
|
295
341
|
try {
|
|
296
|
-
await
|
|
297
|
-
telephone:
|
|
298
|
-
top_company_id:
|
|
299
|
-
company_id:
|
|
300
|
-
}),
|
|
342
|
+
await O.post(`${I.proxy}/pub/send_sms_vip_valid_code`, {
|
|
343
|
+
telephone: l.phone,
|
|
344
|
+
top_company_id: n.topCompanyId,
|
|
345
|
+
company_id: n.companyId
|
|
346
|
+
}), B.success("验证码发送成功"), C();
|
|
301
347
|
} catch {
|
|
302
348
|
} finally {
|
|
303
349
|
g.value = !1;
|
|
@@ -305,107 +351,107 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
|
|
|
305
351
|
}
|
|
306
352
|
};
|
|
307
353
|
}
|
|
308
|
-
function
|
|
309
|
-
if (
|
|
310
|
-
const r =
|
|
311
|
-
|
|
354
|
+
function T() {
|
|
355
|
+
if (l.idCard.length === 18) {
|
|
356
|
+
const r = l.idCard.substring(6, 14), e = parseInt(r.substring(0, 4)), a = parseInt(r.substring(4, 6)), u = parseInt(r.substring(6, 8)), m = (/* @__PURE__ */ new Date()).getFullYear() - e - ((/* @__PURE__ */ new Date()).getMonth() + 1 < a || (/* @__PURE__ */ new Date()).getMonth() + 1 === a && (/* @__PURE__ */ new Date()).getDate() < u ? 1 : 0);
|
|
357
|
+
l.age = m.toString(), l.gender = Number(l.idCard.charAt(16)) % 2 === 0 ? "女" : "男";
|
|
312
358
|
}
|
|
313
359
|
}
|
|
314
|
-
return
|
|
315
|
-
|
|
316
|
-
}),
|
|
317
|
-
|
|
318
|
-
}), (r,
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
default:
|
|
324
|
-
|
|
360
|
+
return oe(() => {
|
|
361
|
+
R();
|
|
362
|
+
}), re(() => {
|
|
363
|
+
_();
|
|
364
|
+
}), (r, e) => (S(), A("div", be, [
|
|
365
|
+
d("header", _e, [
|
|
366
|
+
e[8] || (e[8] = d("h1", { class: "page-title" }, "会员信息登记", -1)),
|
|
367
|
+
d("p", we, [
|
|
368
|
+
o(t(de), null, {
|
|
369
|
+
default: s(() => [
|
|
370
|
+
o(t(ue))
|
|
325
371
|
]),
|
|
326
372
|
_: 1
|
|
327
373
|
}),
|
|
328
|
-
|
|
374
|
+
d("span", null, M(n.companyName), 1)
|
|
329
375
|
])
|
|
330
376
|
]),
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
default:
|
|
334
|
-
|
|
335
|
-
|
|
377
|
+
d("main", Ce, [
|
|
378
|
+
o(t(W), { class: "form-scroll" }, {
|
|
379
|
+
default: s(() => [
|
|
380
|
+
d("div", xe, [
|
|
381
|
+
o(t(X), {
|
|
336
382
|
ref_key: "formRef",
|
|
337
|
-
ref:
|
|
338
|
-
model:
|
|
339
|
-
rules:
|
|
383
|
+
ref: c,
|
|
384
|
+
model: l,
|
|
385
|
+
rules: t(ve),
|
|
340
386
|
"label-position": "left",
|
|
341
387
|
"label-width": "70px",
|
|
342
388
|
class: "member-form"
|
|
343
389
|
}, {
|
|
344
|
-
default:
|
|
345
|
-
|
|
390
|
+
default: s(() => [
|
|
391
|
+
o(t(h), {
|
|
346
392
|
label: "姓名",
|
|
347
393
|
prop: "name"
|
|
348
394
|
}, {
|
|
349
|
-
default:
|
|
350
|
-
|
|
351
|
-
modelValue:
|
|
352
|
-
"onUpdate:modelValue":
|
|
353
|
-
placeholder:
|
|
395
|
+
default: s(() => [
|
|
396
|
+
o(t(v), {
|
|
397
|
+
modelValue: l.name,
|
|
398
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => l.name = a),
|
|
399
|
+
placeholder: t(b).name,
|
|
354
400
|
clearable: ""
|
|
355
401
|
}, null, 8, ["modelValue", "placeholder"])
|
|
356
402
|
]),
|
|
357
403
|
_: 1
|
|
358
404
|
}),
|
|
359
|
-
|
|
405
|
+
o(t(h), {
|
|
360
406
|
label: "手机号",
|
|
361
407
|
prop: "phone"
|
|
362
408
|
}, {
|
|
363
|
-
default:
|
|
364
|
-
|
|
365
|
-
modelValue:
|
|
366
|
-
"onUpdate:modelValue":
|
|
409
|
+
default: s(() => [
|
|
410
|
+
o(t(v), {
|
|
411
|
+
modelValue: l.phone,
|
|
412
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => l.phone = a),
|
|
367
413
|
type: "tel",
|
|
368
|
-
placeholder:
|
|
369
|
-
maxlength:
|
|
414
|
+
placeholder: t(b).phone,
|
|
415
|
+
maxlength: t(U).phone,
|
|
370
416
|
clearable: ""
|
|
371
417
|
}, null, 8, ["modelValue", "placeholder", "maxlength"])
|
|
372
418
|
]),
|
|
373
419
|
_: 1
|
|
374
420
|
}),
|
|
375
|
-
|
|
421
|
+
o(t(h), {
|
|
376
422
|
label: "身份证号",
|
|
377
423
|
prop: "idCard"
|
|
378
424
|
}, {
|
|
379
|
-
default:
|
|
380
|
-
|
|
381
|
-
modelValue:
|
|
382
|
-
"onUpdate:modelValue":
|
|
383
|
-
onInput:
|
|
384
|
-
placeholder:
|
|
385
|
-
maxlength:
|
|
425
|
+
default: s(() => [
|
|
426
|
+
o(t(v), {
|
|
427
|
+
modelValue: l.idCard,
|
|
428
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => l.idCard = a),
|
|
429
|
+
onInput: T,
|
|
430
|
+
placeholder: t(b).idCard,
|
|
431
|
+
maxlength: t(U).idCard,
|
|
386
432
|
clearable: ""
|
|
387
433
|
}, null, 8, ["modelValue", "placeholder", "maxlength"])
|
|
388
434
|
]),
|
|
389
435
|
_: 1
|
|
390
436
|
}),
|
|
391
|
-
|
|
437
|
+
o(t(h), {
|
|
392
438
|
label: "性别",
|
|
393
439
|
prop: "gender"
|
|
394
440
|
}, {
|
|
395
|
-
default:
|
|
396
|
-
|
|
397
|
-
modelValue:
|
|
398
|
-
"onUpdate:modelValue":
|
|
441
|
+
default: s(() => [
|
|
442
|
+
o(t(J), {
|
|
443
|
+
modelValue: l.gender,
|
|
444
|
+
"onUpdate:modelValue": e[3] || (e[3] = (a) => l.gender = a),
|
|
399
445
|
class: "gender-radio-group"
|
|
400
446
|
}, {
|
|
401
|
-
default:
|
|
402
|
-
(
|
|
403
|
-
key:
|
|
404
|
-
value:
|
|
447
|
+
default: s(() => [
|
|
448
|
+
(S(!0), A(se, null, ie(t(ye), (a) => (S(), z(t(Q), {
|
|
449
|
+
key: a.value,
|
|
450
|
+
value: a.value,
|
|
405
451
|
border: ""
|
|
406
452
|
}, {
|
|
407
|
-
default:
|
|
408
|
-
|
|
453
|
+
default: s(() => [
|
|
454
|
+
$(M(a.label), 1)
|
|
409
455
|
]),
|
|
410
456
|
_: 2
|
|
411
457
|
}, 1032, ["value"]))), 128))
|
|
@@ -415,73 +461,73 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
|
|
|
415
461
|
]),
|
|
416
462
|
_: 1
|
|
417
463
|
}),
|
|
418
|
-
|
|
464
|
+
o(t(h), {
|
|
419
465
|
label: "年龄",
|
|
420
466
|
prop: "age"
|
|
421
467
|
}, {
|
|
422
|
-
default:
|
|
423
|
-
|
|
468
|
+
default: s(() => [
|
|
469
|
+
o(t(v), {
|
|
424
470
|
type: "number",
|
|
425
|
-
modelValue:
|
|
426
|
-
"onUpdate:modelValue":
|
|
427
|
-
placeholder:
|
|
428
|
-
maxlength:
|
|
471
|
+
modelValue: l.age,
|
|
472
|
+
"onUpdate:modelValue": e[4] || (e[4] = (a) => l.age = a),
|
|
473
|
+
placeholder: t(b).age,
|
|
474
|
+
maxlength: t(U).age,
|
|
429
475
|
clearable: ""
|
|
430
476
|
}, null, 8, ["modelValue", "placeholder", "maxlength"])
|
|
431
477
|
]),
|
|
432
478
|
_: 1
|
|
433
479
|
}),
|
|
434
|
-
|
|
480
|
+
o(t(h), {
|
|
435
481
|
label: "地址",
|
|
436
482
|
prop: "address"
|
|
437
483
|
}, {
|
|
438
|
-
default:
|
|
439
|
-
|
|
440
|
-
modelValue:
|
|
441
|
-
"onUpdate:modelValue":
|
|
442
|
-
placeholder:
|
|
484
|
+
default: s(() => [
|
|
485
|
+
o(t(v), {
|
|
486
|
+
modelValue: l.address,
|
|
487
|
+
"onUpdate:modelValue": e[5] || (e[5] = (a) => l.address = a),
|
|
488
|
+
placeholder: t(b).address,
|
|
443
489
|
clearable: ""
|
|
444
490
|
}, null, 8, ["modelValue", "placeholder"])
|
|
445
491
|
]),
|
|
446
492
|
_: 1
|
|
447
493
|
}),
|
|
448
|
-
|
|
494
|
+
o(t(h), {
|
|
449
495
|
label: "备注",
|
|
450
496
|
prop: "remark"
|
|
451
497
|
}, {
|
|
452
|
-
default:
|
|
453
|
-
|
|
454
|
-
modelValue:
|
|
455
|
-
"onUpdate:modelValue":
|
|
456
|
-
placeholder:
|
|
498
|
+
default: s(() => [
|
|
499
|
+
o(t(v), {
|
|
500
|
+
modelValue: l.remark,
|
|
501
|
+
"onUpdate:modelValue": e[6] || (e[6] = (a) => l.remark = a),
|
|
502
|
+
placeholder: t(b).remark,
|
|
457
503
|
clearable: ""
|
|
458
504
|
}, null, 8, ["modelValue", "placeholder"])
|
|
459
505
|
]),
|
|
460
506
|
_: 1
|
|
461
507
|
}),
|
|
462
|
-
|
|
508
|
+
o(t(h), {
|
|
463
509
|
label: "验证码",
|
|
464
510
|
prop: "captcha"
|
|
465
511
|
}, {
|
|
466
|
-
default:
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
modelValue:
|
|
470
|
-
"onUpdate:modelValue":
|
|
471
|
-
placeholder:
|
|
472
|
-
maxlength:
|
|
512
|
+
default: s(() => [
|
|
513
|
+
d("div", Ve, [
|
|
514
|
+
o(t(v), {
|
|
515
|
+
modelValue: l.captcha,
|
|
516
|
+
"onUpdate:modelValue": e[7] || (e[7] = (a) => l.captcha = a),
|
|
517
|
+
placeholder: t(b).captcha,
|
|
518
|
+
maxlength: t(U).captcha,
|
|
473
519
|
clearable: "",
|
|
474
520
|
class: "sms-code-input"
|
|
475
521
|
}, null, 8, ["modelValue", "placeholder", "maxlength"]),
|
|
476
|
-
|
|
522
|
+
o(t(F), {
|
|
477
523
|
type: "primary",
|
|
478
|
-
disabled:
|
|
524
|
+
disabled: t(p),
|
|
479
525
|
loading: g.value,
|
|
480
526
|
class: "sms-code-btn",
|
|
481
|
-
onClick:
|
|
527
|
+
onClick: t(V)
|
|
482
528
|
}, {
|
|
483
|
-
default:
|
|
484
|
-
|
|
529
|
+
default: s(() => [
|
|
530
|
+
$(M(t(x)), 1)
|
|
485
531
|
]),
|
|
486
532
|
_: 1
|
|
487
533
|
}, 8, ["disabled", "loading", "onClick"])
|
|
@@ -492,16 +538,16 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
|
|
|
492
538
|
]),
|
|
493
539
|
_: 1
|
|
494
540
|
}, 8, ["model", "rules"]),
|
|
495
|
-
|
|
496
|
-
|
|
541
|
+
d("div", Ie, [
|
|
542
|
+
o(t(F), {
|
|
497
543
|
type: "primary",
|
|
498
544
|
round: "",
|
|
499
545
|
class: "submit-btn",
|
|
500
546
|
loading: g.value,
|
|
501
|
-
onClick:
|
|
547
|
+
onClick: L
|
|
502
548
|
}, {
|
|
503
|
-
default:
|
|
504
|
-
|
|
549
|
+
default: s(() => [...e[9] || (e[9] = [
|
|
550
|
+
$(" 提交 ", -1)
|
|
505
551
|
])]),
|
|
506
552
|
_: 1
|
|
507
553
|
}, 8, ["loading"])
|
|
@@ -513,17 +559,17 @@ const me = { class: "upload-wrapper" }, ge = { class: "upload-wrapper-inner" },
|
|
|
513
559
|
])
|
|
514
560
|
]));
|
|
515
561
|
}
|
|
516
|
-
}),
|
|
562
|
+
}), Ee = /* @__PURE__ */ Y(ke, [["__scopeId", "data-v-992af5c2"]]), Se = {
|
|
517
563
|
Upload: he,
|
|
518
|
-
MemberRegister:
|
|
564
|
+
MemberRegister: Ee
|
|
519
565
|
};
|
|
520
|
-
function Le(
|
|
521
|
-
for (const [
|
|
522
|
-
|
|
566
|
+
function Le(i) {
|
|
567
|
+
for (const [x, p] of Object.entries(Se))
|
|
568
|
+
i.component(`H${x}`, p);
|
|
523
569
|
}
|
|
524
|
-
function
|
|
525
|
-
|
|
570
|
+
function Te(i) {
|
|
571
|
+
D.has(i, "_context.directives.loading") || i.directive("loading", ce.directive), i.use(Le);
|
|
526
572
|
}
|
|
527
573
|
export {
|
|
528
|
-
|
|
574
|
+
Te as useHsAdminUi
|
|
529
575
|
};
|