@huyooo/ui 1.0.7 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AuthkitAppSetting-DCQH9IpU.js +2678 -0
- package/dist/{Contact-BWuVR9ho.js → Contact-C7ROEqe-.js} +9 -9
- package/dist/{CustomTable-BzGfaAVH.js → CustomTable-GgvDEidl.js} +1 -1
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-C1hPqnNT.js +1531 -0
- package/dist/{LegalDocViewer-DM8FYBpf.js → LegalDocViewer-D_QUh0uf.js} +747 -748
- package/dist/MessageHandle-DKoySsCG.js +1233 -0
- package/dist/{MessageList-Ce-_LNTk.js → MessageList-HSiKkUoD.js} +4 -4
- package/dist/PaySubscriptions-NcATVJGm.js +1331 -0
- package/dist/{PricingPlans-CV97ck9p.js → PricingPlans-CZn6eJby.js} +99 -105
- package/dist/{ReferrerReferees-DgygiIiE.js → ReferrerReferees-BoOQIssE.js} +47 -46
- package/dist/Upload.vue_vue_type_script_setup_true_lang-CkS2S9Xc.js +83 -0
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-0Td42Nb3.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BrNx6JWe.js} +64 -65
- package/dist/WidthContainer-BJLdZfzF.js +717 -0
- package/dist/api/billingSubscriptionApi.d.ts +4 -1
- package/dist/apiClients-CR-hEwog.js +245 -0
- package/dist/authkit.js +10 -10
- package/dist/common/globalConfig.d.ts +36 -18
- package/dist/common.js +2 -2
- package/dist/components/Authkit/Auth/AuthkitOauthCallback.vue.d.ts +2 -2
- package/dist/components/Authkit/AuthkitProvider.vue.d.ts +0 -5
- package/dist/components/Feedback/FeedbackDetails.vue.d.ts +11 -0
- package/dist/components/Upload/Upload.vue.d.ts +7 -6
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +3 -0
- package/dist/composables/Billing/usePaymentReturn.d.ts +1 -0
- package/dist/composables/uploadFeedbackAttachment.d.ts +8 -1
- package/dist/composables/useMessageList.d.ts +2 -1
- package/dist/composables.d.ts +2 -2
- package/dist/composables.js +46 -46
- package/dist/feedback.js +2 -2
- package/dist/{fetchAuthPageAboutUs-dzTSwRsB.js → fetchAuthPageAboutUs-BnKWq_TL.js} +4 -4
- package/dist/{index-BkLvw1PU.js → index-BhVwozr0.js} +1 -1
- package/dist/legalDocs/resolveAppId.d.ts +1 -1
- package/dist/main.d.ts +4 -3
- package/dist/main.js +464 -469
- package/dist/message.js +53 -52
- package/dist/pay.js +4 -4
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/{useUploadCos-C8BqFPkx.js → runtime-DMCyhVcI.js} +2305 -2185
- package/dist/runtime.d.ts +22 -0
- package/dist/style.css +1 -1
- package/dist/types/api/auth.generated.d.ts +0 -10
- package/dist/upload/browserCosTransport.d.ts +22 -0
- package/dist/upload/browserUploadService.d.ts +21 -0
- package/dist/upload.d.ts +2 -1
- package/dist/upload.js +5 -4
- package/dist/{useAuthkitAppsAuthPageInfo-CNudJd04.js → useAuthkitAppsAuthPageInfo-Byu0yvrx.js} +18 -21
- package/dist/useAuthkitAuth-M2vTpEcb.js +272 -0
- package/dist/{useAuthkitCreateAndUpdate-BsINsI-E.js → useAuthkitCreateAndUpdate-D2_Bdazi.js} +1 -1
- package/dist/useAuthkitUsersProfile-DdUAENic.js +39 -0
- package/dist/useBillingStatusOptions-Jq6Wqfxb.js +61 -0
- package/dist/{useEnsureAuthenticated-DNkCCy_Y.js → useEnsureAuthenticated-Hel8hWLJ.js} +2 -2
- package/dist/{useLegalDocs-DQP_Yq6B.js → useLegalDocs-BOjqYRyQ.js} +25 -25
- package/dist/useMessageNotifications-AznFeFMD.js +80 -0
- package/dist/{useRoutePermission-CEiya9AM.js → useRoutePermission-BmUXTwQc.js} +2 -2
- package/dist/{useSEO-CDWxbk8B.js → useSEO-Chz4Zxuu.js} +89 -86
- package/dist/useSubscriptionCheckout-3ivcOcgC.js +353 -0
- package/dist/user.js +1 -1
- package/dist/utils/apiClients.d.ts +20 -12
- package/dist/utils/apiMiddlewares.d.ts +9 -23
- package/package.json +1 -1
- package/dist/AuthkitAppSetting-BN8-xgNq.js +0 -2674
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-DrL_XBqf.js +0 -1481
- package/dist/MessageHandle-mEkCsv9e.js +0 -1173
- package/dist/PaySubscriptions-CXkEjqr2.js +0 -1326
- package/dist/Upload.vue_vue_type_script_setup_true_lang-VGh2V4o0.js +0 -76
- package/dist/WidthContainer-CFMQRsCy.js +0 -721
- package/dist/apiClients-BcXOLuYu.js +0 -272
- package/dist/composables/Upload/useUploadCos.d.ts +0 -12
- package/dist/useAuthkitAuth-3m0yW6uP.js +0 -267
- package/dist/useAuthkitUsersProfile-DJlMsftY.js +0 -40
- package/dist/useBillingStatusOptions-CfHQOFNw.js +0 -71
- package/dist/useMessageNotifications-CAphguOm.js +0 -75
- package/dist/useSubscriptionCheckout-d_M_rKRa.js +0 -368
- package/dist/utils/billingFetch.d.ts +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import "./userMenuModal-D-nDaYqM.js";
|
|
3
|
-
import {
|
|
3
|
+
import { g as ve } from "./apiClients-CR-hEwog.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { defineComponent as K, computed as h, onMounted as ne, onUnmounted as pe, openBlock as n, createElementBlock as s, createElementVNode as i, unref as e, createBlock as O, toDisplayString as a, createVNode as k, withCtx as w, createTextVNode as
|
|
6
|
-
import { Spin as se, Button as
|
|
5
|
+
import { defineComponent as K, computed as h, onMounted as ne, onUnmounted as pe, openBlock as n, createElementBlock as s, createElementVNode as i, unref as e, createBlock as O, toDisplayString as a, createVNode as k, withCtx as w, createTextVNode as R, ref as ye, resolveDirective as he, withDirectives as ke, normalizeClass as L, Fragment as I, renderList as C, createCommentVNode as y } from "vue";
|
|
6
|
+
import { Spin as se, Button as A, Message as F } from "@arco-design/web-vue";
|
|
7
7
|
import { useRoute as be, useRouter as Te } from "vue-router";
|
|
8
|
-
import { b as we } from "./PaySubscriptions-
|
|
8
|
+
import { b as we } from "./PaySubscriptions-NcATVJGm.js";
|
|
9
9
|
import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { L as Ie, a as Ce, b as Be } from "./LandingPageSectionHeader-3hiuw6G0.js";
|
|
11
11
|
import { Icon as te } from "@iconify/vue";
|
|
12
|
-
import { u as Le, a as Re } from "./useSubscriptionCheckout-
|
|
13
|
-
import { u as Ae } from "./useEnsureAuthenticated-
|
|
12
|
+
import { u as Le, a as Re } from "./useSubscriptionCheckout-3ivcOcgC.js";
|
|
13
|
+
import { u as Ae } from "./useEnsureAuthenticated-Hel8hWLJ.js";
|
|
14
14
|
const kt = "/Pay/Return";
|
|
15
15
|
function G(l) {
|
|
16
16
|
const _ = typeof l.scene == "string" ? l.scene : null, c = typeof l.orderId == "string" ? l.orderId : null, d = typeof l.returnTo == "string" ? l.returnTo.trim() : null, P = d != null && d.startsWith("/") && !d.startsWith("//") ? d : null;
|
|
@@ -40,10 +40,10 @@ const Se = {
|
|
|
40
40
|
}, Fe = {
|
|
41
41
|
key: 2,
|
|
42
42
|
class: "payment-return-icon failed"
|
|
43
|
-
},
|
|
43
|
+
}, Ne = {
|
|
44
44
|
key: 3,
|
|
45
45
|
class: "payment-return-actions"
|
|
46
|
-
},
|
|
46
|
+
}, Ee = {
|
|
47
47
|
key: 4,
|
|
48
48
|
class: "payment-return-actions"
|
|
49
49
|
}, xe = /* @__PURE__ */ K({
|
|
@@ -59,14 +59,14 @@ const Se = {
|
|
|
59
59
|
return De(c.query, _.defaultReturnTo);
|
|
60
60
|
}
|
|
61
61
|
const {
|
|
62
|
-
phase:
|
|
63
|
-
message:
|
|
64
|
-
checking:
|
|
65
|
-
confirmPayment:
|
|
66
|
-
stopPolling:
|
|
67
|
-
verifyNow:
|
|
68
|
-
} = we(P),
|
|
69
|
-
function
|
|
62
|
+
phase: g,
|
|
63
|
+
message: f,
|
|
64
|
+
checking: N,
|
|
65
|
+
confirmPayment: D,
|
|
66
|
+
stopPolling: E,
|
|
67
|
+
verifyNow: S
|
|
68
|
+
} = we(P), $ = h(() => g.value === "success" ? "支付成功" : g.value === "failed" ? "支付未完成" : "正在确认支付");
|
|
69
|
+
function B() {
|
|
70
70
|
d.replace(P());
|
|
71
71
|
}
|
|
72
72
|
async function x() {
|
|
@@ -75,21 +75,21 @@ const Se = {
|
|
|
75
75
|
orderId: u
|
|
76
76
|
} = G(c.query);
|
|
77
77
|
if (!m || !u) {
|
|
78
|
-
|
|
78
|
+
F.error("支付参数无效");
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
d.replace(P());
|
|
86
|
-
}, 1200);
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
b.value = v.message || "等待支付确认...";
|
|
90
|
-
} catch (v) {
|
|
91
|
-
B.error(v instanceof Error ? v.message : "确认支付失败");
|
|
81
|
+
const b = await S(m, u);
|
|
82
|
+
if (b.error) {
|
|
83
|
+
g.value = "failed", f.value = b.message || "确认支付失败";
|
|
84
|
+
return;
|
|
92
85
|
}
|
|
86
|
+
if (b.success) {
|
|
87
|
+
g.value = "success", f.value = b.message || "支付成功", window.setTimeout(() => {
|
|
88
|
+
d.replace(P());
|
|
89
|
+
}, 1200);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
f.value = b.message || "等待支付确认...";
|
|
93
93
|
}
|
|
94
94
|
return ne(() => {
|
|
95
95
|
const {
|
|
@@ -97,40 +97,40 @@ const Se = {
|
|
|
97
97
|
orderId: u
|
|
98
98
|
} = G(c.query);
|
|
99
99
|
if (!m || !u) {
|
|
100
|
-
|
|
100
|
+
g.value = "failed", f.value = "缺少支付回跳参数";
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
if (m === "agreement") {
|
|
104
|
-
|
|
104
|
+
g.value = "success", f.value = "签约流程已完成,正在返回...", window.setTimeout(() => {
|
|
105
105
|
d.replace(P());
|
|
106
106
|
}, 1200);
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
|
-
|
|
110
|
-
}), pe(
|
|
109
|
+
D(m, u);
|
|
110
|
+
}), pe(E), (m, u) => (n(), s("div", Se, [i("div", $e, [e(g) === "loading" ? (n(), O(e(se), {
|
|
111
111
|
key: 0,
|
|
112
112
|
size: 36
|
|
113
|
-
})) : e(
|
|
114
|
-
loading: e(
|
|
113
|
+
})) : e(g) === "success" ? (n(), s("div", qe, "✓")) : (n(), s("div", Fe, "!")), i("h1", null, a($.value), 1), i("p", null, a(e(f)), 1), e(g) === "loading" ? (n(), s("div", Ne, [k(e(A), {
|
|
114
|
+
loading: e(N),
|
|
115
115
|
type: "primary",
|
|
116
116
|
onClick: x
|
|
117
117
|
}, {
|
|
118
|
-
default: w(() => [...u[0] || (u[0] = [
|
|
118
|
+
default: w(() => [...u[0] || (u[0] = [R(" 我已完成支付 ", -1)])]),
|
|
119
119
|
_: 1
|
|
120
|
-
}, 8, ["loading"]), k(e(
|
|
121
|
-
onClick:
|
|
120
|
+
}, 8, ["loading"]), k(e(A), {
|
|
121
|
+
onClick: B
|
|
122
122
|
}, {
|
|
123
|
-
default: w(() => [...u[1] || (u[1] = [
|
|
123
|
+
default: w(() => [...u[1] || (u[1] = [R("返回", -1)])]),
|
|
124
124
|
_: 1
|
|
125
|
-
})])) : (n(), s("div",
|
|
125
|
+
})])) : (n(), s("div", Ee, [k(e(A), {
|
|
126
126
|
type: "primary",
|
|
127
|
-
onClick:
|
|
127
|
+
onClick: B
|
|
128
128
|
}, {
|
|
129
|
-
default: w(() => [...u[2] || (u[2] = [
|
|
129
|
+
default: w(() => [...u[2] || (u[2] = [R("返回", -1)])]),
|
|
130
130
|
_: 1
|
|
131
131
|
})]))])]));
|
|
132
132
|
}
|
|
133
|
-
}), bt = /* @__PURE__ */ U(xe, [["__scopeId", "data-v-
|
|
133
|
+
}), bt = /* @__PURE__ */ U(xe, [["__scopeId", "data-v-65b534f9"]]), Me = /* @__PURE__ */ K({
|
|
134
134
|
__name: "PricingFAQ",
|
|
135
135
|
props: {
|
|
136
136
|
title: {
|
|
@@ -172,7 +172,7 @@ const Se = {
|
|
|
172
172
|
question: "使用订阅服务有什么限制?",
|
|
173
173
|
answer: "请按正常业务场景使用服务,禁止共享、转售订阅或用于违法违规场景。严重滥用可能导致服务受限或账户终止。"
|
|
174
174
|
}], c = l, d = h(() => c.faqItems ?? _);
|
|
175
|
-
return (P,
|
|
175
|
+
return (P, g) => (n(), O(Ie, {
|
|
176
176
|
class: "PricingFAQ"
|
|
177
177
|
}, {
|
|
178
178
|
BlockHeader: w(() => [k(Be, {
|
|
@@ -254,18 +254,18 @@ const Se = {
|
|
|
254
254
|
products: c,
|
|
255
255
|
plans: d,
|
|
256
256
|
currentSubscription: P,
|
|
257
|
-
currentLoading:
|
|
258
|
-
listLoading:
|
|
259
|
-
billingInterval:
|
|
260
|
-
billingIntervalTabs:
|
|
261
|
-
setBillingInterval:
|
|
262
|
-
currentTrial:
|
|
263
|
-
isCurrentPlan:
|
|
264
|
-
isRecommendedPlan:
|
|
257
|
+
currentLoading: g,
|
|
258
|
+
listLoading: f,
|
|
259
|
+
billingInterval: N,
|
|
260
|
+
billingIntervalTabs: D,
|
|
261
|
+
setBillingInterval: E,
|
|
262
|
+
currentTrial: S,
|
|
263
|
+
isCurrentPlan: $,
|
|
264
|
+
isRecommendedPlan: B,
|
|
265
265
|
isFreePlan: x,
|
|
266
266
|
isPlanActionDisabled: m,
|
|
267
267
|
getDisplayPrice: u,
|
|
268
|
-
getDisplayOriginalPrice:
|
|
268
|
+
getDisplayOriginalPrice: b,
|
|
269
269
|
getDisplayCycle: ie,
|
|
270
270
|
getPromotionLabel: W,
|
|
271
271
|
getBadgeLabels: re,
|
|
@@ -274,10 +274,10 @@ const Se = {
|
|
|
274
274
|
getFeatureGroups: Y,
|
|
275
275
|
loadCurrentSubscription: M,
|
|
276
276
|
refresh: le
|
|
277
|
-
} = Le(_.defaultInterval),
|
|
277
|
+
} = Le(_.defaultInterval), v = h(() => {
|
|
278
278
|
if (!P.value)
|
|
279
279
|
for (const r of c.value) {
|
|
280
|
-
const o = r.prices.find((
|
|
280
|
+
const o = r.prices.find((p) => p.type === "free");
|
|
281
281
|
if (o)
|
|
282
282
|
return {
|
|
283
283
|
...r,
|
|
@@ -285,11 +285,11 @@ const Se = {
|
|
|
285
285
|
selectedPrice: o
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
|
-
}),
|
|
289
|
-
var
|
|
290
|
-
const r =
|
|
288
|
+
}), q = h(() => d.value.filter((r) => !x(r))), Q = ye(!1), oe = h(() => !!localStorage.getItem("jwtToken")), V = h(() => !!S.value), ce = h(() => {
|
|
289
|
+
var p, t;
|
|
290
|
+
const r = S.value, o = (t = (p = v.value) == null ? void 0 : p.selectedPrice) == null ? void 0 : t.id;
|
|
291
291
|
return !r || !o ? !1 : r.priceId === o;
|
|
292
|
-
}), z = h(() => Q.value || oe.value &&
|
|
292
|
+
}), z = h(() => Q.value || oe.value && g.value && !V.value), J = h(() => V.value || z.value), {
|
|
293
293
|
checkout: ue,
|
|
294
294
|
isCheckingOut: de
|
|
295
295
|
} = Re({
|
|
@@ -311,30 +311,24 @@ const Se = {
|
|
|
311
311
|
return z.value ? "权益加载中" : ce.value ? "正在体验免费体验" : V.value ? "已有当前权益" : "立即体验";
|
|
312
312
|
}
|
|
313
313
|
async function me() {
|
|
314
|
-
var
|
|
315
|
-
const r =
|
|
316
|
-
if (!((
|
|
317
|
-
|
|
314
|
+
var p;
|
|
315
|
+
const r = v.value;
|
|
316
|
+
if (!((p = r == null ? void 0 : r.selectedPrice) != null && p.id)) {
|
|
317
|
+
F.warning("当前暂无可用体验方案");
|
|
318
318
|
return;
|
|
319
319
|
}
|
|
320
320
|
Q.value = !0;
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
return;
|
|
331
|
-
}
|
|
332
|
-
B.success("免费体验已开始"), await M();
|
|
333
|
-
} catch (g) {
|
|
334
|
-
B.error(g instanceof Error ? g.message : "领取免费体验失败");
|
|
335
|
-
} finally {
|
|
336
|
-
Q.value = !1;
|
|
321
|
+
const {
|
|
322
|
+
error: o
|
|
323
|
+
} = await ve().billing.trials.start.post({
|
|
324
|
+
priceId: r.selectedPrice.id
|
|
325
|
+
});
|
|
326
|
+
if (Q.value = !1, o) {
|
|
327
|
+
const t = o.message || "领取免费体验失败";
|
|
328
|
+
t.includes("已领取") && F.info(t), await M();
|
|
329
|
+
return;
|
|
337
330
|
}
|
|
331
|
+
F.success("免费体验已开始"), await M();
|
|
338
332
|
}
|
|
339
333
|
async function Z() {
|
|
340
334
|
J.value || _e(() => Z()) && await me();
|
|
@@ -342,64 +336,64 @@ const Se = {
|
|
|
342
336
|
return ne(() => {
|
|
343
337
|
le();
|
|
344
338
|
}), (r, o) => {
|
|
345
|
-
const
|
|
339
|
+
const p = he("motion-slide-top");
|
|
346
340
|
return n(), s("section", Qe, [ke((n(), O(e(se), {
|
|
347
|
-
loading: e(
|
|
341
|
+
loading: e(f),
|
|
348
342
|
tip: "数据加载中",
|
|
349
343
|
class: "PricingPlans__spin"
|
|
350
344
|
}, {
|
|
351
|
-
default: w(() => [
|
|
345
|
+
default: w(() => [v.value ? (n(), s("article", {
|
|
352
346
|
key: 0,
|
|
353
|
-
class:
|
|
354
|
-
"is-current": e(
|
|
347
|
+
class: L(["PricingPlans__trial", {
|
|
348
|
+
"is-current": e($)(v.value)
|
|
355
349
|
}])
|
|
356
|
-
}, [i("div", Ve, [i("div", ze, [i("h2", null, a(
|
|
350
|
+
}, [i("div", Ve, [i("div", ze, [i("h2", null, a(v.value.name), 1), i("p", null, a(Pe(v.value)), 1), X(v.value).length ? (n(), s("ul", He, [(n(!0), s(I, null, C(X(v.value), (t) => (n(), s("li", {
|
|
357
351
|
key: t.title
|
|
358
352
|
}, [k(e(te), {
|
|
359
353
|
icon: "mingcute:check-circle-fill",
|
|
360
354
|
class: "PricingPlans__trialFeatureIcon"
|
|
361
|
-
}), i("span", null, a(t.title), 1)]))), 128))])) : y("", !0)]), i("div", Ge, [k(e(
|
|
355
|
+
}), i("span", null, a(t.title), 1)]))), 128))])) : y("", !0)]), i("div", Ge, [k(e(A), {
|
|
362
356
|
size: "large",
|
|
363
357
|
class: "PricingPlans__trialButton",
|
|
364
358
|
loading: z.value,
|
|
365
359
|
disabled: J.value,
|
|
366
360
|
onClick: Z
|
|
367
361
|
}, {
|
|
368
|
-
default: w(() => [
|
|
362
|
+
default: w(() => [R(a(fe()), 1)]),
|
|
369
363
|
_: 1
|
|
370
|
-
}, 8, ["loading", "disabled"])])])], 2)) : y("", !0),
|
|
364
|
+
}, 8, ["loading", "disabled"])])])], 2)) : y("", !0), q.value.length ? (n(), s("div", Ke, [e(D).length > 1 ? (n(), s("div", Oe, [(n(!0), s(I, null, C(e(D), (t) => (n(), s("button", {
|
|
371
365
|
key: t.value,
|
|
372
366
|
type: "button",
|
|
373
|
-
class:
|
|
374
|
-
"is-active": e(
|
|
367
|
+
class: L(["PricingPlans__toggleItem", {
|
|
368
|
+
"is-active": e(N) === t.value
|
|
375
369
|
}]),
|
|
376
|
-
onClick: (H) => e(
|
|
377
|
-
}, [i("span", null, a(t.label), 1), t.badge ? (n(), s("span", We, a(t.badge), 1)) : y("", !0)], 10, Ue))), 128))])) : y("", !0), l.note ? (n(), s("p", je, a(l.note), 1)) : y("", !0)])) : y("", !0),
|
|
370
|
+
onClick: (H) => e(E)(t.value)
|
|
371
|
+
}, [i("span", null, a(t.label), 1), t.badge ? (n(), s("span", We, a(t.badge), 1)) : y("", !0)], 10, Ue))), 128))])) : y("", !0), l.note ? (n(), s("p", je, a(l.note), 1)) : y("", !0)])) : y("", !0), q.value.length ? (n(), s("div", {
|
|
378
372
|
key: 2,
|
|
379
|
-
class:
|
|
380
|
-
"PricingPlans__grid--compact":
|
|
373
|
+
class: L(["PricingPlans__grid", {
|
|
374
|
+
"PricingPlans__grid--compact": q.value.length <= 2
|
|
381
375
|
}])
|
|
382
|
-
}, [(n(!0), s(I, null, C(
|
|
376
|
+
}, [(n(!0), s(I, null, C(q.value, (t, H) => (n(), s("article", {
|
|
383
377
|
key: t.id,
|
|
384
|
-
class:
|
|
385
|
-
"is-recommended": e(
|
|
386
|
-
"is-current": e(
|
|
378
|
+
class: L(["PricingPlans__card", {
|
|
379
|
+
"is-recommended": e(B)(t),
|
|
380
|
+
"is-current": e($)(t)
|
|
387
381
|
}])
|
|
388
382
|
}, [i("div", Ye, [(n(!0), s(I, null, C(e(re)(t), (T) => (n(), s("span", {
|
|
389
383
|
key: T.type,
|
|
390
|
-
class:
|
|
391
|
-
}, a(T.label), 3))), 128))]), i("div", Je, [i("h2", null, a(t.name), 1), i("p", null, a(t.description || ge(H)), 1)]), i("div", Xe, [e(
|
|
384
|
+
class: L(["PricingPlans__badge", `is-${T.type}`])
|
|
385
|
+
}, a(T.label), 3))), 128))]), i("div", Je, [i("h2", null, a(t.name), 1), i("p", null, a(t.description || ge(H)), 1)]), i("div", Xe, [e(b)(t) ? (n(), s("span", Ze, " ¥" + a(e(b)(t)), 1)) : y("", !0), o[0] || (o[0] = i("span", {
|
|
392
386
|
class: "PricingPlans__currency"
|
|
393
|
-
}, "¥", -1)), i("span", et, a(e(u)(t)), 1), i("span", tt, a(e(ie)(t)), 1)]), e(W)(t) ? (n(), s("p", nt, a(e(W)(t)), 1)) : y("", !0), i("p", st, a(e(j)(t, H)), 1), k(e(
|
|
387
|
+
}, "¥", -1)), i("span", et, a(e(u)(t)), 1), i("span", tt, a(e(ie)(t)), 1)]), e(W)(t) ? (n(), s("p", nt, a(e(W)(t)), 1)) : y("", !0), i("p", st, a(e(j)(t, H)), 1), k(e(A), {
|
|
394
388
|
long: "",
|
|
395
389
|
size: "large",
|
|
396
390
|
class: "PricingPlans__button",
|
|
397
|
-
type: e(
|
|
391
|
+
type: e(B)(t) ? "primary" : "outline",
|
|
398
392
|
loading: e(de)(t),
|
|
399
393
|
disabled: e(m)(t),
|
|
400
394
|
onClick: (T) => e(ue)(t)
|
|
401
395
|
}, {
|
|
402
|
-
default: w(() => [
|
|
396
|
+
default: w(() => [R(a(e(ae)(t)), 1)]),
|
|
403
397
|
_: 2
|
|
404
398
|
}, 1032, ["type", "loading", "disabled", "onClick"]), o[1] || (o[1] = i("div", {
|
|
405
399
|
class: "PricingPlans__divider"
|
|
@@ -411,12 +405,12 @@ const Se = {
|
|
|
411
405
|
}, [k(e(te), {
|
|
412
406
|
icon: "mingcute:check-circle-fill",
|
|
413
407
|
class: "PricingPlans__featureIcon"
|
|
414
|
-
}), i("span", null, a(ee.title), 1)]))), 128))])]))), 128))])], 2))), 128))], 2)) : !
|
|
408
|
+
}), i("span", null, a(ee.title), 1)]))), 128))])]))), 128))])], 2))), 128))], 2)) : !v.value && !e(f) ? (n(), s("div", at, " 当前暂无可订阅方案 ")) : y("", !0)]),
|
|
415
409
|
_: 1
|
|
416
|
-
}, 8, ["loading"])), [[
|
|
410
|
+
}, 8, ["loading"])), [[p]])]);
|
|
417
411
|
};
|
|
418
412
|
}
|
|
419
|
-
}), wt = /* @__PURE__ */ U(lt, [["__scopeId", "data-v-
|
|
413
|
+
}), wt = /* @__PURE__ */ U(lt, [["__scopeId", "data-v-5d08c742"]]);
|
|
420
414
|
export {
|
|
421
415
|
kt as P,
|
|
422
416
|
bt as a,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { U as V } from "./userMenuModal-D-nDaYqM.js";
|
|
4
|
-
import { defineComponent as U, computed as
|
|
4
|
+
import { defineComponent as U, computed as k, openBlock as M, createElementBlock as R, createVNode as b, unref as o, withCtx as I, createTextVNode as A, toDisplayString as g, createElementVNode as m, createCommentVNode as w, ref as _, createBlock as x } from "vue";
|
|
5
5
|
import { Avatar as W, Modal as z } from "@arco-design/web-vue";
|
|
6
|
-
import {
|
|
7
|
-
import { C as P } from "./CustomTable-
|
|
8
|
-
import { C as G } from "./index-
|
|
6
|
+
import { g as B } from "./apiClients-CR-hEwog.js";
|
|
7
|
+
import { C as P } from "./CustomTable-GgvDEidl.js";
|
|
8
|
+
import { C as G } from "./index-BhVwozr0.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
import { u as H } from "./useAuthkitUsersProfile-
|
|
11
|
+
import { u as H } from "./useAuthkitUsersProfile-DdUAENic.js";
|
|
12
12
|
const j = {
|
|
13
13
|
email: "邮箱",
|
|
14
14
|
phone: "手机",
|
|
@@ -34,11 +34,11 @@ function L(e, t) {
|
|
|
34
34
|
function S(e) {
|
|
35
35
|
return i(e.email) || i(e.phone);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function ge(e) {
|
|
38
38
|
const t = S(e);
|
|
39
39
|
return L(e.nickname, e.userId) ? i(e.nickname) : t || i(e.nickname);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function he(e) {
|
|
42
42
|
const t = S(e);
|
|
43
43
|
return !L(e.nickname, e.userId) || !t ? "" : t;
|
|
44
44
|
}
|
|
@@ -75,20 +75,20 @@ const X = {
|
|
|
75
75
|
userId: {}
|
|
76
76
|
},
|
|
77
77
|
setup(e) {
|
|
78
|
-
const t = e, r =
|
|
79
|
-
return (c,
|
|
78
|
+
const t = e, r = k(() => T(t.user, t.userId)), a = k(() => J(t.user)), n = k(() => K(t.user, t.userId)), l = k(() => Q(t.user));
|
|
79
|
+
return (c, p) => (M(), R("div", X, [b(o(W), {
|
|
80
80
|
size: 32,
|
|
81
81
|
"image-url": l.value,
|
|
82
82
|
"object-fit": "cover"
|
|
83
83
|
}, {
|
|
84
|
-
default:
|
|
84
|
+
default: I(() => [A(g(n.value), 1)]),
|
|
85
85
|
_: 1
|
|
86
|
-
}, 8, ["image-url"]), m("div", Y, [m("span", Z,
|
|
86
|
+
}, 8, ["image-url"]), m("div", Y, [m("span", Z, g(r.value), 1), a.value ? (M(), R("span", F, g(a.value), 1)) : w("", !0)])]));
|
|
87
87
|
}
|
|
88
88
|
}), te = /* @__PURE__ */ D(ee, [["__scopeId", "data-v-8e8704b9"]]);
|
|
89
89
|
function re(e, t = {}) {
|
|
90
90
|
const r = t.pageSize ?? 10, a = _([]), n = _(!1), l = _(!1), c = _(1);
|
|
91
|
-
async function
|
|
91
|
+
async function p() {
|
|
92
92
|
if (!n.value) {
|
|
93
93
|
c.value = 1, l.value = !1, n.value = !0;
|
|
94
94
|
try {
|
|
@@ -102,7 +102,7 @@ function re(e, t = {}) {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
async function
|
|
105
|
+
async function N() {
|
|
106
106
|
if (!(n.value || l.value)) {
|
|
107
107
|
c.value += 1, n.value = !0;
|
|
108
108
|
try {
|
|
@@ -120,8 +120,8 @@ function re(e, t = {}) {
|
|
|
120
120
|
items: a,
|
|
121
121
|
loading: n,
|
|
122
122
|
finished: l,
|
|
123
|
-
refresh:
|
|
124
|
-
loadMore:
|
|
123
|
+
refresh: p,
|
|
124
|
+
loadMore: N
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
const ae = {
|
|
@@ -158,80 +158,81 @@ const ae = {
|
|
|
158
158
|
tooltip: !0
|
|
159
159
|
}], {
|
|
160
160
|
items: c,
|
|
161
|
-
loading:
|
|
162
|
-
finished:
|
|
161
|
+
loading: p,
|
|
162
|
+
finished: N,
|
|
163
163
|
refresh: s,
|
|
164
164
|
loadMore: f
|
|
165
165
|
} = re(async ({
|
|
166
|
-
current:
|
|
166
|
+
current: v,
|
|
167
167
|
pageSize: d
|
|
168
168
|
}) => {
|
|
169
169
|
const {
|
|
170
|
-
data: u
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
data: u,
|
|
171
|
+
error: C
|
|
172
|
+
} = await B().auth.referrer.referees.post({
|
|
173
|
+
current: v,
|
|
173
174
|
pageSize: d
|
|
174
175
|
});
|
|
175
|
-
return u ? {
|
|
176
|
-
items: u.items ?? []
|
|
177
|
-
} : {
|
|
176
|
+
return C || !u ? {
|
|
178
177
|
items: []
|
|
178
|
+
} : {
|
|
179
|
+
items: u.items ?? []
|
|
179
180
|
};
|
|
180
|
-
}),
|
|
181
|
+
}), h = _(!1);
|
|
181
182
|
function $() {
|
|
182
|
-
|
|
183
|
+
h.value = !1, a("cancel");
|
|
183
184
|
}
|
|
184
|
-
function E(
|
|
185
|
-
|
|
185
|
+
function E(v) {
|
|
186
|
+
h.value = v, v && s();
|
|
186
187
|
}
|
|
187
188
|
return t({
|
|
188
189
|
setData: E,
|
|
189
190
|
refresh: s
|
|
190
|
-
}), (
|
|
191
|
-
visible:
|
|
192
|
-
"onUpdate:visible": d[0] || (d[0] = (u) =>
|
|
191
|
+
}), (v, d) => (M(), x(o(z), {
|
|
192
|
+
visible: h.value,
|
|
193
|
+
"onUpdate:visible": d[0] || (d[0] = (u) => h.value = u),
|
|
193
194
|
title: "我的邀请",
|
|
194
195
|
width: o(V),
|
|
195
|
-
"ok-loading": o(
|
|
196
|
+
"ok-loading": o(p),
|
|
196
197
|
footer: !1,
|
|
197
198
|
"mask-closable": !1,
|
|
198
199
|
"unmount-on-close": "",
|
|
199
200
|
onCancel: $
|
|
200
201
|
}, {
|
|
201
|
-
default:
|
|
202
|
-
var u,
|
|
202
|
+
default: I(() => {
|
|
203
|
+
var u, C;
|
|
203
204
|
return [m("div", ae, [d[1] || (d[1] = m("div", {
|
|
204
205
|
class: "invite-code-label"
|
|
205
|
-
}, "我的邀请码:", -1)), m("div", ne, [m("span", null,
|
|
206
|
+
}, "我的邀请码:", -1)), m("div", ne, [m("span", null, g(((u = o(n)) == null ? void 0 : u.personalInviteCode) || "-"), 1), (C = o(n)) != null && C.personalInviteCode ? (M(), x(G, {
|
|
206
207
|
key: 0,
|
|
207
208
|
value: o(n).personalInviteCode,
|
|
208
209
|
message: "邀请码复制成功"
|
|
209
|
-
}, null, 8, ["value"])) : w("", !0)])]),
|
|
210
|
+
}, null, 8, ["value"])) : w("", !0)])]), b(P, {
|
|
210
211
|
columns: l,
|
|
211
212
|
data: o(c),
|
|
212
|
-
loading: o(
|
|
213
|
+
loading: o(p),
|
|
213
214
|
"infinite-scroll": "",
|
|
214
|
-
finished: o(
|
|
215
|
+
finished: o(N),
|
|
215
216
|
onLoadMore: o(f)
|
|
216
217
|
}, {
|
|
217
|
-
referee:
|
|
218
|
+
referee: I(({
|
|
218
219
|
record: y
|
|
219
|
-
}) => [
|
|
220
|
+
}) => [b(te, {
|
|
220
221
|
user: y.refereeInfo,
|
|
221
222
|
"user-id": y.refereeId
|
|
222
223
|
}, null, 8, ["user", "user-id"])]),
|
|
223
|
-
registerMethod:
|
|
224
|
+
registerMethod: I(({
|
|
224
225
|
record: y
|
|
225
|
-
}) => [A(
|
|
226
|
+
}) => [A(g(o(O)(y.registerMethod)), 1)]),
|
|
226
227
|
_: 1
|
|
227
228
|
}, 8, ["data", "loading", "finished", "onLoadMore"])];
|
|
228
229
|
}),
|
|
229
230
|
_: 1
|
|
230
231
|
}, 8, ["visible", "width", "ok-loading"]));
|
|
231
232
|
}
|
|
232
|
-
}),
|
|
233
|
+
}), Ce = /* @__PURE__ */ D(oe, [["__scopeId", "data-v-2a9dbbaf"]]);
|
|
233
234
|
export {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
235
|
+
Ce as R,
|
|
236
|
+
he as a,
|
|
237
|
+
ge as g
|
|
237
238
|
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { defineComponent as k, openBlock as h, createBlock as y, unref as S, mergeProps as q, createSlots as v, withCtx as p, renderSlot as a } from "vue";
|
|
8
|
+
import { Upload as I } from "@arco-design/web-vue";
|
|
9
|
+
import { u as _ } from "./runtime-DMCyhVcI.js";
|
|
10
|
+
const j = /* @__PURE__ */ k({
|
|
11
|
+
__name: "Upload",
|
|
12
|
+
props: {
|
|
13
|
+
options: {
|
|
14
|
+
type: Object,
|
|
15
|
+
required: !1,
|
|
16
|
+
default: () => null
|
|
17
|
+
},
|
|
18
|
+
bucketId: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: !0
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
emits: ["progress", "fileFinish", "fail"],
|
|
24
|
+
setup(m, {
|
|
25
|
+
emit: d
|
|
26
|
+
}) {
|
|
27
|
+
const t = d, n = m, f = _().upload;
|
|
28
|
+
function c(o) {
|
|
29
|
+
const {
|
|
30
|
+
onProgress: i,
|
|
31
|
+
onError: b,
|
|
32
|
+
onSuccess: g,
|
|
33
|
+
fileItem: s
|
|
34
|
+
} = o;
|
|
35
|
+
if (!s.file)
|
|
36
|
+
return {
|
|
37
|
+
abort() {
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const r = new AbortController();
|
|
41
|
+
return f.upload({
|
|
42
|
+
file: s.file,
|
|
43
|
+
bucketId: n.bucketId,
|
|
44
|
+
signal: r.signal,
|
|
45
|
+
onProgress(e) {
|
|
46
|
+
t("progress", e), i(e);
|
|
47
|
+
}
|
|
48
|
+
}).then(({
|
|
49
|
+
data: e,
|
|
50
|
+
error: l
|
|
51
|
+
}) => {
|
|
52
|
+
if (!r.signal.aborted) {
|
|
53
|
+
if (l || !e) {
|
|
54
|
+
const u = l ?? new Error("上传失败");
|
|
55
|
+
t("fail", u), b(u);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
t("fileFinish", e), g(e);
|
|
59
|
+
}
|
|
60
|
+
}), {
|
|
61
|
+
abort() {
|
|
62
|
+
r.abort();
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
return (o, i) => (h(), y(S(I), q({
|
|
67
|
+
"custom-request": c
|
|
68
|
+
}, n.options), v({
|
|
69
|
+
_: 2
|
|
70
|
+
}, [o.$slots["upload-button"] ? {
|
|
71
|
+
name: "upload-button",
|
|
72
|
+
fn: p(() => [a(o.$slots, "upload-button")]),
|
|
73
|
+
key: "0"
|
|
74
|
+
} : void 0, o.$slots["upload-item"] ? {
|
|
75
|
+
name: "upload-item",
|
|
76
|
+
fn: p(() => [a(o.$slots, "upload-item")]),
|
|
77
|
+
key: "1"
|
|
78
|
+
} : void 0]), 1040));
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export {
|
|
82
|
+
j as _
|
|
83
|
+
};
|