@huyooo/ui 2.1.15 → 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,16 +232,13 @@ const be = {
|
|
|
232
232
|
key: 0,
|
|
233
233
|
class: "PricingPlans__promotion"
|
|
234
234
|
}, We = {
|
|
235
|
-
key: 1,
|
|
236
|
-
class: "PricingPlans__summary"
|
|
237
|
-
}, je = {
|
|
238
235
|
class: "PricingPlans__featureGroups"
|
|
239
|
-
},
|
|
236
|
+
}, je = {
|
|
240
237
|
class: "PricingPlans__features"
|
|
241
|
-
},
|
|
238
|
+
}, Ye = {
|
|
242
239
|
key: 3,
|
|
243
240
|
class: "PricingPlans__empty"
|
|
244
|
-
},
|
|
241
|
+
}, Je = /* @__PURE__ */ Q({
|
|
245
242
|
__name: "PricingPlans",
|
|
246
243
|
props: {
|
|
247
244
|
appName: {
|
|
@@ -271,12 +268,12 @@ const be = {
|
|
|
271
268
|
getDisplayPrice: m,
|
|
272
269
|
getDisplayOriginalPrice: l,
|
|
273
270
|
getDisplayCycle: k,
|
|
274
|
-
getPromotionLabel:
|
|
275
|
-
getBadgeLabels:
|
|
276
|
-
getButtonLabel:
|
|
277
|
-
getPlanSummary:
|
|
278
|
-
getFeatureGroups:
|
|
279
|
-
loadCurrentSubscription:
|
|
271
|
+
getPromotionLabel: H,
|
|
272
|
+
getBadgeLabels: X,
|
|
273
|
+
getButtonLabel: Z,
|
|
274
|
+
getPlanSummary: ee,
|
|
275
|
+
getFeatureGroups: G,
|
|
276
|
+
loadCurrentSubscription: K,
|
|
280
277
|
refresh: te
|
|
281
278
|
} = ve(d.defaultInterval), b = w(() => {
|
|
282
279
|
if (!g.value)
|
|
@@ -289,31 +286,31 @@ const be = {
|
|
|
289
286
|
selectedPrice: _
|
|
290
287
|
};
|
|
291
288
|
}
|
|
292
|
-
}), 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), {
|
|
293
290
|
checkout: se,
|
|
294
291
|
isCheckingOut: ie
|
|
295
292
|
} = ye({
|
|
296
293
|
currentSubscription: g,
|
|
297
|
-
refreshCurrentSubscription:
|
|
294
|
+
refreshCurrentSubscription: K
|
|
298
295
|
}), {
|
|
299
296
|
ensureAuthenticated: re
|
|
300
297
|
} = he();
|
|
301
298
|
function ae(f) {
|
|
302
299
|
return f === 1 ? "适合团队协作与更高频使用" : "适合个人和轻量团队使用";
|
|
303
300
|
}
|
|
304
|
-
function
|
|
305
|
-
return
|
|
301
|
+
function U(f) {
|
|
302
|
+
return G(f.features).flatMap((_) => _.items).slice(0, 3);
|
|
306
303
|
}
|
|
307
304
|
function le() {
|
|
308
305
|
re(() => {
|
|
309
|
-
|
|
306
|
+
K();
|
|
310
307
|
});
|
|
311
308
|
}
|
|
312
|
-
return
|
|
309
|
+
return Y(() => {
|
|
313
310
|
te();
|
|
314
311
|
}), (f, _) => {
|
|
315
312
|
const x = ce("motion-slide-top");
|
|
316
|
-
return t(), n("section", Se, [ue((t(),
|
|
313
|
+
return t(), n("section", Se, [ue((t(), V(e(J), {
|
|
317
314
|
loading: e(u),
|
|
318
315
|
tip: "数据加载中",
|
|
319
316
|
class: "PricingPlans__spin"
|
|
@@ -321,14 +318,14 @@ const be = {
|
|
|
321
318
|
default: h(() => [b.value ? (t(), n("article", {
|
|
322
319
|
key: 0,
|
|
323
320
|
class: I(["PricingPlans__trial", {
|
|
324
|
-
"is-current":
|
|
321
|
+
"is-current": O.value
|
|
325
322
|
}])
|
|
326
|
-
}, [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", {
|
|
327
324
|
key: s.title
|
|
328
|
-
}, [p(e(
|
|
325
|
+
}, [p(e(j), {
|
|
329
326
|
icon: "mingcute:check-circle-fill",
|
|
330
327
|
class: "PricingPlans__trialFeatureIcon"
|
|
331
|
-
}), 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), {
|
|
332
329
|
size: "large",
|
|
333
330
|
class: "PricingPlans__trialButton",
|
|
334
331
|
onClick: le
|
|
@@ -341,24 +338,24 @@ const be = {
|
|
|
341
338
|
class: I(["PricingPlans__toggleItem", {
|
|
342
339
|
"is-active": e(v) === s.value
|
|
343
340
|
}]),
|
|
344
|
-
onClick: (
|
|
341
|
+
onClick: (W) => e(A)(s.value)
|
|
345
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", {
|
|
346
343
|
key: 2,
|
|
347
344
|
class: I(["PricingPlans__grid", {
|
|
348
345
|
"PricingPlans__grid--compact": q.value.length <= 2
|
|
349
346
|
}])
|
|
350
|
-
}, [(t(!0), n(C, null, T(q.value, (s,
|
|
347
|
+
}, [(t(!0), n(C, null, T(q.value, (s, W) => (t(), n("article", {
|
|
351
348
|
key: s.id,
|
|
352
349
|
class: I(["PricingPlans__card", {
|
|
353
350
|
"is-recommended": e(S)(s),
|
|
354
351
|
"is-current": e(D)(s)
|
|
355
352
|
}])
|
|
356
|
-
}, [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", {
|
|
357
354
|
key: y.type,
|
|
358
355
|
class: I(["PricingPlans__badge", `is-${y.type}`])
|
|
359
|
-
}, 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", {
|
|
360
357
|
class: "PricingPlans__currency"
|
|
361
|
-
}, "¥", -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), {
|
|
362
359
|
long: "",
|
|
363
360
|
size: "large",
|
|
364
361
|
class: "PricingPlans__button",
|
|
@@ -367,32 +364,32 @@ const be = {
|
|
|
367
364
|
disabled: e(N)(s),
|
|
368
365
|
onClick: (y) => e(se)(s)
|
|
369
366
|
}, {
|
|
370
|
-
default: h(() => [B(a(e(
|
|
367
|
+
default: h(() => [B(a(e(Z)(s)), 1)]),
|
|
371
368
|
_: 2
|
|
372
369
|
}, 1032, ["type", "loading", "disabled", "onClick"]), _[2] || (_[2] = i("div", {
|
|
373
370
|
class: "PricingPlans__divider"
|
|
374
|
-
}, null, -1)), i("div",
|
|
371
|
+
}, null, -1)), i("div", We, [(t(!0), n(C, null, T(e(G)(s.features), (y) => (t(), n("section", {
|
|
375
372
|
key: y.title,
|
|
376
373
|
class: "PricingPlans__featureGroup"
|
|
377
|
-
}, [i("h3", null, a(y.title), 1), i("ul",
|
|
378
|
-
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,
|
|
379
376
|
class: I({
|
|
380
|
-
"is-highlight":
|
|
377
|
+
"is-highlight": E.highlight
|
|
381
378
|
})
|
|
382
|
-
}, [p(e(
|
|
379
|
+
}, [p(e(j), {
|
|
383
380
|
icon: "mingcute:check-circle-fill",
|
|
384
381
|
class: "PricingPlans__featureIcon"
|
|
385
|
-
}), 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)]),
|
|
386
383
|
_: 1
|
|
387
384
|
}, 8, ["loading"])), [[x]])]);
|
|
388
385
|
};
|
|
389
386
|
}
|
|
390
|
-
}),
|
|
387
|
+
}), Pt = /* @__PURE__ */ z(Je, [["__scopeId", "data-v-b3658f38"]]);
|
|
391
388
|
export {
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
389
|
+
dt as P,
|
|
390
|
+
_t as a,
|
|
391
|
+
gt as b,
|
|
392
|
+
Pt as c,
|
|
393
|
+
M as p,
|
|
397
394
|
ke as r
|
|
398
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";
|