hs-admin-ui 17.3.6 → 17.3.7
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-C24GGCzR.js +95 -0
- package/dist/{bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-Cs3hFcRT.js → bcVisual.vue_vue_type_style_index_0_scoped_39bc1e22_lang-DIm1RA0A.js} +10811 -10807
- package/dist/{components-m4T-rNR9.js → components-BvObfD8O.js} +1 -1
- package/dist/element-plus-ui.mjs +8 -8
- package/dist/h5.mjs +494 -378
- package/dist/{index-Ba3ghi4D.js → index-7Y69qGe6.js} +56 -56
- package/dist/{index-0X9kqoJy.js → index-B0s7oSSc.js} +1 -1
- package/dist/index-Cgn2VoWH.js +16108 -0
- package/dist/index-DXnwh129.js +32041 -0
- package/dist/index.mjs +72 -72
- package/dist/setting-BxjEXykL.js +1299 -0
- package/dist/style.css +1 -1
- package/dist/table-DrbzD0kx.js +50 -0
- package/dist/vxe-table-ui.mjs +8 -8
- package/package.json +1 -1
- package/dist/bcIcon-DXszqHzE.js +0 -66
- package/dist/index-BzzmUsbt.js +0 -14451
- package/dist/index-CcJLWFOU.js +0 -31275
- package/dist/setting-BzBglK90.js +0 -994
- package/dist/table-Dru7dLI7.js +0 -46
package/dist/h5.mjs
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { j as W, b as X,
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
class: "upload-wrapper",
|
|
6
|
-
"element-loading-text": "上传中..."
|
|
7
|
-
}, ge = { class: "upload-wrapper-inner" }, he = /* @__PURE__ */ z({
|
|
1
|
+
import { j as W, b as X, f as J, h as K, a as Z, E as $, i as ee } from "./index-B0s7oSSc.js";
|
|
2
|
+
import { defineComponent as q, computed as L, ref as C, shallowRef as ae, reactive as B, watch as te, resolveDirective as ne, withDirectives as oe, createElementBlock as A, openBlock as S, createElementVNode as u, createBlock as j, createCommentVNode as m, createVNode as o, withCtx as i, createTextVNode as R, onMounted as le, onUnmounted as re, toDisplayString as N, Fragment as ie, renderList as de } from "vue";
|
|
3
|
+
import { L as G, I as U, N as H, T as F, ak as z, ba as Y, H as Q, bg as M, bh as se, E as ce, aQ as me, aS as ue } from "./bcVisual.vue_vue_type_style_index_0_scoped_39bc1e22_lang-DIm1RA0A.js";
|
|
4
|
+
const pe = /* @__PURE__ */ q({
|
|
8
5
|
__name: "Upload",
|
|
9
6
|
props: {
|
|
10
7
|
action: {
|
|
@@ -41,161 +38,189 @@ const fe = {
|
|
|
41
38
|
}
|
|
42
39
|
},
|
|
43
40
|
emits: ["success"],
|
|
44
|
-
setup(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
setup(p, { expose: t, emit: f }) {
|
|
42
|
+
t();
|
|
43
|
+
const e = p, g = G(), w = L(() => g.limit || e.limit), n = L(() => {
|
|
44
|
+
var a;
|
|
45
|
+
return ((a = g.proxy) == null ? void 0 : a.replace("/", "")) || e.proxy.replace("/", "");
|
|
46
|
+
}), h = L(() => U.pick(g, ["company_id"])), b = C(!1), r = f, d = ae(), s = B({
|
|
49
47
|
loading: !1,
|
|
50
48
|
preview: !1,
|
|
51
49
|
index: 0,
|
|
52
|
-
headers:
|
|
50
|
+
headers: e.headers,
|
|
53
51
|
fileList: []
|
|
54
|
-
}),
|
|
55
|
-
|
|
52
|
+
}), D = L(() => s.fileList.map((a) => a.url));
|
|
53
|
+
te(
|
|
56
54
|
() => s.fileList.length,
|
|
57
|
-
(
|
|
55
|
+
(a) => {
|
|
58
56
|
setTimeout(() => {
|
|
59
|
-
const
|
|
60
|
-
|
|
57
|
+
const c = document.querySelector(".upload-wrapper .el-upload--picture-card");
|
|
58
|
+
c && (c.style.display = a >= w.value && a > 0 ? "none" : "inline-flex");
|
|
61
59
|
}, 100);
|
|
62
60
|
},
|
|
63
61
|
{
|
|
64
62
|
immediate: !0
|
|
65
63
|
}
|
|
66
64
|
);
|
|
67
|
-
function
|
|
68
|
-
return
|
|
69
|
-
url: `${window.location.origin}/${
|
|
70
|
-
}).then((
|
|
65
|
+
function x() {
|
|
66
|
+
return H({
|
|
67
|
+
url: `${window.location.origin}/${n.value}/sys/get_pub_token`
|
|
68
|
+
}).then((a) => `Bearer ${a == null ? void 0 : a.data}`);
|
|
71
69
|
}
|
|
72
|
-
async function
|
|
73
|
-
if (
|
|
74
|
-
return
|
|
70
|
+
async function V() {
|
|
71
|
+
if (U.isEmpty(e.headers))
|
|
72
|
+
return x().then((a) => {
|
|
75
73
|
s.headers = {
|
|
76
|
-
Authorization:
|
|
74
|
+
Authorization: a
|
|
77
75
|
};
|
|
78
76
|
});
|
|
79
77
|
}
|
|
80
|
-
function
|
|
81
|
-
s.index = s.fileList.findIndex((
|
|
78
|
+
function k(a) {
|
|
79
|
+
s.index = s.fileList.findIndex((c) => c.url === a.url), s.preview = !0;
|
|
82
80
|
}
|
|
83
|
-
let
|
|
84
|
-
async function
|
|
85
|
-
if (!
|
|
81
|
+
let _ = [];
|
|
82
|
+
async function O() {
|
|
83
|
+
if (!b.value) {
|
|
86
84
|
if (!s.fileList.length)
|
|
87
|
-
return
|
|
88
|
-
|
|
85
|
+
return F.warning("请上传图片");
|
|
86
|
+
z.confirm("图片上传成功后页面会禁用,是否确定上传图片?", "提示", {
|
|
89
87
|
confirmButtonText: "确定",
|
|
90
88
|
cancelButtonText: "取消",
|
|
91
89
|
type: "warning"
|
|
92
90
|
}).then(() => {
|
|
93
|
-
s.loading = !0,
|
|
91
|
+
s.loading = !0, _ = [], d.value.submit();
|
|
94
92
|
});
|
|
95
93
|
}
|
|
96
94
|
}
|
|
97
|
-
async function
|
|
98
|
-
if (
|
|
95
|
+
async function P(a, c, E) {
|
|
96
|
+
if (a.data && _.push(...a.data), _.length < s.fileList.length)
|
|
99
97
|
return;
|
|
100
|
-
const
|
|
101
|
-
extname:
|
|
102
|
-
id:
|
|
103
|
-
name:
|
|
104
|
-
path:
|
|
105
|
-
url:
|
|
98
|
+
const I = _.map((y) => ({
|
|
99
|
+
extname: y.suffix.replace(".", ""),
|
|
100
|
+
id: y.id,
|
|
101
|
+
name: y.name,
|
|
102
|
+
path: y.path,
|
|
103
|
+
url: e.ossUrl + y.path
|
|
106
104
|
}));
|
|
107
|
-
if (s.loading = !1, !
|
|
105
|
+
if (s.loading = !1, !I.length)
|
|
108
106
|
return;
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
url: `${window.location.origin}/${
|
|
107
|
+
const T = await x();
|
|
108
|
+
H({
|
|
109
|
+
url: `${window.location.origin}/${n.value}/pub_token/mobile_attach_push`,
|
|
112
110
|
method: "post",
|
|
113
111
|
headers: {
|
|
114
|
-
Authorization:
|
|
112
|
+
Authorization: T
|
|
115
113
|
},
|
|
116
114
|
data: {
|
|
117
|
-
attach_paths:
|
|
118
|
-
...
|
|
115
|
+
attach_paths: I,
|
|
116
|
+
...U.pick(g, ["company_id", "user_id"])
|
|
119
117
|
}
|
|
120
118
|
}).then(() => {
|
|
121
|
-
|
|
119
|
+
b.value = !0, r("success", { result: I, file: c, files: E });
|
|
122
120
|
});
|
|
123
121
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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
|
-
};
|
|
122
|
+
const l = { props: e, urlParams: g, _limit: w, _proxy: n, formData: h, uploadDisabled: b, emit: r, uploadRef: d, state: s, fileList: D, getPubToken: x, beforeUpload: V, onPreview: k, get uploadCount() {
|
|
123
|
+
return _;
|
|
124
|
+
}, set uploadCount(a) {
|
|
125
|
+
_ = a;
|
|
126
|
+
}, submitUpload: O, onSuccess: P, get ElButton() {
|
|
127
|
+
return Y;
|
|
128
|
+
}, get ElImageViewer() {
|
|
129
|
+
return X;
|
|
130
|
+
}, get ElUpload() {
|
|
131
|
+
return W;
|
|
132
|
+
} };
|
|
133
|
+
return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
|
|
197
134
|
}
|
|
198
|
-
}),
|
|
135
|
+
}), fe = {
|
|
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 = [
|
|
199
224
|
{ label: "男", value: "男" },
|
|
200
225
|
{ label: "女", value: "女" }
|
|
201
226
|
], v = {
|
|
@@ -240,7 +265,7 @@ const fe = {
|
|
|
240
265
|
message: "验证码为6位",
|
|
241
266
|
trigger: "blur"
|
|
242
267
|
}
|
|
243
|
-
},
|
|
268
|
+
}, Ee = {
|
|
244
269
|
name: "请输入姓名",
|
|
245
270
|
phone: "请输入手机号",
|
|
246
271
|
idCard: "请输入身份证号",
|
|
@@ -248,18 +273,18 @@ const fe = {
|
|
|
248
273
|
address: "请输入地址",
|
|
249
274
|
remark: "请输入备注",
|
|
250
275
|
captcha: "请输入验证码"
|
|
251
|
-
},
|
|
276
|
+
}, ye = {
|
|
252
277
|
phone: 11,
|
|
253
278
|
idCard: 18,
|
|
254
279
|
age: 3,
|
|
255
280
|
captcha: 6
|
|
256
|
-
},
|
|
281
|
+
}, ve = {
|
|
257
282
|
name: [v.name, v.nameLength],
|
|
258
283
|
phone: [v.phone, v.phonePattern],
|
|
259
284
|
idCard: [v.idCardPattern],
|
|
260
285
|
age: [v.agePattern],
|
|
261
286
|
captcha: [v.captcha, v.captchaLength]
|
|
262
|
-
},
|
|
287
|
+
}, Ie = /* @__PURE__ */ q({
|
|
263
288
|
__name: "MemberRegister",
|
|
264
289
|
props: {
|
|
265
290
|
proxy: {
|
|
@@ -267,8 +292,9 @@ const fe = {
|
|
|
267
292
|
required: !1
|
|
268
293
|
}
|
|
269
294
|
},
|
|
270
|
-
setup(
|
|
271
|
-
|
|
295
|
+
setup(p, { expose: t }) {
|
|
296
|
+
t();
|
|
297
|
+
const { countdownText: f, isCountingDown: e, stopCountdown: g, sendSmsCode: w } = _(), n = C(), h = C(!1), b = p, r = B({
|
|
272
298
|
name: "",
|
|
273
299
|
gender: "男",
|
|
274
300
|
phone: "",
|
|
@@ -277,40 +303,43 @@ const fe = {
|
|
|
277
303
|
address: "",
|
|
278
304
|
remark: "",
|
|
279
305
|
captcha: ""
|
|
280
|
-
}), d =
|
|
306
|
+
}), d = B({
|
|
281
307
|
topCompanyId: "",
|
|
282
308
|
companyId: "",
|
|
283
309
|
companyName: "",
|
|
284
310
|
defaultMemberType: "",
|
|
285
311
|
discount: 0
|
|
286
|
-
}), s =
|
|
287
|
-
|
|
312
|
+
}), s = () => {
|
|
313
|
+
var l;
|
|
314
|
+
(l = n.value) == null || l.resetFields(), g();
|
|
315
|
+
}, D = async () => {
|
|
316
|
+
if (!n.value)
|
|
288
317
|
return !1;
|
|
289
318
|
try {
|
|
290
|
-
return await
|
|
319
|
+
return await n.value.validate();
|
|
291
320
|
} catch {
|
|
292
321
|
return !1;
|
|
293
322
|
}
|
|
294
|
-
},
|
|
295
|
-
if (!await
|
|
323
|
+
}, x = async () => {
|
|
324
|
+
if (!await D())
|
|
296
325
|
return;
|
|
297
|
-
|
|
298
|
-
const
|
|
299
|
-
vip_name:
|
|
300
|
-
sex:
|
|
301
|
-
telephone:
|
|
302
|
-
identity_card:
|
|
303
|
-
age:
|
|
304
|
-
address:
|
|
305
|
-
remark:
|
|
306
|
-
valid_code:
|
|
326
|
+
h.value = !0;
|
|
327
|
+
const a = {
|
|
328
|
+
vip_name: r.name,
|
|
329
|
+
sex: r.gender,
|
|
330
|
+
telephone: r.phone,
|
|
331
|
+
identity_card: r.idCard,
|
|
332
|
+
age: r.age,
|
|
333
|
+
address: r.address,
|
|
334
|
+
remark: r.remark,
|
|
335
|
+
valid_code: r.captcha,
|
|
307
336
|
vip_type: d.defaultMemberType,
|
|
308
337
|
top_company_id: d.topCompanyId,
|
|
309
338
|
company_id: d.companyId,
|
|
310
339
|
discount: d.discount
|
|
311
340
|
};
|
|
312
341
|
try {
|
|
313
|
-
await
|
|
342
|
+
await M.post(`${b.proxy}/pub/add_vip_info`, a), z.alert("注册成功!", "提示", {
|
|
314
343
|
closeOnClickModal: !1,
|
|
315
344
|
// 禁止点击遮罩关闭
|
|
316
345
|
closeOnPressEscape: !1,
|
|
@@ -322,272 +351,359 @@ const fe = {
|
|
|
322
351
|
});
|
|
323
352
|
} catch {
|
|
324
353
|
} finally {
|
|
325
|
-
|
|
354
|
+
h.value = !1;
|
|
326
355
|
}
|
|
327
|
-
},
|
|
356
|
+
}, V = async () => {
|
|
328
357
|
try {
|
|
329
|
-
return (await
|
|
358
|
+
return (await M.get(`${b.proxy}/pub/get_list_vip_price_set?top_company_id=${d.topCompanyId}`)).data;
|
|
330
359
|
} catch {
|
|
331
|
-
|
|
360
|
+
F.error("获取默认会员等级失败");
|
|
332
361
|
}
|
|
333
|
-
},
|
|
334
|
-
const
|
|
335
|
-
d.topCompanyId =
|
|
336
|
-
const
|
|
337
|
-
d.defaultMemberType = (
|
|
362
|
+
}, k = async () => {
|
|
363
|
+
const l = G();
|
|
364
|
+
d.topCompanyId = l.top_company_id || "", d.companyId = l.company_id || "", d.companyName = l.company_name || "";
|
|
365
|
+
const a = await V();
|
|
366
|
+
d.defaultMemberType = (a == null ? void 0 : a.id) || "", d.discount = (a == null ? void 0 : a.discount) || 0;
|
|
338
367
|
};
|
|
339
|
-
function
|
|
340
|
-
const
|
|
341
|
-
|
|
342
|
-
|
|
368
|
+
function _() {
|
|
369
|
+
const l = C(0), a = C(null), c = 60, E = C(!1), I = L(() => l.value > 0 ? `${l.value}秒后重新发送` : "获取验证码"), T = () => {
|
|
370
|
+
l.value = c, E.value = !0, a.value = setInterval(() => {
|
|
371
|
+
l.value--, l.value <= 0 && y();
|
|
343
372
|
}, 1e3);
|
|
344
|
-
},
|
|
345
|
-
|
|
373
|
+
}, y = () => {
|
|
374
|
+
a.value && (clearInterval(a.value), a.value = null), l.value = 0, E.value = !1;
|
|
346
375
|
};
|
|
347
376
|
return {
|
|
348
|
-
countdownText:
|
|
349
|
-
isCountingDown:
|
|
350
|
-
stopCountdown:
|
|
377
|
+
countdownText: I,
|
|
378
|
+
isCountingDown: E,
|
|
379
|
+
stopCountdown: y,
|
|
351
380
|
sendSmsCode: async () => {
|
|
352
|
-
if (
|
|
381
|
+
if (E.value || !n.value)
|
|
353
382
|
return;
|
|
354
|
-
if (!await
|
|
355
|
-
|
|
383
|
+
if (!await n.value.validateField("phone")) {
|
|
384
|
+
F.warning("请先输入正确的手机号");
|
|
356
385
|
return;
|
|
357
386
|
}
|
|
358
|
-
|
|
387
|
+
h.value = !0;
|
|
359
388
|
try {
|
|
360
|
-
await
|
|
361
|
-
telephone:
|
|
389
|
+
await M.post(`${b.proxy}/pub/send_sms_vip_valid_code`, {
|
|
390
|
+
telephone: r.phone,
|
|
362
391
|
top_company_id: d.topCompanyId,
|
|
363
392
|
company_id: d.companyId
|
|
364
|
-
}),
|
|
393
|
+
}), F.success("验证码发送成功"), T();
|
|
365
394
|
} catch {
|
|
366
395
|
} finally {
|
|
367
|
-
|
|
396
|
+
h.value = !1;
|
|
368
397
|
}
|
|
369
398
|
}
|
|
370
399
|
};
|
|
371
400
|
}
|
|
372
|
-
function
|
|
373
|
-
if (
|
|
374
|
-
const
|
|
375
|
-
|
|
401
|
+
function O() {
|
|
402
|
+
if (r.idCard.length === 18) {
|
|
403
|
+
const l = r.idCard.substring(6, 14), a = parseInt(l.substring(0, 4)), c = parseInt(l.substring(4, 6)), E = parseInt(l.substring(6, 8)), I = (/* @__PURE__ */ new Date()).getFullYear() - a - ((/* @__PURE__ */ new Date()).getMonth() + 1 < c || (/* @__PURE__ */ new Date()).getMonth() + 1 === c && (/* @__PURE__ */ new Date()).getDate() < E ? 1 : 0);
|
|
404
|
+
r.age = I.toString(), r.gender = Number(r.idCard.charAt(16)) % 2 === 0 ? "女" : "男";
|
|
376
405
|
}
|
|
377
406
|
}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
}),
|
|
381
|
-
|
|
382
|
-
})
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
407
|
+
le(() => {
|
|
408
|
+
k();
|
|
409
|
+
}), re(() => {
|
|
410
|
+
g();
|
|
411
|
+
});
|
|
412
|
+
const P = { countdownText: f, isCountingDown: e, stopCountdown: g, sendSmsCode: w, formRef: n, loading: h, props: b, form: r, companyInfo: d, resetForm: s, validateForm: D, handleSubmit: x, getVipPriceSet: V, dataLoad: k, useSmsCode: _, handleIdCardInputEnd: O, get ElScrollbar() {
|
|
413
|
+
return ee;
|
|
414
|
+
}, get ElInput() {
|
|
415
|
+
return me;
|
|
416
|
+
}, get ElButton() {
|
|
417
|
+
return Y;
|
|
418
|
+
}, get ElIcon() {
|
|
419
|
+
return ce;
|
|
420
|
+
}, get ElForm() {
|
|
421
|
+
return $;
|
|
422
|
+
}, get ElFormItem() {
|
|
423
|
+
return Z;
|
|
424
|
+
}, get ElRadioGroup() {
|
|
425
|
+
return K;
|
|
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, {
|
|
397
455
|
default: i(() => [
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
456
|
+
o(e.Location)
|
|
457
|
+
]),
|
|
458
|
+
_: 1
|
|
459
|
+
/* STABLE */
|
|
460
|
+
}),
|
|
461
|
+
u(
|
|
462
|
+
"span",
|
|
463
|
+
null,
|
|
464
|
+
N(e.companyInfo.companyName),
|
|
465
|
+
1
|
|
466
|
+
/* TEXT */
|
|
467
|
+
)
|
|
468
|
+
])
|
|
469
|
+
]),
|
|
470
|
+
m(" 表单容器 "),
|
|
471
|
+
u("main", Le, [
|
|
472
|
+
o(e.ElScrollbar, { class: "form-scroll" }, {
|
|
473
|
+
default: i(() => [
|
|
474
|
+
u("div", Se, [
|
|
475
|
+
o(e.ElForm, {
|
|
476
|
+
ref: "formRef",
|
|
477
|
+
model: e.form,
|
|
478
|
+
rules: e.rules,
|
|
479
|
+
"label-position": "left",
|
|
480
|
+
"label-width": "70px",
|
|
481
|
+
class: "member-form"
|
|
482
|
+
}, {
|
|
483
|
+
default: i(() => [
|
|
484
|
+
m(" 姓名 "),
|
|
485
|
+
o(e.ElFormItem, {
|
|
486
|
+
label: "姓名",
|
|
487
|
+
prop: "name"
|
|
488
|
+
}, {
|
|
489
|
+
default: i(() => [
|
|
490
|
+
o(e.ElInput, {
|
|
491
|
+
modelValue: e.form.name,
|
|
492
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.form.name = n),
|
|
493
|
+
placeholder: e.PLACEHOLDERS.name,
|
|
494
|
+
clearable: ""
|
|
495
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
496
|
+
]),
|
|
497
|
+
_: 1
|
|
498
|
+
/* STABLE */
|
|
499
|
+
}),
|
|
500
|
+
m(" 手机号 "),
|
|
501
|
+
o(e.ElFormItem, {
|
|
502
|
+
label: "手机号",
|
|
503
|
+
prop: "phone"
|
|
504
|
+
}, {
|
|
505
|
+
default: i(() => [
|
|
506
|
+
o(e.ElInput, {
|
|
507
|
+
modelValue: e.form.phone,
|
|
508
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => e.form.phone = n),
|
|
509
|
+
type: "tel",
|
|
510
|
+
placeholder: e.PLACEHOLDERS.phone,
|
|
511
|
+
maxlength: e.FIELD_LIMITS.phone,
|
|
512
|
+
clearable: ""
|
|
513
|
+
}, null, 8, ["modelValue", "placeholder", "maxlength"])
|
|
514
|
+
]),
|
|
515
|
+
_: 1
|
|
516
|
+
/* STABLE */
|
|
517
|
+
}),
|
|
518
|
+
m(" 身份证号 "),
|
|
519
|
+
o(e.ElFormItem, {
|
|
520
|
+
label: "身份证号",
|
|
521
|
+
prop: "idCard"
|
|
522
|
+
}, {
|
|
523
|
+
default: i(() => [
|
|
524
|
+
o(e.ElInput, {
|
|
525
|
+
modelValue: e.form.idCard,
|
|
526
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => e.form.idCard = n),
|
|
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,
|
|
469
554
|
border: ""
|
|
470
555
|
}, {
|
|
471
556
|
default: i(() => [
|
|
472
|
-
|
|
557
|
+
R(
|
|
558
|
+
N(n.label),
|
|
559
|
+
1
|
|
560
|
+
/* TEXT */
|
|
561
|
+
)
|
|
473
562
|
]),
|
|
474
563
|
_: 2
|
|
475
|
-
|
|
564
|
+
/* DYNAMIC */
|
|
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
|
+
)
|
|
476
655
|
]),
|
|
477
656
|
_: 1
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
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
|
-
]),
|
|
557
|
-
_: 1
|
|
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
|
-
])]),
|
|
657
|
+
/* STABLE */
|
|
658
|
+
}, 8, ["disabled", "loading", "onClick"])
|
|
659
|
+
])
|
|
660
|
+
]),
|
|
570
661
|
_: 1
|
|
571
|
-
|
|
572
|
-
|
|
662
|
+
/* STABLE */
|
|
663
|
+
})
|
|
664
|
+
]),
|
|
665
|
+
_: 1
|
|
666
|
+
/* STABLE */
|
|
667
|
+
}, 8, ["model", "rules"]),
|
|
668
|
+
m(" 提交按钮 "),
|
|
669
|
+
u("div", Ve, [
|
|
670
|
+
o(e.ElButton, {
|
|
671
|
+
type: "primary",
|
|
672
|
+
round: "",
|
|
673
|
+
class: "submit-btn",
|
|
674
|
+
loading: e.loading,
|
|
675
|
+
onClick: e.handleSubmit
|
|
676
|
+
}, {
|
|
677
|
+
default: i(() => [...t[9] || (t[9] = [
|
|
678
|
+
R(
|
|
679
|
+
" 提交 ",
|
|
680
|
+
-1
|
|
681
|
+
/* CACHED */
|
|
682
|
+
)
|
|
683
|
+
])]),
|
|
684
|
+
_: 1
|
|
685
|
+
/* STABLE */
|
|
686
|
+
}, 8, ["loading"])
|
|
573
687
|
])
|
|
574
|
-
])
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
688
|
+
])
|
|
689
|
+
]),
|
|
690
|
+
_: 1
|
|
691
|
+
/* STABLE */
|
|
692
|
+
})
|
|
693
|
+
])
|
|
694
|
+
]);
|
|
695
|
+
}
|
|
696
|
+
const Pe = /* @__PURE__ */ Q(Ie, [["render", ke], ["__scopeId", "data-v-1a039403"], ["__file", "C:/workspace/华速/xin/数据配置系统-hs-admin-ui/packages/components/src/components/h5/MemberRegister/MemberRegister.vue"]]), Re = {
|
|
697
|
+
Upload: _e,
|
|
698
|
+
MemberRegister: Pe
|
|
583
699
|
};
|
|
584
|
-
function
|
|
585
|
-
for (const [
|
|
586
|
-
|
|
700
|
+
function Ue(p) {
|
|
701
|
+
for (const [t, f] of Object.entries(Re))
|
|
702
|
+
p.component(`H${t}`, f);
|
|
587
703
|
}
|
|
588
|
-
function
|
|
589
|
-
|
|
704
|
+
function Ae(p) {
|
|
705
|
+
U.has(p, "_context.directives.loading") || p.directive("loading", ue.directive), p.use(Ue);
|
|
590
706
|
}
|
|
591
707
|
export {
|
|
592
|
-
|
|
708
|
+
Ae as useHsAdminUi
|
|
593
709
|
};
|