@huyooo/ui 0.7.20 → 0.7.26
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/{AuthkitAuthModal-DxxZlUbh.js → AuthkitAuthModal-C1Kgu1TA.js} +670 -685
- package/dist/{AuthkitSignInPhone-BfqNvheZ.js → AuthkitSignInPhone-BG7r63dN.js} +224 -232
- package/dist/{Clipboard-C_4QFg2W.js → Clipboard-8rWlOPTZ.js} +2 -2
- package/dist/{Contact-DJtDuS50.js → Contact-Bpl7sIjY.js} +2 -2
- package/dist/{FeedbackItem-CI-w_fOt.js → FeedbackItem-DMpvHrOD.js} +3 -3
- package/dist/{FeedbackModal-3k-cMuoY.js → FeedbackModal-DIhSPUPO.js} +329 -342
- package/dist/{MessageHandle-Pxxvhs-7.js → MessageHandle-WA95I84_.js} +212 -236
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BVvzvLUA.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BRficqbp.js} +26 -28
- package/dist/{MessageNotifications-FkiOW4qU.js → MessageNotifications-DmgFNjH7.js} +1 -1
- package/dist/{PaySubscriptions-BHTKDYFN.js → PaySubscriptions-F5sNex0h.js} +50 -74
- package/dist/{ReferrerReferees-9wk0_tGC.js → ReferrerReferees-DMA8Tj5i.js} +30 -32
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-RZzfS9p1.js → Upload.vue_vue_type_script_setup_true_lang-D7ZGc2ZS.js} +1 -1
- package/dist/{UserAccountMenu-CKGTR8GB.js → UserAccountMenu-CkUtqNxY.js} +7 -7
- package/dist/{WidthContainer-BC30d-AV.js → WidthContainer-DSQui1pX.js} +7 -7
- package/dist/api/Authkit/Users.d.ts +7 -7
- package/dist/api/Authkit/apps.d.ts +2 -2
- package/dist/api/Authkit/auth.d.ts +10 -10
- package/dist/api/Authkit/oauth.d.ts +3 -3
- package/dist/api/Authkit/verify.d.ts +18 -5
- package/dist/api/Buckets/Files.d.ts +7 -7
- package/dist/api/Buckets.d.ts +2 -2
- package/dist/api/Invoices.d.ts +6 -6
- package/dist/api/Message/ChangelogNotifications.d.ts +2 -31
- package/dist/api/Message/EventNotifications.d.ts +2 -35
- package/dist/api/Message/MessageNotifications.d.ts +5 -35
- package/dist/api/Message/NoticeNotifications.d.ts +5 -42
- package/dist/api/Messages.d.ts +2 -2
- package/dist/api/Orders.d.ts +9 -9
- package/dist/api/Products.d.ts +6 -6
- package/dist/api/Quotas.d.ts +6 -6
- package/dist/api/Referrer.d.ts +1 -1
- package/dist/api/Subscriptions.d.ts +7 -7
- package/dist/api/index.d.ts +8 -8
- package/dist/authkit.js +6 -6
- package/dist/common/globalConfig.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +1 -1
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +3 -3
- package/dist/composables/useMessageNotifications.d.ts +3 -3
- package/dist/composables.js +9 -9
- package/dist/feedback.js +3 -3
- package/dist/index.js +24 -24
- package/dist/main.d.ts +1 -0
- package/dist/message.js +3 -3
- package/dist/pay.js +1 -1
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/request-B4CMspsP.js +196 -0
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-AFq46sfo.js → useAuthkitAppsAuthPageInfo-CtsTqri7.js} +17 -19
- package/dist/{useAuthkitCreateAndUpdate-BZXteclG.js → useAuthkitCreateAndUpdate-BUyZbiBj.js} +1 -1
- package/dist/useAuthkitUsersProfile-B7wHZwe-.js +257 -0
- package/dist/{useDownloads-2DzDw0ic.js → useDownloads-Cl_-B4sP.js} +1 -1
- package/dist/useMessageNotifications-CP7gi893.js +78 -0
- package/dist/{useSEO-BmD-Tu3B.js → useSEO-C_4yDk7S.js} +2 -2
- package/dist/{useTableHandle-SmqaOxbN.js → useTableHandle-6ekhLVbK.js} +1 -1
- package/dist/{useUploadCos-8imaHXLO.js → useUploadCos-dYc8op7M.js} +10 -7
- package/dist/user.js +1 -1
- package/dist/utils/request.d.ts +25 -2
- package/package.json +1 -1
- package/dist/auth-CfexrvhT.js +0 -188
- package/dist/useAuthkitUsersProfile-B26kPQrp.js +0 -234
- package/dist/useMessageNotifications-DiF1CPlT.js +0 -84
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as z, computed as N, createElementBlock as
|
|
1
|
+
import { defineComponent as z, computed as N, createElementBlock as w, openBlock as g, normalizeStyle as O, createElementVNode as s, createCommentVNode as $, renderSlot as D, ref as m, toDisplayString as P, createVNode as o, unref as a, withCtx as r, createTextVNode as V, onMounted as K, createBlock as E, useSlots as G } from "vue";
|
|
2
2
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
@@ -7,14 +7,13 @@ import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
|
-
import { List as J, ListItem as x, ListItemMeta as T, Avatar as F, Button as R, Form as A, FormItem as b, Input as
|
|
11
|
-
import { a as Q } from "./useAuthkitAppsAuthPageInfo-
|
|
12
|
-
import { o as W } from "./
|
|
13
|
-
import {
|
|
14
|
-
import { S as U, v as Z, q as L, g as ee, h as te } from "./AuthkitAuthModal-DxxZlUbh.js";
|
|
10
|
+
import { List as J, ListItem as x, ListItemMeta as T, Avatar as F, Button as R, Form as A, FormItem as b, Input as S, Link as M } from "@arco-design/web-vue";
|
|
11
|
+
import { a as Q } from "./useAuthkitAppsAuthPageInfo-CtsTqri7.js";
|
|
12
|
+
import { o as W, u as X, a as Y } from "./useAuthkitUsersProfile-B7wHZwe-.js";
|
|
13
|
+
import { S as U, v as Z, q as L, g as ee, h as te } from "./AuthkitAuthModal-C1Kgu1TA.js";
|
|
15
14
|
const oe = {
|
|
16
15
|
class: "header"
|
|
17
|
-
},
|
|
16
|
+
}, ae = ["href"], le = {
|
|
18
17
|
class: "container"
|
|
19
18
|
}, se = /* @__PURE__ */ z({
|
|
20
19
|
__name: "AuthkitAuthContainer",
|
|
@@ -59,29 +58,29 @@ const oe = {
|
|
|
59
58
|
}
|
|
60
59
|
},
|
|
61
60
|
setup(y) {
|
|
62
|
-
const
|
|
63
|
-
backgroundColor:
|
|
61
|
+
const f = y, n = N(() => f.backgroundType === "color" ? {
|
|
62
|
+
backgroundColor: f.backgroundColor
|
|
64
63
|
} : {
|
|
65
|
-
backgroundImage: `url(${
|
|
64
|
+
backgroundImage: `url(${f.backgroundImage})`
|
|
66
65
|
});
|
|
67
|
-
return (
|
|
66
|
+
return (l, p) => (g(), w("div", {
|
|
68
67
|
class: "auth",
|
|
69
68
|
style: O(n.value)
|
|
70
|
-
}, [s("div", oe, [
|
|
69
|
+
}, [s("div", oe, [f.name ? (g(), w("a", {
|
|
71
70
|
key: 0,
|
|
72
|
-
href:
|
|
71
|
+
href: f.appHomePage,
|
|
73
72
|
target: "_self",
|
|
74
73
|
class: "link",
|
|
75
74
|
style: O({
|
|
76
|
-
color:
|
|
75
|
+
color: f.linkColor
|
|
77
76
|
})
|
|
78
|
-
}, " 返回主页 ", 12,
|
|
77
|
+
}, " 返回主页 ", 12, ae)) : $("", !0)]), s("div", le, [D(l.$slots, "default", {}, void 0, !0)])], 4));
|
|
79
78
|
}
|
|
80
|
-
}),
|
|
79
|
+
}), Ye = /* @__PURE__ */ C(se, [["__scopeId", "data-v-203946ff"]]), ie = {
|
|
81
80
|
class: "box"
|
|
82
|
-
}, ne = {
|
|
83
|
-
class: "title"
|
|
84
81
|
}, re = {
|
|
82
|
+
class: "title"
|
|
83
|
+
}, ne = {
|
|
85
84
|
class: "content"
|
|
86
85
|
}, de = {
|
|
87
86
|
class: "redirect"
|
|
@@ -139,51 +138,46 @@ const oe = {
|
|
|
139
138
|
}
|
|
140
139
|
},
|
|
141
140
|
setup(y) {
|
|
142
|
-
const
|
|
141
|
+
const f = m(!1), n = y, l = m({
|
|
143
142
|
appKey: "",
|
|
144
143
|
name: "",
|
|
145
144
|
homePageUrl: "",
|
|
146
145
|
createAt: "",
|
|
147
146
|
authorizationCallback: ""
|
|
148
147
|
});
|
|
149
|
-
function
|
|
150
|
-
|
|
151
|
-
id: n.clientId
|
|
152
|
-
}).then(({
|
|
148
|
+
async function p() {
|
|
149
|
+
const {
|
|
153
150
|
data: u
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
}).catch((u) => {
|
|
157
|
-
console.error("获取应用信息失败:", u);
|
|
151
|
+
} = await Q({
|
|
152
|
+
id: n.clientId
|
|
158
153
|
});
|
|
154
|
+
u && (l.value = u);
|
|
159
155
|
}
|
|
160
|
-
|
|
161
|
-
function d() {
|
|
162
|
-
|
|
156
|
+
p();
|
|
157
|
+
async function d() {
|
|
158
|
+
f.value = !0;
|
|
159
|
+
const {
|
|
160
|
+
data: u
|
|
161
|
+
} = await W({
|
|
163
162
|
client_id: n.clientId,
|
|
164
163
|
response_type: n.responseType,
|
|
165
164
|
scope: n.scope,
|
|
166
165
|
state: n.state,
|
|
167
166
|
redirect_uri: n.redirectUri
|
|
168
|
-
}).then(({
|
|
169
|
-
data: u
|
|
170
|
-
}) => {
|
|
171
|
-
p.value = !1, window.location = u.authorizeUrl;
|
|
172
|
-
}).catch((u) => {
|
|
173
|
-
p.value = !1, console.error("授权失败:", u);
|
|
174
167
|
});
|
|
168
|
+
f.value = !1, u && (window.location = u.authorizeUrl);
|
|
175
169
|
}
|
|
176
|
-
return (u, e) => (g(),
|
|
177
|
-
default:
|
|
178
|
-
default:
|
|
170
|
+
return (u, e) => (g(), w("div", ie, [s("div", re, P(`授权 ${l.value.name}`), 1), s("div", ne, [o(a(J), null, {
|
|
171
|
+
default: r(() => [o(a(x), null, {
|
|
172
|
+
default: r(() => {
|
|
179
173
|
var _;
|
|
180
|
-
return [
|
|
181
|
-
title:
|
|
174
|
+
return [o(a(T), {
|
|
175
|
+
title: l.value.name,
|
|
182
176
|
description: `想要使用您的${(_ = n.userInfo) == null ? void 0 : _.nickname}账户`
|
|
183
177
|
}, {
|
|
184
|
-
avatar:
|
|
178
|
+
avatar: r(() => {
|
|
185
179
|
var v;
|
|
186
|
-
return [
|
|
180
|
+
return [o(a(F), {
|
|
187
181
|
shape: "square",
|
|
188
182
|
"image-url": (v = n.userInfo) == null ? void 0 : v.avatar
|
|
189
183
|
}, null, 8, ["image-url"])];
|
|
@@ -192,15 +186,15 @@ const oe = {
|
|
|
192
186
|
}, 8, ["title", "description"])];
|
|
193
187
|
}),
|
|
194
188
|
_: 1
|
|
195
|
-
}),
|
|
196
|
-
default:
|
|
189
|
+
}), o(a(x), null, {
|
|
190
|
+
default: r(() => [o(a(T), {
|
|
197
191
|
title: "公开信息",
|
|
198
192
|
description: "头像、昵称"
|
|
199
193
|
}, {
|
|
200
|
-
avatar:
|
|
194
|
+
avatar: r(() => [o(a(F), {
|
|
201
195
|
shape: "square"
|
|
202
196
|
}, {
|
|
203
|
-
default:
|
|
197
|
+
default: r(() => [...e[0] || (e[0] = [s("img", {
|
|
204
198
|
alt: "avatar",
|
|
205
199
|
src: "https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp"
|
|
206
200
|
}, null, -1)])]),
|
|
@@ -209,15 +203,15 @@ const oe = {
|
|
|
209
203
|
_: 1
|
|
210
204
|
})]),
|
|
211
205
|
_: 1
|
|
212
|
-
}),
|
|
213
|
-
default:
|
|
206
|
+
}), o(a(x), null, {
|
|
207
|
+
default: r(() => [o(a(T), {
|
|
214
208
|
title: "个人用户数据",
|
|
215
209
|
description: "电子邮件地址"
|
|
216
210
|
}, {
|
|
217
|
-
avatar:
|
|
211
|
+
avatar: r(() => [o(a(F), {
|
|
218
212
|
shape: "square"
|
|
219
213
|
}, {
|
|
220
|
-
default:
|
|
214
|
+
default: r(() => [...e[1] || (e[1] = [s("img", {
|
|
221
215
|
alt: "avatar",
|
|
222
216
|
src: "https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp"
|
|
223
217
|
}, null, -1)])]),
|
|
@@ -228,22 +222,22 @@ const oe = {
|
|
|
228
222
|
_: 1
|
|
229
223
|
})]),
|
|
230
224
|
_: 1
|
|
231
|
-
}),
|
|
225
|
+
}), o(a(R), {
|
|
232
226
|
type: "primary",
|
|
233
227
|
size: n.size,
|
|
234
|
-
loading:
|
|
228
|
+
loading: f.value,
|
|
235
229
|
onClick: d
|
|
236
230
|
}, {
|
|
237
|
-
default:
|
|
231
|
+
default: r(() => [...e[2] || (e[2] = [V(" 授权 ", -1)])]),
|
|
238
232
|
_: 1
|
|
239
233
|
}, 8, ["size", "loading"]), s("div", de, [e[3] || (e[3] = s("div", {
|
|
240
234
|
style: {
|
|
241
235
|
color: "#888",
|
|
242
236
|
"font-size": "12px"
|
|
243
237
|
}
|
|
244
|
-
}, "授权后将跳转至", -1)), s("div", ue, P(
|
|
238
|
+
}, "授权后将跳转至", -1)), s("div", ue, P(l.value.authorizationCallback), 1)])])]));
|
|
245
239
|
}
|
|
246
|
-
}),
|
|
240
|
+
}), Ze = /* @__PURE__ */ C(ce, [["__scopeId", "data-v-4e4aa0b7"]]), pe = {
|
|
247
241
|
class: "oauth-callback"
|
|
248
242
|
}, fe = {
|
|
249
243
|
key: 0,
|
|
@@ -263,55 +257,55 @@ const oe = {
|
|
|
263
257
|
},
|
|
264
258
|
emits: ["success", "error", "needBindIdentity"],
|
|
265
259
|
setup(y, {
|
|
266
|
-
emit:
|
|
260
|
+
emit: f
|
|
267
261
|
}) {
|
|
268
|
-
const n = y,
|
|
262
|
+
const n = y, l = f, p = m(!0), d = m(""), {
|
|
269
263
|
setToken: u,
|
|
270
264
|
initializeAuth: e
|
|
271
265
|
} = X(), {
|
|
272
266
|
fetchUserProfile: _
|
|
273
267
|
} = Y();
|
|
274
268
|
async function v() {
|
|
275
|
-
const c = new URLSearchParams(window.location.search),
|
|
276
|
-
if (
|
|
277
|
-
d.value = decodeURIComponent(
|
|
269
|
+
const c = new URLSearchParams(window.location.search), t = c.get("error");
|
|
270
|
+
if (t) {
|
|
271
|
+
d.value = decodeURIComponent(t), p.value = !1, l("error", d.value);
|
|
278
272
|
return;
|
|
279
273
|
}
|
|
280
|
-
const
|
|
281
|
-
if (!
|
|
282
|
-
d.value = "登录失败:未收到认证令牌",
|
|
274
|
+
const i = c.get("token"), h = c.get("userId"), k = c.get("appId"), q = c.get("needBindIdentity") === "true";
|
|
275
|
+
if (!i) {
|
|
276
|
+
d.value = "登录失败:未收到认证令牌", p.value = !1, l("error", d.value);
|
|
283
277
|
return;
|
|
284
278
|
}
|
|
285
279
|
try {
|
|
286
|
-
u(
|
|
280
|
+
u(i), await _();
|
|
287
281
|
const B = window.location.pathname;
|
|
288
|
-
if (window.history.replaceState({}, "", B), q && (
|
|
289
|
-
token:
|
|
282
|
+
if (window.history.replaceState({}, "", B), q && (l("needBindIdentity", {
|
|
283
|
+
token: i,
|
|
290
284
|
userId: h || "",
|
|
291
|
-
appId:
|
|
285
|
+
appId: k || ""
|
|
292
286
|
}), n.bindIdentityRedirect)) {
|
|
293
|
-
|
|
287
|
+
p.value = !1, setTimeout(() => {
|
|
294
288
|
window.location.href = n.bindIdentityRedirect;
|
|
295
289
|
}, 300);
|
|
296
290
|
return;
|
|
297
291
|
}
|
|
298
|
-
|
|
299
|
-
token:
|
|
292
|
+
l("success", {
|
|
293
|
+
token: i,
|
|
300
294
|
userId: h || "",
|
|
301
|
-
appId:
|
|
295
|
+
appId: k || "",
|
|
302
296
|
needBindIdentity: q
|
|
303
297
|
});
|
|
304
298
|
const H = sessionStorage.getItem("auth_redirect");
|
|
305
299
|
sessionStorage.removeItem("auth_redirect");
|
|
306
300
|
const j = H || n.defaultRedirect || "/";
|
|
307
|
-
|
|
301
|
+
p.value = !1, setTimeout(() => {
|
|
308
302
|
window.location.href = j;
|
|
309
303
|
}, 500);
|
|
310
304
|
} catch (B) {
|
|
311
|
-
console.error("OAuth 回调处理失败:", B), d.value = "登录处理失败,请重试",
|
|
305
|
+
console.error("OAuth 回调处理失败:", B), d.value = "登录处理失败,请重试", p.value = !1, l("error", d.value);
|
|
312
306
|
}
|
|
313
307
|
}
|
|
314
|
-
function
|
|
308
|
+
function I() {
|
|
315
309
|
const c = sessionStorage.getItem("auth_redirect");
|
|
316
310
|
sessionStorage.removeItem("auth_redirect"), window.location.href = c || n.defaultRedirect || "/";
|
|
317
311
|
}
|
|
@@ -320,33 +314,33 @@ const oe = {
|
|
|
320
314
|
if (c.has("token") || c.has("error"))
|
|
321
315
|
v();
|
|
322
316
|
else if (e()) {
|
|
323
|
-
const
|
|
324
|
-
sessionStorage.removeItem("auth_redirect"), window.location.href =
|
|
317
|
+
const t = sessionStorage.getItem("auth_redirect");
|
|
318
|
+
sessionStorage.removeItem("auth_redirect"), window.location.href = t || n.defaultRedirect || "/";
|
|
325
319
|
} else
|
|
326
|
-
d.value = "无效的访问",
|
|
327
|
-
}), (c,
|
|
320
|
+
d.value = "无效的访问", p.value = !1;
|
|
321
|
+
}), (c, t) => (g(), w("div", pe, [p.value ? (g(), w("div", fe, [t[0] || (t[0] = s("div", {
|
|
328
322
|
class: "spinner"
|
|
329
|
-
}, null, -1)), s("p", null, P(y.loadingText), 1)])) : d.value ? (g(),
|
|
323
|
+
}, null, -1)), s("p", null, P(y.loadingText), 1)])) : d.value ? (g(), w("div", me, [t[1] || (t[1] = s("div", {
|
|
330
324
|
class: "error-icon"
|
|
331
|
-
}, "✕", -1)),
|
|
325
|
+
}, "✕", -1)), t[2] || (t[2] = s("h2", null, "登录失败", -1)), s("p", null, P(d.value), 1), s("button", {
|
|
332
326
|
class: "retry-btn",
|
|
333
|
-
onClick:
|
|
334
|
-
}, "返回重试")])) : (g(),
|
|
327
|
+
onClick: I
|
|
328
|
+
}, "返回重试")])) : (g(), w("div", ve, [...t[3] || (t[3] = [s("div", {
|
|
335
329
|
class: "success-icon"
|
|
336
330
|
}, "✓", -1), s("p", null, "登录成功,正在跳转...", -1)])]))]));
|
|
337
331
|
}
|
|
338
|
-
}),
|
|
332
|
+
}), et = /* @__PURE__ */ C(he, [["__scopeId", "data-v-07b0e1e4"]]), ge = {
|
|
339
333
|
class: "BindEmail"
|
|
340
334
|
}, ye = {
|
|
341
335
|
class: "content"
|
|
342
336
|
}, _e = {
|
|
343
337
|
class: "sendVerifyCodeItem"
|
|
344
|
-
},
|
|
338
|
+
}, we = {
|
|
345
339
|
class: "handle"
|
|
346
|
-
},
|
|
340
|
+
}, ke = {
|
|
347
341
|
key: 0,
|
|
348
342
|
class: "skip"
|
|
349
|
-
},
|
|
343
|
+
}, be = /* @__PURE__ */ z({
|
|
350
344
|
__name: "AuthkitBindEmail",
|
|
351
345
|
props: {
|
|
352
346
|
size: {
|
|
@@ -366,25 +360,23 @@ const oe = {
|
|
|
366
360
|
},
|
|
367
361
|
emits: ["submit", "skip"],
|
|
368
362
|
setup(y, {
|
|
369
|
-
emit:
|
|
363
|
+
emit: f
|
|
370
364
|
}) {
|
|
371
|
-
const n =
|
|
365
|
+
const n = f, l = y, p = m(), d = m(!1), u = m(), e = m({
|
|
372
366
|
email: void 0,
|
|
373
367
|
userToken: void 0,
|
|
374
368
|
emailVerifyId: void 0
|
|
375
369
|
});
|
|
376
370
|
async function _() {
|
|
377
|
-
u.value.validateField(["email"])
|
|
378
|
-
|
|
371
|
+
if (!await u.value.validateField(["email"])) {
|
|
372
|
+
d.value = !0;
|
|
373
|
+
const {
|
|
374
|
+
data: t
|
|
375
|
+
} = await Z({
|
|
379
376
|
email: e.value.email
|
|
380
|
-
})
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
e.value.emailVerifyId = o.emailVerifyId, d.value = !1, f.value.startCountFn();
|
|
384
|
-
}).catch(() => {
|
|
385
|
-
d.value = !1;
|
|
386
|
-
}));
|
|
387
|
-
});
|
|
377
|
+
});
|
|
378
|
+
d.value = !1, t && (e.value.emailVerifyId = t.emailVerifyId, p.value.startCountFn());
|
|
379
|
+
}
|
|
388
380
|
}
|
|
389
381
|
async function v() {
|
|
390
382
|
u.value.validate().then((c) => {
|
|
@@ -395,23 +387,23 @@ const oe = {
|
|
|
395
387
|
});
|
|
396
388
|
});
|
|
397
389
|
}
|
|
398
|
-
function
|
|
390
|
+
function I() {
|
|
399
391
|
n("skip");
|
|
400
392
|
}
|
|
401
|
-
return (c,
|
|
393
|
+
return (c, t) => (g(), w("div", ge, [t[4] || (t[4] = s("div", {
|
|
402
394
|
class: "header"
|
|
403
395
|
}, [s("h3", {
|
|
404
396
|
class: "title"
|
|
405
397
|
}, "绑定邮箱"), s("p", {
|
|
406
398
|
class: "subtitle"
|
|
407
|
-
}, "请绑定邮箱以完成账号设置,绑定后可使用邮箱登录")], -1)), s("div", ye, [
|
|
399
|
+
}, "请绑定邮箱以完成账号设置,绑定后可使用邮箱登录")], -1)), s("div", ye, [o(a(A), {
|
|
408
400
|
ref_key: "formRef",
|
|
409
401
|
ref: u,
|
|
410
402
|
model: e.value,
|
|
411
|
-
size:
|
|
403
|
+
size: l.size,
|
|
412
404
|
"auto-label-width": ""
|
|
413
405
|
}, {
|
|
414
|
-
default:
|
|
406
|
+
default: r(() => [o(a(b), {
|
|
415
407
|
field: "email",
|
|
416
408
|
label: "邮箱",
|
|
417
409
|
"hide-label": "",
|
|
@@ -423,15 +415,15 @@ const oe = {
|
|
|
423
415
|
message: "请输入有效的邮箱"
|
|
424
416
|
}]
|
|
425
417
|
}, {
|
|
426
|
-
default:
|
|
418
|
+
default: r(() => [o(a(S), {
|
|
427
419
|
modelValue: e.value.email,
|
|
428
|
-
"onUpdate:modelValue":
|
|
420
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => e.value.email = i),
|
|
429
421
|
placeholder: "请输入邮箱",
|
|
430
422
|
autocomplete: "email",
|
|
431
423
|
type: "email"
|
|
432
424
|
}, null, 8, ["modelValue"])]),
|
|
433
425
|
_: 1
|
|
434
|
-
}),
|
|
426
|
+
}), o(a(b), {
|
|
435
427
|
field: "userToken",
|
|
436
428
|
label: "验证码",
|
|
437
429
|
"hide-label": "",
|
|
@@ -440,15 +432,15 @@ const oe = {
|
|
|
440
432
|
message: "请输入验证码"
|
|
441
433
|
}]
|
|
442
434
|
}, {
|
|
443
|
-
default:
|
|
435
|
+
default: r(() => [s("div", _e, [o(a(S), {
|
|
444
436
|
modelValue: e.value.userToken,
|
|
445
|
-
"onUpdate:modelValue":
|
|
437
|
+
"onUpdate:modelValue": t[1] || (t[1] = (i) => e.value.userToken = i),
|
|
446
438
|
placeholder: "请输入验证码",
|
|
447
439
|
autocomplete: "one-time-code"
|
|
448
|
-
}, null, 8, ["modelValue"]),
|
|
440
|
+
}, null, 8, ["modelValue"]), o(U, {
|
|
449
441
|
ref_key: "SendVerifyCodeRef",
|
|
450
|
-
ref:
|
|
451
|
-
size:
|
|
442
|
+
ref: p,
|
|
443
|
+
size: l.size,
|
|
452
444
|
loading: d.value,
|
|
453
445
|
style: {
|
|
454
446
|
"margin-left": "10px"
|
|
@@ -456,25 +448,25 @@ const oe = {
|
|
|
456
448
|
onSend: _
|
|
457
449
|
}, null, 8, ["size", "loading"])])]),
|
|
458
450
|
_: 1
|
|
459
|
-
}), s("div",
|
|
451
|
+
}), s("div", we, [o(a(R), {
|
|
460
452
|
type: "primary",
|
|
461
|
-
loading:
|
|
453
|
+
loading: l.loading,
|
|
462
454
|
long: "",
|
|
463
|
-
size:
|
|
455
|
+
size: l.size,
|
|
464
456
|
onClick: v
|
|
465
457
|
}, {
|
|
466
|
-
default:
|
|
458
|
+
default: r(() => [...t[2] || (t[2] = [V(" 绑定邮箱 ", -1)])]),
|
|
467
459
|
_: 1
|
|
468
460
|
}, 8, ["loading", "size"])])]),
|
|
469
461
|
_: 1
|
|
470
|
-
}, 8, ["model", "size"])]),
|
|
471
|
-
onClick:
|
|
462
|
+
}, 8, ["model", "size"])]), l.showSkip ? (g(), w("div", ke, [o(a(M), {
|
|
463
|
+
onClick: I
|
|
472
464
|
}, {
|
|
473
|
-
default:
|
|
465
|
+
default: r(() => [...t[3] || (t[3] = [V("稍后绑定", -1)])]),
|
|
474
466
|
_: 1
|
|
475
467
|
})])) : $("", !0)]));
|
|
476
468
|
}
|
|
477
|
-
}),
|
|
469
|
+
}), tt = /* @__PURE__ */ C(be, [["__scopeId", "data-v-32e32de7"]]), Se = {
|
|
478
470
|
class: "BindPhone"
|
|
479
471
|
}, Ie = {
|
|
480
472
|
class: "content"
|
|
@@ -504,22 +496,22 @@ const oe = {
|
|
|
504
496
|
},
|
|
505
497
|
emits: ["submit", "skip"],
|
|
506
498
|
setup(y, {
|
|
507
|
-
emit:
|
|
499
|
+
emit: f
|
|
508
500
|
}) {
|
|
509
|
-
const n =
|
|
501
|
+
const n = f, l = y, p = m(), d = m(!1), u = m(), e = m({
|
|
510
502
|
phone: void 0,
|
|
511
503
|
code: void 0
|
|
512
504
|
});
|
|
513
505
|
async function _() {
|
|
514
|
-
u.value.validateField(["phone"])
|
|
515
|
-
|
|
506
|
+
if (!await u.value.validateField(["phone"])) {
|
|
507
|
+
d.value = !0;
|
|
508
|
+
const {
|
|
509
|
+
error: t
|
|
510
|
+
} = await L({
|
|
516
511
|
phone: e.value.phone
|
|
517
|
-
})
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
d.value = !1;
|
|
521
|
-
}));
|
|
522
|
-
});
|
|
512
|
+
});
|
|
513
|
+
d.value = !1, t || p.value.startCountFn();
|
|
514
|
+
}
|
|
523
515
|
}
|
|
524
516
|
async function v() {
|
|
525
517
|
u.value.validate().then((c) => {
|
|
@@ -529,23 +521,23 @@ const oe = {
|
|
|
529
521
|
});
|
|
530
522
|
});
|
|
531
523
|
}
|
|
532
|
-
function
|
|
524
|
+
function I() {
|
|
533
525
|
n("skip");
|
|
534
526
|
}
|
|
535
|
-
return (c,
|
|
527
|
+
return (c, t) => (g(), w("div", Se, [t[4] || (t[4] = s("div", {
|
|
536
528
|
class: "header"
|
|
537
529
|
}, [s("h3", {
|
|
538
530
|
class: "title"
|
|
539
531
|
}, "绑定手机号"), s("p", {
|
|
540
532
|
class: "subtitle"
|
|
541
|
-
}, "请绑定手机号以完成账号设置")], -1)), s("div", Ie, [
|
|
533
|
+
}, "请绑定手机号以完成账号设置")], -1)), s("div", Ie, [o(a(A), {
|
|
542
534
|
ref_key: "formRef",
|
|
543
535
|
ref: u,
|
|
544
536
|
model: e.value,
|
|
545
|
-
size:
|
|
537
|
+
size: l.size,
|
|
546
538
|
"auto-label-width": ""
|
|
547
539
|
}, {
|
|
548
|
-
default:
|
|
540
|
+
default: r(() => [o(a(b), {
|
|
549
541
|
field: "phone",
|
|
550
542
|
label: "手机号",
|
|
551
543
|
"hide-label": "",
|
|
@@ -557,15 +549,15 @@ const oe = {
|
|
|
557
549
|
message: "请输入有效的手机号"
|
|
558
550
|
}]
|
|
559
551
|
}, {
|
|
560
|
-
default:
|
|
552
|
+
default: r(() => [o(a(S), {
|
|
561
553
|
modelValue: e.value.phone,
|
|
562
|
-
"onUpdate:modelValue":
|
|
554
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => e.value.phone = i),
|
|
563
555
|
placeholder: "请输入手机号",
|
|
564
556
|
autocomplete: "tel",
|
|
565
557
|
type: "tel"
|
|
566
558
|
}, null, 8, ["modelValue"])]),
|
|
567
559
|
_: 1
|
|
568
|
-
}),
|
|
560
|
+
}), o(a(b), {
|
|
569
561
|
field: "code",
|
|
570
562
|
label: "验证码",
|
|
571
563
|
"hide-label": "",
|
|
@@ -574,15 +566,15 @@ const oe = {
|
|
|
574
566
|
message: "请输入验证码"
|
|
575
567
|
}]
|
|
576
568
|
}, {
|
|
577
|
-
default:
|
|
569
|
+
default: r(() => [s("div", Ve, [o(a(S), {
|
|
578
570
|
modelValue: e.value.code,
|
|
579
|
-
"onUpdate:modelValue":
|
|
571
|
+
"onUpdate:modelValue": t[1] || (t[1] = (i) => e.value.code = i),
|
|
580
572
|
placeholder: "请输入验证码",
|
|
581
573
|
autocomplete: "one-time-code"
|
|
582
|
-
}, null, 8, ["modelValue"]),
|
|
574
|
+
}, null, 8, ["modelValue"]), o(U, {
|
|
583
575
|
ref_key: "SendVerifyCodeRef",
|
|
584
|
-
ref:
|
|
585
|
-
size:
|
|
576
|
+
ref: p,
|
|
577
|
+
size: l.size,
|
|
586
578
|
loading: d.value,
|
|
587
579
|
style: {
|
|
588
580
|
"margin-left": "10px"
|
|
@@ -590,25 +582,25 @@ const oe = {
|
|
|
590
582
|
onSend: _
|
|
591
583
|
}, null, 8, ["size", "loading"])])]),
|
|
592
584
|
_: 1
|
|
593
|
-
}), s("div", ze, [
|
|
585
|
+
}), s("div", ze, [o(a(R), {
|
|
594
586
|
type: "primary",
|
|
595
|
-
loading:
|
|
587
|
+
loading: l.loading,
|
|
596
588
|
long: "",
|
|
597
|
-
size:
|
|
589
|
+
size: l.size,
|
|
598
590
|
onClick: v
|
|
599
591
|
}, {
|
|
600
|
-
default:
|
|
592
|
+
default: r(() => [...t[2] || (t[2] = [V(" 绑定手机号 ", -1)])]),
|
|
601
593
|
_: 1
|
|
602
594
|
}, 8, ["loading", "size"])])]),
|
|
603
595
|
_: 1
|
|
604
|
-
}, 8, ["model", "size"])]),
|
|
605
|
-
onClick:
|
|
596
|
+
}, 8, ["model", "size"])]), l.showSkip ? (g(), w("div", Ce, [o(a(M), {
|
|
597
|
+
onClick: I
|
|
606
598
|
}, {
|
|
607
|
-
default:
|
|
599
|
+
default: r(() => [...t[3] || (t[3] = [V("稍后绑定", -1)])]),
|
|
608
600
|
_: 1
|
|
609
601
|
})])) : $("", !0)]));
|
|
610
602
|
}
|
|
611
|
-
}),
|
|
603
|
+
}), ot = /* @__PURE__ */ C(qe, [["__scopeId", "data-v-858398f4"]]), $e = {
|
|
612
604
|
class: "SignUpPhone"
|
|
613
605
|
}, Re = {
|
|
614
606
|
class: "content"
|
|
@@ -636,9 +628,9 @@ const oe = {
|
|
|
636
628
|
},
|
|
637
629
|
emits: ["switchSignIn", "submit"],
|
|
638
630
|
setup(y, {
|
|
639
|
-
emit:
|
|
631
|
+
emit: f
|
|
640
632
|
}) {
|
|
641
|
-
const n =
|
|
633
|
+
const n = f, l = y, p = m(), d = m(!1), u = m(), e = m({
|
|
642
634
|
phone: void 0,
|
|
643
635
|
code: void 0,
|
|
644
636
|
password: void 0,
|
|
@@ -648,27 +640,27 @@ const oe = {
|
|
|
648
640
|
required: !0,
|
|
649
641
|
message: "请输入确认密码"
|
|
650
642
|
}, {
|
|
651
|
-
validator: (
|
|
652
|
-
e.value.password &&
|
|
643
|
+
validator: (t, i) => {
|
|
644
|
+
e.value.password && t !== e.value.password ? i("两次密码输入不一致") : i();
|
|
653
645
|
}
|
|
654
646
|
}];
|
|
655
647
|
function v() {
|
|
656
648
|
n("switchSignIn");
|
|
657
649
|
}
|
|
658
|
-
async function
|
|
659
|
-
u.value.validateField(["phone"])
|
|
660
|
-
|
|
650
|
+
async function I() {
|
|
651
|
+
if (!await u.value.validateField(["phone"])) {
|
|
652
|
+
d.value = !0;
|
|
653
|
+
const {
|
|
654
|
+
error: i
|
|
655
|
+
} = await L({
|
|
661
656
|
phone: e.value.phone
|
|
662
|
-
})
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
d.value = !1;
|
|
666
|
-
}));
|
|
667
|
-
});
|
|
657
|
+
});
|
|
658
|
+
d.value = !1, i || p.value.startCountFn();
|
|
659
|
+
}
|
|
668
660
|
}
|
|
669
661
|
async function c() {
|
|
670
|
-
u.value.validate().then((
|
|
671
|
-
|
|
662
|
+
u.value.validate().then((t) => {
|
|
663
|
+
t || n("submit", {
|
|
672
664
|
phone: e.value.phone,
|
|
673
665
|
code: e.value.code,
|
|
674
666
|
password: e.value.password,
|
|
@@ -676,14 +668,14 @@ const oe = {
|
|
|
676
668
|
});
|
|
677
669
|
});
|
|
678
670
|
}
|
|
679
|
-
return (
|
|
671
|
+
return (t, i) => (g(), w("div", $e, [s("div", Re, [o(a(A), {
|
|
680
672
|
ref_key: "formRef",
|
|
681
673
|
ref: u,
|
|
682
674
|
model: e.value,
|
|
683
|
-
size:
|
|
675
|
+
size: l.size,
|
|
684
676
|
"auto-label-width": ""
|
|
685
677
|
}, {
|
|
686
|
-
default:
|
|
678
|
+
default: r(() => [o(a(b), {
|
|
687
679
|
field: "phone",
|
|
688
680
|
label: "手机号",
|
|
689
681
|
"hide-label": "",
|
|
@@ -695,15 +687,15 @@ const oe = {
|
|
|
695
687
|
message: "请输入有效的手机号"
|
|
696
688
|
}]
|
|
697
689
|
}, {
|
|
698
|
-
default:
|
|
690
|
+
default: r(() => [o(a(S), {
|
|
699
691
|
modelValue: e.value.phone,
|
|
700
|
-
"onUpdate:modelValue":
|
|
692
|
+
"onUpdate:modelValue": i[0] || (i[0] = (h) => e.value.phone = h),
|
|
701
693
|
placeholder: "请输入手机号",
|
|
702
694
|
autocomplete: "tel",
|
|
703
695
|
type: "tel"
|
|
704
696
|
}, null, 8, ["modelValue"])]),
|
|
705
697
|
_: 1
|
|
706
|
-
}),
|
|
698
|
+
}), o(a(b), {
|
|
707
699
|
field: "code",
|
|
708
700
|
label: "验证码",
|
|
709
701
|
"hide-label": "",
|
|
@@ -712,59 +704,59 @@ const oe = {
|
|
|
712
704
|
message: "请输入验证码"
|
|
713
705
|
}]
|
|
714
706
|
}, {
|
|
715
|
-
default:
|
|
707
|
+
default: r(() => [s("div", Pe, [o(a(S), {
|
|
716
708
|
modelValue: e.value.code,
|
|
717
|
-
"onUpdate:modelValue":
|
|
709
|
+
"onUpdate:modelValue": i[1] || (i[1] = (h) => e.value.code = h),
|
|
718
710
|
placeholder: "请输入验证码",
|
|
719
711
|
autocomplete: "one-time-code"
|
|
720
|
-
}, null, 8, ["modelValue"]),
|
|
712
|
+
}, null, 8, ["modelValue"]), o(U, {
|
|
721
713
|
ref_key: "SendVerifyCodeRef",
|
|
722
|
-
ref:
|
|
723
|
-
size:
|
|
714
|
+
ref: p,
|
|
715
|
+
size: l.size,
|
|
724
716
|
loading: d.value,
|
|
725
717
|
style: {
|
|
726
718
|
"margin-left": "10px"
|
|
727
719
|
},
|
|
728
|
-
onSend:
|
|
720
|
+
onSend: I
|
|
729
721
|
}, null, 8, ["size", "loading"])])]),
|
|
730
722
|
_: 1
|
|
731
|
-
}),
|
|
723
|
+
}), l.requirePassword ? (g(), E(a(b), {
|
|
732
724
|
key: 0,
|
|
733
725
|
field: "password",
|
|
734
726
|
label: "密码",
|
|
735
727
|
"hide-label": "",
|
|
736
728
|
rules: [{
|
|
737
|
-
required:
|
|
729
|
+
required: l.requirePassword,
|
|
738
730
|
message: "密码请输入"
|
|
739
731
|
}, {
|
|
740
732
|
minLength: 10,
|
|
741
733
|
message: "密码不能少于10字符"
|
|
742
734
|
}]
|
|
743
735
|
}, {
|
|
744
|
-
default:
|
|
736
|
+
default: r(() => [o(a(S), {
|
|
745
737
|
modelValue: e.value.password,
|
|
746
|
-
"onUpdate:modelValue":
|
|
738
|
+
"onUpdate:modelValue": i[2] || (i[2] = (h) => e.value.password = h),
|
|
747
739
|
placeholder: "请输入密码(可选)",
|
|
748
740
|
type: "password",
|
|
749
741
|
autocomplete: "new-password"
|
|
750
742
|
}, null, 8, ["modelValue"])]),
|
|
751
743
|
_: 1
|
|
752
|
-
}, 8, ["rules"])) : $("", !0),
|
|
744
|
+
}, 8, ["rules"])) : $("", !0), l.requirePassword && e.value.password ? (g(), E(a(b), {
|
|
753
745
|
key: 1,
|
|
754
746
|
field: "confirmPassword",
|
|
755
747
|
label: "确认密码",
|
|
756
748
|
"hide-label": "",
|
|
757
749
|
rules: _
|
|
758
750
|
}, {
|
|
759
|
-
default:
|
|
751
|
+
default: r(() => [o(a(S), {
|
|
760
752
|
modelValue: e.value.confirmPassword,
|
|
761
|
-
"onUpdate:modelValue":
|
|
753
|
+
"onUpdate:modelValue": i[3] || (i[3] = (h) => e.value.confirmPassword = h),
|
|
762
754
|
placeholder: "请输入确认密码",
|
|
763
755
|
type: "password",
|
|
764
756
|
autocomplete: "new-password"
|
|
765
757
|
}, null, 8, ["modelValue"])]),
|
|
766
758
|
_: 1
|
|
767
|
-
})) : $("", !0),
|
|
759
|
+
})) : $("", !0), o(a(b), {
|
|
768
760
|
field: "referrerId",
|
|
769
761
|
label: "邀请人",
|
|
770
762
|
"hide-label": "",
|
|
@@ -772,29 +764,29 @@ const oe = {
|
|
|
772
764
|
required: !1
|
|
773
765
|
}]
|
|
774
766
|
}, {
|
|
775
|
-
default:
|
|
767
|
+
default: r(() => [o(a(S), {
|
|
776
768
|
modelValue: e.value.referrerId,
|
|
777
|
-
"onUpdate:modelValue":
|
|
769
|
+
"onUpdate:modelValue": i[4] || (i[4] = (h) => e.value.referrerId = h),
|
|
778
770
|
placeholder: "邀请人ID(可选)",
|
|
779
771
|
autocomplete: "off"
|
|
780
772
|
}, null, 8, ["modelValue"])]),
|
|
781
773
|
_: 1
|
|
782
|
-
}), s("div", Ae, [
|
|
774
|
+
}), s("div", Ae, [o(a(R), {
|
|
783
775
|
type: "primary",
|
|
784
|
-
loading:
|
|
776
|
+
loading: l.loading,
|
|
785
777
|
long: "",
|
|
786
|
-
size:
|
|
778
|
+
size: l.size,
|
|
787
779
|
onClick: c
|
|
788
780
|
}, {
|
|
789
|
-
default:
|
|
781
|
+
default: r(() => [...i[5] || (i[5] = [V(" 注册 ", -1)])]),
|
|
790
782
|
_: 1
|
|
791
783
|
}, 8, ["loading", "size"])])]),
|
|
792
784
|
_: 1
|
|
793
|
-
}, 8, ["model", "size"])]),
|
|
785
|
+
}, 8, ["model", "size"])]), o(ee, {
|
|
794
786
|
onSwitchSignIn: v
|
|
795
787
|
})]));
|
|
796
788
|
}
|
|
797
|
-
}), at = /* @__PURE__ */ C(Ue, [["__scopeId", "data-v-
|
|
789
|
+
}), at = /* @__PURE__ */ C(Ue, [["__scopeId", "data-v-eb9d153f"]]), Be = {
|
|
798
790
|
class: "SignInPhone"
|
|
799
791
|
}, xe = {
|
|
800
792
|
class: "content"
|
|
@@ -817,30 +809,30 @@ const oe = {
|
|
|
817
809
|
},
|
|
818
810
|
emits: ["submit", "switchSignUp", "switchResetPassword"],
|
|
819
811
|
setup(y, {
|
|
820
|
-
emit:
|
|
812
|
+
emit: f
|
|
821
813
|
}) {
|
|
822
|
-
const n =
|
|
814
|
+
const n = f, l = y, p = G(), d = N(() => !!p.OAuth), u = m(), e = m(!1), _ = m(), v = m({
|
|
823
815
|
phone: void 0,
|
|
824
816
|
code: void 0
|
|
825
817
|
});
|
|
826
|
-
function
|
|
818
|
+
function I() {
|
|
827
819
|
n("switchSignUp");
|
|
828
820
|
}
|
|
829
821
|
function c() {
|
|
830
822
|
n("switchResetPassword");
|
|
831
823
|
}
|
|
832
|
-
async function
|
|
833
|
-
_.value.validateField(["phone"])
|
|
834
|
-
|
|
824
|
+
async function t() {
|
|
825
|
+
if (!await _.value.validateField(["phone"])) {
|
|
826
|
+
e.value = !0;
|
|
827
|
+
const {
|
|
828
|
+
error: k
|
|
829
|
+
} = await L({
|
|
835
830
|
phone: v.value.phone
|
|
836
|
-
})
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
e.value = !1;
|
|
840
|
-
}));
|
|
841
|
-
});
|
|
831
|
+
});
|
|
832
|
+
e.value = !1, k || u.value.startCountFn();
|
|
833
|
+
}
|
|
842
834
|
}
|
|
843
|
-
async function
|
|
835
|
+
async function i() {
|
|
844
836
|
_.value.validate().then((h) => {
|
|
845
837
|
h || n("submit", {
|
|
846
838
|
identifier: v.value.phone,
|
|
@@ -849,14 +841,14 @@ const oe = {
|
|
|
849
841
|
});
|
|
850
842
|
});
|
|
851
843
|
}
|
|
852
|
-
return (h,
|
|
844
|
+
return (h, k) => (g(), w("div", Be, [s("div", xe, [o(a(A), {
|
|
853
845
|
ref_key: "formRef",
|
|
854
846
|
ref: _,
|
|
855
847
|
model: v.value,
|
|
856
|
-
size:
|
|
848
|
+
size: l.size,
|
|
857
849
|
"auto-label-width": ""
|
|
858
850
|
}, {
|
|
859
|
-
default:
|
|
851
|
+
default: r(() => [o(a(b), {
|
|
860
852
|
field: "phone",
|
|
861
853
|
label: "手机号",
|
|
862
854
|
"hide-label": "",
|
|
@@ -868,15 +860,15 @@ const oe = {
|
|
|
868
860
|
message: "请输入有效的手机号"
|
|
869
861
|
}]
|
|
870
862
|
}, {
|
|
871
|
-
default:
|
|
863
|
+
default: r(() => [o(a(S), {
|
|
872
864
|
modelValue: v.value.phone,
|
|
873
|
-
"onUpdate:modelValue":
|
|
865
|
+
"onUpdate:modelValue": k[0] || (k[0] = (q) => v.value.phone = q),
|
|
874
866
|
placeholder: "请输入手机号",
|
|
875
867
|
autocomplete: "tel",
|
|
876
868
|
type: "tel"
|
|
877
869
|
}, null, 8, ["modelValue"])]),
|
|
878
870
|
_: 1
|
|
879
|
-
}),
|
|
871
|
+
}), o(a(b), {
|
|
880
872
|
field: "code",
|
|
881
873
|
label: "验证码",
|
|
882
874
|
"hide-label": "",
|
|
@@ -885,47 +877,47 @@ const oe = {
|
|
|
885
877
|
message: "请输入验证码"
|
|
886
878
|
}]
|
|
887
879
|
}, {
|
|
888
|
-
default:
|
|
880
|
+
default: r(() => [s("div", Te, [o(a(S), {
|
|
889
881
|
modelValue: v.value.code,
|
|
890
|
-
"onUpdate:modelValue":
|
|
882
|
+
"onUpdate:modelValue": k[1] || (k[1] = (q) => v.value.code = q),
|
|
891
883
|
placeholder: "请输入验证码",
|
|
892
884
|
autocomplete: "one-time-code"
|
|
893
|
-
}, null, 8, ["modelValue"]),
|
|
885
|
+
}, null, 8, ["modelValue"]), o(U, {
|
|
894
886
|
ref_key: "SendVerifyCodeRef",
|
|
895
887
|
ref: u,
|
|
896
|
-
size:
|
|
888
|
+
size: l.size,
|
|
897
889
|
loading: e.value,
|
|
898
890
|
style: {
|
|
899
891
|
"margin-left": "10px"
|
|
900
892
|
},
|
|
901
|
-
onSend:
|
|
893
|
+
onSend: t
|
|
902
894
|
}, null, 8, ["size", "loading"])])]),
|
|
903
895
|
_: 1
|
|
904
|
-
}), s("div", Fe, [
|
|
896
|
+
}), s("div", Fe, [o(a(R), {
|
|
905
897
|
type: "primary",
|
|
906
|
-
loading:
|
|
898
|
+
loading: l.loading,
|
|
907
899
|
long: "",
|
|
908
|
-
size:
|
|
909
|
-
onClick:
|
|
900
|
+
size: l.size,
|
|
901
|
+
onClick: i
|
|
910
902
|
}, {
|
|
911
|
-
default:
|
|
903
|
+
default: r(() => [...k[2] || (k[2] = [V(" 登录 ", -1)])]),
|
|
912
904
|
_: 1
|
|
913
905
|
}, 8, ["loading", "size"])])]),
|
|
914
906
|
_: 1
|
|
915
907
|
}, 8, ["model", "size"])]), d.value ? D(h.$slots, "OAuth", {
|
|
916
908
|
key: 0
|
|
917
|
-
}, void 0, !0) : $("", !0),
|
|
918
|
-
onSwitchSignUp:
|
|
909
|
+
}, void 0, !0) : $("", !0), o(te, {
|
|
910
|
+
onSwitchSignUp: I,
|
|
919
911
|
onSwitchResetPassword: c
|
|
920
912
|
})]));
|
|
921
913
|
}
|
|
922
|
-
}),
|
|
914
|
+
}), lt = /* @__PURE__ */ C(Le, [["__scopeId", "data-v-bee74836"]]);
|
|
923
915
|
export {
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
916
|
+
Ye as A,
|
|
917
|
+
Ze as a,
|
|
918
|
+
et as b,
|
|
919
|
+
tt as c,
|
|
920
|
+
ot as d,
|
|
929
921
|
at as e,
|
|
930
|
-
|
|
922
|
+
lt as f
|
|
931
923
|
};
|