hs-admin-ui 17.3.7 → 17.3.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-DLKodAE9.js +66 -0
- package/dist/{bcVisual.vue_vue_type_style_index_0_scoped_39bc1e22_lang-DIm1RA0A.js → bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-BL5_6j-6.js} +10908 -10893
- package/dist/{components-BvObfD8O.js → components-dSdVqHwO.js} +1 -1
- package/dist/element-plus-ui.mjs +8 -8
- package/dist/h5.mjs +378 -494
- package/dist/index-B-BugOyJ.js +14451 -0
- package/dist/{index-7Y69qGe6.js → index-CnrnmyyY.js} +56 -56
- package/dist/{index-B0s7oSSc.js → index-Cv6P-7Py.js} +1 -1
- package/dist/index-ecbW6GsD.js +31276 -0
- package/dist/index.mjs +72 -72
- package/dist/setting-szJKzNd_.js +994 -0
- package/dist/style.css +1 -1
- package/dist/table-B4CTu-GC.js +46 -0
- package/dist/vxe-table-ui.mjs +8 -8
- package/package.json +1 -1
- package/dist/bcIcon-C24GGCzR.js +0 -95
- package/dist/index-Cgn2VoWH.js +0 -16108
- package/dist/index-DXnwh129.js +0 -32041
- package/dist/setting-BxjEXykL.js +0 -1299
- package/dist/table-DrbzD0kx.js +0 -50
package/dist/h5.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { j as W, b as X,
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
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-Cv6P-7Py.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-BL5_6j-6.js";
|
|
4
|
+
const fe = {
|
|
5
|
+
class: "upload-wrapper",
|
|
6
|
+
"element-loading-text": "上传中..."
|
|
7
|
+
}, ge = { class: "upload-wrapper-inner" }, he = /* @__PURE__ */ z({
|
|
5
8
|
__name: "Upload",
|
|
6
9
|
props: {
|
|
7
10
|
action: {
|
|
@@ -38,189 +41,161 @@ const pe = /* @__PURE__ */ q({
|
|
|
38
41
|
}
|
|
39
42
|
},
|
|
40
43
|
emits: ["success"],
|
|
41
|
-
setup(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}), h = L(() => U.pick(g, ["company_id"])), b = C(!1), r = f, d = ae(), s = B({
|
|
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({
|
|
47
49
|
loading: !1,
|
|
48
50
|
preview: !1,
|
|
49
51
|
index: 0,
|
|
50
|
-
headers:
|
|
52
|
+
headers: c.headers,
|
|
51
53
|
fileList: []
|
|
52
|
-
}),
|
|
53
|
-
|
|
54
|
+
}), R = S(() => s.fileList.map((e) => e.url));
|
|
55
|
+
le(
|
|
54
56
|
() => s.fileList.length,
|
|
55
|
-
(
|
|
57
|
+
(e) => {
|
|
56
58
|
setTimeout(() => {
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
+
const o = document.querySelector(".upload-wrapper .el-upload--picture-card");
|
|
60
|
+
o && (o.style.display = e >= E.value && e > 0 ? "none" : "inline-flex");
|
|
59
61
|
}, 100);
|
|
60
62
|
},
|
|
61
63
|
{
|
|
62
64
|
immediate: !0
|
|
63
65
|
}
|
|
64
66
|
);
|
|
65
|
-
function
|
|
66
|
-
return
|
|
67
|
-
url: `${window.location.origin}/${
|
|
68
|
-
}).then((
|
|
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}`);
|
|
69
71
|
}
|
|
70
|
-
async function
|
|
71
|
-
if (
|
|
72
|
-
return
|
|
72
|
+
async function B() {
|
|
73
|
+
if (P.isEmpty(c.headers))
|
|
74
|
+
return D().then((e) => {
|
|
73
75
|
s.headers = {
|
|
74
|
-
Authorization:
|
|
76
|
+
Authorization: e
|
|
75
77
|
};
|
|
76
78
|
});
|
|
77
79
|
}
|
|
78
|
-
function
|
|
79
|
-
s.index = s.fileList.findIndex((
|
|
80
|
+
function M(e) {
|
|
81
|
+
s.index = s.fileList.findIndex((o) => o.url === e.url), s.preview = !0;
|
|
80
82
|
}
|
|
81
|
-
let
|
|
82
|
-
async function
|
|
83
|
-
if (!
|
|
83
|
+
let C = [];
|
|
84
|
+
async function r() {
|
|
85
|
+
if (!g.value) {
|
|
84
86
|
if (!s.fileList.length)
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
+
return T.warning("请上传图片");
|
|
88
|
+
K.confirm("图片上传成功后页面会禁用,是否确定上传图片?", "提示", {
|
|
87
89
|
confirmButtonText: "确定",
|
|
88
90
|
cancelButtonText: "取消",
|
|
89
91
|
type: "warning"
|
|
90
92
|
}).then(() => {
|
|
91
|
-
s.loading = !0,
|
|
93
|
+
s.loading = !0, C = [], d.value.submit();
|
|
92
94
|
});
|
|
93
95
|
}
|
|
94
96
|
}
|
|
95
|
-
async function
|
|
96
|
-
if (
|
|
97
|
+
async function t(e, o, b) {
|
|
98
|
+
if (e.data && C.push(...e.data), C.length < s.fileList.length)
|
|
97
99
|
return;
|
|
98
|
-
const
|
|
99
|
-
extname:
|
|
100
|
-
id:
|
|
101
|
-
name:
|
|
102
|
-
path:
|
|
103
|
-
url:
|
|
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
|
|
104
106
|
}));
|
|
105
|
-
if (s.loading = !1, !
|
|
107
|
+
if (s.loading = !1, !h.length)
|
|
106
108
|
return;
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
url: `${window.location.origin}/${
|
|
109
|
+
const U = await D();
|
|
110
|
+
j({
|
|
111
|
+
url: `${window.location.origin}/${m.value}/pub_token/mobile_attach_push`,
|
|
110
112
|
method: "post",
|
|
111
113
|
headers: {
|
|
112
|
-
Authorization:
|
|
114
|
+
Authorization: U
|
|
113
115
|
},
|
|
114
116
|
data: {
|
|
115
|
-
attach_paths:
|
|
116
|
-
...
|
|
117
|
+
attach_paths: h,
|
|
118
|
+
...P.pick(x, ["company_id", "user_id"])
|
|
117
119
|
}
|
|
118
120
|
}).then(() => {
|
|
119
|
-
|
|
121
|
+
g.value = !0, l("success", { result: h, file: o, files: b });
|
|
120
122
|
});
|
|
121
123
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
+
};
|
|
134
197
|
}
|
|
135
|
-
}),
|
|
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 = [
|
|
198
|
+
}), ye = /* @__PURE__ */ Q(he, [["__scopeId", "data-v-096fc7c1"]]), ve = [
|
|
224
199
|
{ label: "男", value: "男" },
|
|
225
200
|
{ label: "女", value: "女" }
|
|
226
201
|
], v = {
|
|
@@ -265,7 +240,7 @@ const _e = /* @__PURE__ */ Q(pe, [["render", he], ["__scopeId", "data-v-7a370a2b
|
|
|
265
240
|
message: "验证码为6位",
|
|
266
241
|
trigger: "blur"
|
|
267
242
|
}
|
|
268
|
-
},
|
|
243
|
+
}, w = {
|
|
269
244
|
name: "请输入姓名",
|
|
270
245
|
phone: "请输入手机号",
|
|
271
246
|
idCard: "请输入身份证号",
|
|
@@ -273,18 +248,18 @@ const _e = /* @__PURE__ */ Q(pe, [["render", he], ["__scopeId", "data-v-7a370a2b
|
|
|
273
248
|
address: "请输入地址",
|
|
274
249
|
remark: "请输入备注",
|
|
275
250
|
captcha: "请输入验证码"
|
|
276
|
-
},
|
|
251
|
+
}, $ = {
|
|
277
252
|
phone: 11,
|
|
278
253
|
idCard: 18,
|
|
279
254
|
age: 3,
|
|
280
255
|
captcha: 6
|
|
281
|
-
},
|
|
256
|
+
}, be = {
|
|
282
257
|
name: [v.name, v.nameLength],
|
|
283
258
|
phone: [v.phone, v.phonePattern],
|
|
284
259
|
idCard: [v.idCardPattern],
|
|
285
260
|
age: [v.agePattern],
|
|
286
261
|
captcha: [v.captcha, v.captchaLength]
|
|
287
|
-
}, Ie = /* @__PURE__ */
|
|
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({
|
|
288
263
|
__name: "MemberRegister",
|
|
289
264
|
props: {
|
|
290
265
|
proxy: {
|
|
@@ -292,9 +267,8 @@ const _e = /* @__PURE__ */ Q(pe, [["render", he], ["__scopeId", "data-v-7a370a2b
|
|
|
292
267
|
required: !1
|
|
293
268
|
}
|
|
294
269
|
},
|
|
295
|
-
setup(
|
|
296
|
-
|
|
297
|
-
const { countdownText: f, isCountingDown: e, stopCountdown: g, sendSmsCode: w } = _(), n = C(), h = C(!1), b = p, r = B({
|
|
270
|
+
setup(u) {
|
|
271
|
+
const { countdownText: k, isCountingDown: c, stopCountdown: x, sendSmsCode: E } = M(), m = I(), f = I(!1), g = u, l = A({
|
|
298
272
|
name: "",
|
|
299
273
|
gender: "男",
|
|
300
274
|
phone: "",
|
|
@@ -303,43 +277,40 @@ const _e = /* @__PURE__ */ Q(pe, [["render", he], ["__scopeId", "data-v-7a370a2b
|
|
|
303
277
|
address: "",
|
|
304
278
|
remark: "",
|
|
305
279
|
captcha: ""
|
|
306
|
-
}), d =
|
|
280
|
+
}), d = A({
|
|
307
281
|
topCompanyId: "",
|
|
308
282
|
companyId: "",
|
|
309
283
|
companyName: "",
|
|
310
284
|
defaultMemberType: "",
|
|
311
285
|
discount: 0
|
|
312
|
-
}), s = () => {
|
|
313
|
-
|
|
314
|
-
(l = n.value) == null || l.resetFields(), g();
|
|
315
|
-
}, D = async () => {
|
|
316
|
-
if (!n.value)
|
|
286
|
+
}), s = async () => {
|
|
287
|
+
if (!m.value)
|
|
317
288
|
return !1;
|
|
318
289
|
try {
|
|
319
|
-
return await
|
|
290
|
+
return await m.value.validate();
|
|
320
291
|
} catch {
|
|
321
292
|
return !1;
|
|
322
293
|
}
|
|
323
|
-
},
|
|
324
|
-
if (!await
|
|
294
|
+
}, R = async () => {
|
|
295
|
+
if (!await s())
|
|
325
296
|
return;
|
|
326
|
-
|
|
327
|
-
const
|
|
328
|
-
vip_name:
|
|
329
|
-
sex:
|
|
330
|
-
telephone:
|
|
331
|
-
identity_card:
|
|
332
|
-
age:
|
|
333
|
-
address:
|
|
334
|
-
remark:
|
|
335
|
-
valid_code:
|
|
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,
|
|
336
307
|
vip_type: d.defaultMemberType,
|
|
337
308
|
top_company_id: d.topCompanyId,
|
|
338
309
|
company_id: d.companyId,
|
|
339
310
|
discount: d.discount
|
|
340
311
|
};
|
|
341
312
|
try {
|
|
342
|
-
await
|
|
313
|
+
await q.post(`${g.proxy}/pub/add_vip_info`, t), K.alert("注册成功!", "提示", {
|
|
343
314
|
closeOnClickModal: !1,
|
|
344
315
|
// 禁止点击遮罩关闭
|
|
345
316
|
closeOnPressEscape: !1,
|
|
@@ -351,359 +322,272 @@ const _e = /* @__PURE__ */ Q(pe, [["render", he], ["__scopeId", "data-v-7a370a2b
|
|
|
351
322
|
});
|
|
352
323
|
} catch {
|
|
353
324
|
} finally {
|
|
354
|
-
|
|
325
|
+
f.value = !1;
|
|
355
326
|
}
|
|
356
|
-
},
|
|
327
|
+
}, D = async () => {
|
|
357
328
|
try {
|
|
358
|
-
return (await
|
|
329
|
+
return (await q.get(`${g.proxy}/pub/get_list_vip_price_set?top_company_id=${d.topCompanyId}`)).data;
|
|
359
330
|
} catch {
|
|
360
|
-
|
|
331
|
+
T.error("获取默认会员等级失败");
|
|
361
332
|
}
|
|
362
|
-
},
|
|
363
|
-
const
|
|
364
|
-
d.topCompanyId =
|
|
365
|
-
const
|
|
366
|
-
d.defaultMemberType = (
|
|
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;
|
|
367
338
|
};
|
|
368
|
-
function
|
|
369
|
-
const
|
|
370
|
-
|
|
371
|
-
|
|
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();
|
|
372
343
|
}, 1e3);
|
|
373
|
-
},
|
|
374
|
-
|
|
344
|
+
}, U = () => {
|
|
345
|
+
t.value && (clearInterval(t.value), t.value = null), r.value = 0, o.value = !1;
|
|
375
346
|
};
|
|
376
347
|
return {
|
|
377
|
-
countdownText:
|
|
378
|
-
isCountingDown:
|
|
379
|
-
stopCountdown:
|
|
348
|
+
countdownText: b,
|
|
349
|
+
isCountingDown: o,
|
|
350
|
+
stopCountdown: U,
|
|
380
351
|
sendSmsCode: async () => {
|
|
381
|
-
if (
|
|
352
|
+
if (o.value || !m.value)
|
|
382
353
|
return;
|
|
383
|
-
if (!await
|
|
384
|
-
|
|
354
|
+
if (!await m.value.validateField("phone")) {
|
|
355
|
+
T.warning("请先输入正确的手机号");
|
|
385
356
|
return;
|
|
386
357
|
}
|
|
387
|
-
|
|
358
|
+
f.value = !0;
|
|
388
359
|
try {
|
|
389
|
-
await
|
|
390
|
-
telephone:
|
|
360
|
+
await q.post(`${g.proxy}/pub/send_sms_vip_valid_code`, {
|
|
361
|
+
telephone: l.phone,
|
|
391
362
|
top_company_id: d.topCompanyId,
|
|
392
363
|
company_id: d.companyId
|
|
393
|
-
}),
|
|
364
|
+
}), T.success("验证码发送成功"), h();
|
|
394
365
|
} catch {
|
|
395
366
|
} finally {
|
|
396
|
-
|
|
367
|
+
f.value = !1;
|
|
397
368
|
}
|
|
398
369
|
}
|
|
399
370
|
};
|
|
400
371
|
}
|
|
401
|
-
function
|
|
402
|
-
if (
|
|
403
|
-
const
|
|
404
|
-
|
|
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 ? "女" : "男";
|
|
405
376
|
}
|
|
406
377
|
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
}),
|
|
410
|
-
|
|
411
|
-
})
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
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, {
|
|
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" }, {
|
|
455
397
|
default: i(() => [
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
placeholder
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
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,
|
|
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,
|
|
554
469
|
border: ""
|
|
555
470
|
}, {
|
|
556
471
|
default: i(() => [
|
|
557
|
-
|
|
558
|
-
N(n.label),
|
|
559
|
-
1
|
|
560
|
-
/* TEXT */
|
|
561
|
-
)
|
|
472
|
+
N(O(e.label), 1)
|
|
562
473
|
]),
|
|
563
474
|
_: 2
|
|
564
|
-
|
|
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
|
-
)
|
|
475
|
+
}, 1032, ["value"]))), 128))
|
|
655
476
|
]),
|
|
656
477
|
_: 1
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
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
|
+
]),
|
|
684
557
|
_: 1
|
|
685
|
-
|
|
686
|
-
|
|
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
|
+
])]),
|
|
570
|
+
_: 1
|
|
571
|
+
}, 8, ["loading"])
|
|
572
|
+
])
|
|
687
573
|
])
|
|
688
|
-
])
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
Upload: _e,
|
|
698
|
-
MemberRegister: Pe
|
|
574
|
+
]),
|
|
575
|
+
_: 1
|
|
576
|
+
})
|
|
577
|
+
])
|
|
578
|
+
]));
|
|
579
|
+
}
|
|
580
|
+
}), Se = /* @__PURE__ */ Q(Ee, [["__scopeId", "data-v-992af5c2"]]), Le = {
|
|
581
|
+
Upload: ye,
|
|
582
|
+
MemberRegister: Se
|
|
699
583
|
};
|
|
700
|
-
function
|
|
701
|
-
for (const [
|
|
702
|
-
|
|
584
|
+
function De(u) {
|
|
585
|
+
for (const [k, c] of Object.entries(Le))
|
|
586
|
+
u.component(`H${k}`, c);
|
|
703
587
|
}
|
|
704
|
-
function
|
|
705
|
-
|
|
588
|
+
function Re(u) {
|
|
589
|
+
P.has(u, "_context.directives.loading") || u.directive("loading", me.directive), u.use(De);
|
|
706
590
|
}
|
|
707
591
|
export {
|
|
708
|
-
|
|
592
|
+
Re as useHsAdminUi
|
|
709
593
|
};
|