@huyooo/ui 2.1.14 → 2.1.16
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.
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import "./userMenuModal-D-nDaYqM.js";
|
|
3
3
|
import "./apiClients-CWSwNzGk.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { defineComponent as
|
|
6
|
-
import { Spin as
|
|
5
|
+
import { defineComponent as Q, computed as w, onMounted as Y, onUnmounted as oe, openBlock as t, createElementBlock as n, createElementVNode as i, unref as e, createBlock as V, toDisplayString as a, createVNode as p, withCtx as h, createTextVNode as B, resolveDirective as ce, withDirectives as ue, normalizeClass as I, Fragment as C, renderList as T, createCommentVNode as P } from "vue";
|
|
6
|
+
import { Spin as J, Button as R, Message as de } from "@arco-design/web-vue";
|
|
7
7
|
import { useRoute as _e, useRouter as ge } from "vue-router";
|
|
8
8
|
import { a as Pe } from "./PaySubscriptions-pEZtjp1g.js";
|
|
9
|
-
import { _ as
|
|
9
|
+
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { L as me, a as fe, b as pe } from "./LandingPageSectionHeader-3hiuw6G0.js";
|
|
11
|
-
import { Icon as
|
|
11
|
+
import { Icon as j } from "@iconify/vue";
|
|
12
12
|
import { u as ve, a as ye } from "./useSubscriptionCheckout-CZZLk_1d.js";
|
|
13
13
|
import { u as he } from "./useEnsureAuthenticated-RZ1DflLz.js";
|
|
14
|
-
const
|
|
15
|
-
function
|
|
14
|
+
const dt = "/Pay/Return";
|
|
15
|
+
function M(r) {
|
|
16
16
|
const d = typeof r.scene == "string" ? r.scene : null, o = typeof r.orderId == "string" ? r.orderId : null, c = typeof r.returnTo == "string" ? r.returnTo.trim() : null, g = c != null && c.startsWith("/") && !c.startsWith("//") ? c : null;
|
|
17
17
|
return d !== "subscription" && d !== "recharge" && d !== "agreement" ? {
|
|
18
18
|
scene: null,
|
|
@@ -27,7 +27,7 @@ function Q(r) {
|
|
|
27
27
|
function ke(r, d) {
|
|
28
28
|
const {
|
|
29
29
|
returnTo: o
|
|
30
|
-
} =
|
|
30
|
+
} = M(r);
|
|
31
31
|
return o || d;
|
|
32
32
|
}
|
|
33
33
|
const be = {
|
|
@@ -46,7 +46,7 @@ const be = {
|
|
|
46
46
|
}, Be = {
|
|
47
47
|
key: 4,
|
|
48
48
|
class: "payment-return-actions"
|
|
49
|
-
}, Re = /* @__PURE__ */
|
|
49
|
+
}, Re = /* @__PURE__ */ Q({
|
|
50
50
|
__name: "PaymentReturnPage",
|
|
51
51
|
props: {
|
|
52
52
|
defaultReturnTo: {
|
|
@@ -73,7 +73,7 @@ const be = {
|
|
|
73
73
|
const {
|
|
74
74
|
scene: m,
|
|
75
75
|
orderId: l
|
|
76
|
-
} =
|
|
76
|
+
} = M(o.query);
|
|
77
77
|
if (!m || !l) {
|
|
78
78
|
de.error("支付参数无效");
|
|
79
79
|
return;
|
|
@@ -91,11 +91,11 @@ const be = {
|
|
|
91
91
|
}
|
|
92
92
|
v.value = k.message || "等待支付确认...";
|
|
93
93
|
}
|
|
94
|
-
return
|
|
94
|
+
return Y(() => {
|
|
95
95
|
const {
|
|
96
96
|
scene: m,
|
|
97
97
|
orderId: l
|
|
98
|
-
} =
|
|
98
|
+
} = M(o.query);
|
|
99
99
|
if (!m || !l) {
|
|
100
100
|
u.value = "failed", v.value = "缺少支付回跳参数";
|
|
101
101
|
return;
|
|
@@ -107,7 +107,7 @@ const be = {
|
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
109
|
A(m, l);
|
|
110
|
-
}), oe(F), (m, l) => (t(), n("div", be, [i("div", Ie, [e(u) === "loading" ? (t(),
|
|
110
|
+
}), oe(F), (m, l) => (t(), n("div", be, [i("div", Ie, [e(u) === "loading" ? (t(), V(e(J), {
|
|
111
111
|
key: 0,
|
|
112
112
|
size: 36
|
|
113
113
|
})) : e(u) === "success" ? (t(), n("div", Ce, "✓")) : (t(), n("div", Te, "!")), i("h1", null, a(S.value), 1), i("p", null, a(e(v)), 1), e(u) === "loading" ? (t(), n("div", we, [p(e(R), {
|
|
@@ -130,7 +130,7 @@ const be = {
|
|
|
130
130
|
_: 1
|
|
131
131
|
})]))])]));
|
|
132
132
|
}
|
|
133
|
-
}),
|
|
133
|
+
}), _t = /* @__PURE__ */ z(Re, [["__scopeId", "data-v-65b534f9"]]), Le = /* @__PURE__ */ Q({
|
|
134
134
|
__name: "PricingFAQ",
|
|
135
135
|
props: {
|
|
136
136
|
title: {
|
|
@@ -172,7 +172,7 @@ const be = {
|
|
|
172
172
|
question: "使用订阅服务有什么限制?",
|
|
173
173
|
answer: "请按正常业务场景使用服务,禁止共享、转售订阅或用于违法违规场景。严重滥用可能导致服务受限或账户终止。"
|
|
174
174
|
}], o = r, c = w(() => o.faqItems ?? d);
|
|
175
|
-
return (g, u) => (t(),
|
|
175
|
+
return (g, u) => (t(), V(me, {
|
|
176
176
|
class: "PricingFAQ"
|
|
177
177
|
}, {
|
|
178
178
|
BlockHeader: h(() => [p(pe, {
|
|
@@ -186,7 +186,7 @@ const be = {
|
|
|
186
186
|
_: 1
|
|
187
187
|
}));
|
|
188
188
|
}
|
|
189
|
-
}),
|
|
189
|
+
}), gt = /* @__PURE__ */ z(Le, [["__scopeId", "data-v-fcab2f05"]]), Se = {
|
|
190
190
|
class: "PricingPlans"
|
|
191
191
|
}, $e = {
|
|
192
192
|
class: "PricingPlans__trialMain"
|
|
@@ -232,15 +232,13 @@ const be = {
|
|
|
232
232
|
key: 0,
|
|
233
233
|
class: "PricingPlans__promotion"
|
|
234
234
|
}, We = {
|
|
235
|
-
class: "PricingPlans__summary"
|
|
236
|
-
}, je = {
|
|
237
235
|
class: "PricingPlans__featureGroups"
|
|
238
|
-
},
|
|
236
|
+
}, je = {
|
|
239
237
|
class: "PricingPlans__features"
|
|
240
|
-
},
|
|
238
|
+
}, Ye = {
|
|
241
239
|
key: 3,
|
|
242
240
|
class: "PricingPlans__empty"
|
|
243
|
-
},
|
|
241
|
+
}, Je = /* @__PURE__ */ Q({
|
|
244
242
|
__name: "PricingPlans",
|
|
245
243
|
props: {
|
|
246
244
|
appName: {
|
|
@@ -270,12 +268,12 @@ const be = {
|
|
|
270
268
|
getDisplayPrice: m,
|
|
271
269
|
getDisplayOriginalPrice: l,
|
|
272
270
|
getDisplayCycle: k,
|
|
273
|
-
getPromotionLabel:
|
|
274
|
-
getBadgeLabels:
|
|
275
|
-
getButtonLabel:
|
|
276
|
-
getPlanSummary:
|
|
277
|
-
getFeatureGroups:
|
|
278
|
-
loadCurrentSubscription:
|
|
271
|
+
getPromotionLabel: H,
|
|
272
|
+
getBadgeLabels: X,
|
|
273
|
+
getButtonLabel: Z,
|
|
274
|
+
getPlanSummary: ee,
|
|
275
|
+
getFeatureGroups: G,
|
|
276
|
+
loadCurrentSubscription: K,
|
|
279
277
|
refresh: te
|
|
280
278
|
} = ve(d.defaultInterval), b = w(() => {
|
|
281
279
|
if (!g.value)
|
|
@@ -288,31 +286,31 @@ const be = {
|
|
|
288
286
|
selectedPrice: _
|
|
289
287
|
};
|
|
290
288
|
}
|
|
291
|
-
}), q = w(() => c.value.filter((f) => !$(f))), ne = w(() => !!localStorage.getItem("jwtToken")),
|
|
289
|
+
}), q = w(() => c.value.filter((f) => !$(f))), ne = w(() => !!localStorage.getItem("jwtToken")), O = w(() => !!F.value), {
|
|
292
290
|
checkout: se,
|
|
293
291
|
isCheckingOut: ie
|
|
294
292
|
} = ye({
|
|
295
293
|
currentSubscription: g,
|
|
296
|
-
refreshCurrentSubscription:
|
|
294
|
+
refreshCurrentSubscription: K
|
|
297
295
|
}), {
|
|
298
296
|
ensureAuthenticated: re
|
|
299
297
|
} = he();
|
|
300
298
|
function ae(f) {
|
|
301
299
|
return f === 1 ? "适合团队协作与更高频使用" : "适合个人和轻量团队使用";
|
|
302
300
|
}
|
|
303
|
-
function
|
|
304
|
-
return
|
|
301
|
+
function U(f) {
|
|
302
|
+
return G(f.features).flatMap((_) => _.items).slice(0, 3);
|
|
305
303
|
}
|
|
306
304
|
function le() {
|
|
307
305
|
re(() => {
|
|
308
|
-
|
|
306
|
+
K();
|
|
309
307
|
});
|
|
310
308
|
}
|
|
311
|
-
return
|
|
309
|
+
return Y(() => {
|
|
312
310
|
te();
|
|
313
311
|
}), (f, _) => {
|
|
314
312
|
const x = ce("motion-slide-top");
|
|
315
|
-
return t(), n("section", Se, [ue((t(),
|
|
313
|
+
return t(), n("section", Se, [ue((t(), V(e(J), {
|
|
316
314
|
loading: e(u),
|
|
317
315
|
tip: "数据加载中",
|
|
318
316
|
class: "PricingPlans__spin"
|
|
@@ -320,14 +318,14 @@ const be = {
|
|
|
320
318
|
default: h(() => [b.value ? (t(), n("article", {
|
|
321
319
|
key: 0,
|
|
322
320
|
class: I(["PricingPlans__trial", {
|
|
323
|
-
"is-current":
|
|
321
|
+
"is-current": O.value
|
|
324
322
|
}])
|
|
325
|
-
}, [i("div", $e, [i("div", qe, [i("h2", null, a(b.value.name), 1), i("p", null, a(b.value.description || e(
|
|
323
|
+
}, [i("div", $e, [i("div", qe, [i("h2", null, a(b.value.name), 1), i("p", null, a(b.value.description || e(ee)(b.value, 0)), 1), U(b.value).length ? (t(), n("ul", Ae, [(t(!0), n(C, null, T(U(b.value), (s) => (t(), n("li", {
|
|
326
324
|
key: s.title
|
|
327
|
-
}, [p(e(
|
|
325
|
+
}, [p(e(j), {
|
|
328
326
|
icon: "mingcute:check-circle-fill",
|
|
329
327
|
class: "PricingPlans__trialFeatureIcon"
|
|
330
|
-
}), i("span", null, a(s.title), 1)]))), 128))])) : P("", !0)]), ne.value ?
|
|
328
|
+
}), i("span", null, a(s.title), 1)]))), 128))])) : P("", !0)]), ne.value ? O.value ? (t(), n("div", De, " 已开通 ")) : P("", !0) : (t(), n("div", Fe, [p(e(R), {
|
|
331
329
|
size: "large",
|
|
332
330
|
class: "PricingPlans__trialButton",
|
|
333
331
|
onClick: le
|
|
@@ -340,24 +338,24 @@ const be = {
|
|
|
340
338
|
class: I(["PricingPlans__toggleItem", {
|
|
341
339
|
"is-active": e(v) === s.value
|
|
342
340
|
}]),
|
|
343
|
-
onClick: (
|
|
341
|
+
onClick: (W) => e(A)(s.value)
|
|
344
342
|
}, [i("span", null, a(s.label), 1), s.badge ? (t(), n("span", Me, a(s.badge), 1)) : P("", !0)], 10, Ee))), 128))])) : P("", !0), r.note ? (t(), n("p", Qe, a(r.note), 1)) : P("", !0)])) : P("", !0), q.value.length ? (t(), n("div", {
|
|
345
343
|
key: 2,
|
|
346
344
|
class: I(["PricingPlans__grid", {
|
|
347
345
|
"PricingPlans__grid--compact": q.value.length <= 2
|
|
348
346
|
}])
|
|
349
|
-
}, [(t(!0), n(C, null, T(q.value, (s,
|
|
347
|
+
}, [(t(!0), n(C, null, T(q.value, (s, W) => (t(), n("article", {
|
|
350
348
|
key: s.id,
|
|
351
349
|
class: I(["PricingPlans__card", {
|
|
352
350
|
"is-recommended": e(S)(s),
|
|
353
351
|
"is-current": e(D)(s)
|
|
354
352
|
}])
|
|
355
|
-
}, [i("div", Ve, [(t(!0), n(C, null, T(e(
|
|
353
|
+
}, [i("div", Ve, [(t(!0), n(C, null, T(e(X)(s), (y) => (t(), n("span", {
|
|
356
354
|
key: y.type,
|
|
357
355
|
class: I(["PricingPlans__badge", `is-${y.type}`])
|
|
358
|
-
}, a(y.label), 3))), 128))]), i("div", ze, [i("h2", null, a(s.name), 1), i("p", null, a(s.description || ae(
|
|
356
|
+
}, a(y.label), 3))), 128))]), i("div", ze, [i("h2", null, a(s.name), 1), i("p", null, a(s.description || ae(W)), 1)]), i("div", He, [e(l)(s) ? (t(), n("span", Ge, " ¥" + a(e(l)(s)), 1)) : P("", !0), _[1] || (_[1] = i("span", {
|
|
359
357
|
class: "PricingPlans__currency"
|
|
360
|
-
}, "¥", -1)), i("span", Ke, a(e(m)(s)), 1), i("span", Oe, a(e(k)(s)), 1)]), e(
|
|
358
|
+
}, "¥", -1)), i("span", Ke, a(e(m)(s)), 1), i("span", Oe, a(e(k)(s)), 1)]), e(H)(s) ? (t(), n("p", Ue, a(e(H)(s)), 1)) : P("", !0), p(e(R), {
|
|
361
359
|
long: "",
|
|
362
360
|
size: "large",
|
|
363
361
|
class: "PricingPlans__button",
|
|
@@ -366,32 +364,32 @@ const be = {
|
|
|
366
364
|
disabled: e(N)(s),
|
|
367
365
|
onClick: (y) => e(se)(s)
|
|
368
366
|
}, {
|
|
369
|
-
default: h(() => [B(a(e(
|
|
367
|
+
default: h(() => [B(a(e(Z)(s)), 1)]),
|
|
370
368
|
_: 2
|
|
371
369
|
}, 1032, ["type", "loading", "disabled", "onClick"]), _[2] || (_[2] = i("div", {
|
|
372
370
|
class: "PricingPlans__divider"
|
|
373
|
-
}, null, -1)), i("div",
|
|
371
|
+
}, null, -1)), i("div", We, [(t(!0), n(C, null, T(e(G)(s.features), (y) => (t(), n("section", {
|
|
374
372
|
key: y.title,
|
|
375
373
|
class: "PricingPlans__featureGroup"
|
|
376
|
-
}, [i("h3", null, a(y.title), 1), i("ul",
|
|
377
|
-
key:
|
|
374
|
+
}, [i("h3", null, a(y.title), 1), i("ul", je, [(t(!0), n(C, null, T(y.items, (E) => (t(), n("li", {
|
|
375
|
+
key: E.title,
|
|
378
376
|
class: I({
|
|
379
|
-
"is-highlight":
|
|
377
|
+
"is-highlight": E.highlight
|
|
380
378
|
})
|
|
381
|
-
}, [p(e(
|
|
379
|
+
}, [p(e(j), {
|
|
382
380
|
icon: "mingcute:check-circle-fill",
|
|
383
381
|
class: "PricingPlans__featureIcon"
|
|
384
|
-
}), i("span", null, a(
|
|
382
|
+
}), i("span", null, a(E.title), 1)], 2))), 128))])]))), 128))])], 2))), 128))], 2)) : !b.value && !e(u) ? (t(), n("div", Ye, " 当前暂无可订阅方案 ")) : P("", !0)]),
|
|
385
383
|
_: 1
|
|
386
384
|
}, 8, ["loading"])), [[x]])]);
|
|
387
385
|
};
|
|
388
386
|
}
|
|
389
|
-
}),
|
|
387
|
+
}), Pt = /* @__PURE__ */ z(Je, [["__scopeId", "data-v-b3658f38"]]);
|
|
390
388
|
export {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
389
|
+
dt as P,
|
|
390
|
+
_t as a,
|
|
391
|
+
gt as b,
|
|
392
|
+
Pt as c,
|
|
393
|
+
M as p,
|
|
396
394
|
ke as r
|
|
397
395
|
};
|
package/dist/main.js
CHANGED
|
@@ -32,7 +32,7 @@ import { C as h7, a as g7 } from "./CollapseItem-DUzZA6tx.js";
|
|
|
32
32
|
import { C as m7, E as L7 } from "./CustomTable-BY0oHLXc.js";
|
|
33
33
|
import { M as w7, a as y7 } from "./Menu-uCexrsKP.js";
|
|
34
34
|
import { P as x7, u as v7, a as Z7, v as V7 } from "./PaySubscriptions-pEZtjp1g.js";
|
|
35
|
-
import { P as U7, a as E7, b as k7, c as S7, p as A7, r as G7 } from "./PricingPlans-
|
|
35
|
+
import { P as U7, a as E7, b as k7, c as S7, p as A7, r as G7 } from "./PricingPlans-J-CdbyZc.js";
|
|
36
36
|
import { useBillingSubscriptionSummary as P7 } from "./useBillingSubscriptionSummary-BC3G0N4t.js";
|
|
37
37
|
import { R as B7 } from "./ReferrerReferees-t5s4LzbY.js";
|
|
38
38
|
import { _ as T7 } from "./Upload.vue_vue_type_script_setup_true_lang-DsrqOACa.js";
|
package/dist/pay.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { P as e, u as t, a as n, v as r } from "./PaySubscriptions-pEZtjp1g.js";
|
|
2
|
-
import { P as i, a as o, b as P, c as p, p as m, r as c } from "./PricingPlans-
|
|
2
|
+
import { P as i, a as o, b as P, c as p, p as m, r as c } from "./PricingPlans-J-CdbyZc.js";
|
|
3
3
|
import { u as g, a as y } from "./useSubscriptionCheckout-CZZLk_1d.js";
|
|
4
4
|
import { useBillingSubscriptionSummary as R } from "./useBillingSubscriptionSummary-BC3G0N4t.js";
|
|
5
5
|
import { c as b, u as x, a as v, b as O } from "./useBillingStatusOptions-C6edto7H.js";
|