@huyooo/ui 2.1.16 → 2.1.20
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/PricingPlans-DK3OkfZ9.js +448 -0
- package/dist/composables/Billing/useBillingPlans.d.ts +10 -2
- package/dist/main.js +1 -1
- package/dist/pay.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api/auth.generated.d.ts +15 -0
- package/dist/types/api/billing.generated.d.ts +19 -0
- package/package.json +1 -1
- package/dist/PricingPlans-J-CdbyZc.js +0 -395
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import "./userMenuModal-D-nDaYqM.js";
|
|
3
|
+
import { g as ee } from "./apiClients-CWSwNzGk.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { defineComponent as O, computed as B, onMounted as se, onUnmounted as me, openBlock as n, createElementBlock as s, createElementVNode as i, unref as e, createBlock as U, toDisplayString as l, createVNode as m, withCtx as y, createTextVNode as R, ref as te, watch as ve, resolveDirective as pe, withDirectives as ye, normalizeClass as w, Fragment as T, renderList as I, createCommentVNode as p } from "vue";
|
|
6
|
+
import { Spin as ie, Button as S, Message as ae } from "@arco-design/web-vue";
|
|
7
|
+
import { useRoute as he, useRouter as ke } from "vue-router";
|
|
8
|
+
import { a as be } from "./PaySubscriptions-pEZtjp1g.js";
|
|
9
|
+
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
import { L as Ce, a as we, b as Te } from "./LandingPageSectionHeader-3hiuw6G0.js";
|
|
11
|
+
import { Icon as ne } from "@iconify/vue";
|
|
12
|
+
import { u as Ie, a as Be } from "./useSubscriptionCheckout-CZZLk_1d.js";
|
|
13
|
+
import { u as Re } from "./useEnsureAuthenticated-RZ1DflLz.js";
|
|
14
|
+
const ht = "/Pay/Return";
|
|
15
|
+
function K(r) {
|
|
16
|
+
const P = typeof r.scene == "string" ? r.scene : null, u = typeof r.orderId == "string" ? r.orderId : null, d = typeof r.returnTo == "string" ? r.returnTo.trim() : null, _ = d != null && d.startsWith("/") && !d.startsWith("//") ? d : null;
|
|
17
|
+
return P !== "subscription" && P !== "recharge" && P !== "agreement" ? {
|
|
18
|
+
scene: null,
|
|
19
|
+
orderId: u,
|
|
20
|
+
returnTo: _
|
|
21
|
+
} : {
|
|
22
|
+
scene: P,
|
|
23
|
+
orderId: (u == null ? void 0 : u.trim()) || null,
|
|
24
|
+
returnTo: _
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function Se(r, P) {
|
|
28
|
+
const {
|
|
29
|
+
returnTo: u
|
|
30
|
+
} = K(r);
|
|
31
|
+
return u || P;
|
|
32
|
+
}
|
|
33
|
+
const Ae = {
|
|
34
|
+
class: "payment-return-page"
|
|
35
|
+
}, Le = {
|
|
36
|
+
class: "payment-return-card"
|
|
37
|
+
}, $e = {
|
|
38
|
+
key: 1,
|
|
39
|
+
class: "payment-return-icon success"
|
|
40
|
+
}, qe = {
|
|
41
|
+
key: 2,
|
|
42
|
+
class: "payment-return-icon failed"
|
|
43
|
+
}, Fe = {
|
|
44
|
+
key: 3,
|
|
45
|
+
class: "payment-return-actions"
|
|
46
|
+
}, De = {
|
|
47
|
+
key: 4,
|
|
48
|
+
class: "payment-return-actions"
|
|
49
|
+
}, Ne = /* @__PURE__ */ O({
|
|
50
|
+
__name: "PaymentReturnPage",
|
|
51
|
+
props: {
|
|
52
|
+
defaultReturnTo: {
|
|
53
|
+
default: "/Pricing"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
setup(r) {
|
|
57
|
+
const P = r, u = he(), d = ke();
|
|
58
|
+
function _() {
|
|
59
|
+
return Se(u.query, P.defaultReturnTo);
|
|
60
|
+
}
|
|
61
|
+
const {
|
|
62
|
+
phase: g,
|
|
63
|
+
message: h,
|
|
64
|
+
checking: L,
|
|
65
|
+
confirmPayment: x,
|
|
66
|
+
stopPolling: E,
|
|
67
|
+
verifyNow: z
|
|
68
|
+
} = be(_), $ = B(() => g.value === "success" ? "支付成功" : g.value === "failed" ? "支付未完成" : "正在确认支付");
|
|
69
|
+
function q() {
|
|
70
|
+
d.replace(_());
|
|
71
|
+
}
|
|
72
|
+
async function M() {
|
|
73
|
+
const {
|
|
74
|
+
scene: v,
|
|
75
|
+
orderId: o
|
|
76
|
+
} = K(u.query);
|
|
77
|
+
if (!v || !o) {
|
|
78
|
+
ae.error("支付参数无效");
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const C = await z(v, o);
|
|
82
|
+
if (C.error) {
|
|
83
|
+
g.value = "failed", h.value = C.message || "确认支付失败";
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (C.success) {
|
|
87
|
+
g.value = "success", h.value = C.message || "支付成功", window.setTimeout(() => {
|
|
88
|
+
d.replace(_());
|
|
89
|
+
}, 1200);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
h.value = C.message || "等待支付确认...";
|
|
93
|
+
}
|
|
94
|
+
return se(() => {
|
|
95
|
+
const {
|
|
96
|
+
scene: v,
|
|
97
|
+
orderId: o
|
|
98
|
+
} = K(u.query);
|
|
99
|
+
if (!v || !o) {
|
|
100
|
+
g.value = "failed", h.value = "缺少支付回跳参数";
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
if (v === "agreement") {
|
|
104
|
+
g.value = "success", h.value = "签约流程已完成,正在返回...", window.setTimeout(() => {
|
|
105
|
+
d.replace(_());
|
|
106
|
+
}, 1200);
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
x(v, o);
|
|
110
|
+
}), me(E), (v, o) => (n(), s("div", Ae, [i("div", Le, [e(g) === "loading" ? (n(), U(e(ie), {
|
|
111
|
+
key: 0,
|
|
112
|
+
size: 36
|
|
113
|
+
})) : e(g) === "success" ? (n(), s("div", $e, "✓")) : (n(), s("div", qe, "!")), i("h1", null, l($.value), 1), i("p", null, l(e(h)), 1), e(g) === "loading" ? (n(), s("div", Fe, [m(e(S), {
|
|
114
|
+
loading: e(L),
|
|
115
|
+
type: "primary",
|
|
116
|
+
onClick: M
|
|
117
|
+
}, {
|
|
118
|
+
default: y(() => [...o[0] || (o[0] = [R(" 我已完成支付 ", -1)])]),
|
|
119
|
+
_: 1
|
|
120
|
+
}, 8, ["loading"]), m(e(S), {
|
|
121
|
+
onClick: q
|
|
122
|
+
}, {
|
|
123
|
+
default: y(() => [...o[1] || (o[1] = [R("返回", -1)])]),
|
|
124
|
+
_: 1
|
|
125
|
+
})])) : (n(), s("div", De, [m(e(S), {
|
|
126
|
+
type: "primary",
|
|
127
|
+
onClick: q
|
|
128
|
+
}, {
|
|
129
|
+
default: y(() => [...o[2] || (o[2] = [R("返回", -1)])]),
|
|
130
|
+
_: 1
|
|
131
|
+
})]))])]));
|
|
132
|
+
}
|
|
133
|
+
}), kt = /* @__PURE__ */ W(Ne, [["__scopeId", "data-v-65b534f9"]]), xe = /* @__PURE__ */ O({
|
|
134
|
+
__name: "PricingFAQ",
|
|
135
|
+
props: {
|
|
136
|
+
title: {
|
|
137
|
+
default: "订阅常见问题"
|
|
138
|
+
},
|
|
139
|
+
subtitle: {
|
|
140
|
+
default: "关于试用、付款、配额、升级和取消订阅的说明。"
|
|
141
|
+
},
|
|
142
|
+
activeKeys: {
|
|
143
|
+
default: () => []
|
|
144
|
+
},
|
|
145
|
+
faqItems: {
|
|
146
|
+
default: void 0
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
setup(r) {
|
|
150
|
+
const P = [{
|
|
151
|
+
question: "可以先试用再付费吗?",
|
|
152
|
+
answer: "可以。支持试用的方案会在卡片按钮上标明试用天数。试用期间可使用对应方案能力,到期后再决定是否继续订阅。"
|
|
153
|
+
}, {
|
|
154
|
+
question: "月付和年付有什么区别?",
|
|
155
|
+
answer: "月付适合短期验证和灵活使用,年付适合稳定团队和长期项目,通常会有更优惠的价格。"
|
|
156
|
+
}, {
|
|
157
|
+
question: "已有订阅后可以升级或切换方案吗?",
|
|
158
|
+
answer: "可以。升级或切换方案时,系统会根据当前订阅和新方案计算差额;如需补差价,会跳转到支付页面完成支付。"
|
|
159
|
+
}, {
|
|
160
|
+
question: "取消订阅后还能继续使用吗?",
|
|
161
|
+
answer: "可以。取消订阅后,当前计费周期内仍可继续使用,周期结束后订阅权益将停止续期。"
|
|
162
|
+
}, {
|
|
163
|
+
question: "配额什么时候重置?",
|
|
164
|
+
answer: "配额按订阅周期重置,不一定是自然月月初。例如您在 4 月 15 日订阅月付方案,下一次配额重置通常发生在 5 月 15 日。"
|
|
165
|
+
}, {
|
|
166
|
+
question: "不同方案的技术支持有什么区别?",
|
|
167
|
+
answer: "基础方案适合个人和轻量团队,包含常规支持;更高等级方案面向正式团队和生产场景,通常包含更高优先级支持。"
|
|
168
|
+
}, {
|
|
169
|
+
question: "是否支持退款?",
|
|
170
|
+
answer: "订阅可随时取消。退款规则以付费服务协议为准,如遇到重复扣费或异常支付,可以联系支持团队处理。"
|
|
171
|
+
}, {
|
|
172
|
+
question: "使用订阅服务有什么限制?",
|
|
173
|
+
answer: "请按正常业务场景使用服务,禁止共享、转售订阅或用于违法违规场景。严重滥用可能导致服务受限或账户终止。"
|
|
174
|
+
}], u = r, d = B(() => u.faqItems ?? P);
|
|
175
|
+
return (_, g) => (n(), U(Ce, {
|
|
176
|
+
class: "PricingFAQ"
|
|
177
|
+
}, {
|
|
178
|
+
BlockHeader: y(() => [m(Te, {
|
|
179
|
+
title: r.title,
|
|
180
|
+
subtitle: r.subtitle
|
|
181
|
+
}, null, 8, ["title", "subtitle"])]),
|
|
182
|
+
BlockBody: y(() => [m(we, {
|
|
183
|
+
"active-keys": r.activeKeys,
|
|
184
|
+
"faq-items": d.value
|
|
185
|
+
}, null, 8, ["active-keys", "faq-items"])]),
|
|
186
|
+
_: 1
|
|
187
|
+
}));
|
|
188
|
+
}
|
|
189
|
+
}), bt = /* @__PURE__ */ W(xe, [["__scopeId", "data-v-fcab2f05"]]), Ee = {
|
|
190
|
+
class: "PricingPlans"
|
|
191
|
+
}, ze = {
|
|
192
|
+
class: "PricingPlans__trialMain"
|
|
193
|
+
}, Me = {
|
|
194
|
+
class: "PricingPlans__trialCopy"
|
|
195
|
+
}, Qe = {
|
|
196
|
+
key: 0,
|
|
197
|
+
class: "PricingPlans__trialFeatures"
|
|
198
|
+
}, Ve = {
|
|
199
|
+
key: 0,
|
|
200
|
+
class: "PricingPlans__trialAction"
|
|
201
|
+
}, He = {
|
|
202
|
+
key: 1,
|
|
203
|
+
class: "PricingPlans__trialStatus"
|
|
204
|
+
}, Ge = {
|
|
205
|
+
key: 2,
|
|
206
|
+
class: "PricingPlans__trialAction"
|
|
207
|
+
}, Ke = {
|
|
208
|
+
key: 1,
|
|
209
|
+
class: "PricingPlans__toolbar"
|
|
210
|
+
}, Oe = {
|
|
211
|
+
key: 0,
|
|
212
|
+
class: "PricingPlans__toggle",
|
|
213
|
+
role: "tablist",
|
|
214
|
+
"aria-label": "计费周期"
|
|
215
|
+
}, Ue = ["onClick"], We = {
|
|
216
|
+
key: 0,
|
|
217
|
+
class: "PricingPlans__toggleBadge"
|
|
218
|
+
}, je = {
|
|
219
|
+
key: 1,
|
|
220
|
+
class: "PricingPlans__note"
|
|
221
|
+
}, Ye = {
|
|
222
|
+
class: "PricingPlans__badgeRow"
|
|
223
|
+
}, Je = {
|
|
224
|
+
class: "PricingPlans__offer"
|
|
225
|
+
}, Xe = {
|
|
226
|
+
class: "PricingPlans__header"
|
|
227
|
+
}, Ze = {
|
|
228
|
+
class: "PricingPlans__price"
|
|
229
|
+
}, et = {
|
|
230
|
+
key: 0,
|
|
231
|
+
class: "PricingPlans__originalPrice"
|
|
232
|
+
}, tt = {
|
|
233
|
+
class: "PricingPlans__amount"
|
|
234
|
+
}, nt = {
|
|
235
|
+
class: "PricingPlans__cycle"
|
|
236
|
+
}, st = {
|
|
237
|
+
class: "PricingPlans__featureGroups"
|
|
238
|
+
}, it = {
|
|
239
|
+
class: "PricingPlans__features"
|
|
240
|
+
}, at = {
|
|
241
|
+
key: 3,
|
|
242
|
+
class: "PricingPlans__empty"
|
|
243
|
+
}, rt = /* @__PURE__ */ O({
|
|
244
|
+
__name: "PricingPlans",
|
|
245
|
+
props: {
|
|
246
|
+
appName: {
|
|
247
|
+
default: "Huyooo"
|
|
248
|
+
},
|
|
249
|
+
defaultInterval: {
|
|
250
|
+
default: "month"
|
|
251
|
+
},
|
|
252
|
+
note: {
|
|
253
|
+
default: ""
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
setup(r) {
|
|
257
|
+
const P = r, {
|
|
258
|
+
products: u,
|
|
259
|
+
plans: d,
|
|
260
|
+
currentSubscription: _,
|
|
261
|
+
listLoading: g,
|
|
262
|
+
billingInterval: h,
|
|
263
|
+
billingIntervalTabs: L,
|
|
264
|
+
setBillingInterval: x,
|
|
265
|
+
currentTrial: E,
|
|
266
|
+
isCurrentPlan: z,
|
|
267
|
+
isRecommendedPlan: $,
|
|
268
|
+
isFreePlan: q,
|
|
269
|
+
isPlanActionDisabled: M,
|
|
270
|
+
getDisplayPrice: v,
|
|
271
|
+
getDisplayOriginalPrice: o,
|
|
272
|
+
getDisplayCycle: C,
|
|
273
|
+
getPromotionLabel: j,
|
|
274
|
+
getBadgeLabels: re,
|
|
275
|
+
getButtonLabel: le,
|
|
276
|
+
getPlanSummary: oe,
|
|
277
|
+
getFeatureGroups: Y,
|
|
278
|
+
loadCurrentSubscription: J,
|
|
279
|
+
refresh: ce
|
|
280
|
+
} = Ie(P.defaultInterval), f = B(() => {
|
|
281
|
+
if (!_.value)
|
|
282
|
+
for (const c of u.value) {
|
|
283
|
+
const a = c.prices.find((k) => k.type === "free");
|
|
284
|
+
if (a)
|
|
285
|
+
return {
|
|
286
|
+
...c,
|
|
287
|
+
features: a.features ?? [],
|
|
288
|
+
selectedPrice: a
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
}), F = B(() => d.value.filter((c) => !q(c))), Q = B(() => !!localStorage.getItem("jwtToken")), D = B(() => !!E.value), V = te(!1), N = te(!1), {
|
|
292
|
+
checkout: ue,
|
|
293
|
+
isCheckingOut: de
|
|
294
|
+
} = Be({
|
|
295
|
+
currentSubscription: _,
|
|
296
|
+
refreshCurrentSubscription: J
|
|
297
|
+
}), {
|
|
298
|
+
ensureAuthenticated: _e
|
|
299
|
+
} = Re();
|
|
300
|
+
function ge(c) {
|
|
301
|
+
return c === 1 ? "适合团队协作与更高频使用" : "适合个人和轻量团队使用";
|
|
302
|
+
}
|
|
303
|
+
function X(c) {
|
|
304
|
+
return Y(c.features).flatMap((a) => a.items);
|
|
305
|
+
}
|
|
306
|
+
function Pe() {
|
|
307
|
+
_e(() => {
|
|
308
|
+
Z();
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
async function H() {
|
|
312
|
+
var t, A;
|
|
313
|
+
if (V.value = !1, !Q.value || D.value || _.value)
|
|
314
|
+
return;
|
|
315
|
+
const c = (A = (t = f.value) == null ? void 0 : t.selectedPrice) == null ? void 0 : A.id;
|
|
316
|
+
if (!c)
|
|
317
|
+
return;
|
|
318
|
+
const {
|
|
319
|
+
data: a,
|
|
320
|
+
error: k
|
|
321
|
+
} = await ee().billing.trials.claimStatus.post({
|
|
322
|
+
priceId: c
|
|
323
|
+
});
|
|
324
|
+
k || !a || (V.value = !!a.canClaim);
|
|
325
|
+
}
|
|
326
|
+
async function Z() {
|
|
327
|
+
await J(), await H();
|
|
328
|
+
}
|
|
329
|
+
async function fe() {
|
|
330
|
+
var a, k;
|
|
331
|
+
const c = (k = (a = f.value) == null ? void 0 : a.selectedPrice) == null ? void 0 : k.id;
|
|
332
|
+
if (!(!c || N.value)) {
|
|
333
|
+
N.value = !0;
|
|
334
|
+
try {
|
|
335
|
+
const {
|
|
336
|
+
error: t
|
|
337
|
+
} = await ee().billing.trials.start.post({
|
|
338
|
+
priceId: c
|
|
339
|
+
});
|
|
340
|
+
if (t)
|
|
341
|
+
return;
|
|
342
|
+
ae.success("免费体验已开通"), await Z();
|
|
343
|
+
} finally {
|
|
344
|
+
N.value = !1;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
return ve([Q, D, f, _], () => {
|
|
349
|
+
H();
|
|
350
|
+
}), se(() => {
|
|
351
|
+
ce().then(() => H());
|
|
352
|
+
}), (c, a) => {
|
|
353
|
+
const k = pe("motion-slide-top");
|
|
354
|
+
return n(), s("section", Ee, [ye((n(), U(e(ie), {
|
|
355
|
+
loading: e(g),
|
|
356
|
+
tip: "数据加载中",
|
|
357
|
+
class: "PricingPlans__spin"
|
|
358
|
+
}, {
|
|
359
|
+
default: y(() => [f.value ? (n(), s("article", {
|
|
360
|
+
key: 0,
|
|
361
|
+
class: w(["PricingPlans__trial", {
|
|
362
|
+
"is-current": D.value
|
|
363
|
+
}])
|
|
364
|
+
}, [i("div", ze, [i("div", Me, [i("h2", null, l(f.value.name), 1), i("p", null, l(f.value.description || e(oe)(f.value, 0)), 1), X(f.value).length ? (n(), s("ul", Qe, [(n(!0), s(T, null, I(X(f.value), (t) => (n(), s("li", {
|
|
365
|
+
key: t.title
|
|
366
|
+
}, [m(e(ne), {
|
|
367
|
+
icon: "mingcute:check-circle-fill",
|
|
368
|
+
class: "PricingPlans__trialFeatureIcon"
|
|
369
|
+
}), i("span", null, l(t.title), 1)]))), 128))])) : p("", !0)]), Q.value ? D.value ? (n(), s("div", He, " 已开通 ")) : V.value ? (n(), s("div", Ge, [m(e(S), {
|
|
370
|
+
size: "large",
|
|
371
|
+
class: "PricingPlans__trialButton",
|
|
372
|
+
loading: N.value,
|
|
373
|
+
onClick: fe
|
|
374
|
+
}, {
|
|
375
|
+
default: y(() => [...a[1] || (a[1] = [R(" 领取免费体验 ", -1)])]),
|
|
376
|
+
_: 1
|
|
377
|
+
}, 8, ["loading"])])) : p("", !0) : (n(), s("div", Ve, [m(e(S), {
|
|
378
|
+
size: "large",
|
|
379
|
+
class: "PricingPlans__trialButton",
|
|
380
|
+
onClick: Pe
|
|
381
|
+
}, {
|
|
382
|
+
default: y(() => [...a[0] || (a[0] = [R(" 免费注册 ", -1)])]),
|
|
383
|
+
_: 1
|
|
384
|
+
})]))])], 2)) : p("", !0), F.value.length ? (n(), s("div", Ke, [e(L).length > 1 ? (n(), s("div", Oe, [(n(!0), s(T, null, I(e(L), (t) => (n(), s("button", {
|
|
385
|
+
key: t.value,
|
|
386
|
+
type: "button",
|
|
387
|
+
class: w(["PricingPlans__toggleItem", {
|
|
388
|
+
"is-active": e(h) === t.value
|
|
389
|
+
}]),
|
|
390
|
+
onClick: (A) => e(x)(t.value)
|
|
391
|
+
}, [i("span", null, l(t.label), 1), t.badge ? (n(), s("span", We, l(t.badge), 1)) : p("", !0)], 10, Ue))), 128))])) : p("", !0), r.note ? (n(), s("p", je, l(r.note), 1)) : p("", !0)])) : p("", !0), F.value.length ? (n(), s("div", {
|
|
392
|
+
key: 2,
|
|
393
|
+
class: w(["PricingPlans__grid", {
|
|
394
|
+
"PricingPlans__grid--compact": F.value.length <= 2
|
|
395
|
+
}])
|
|
396
|
+
}, [(n(!0), s(T, null, I(F.value, (t, A) => (n(), s("article", {
|
|
397
|
+
key: t.id,
|
|
398
|
+
class: w(["PricingPlans__card", {
|
|
399
|
+
"is-recommended": e($)(t),
|
|
400
|
+
"is-current": e(z)(t)
|
|
401
|
+
}])
|
|
402
|
+
}, [i("div", Ye, [(n(!0), s(T, null, I(e(re)(t), (b) => (n(), s("span", {
|
|
403
|
+
key: b.type,
|
|
404
|
+
class: w(["PricingPlans__badge", `is-${b.type}`])
|
|
405
|
+
}, l(b.label), 3))), 128))]), i("div", Je, [i("div", Xe, [i("h2", null, l(t.name), 1), i("p", null, l(t.description || ge(A)), 1)]), i("div", Ze, [e(o)(t) ? (n(), s("span", et, " ¥" + l(e(o)(t)), 1)) : p("", !0), a[2] || (a[2] = i("span", {
|
|
406
|
+
class: "PricingPlans__currency"
|
|
407
|
+
}, "¥", -1)), i("span", tt, l(e(v)(t)), 1), i("span", nt, l(e(C)(t)), 1)]), i("p", {
|
|
408
|
+
class: w(["PricingPlans__promotion", {
|
|
409
|
+
"is-empty": !e(j)(t)
|
|
410
|
+
}])
|
|
411
|
+
}, l(e(j)(t) || " "), 3), m(e(S), {
|
|
412
|
+
long: "",
|
|
413
|
+
size: "large",
|
|
414
|
+
class: "PricingPlans__button",
|
|
415
|
+
type: e($)(t) ? "primary" : "outline",
|
|
416
|
+
loading: e(de)(t),
|
|
417
|
+
disabled: e(M)(t),
|
|
418
|
+
onClick: (b) => e(ue)(t)
|
|
419
|
+
}, {
|
|
420
|
+
default: y(() => [R(l(e(le)(t)), 1)]),
|
|
421
|
+
_: 2
|
|
422
|
+
}, 1032, ["type", "loading", "disabled", "onClick"])]), a[3] || (a[3] = i("div", {
|
|
423
|
+
class: "PricingPlans__divider"
|
|
424
|
+
}, null, -1)), i("div", st, [(n(!0), s(T, null, I(e(Y)(t.features), (b) => (n(), s("section", {
|
|
425
|
+
key: b.title,
|
|
426
|
+
class: "PricingPlans__featureGroup"
|
|
427
|
+
}, [i("h3", null, l(b.title), 1), i("ul", it, [(n(!0), s(T, null, I(b.items, (G) => (n(), s("li", {
|
|
428
|
+
key: G.title,
|
|
429
|
+
class: w({
|
|
430
|
+
"is-highlight": G.highlight
|
|
431
|
+
})
|
|
432
|
+
}, [m(e(ne), {
|
|
433
|
+
icon: "mingcute:check-circle-fill",
|
|
434
|
+
class: "PricingPlans__featureIcon"
|
|
435
|
+
}), i("span", null, l(G.title), 1)], 2))), 128))])]))), 128))])], 2))), 128))], 2)) : !f.value && !e(g) ? (n(), s("div", at, " 当前暂无可订阅方案 ")) : p("", !0)]),
|
|
436
|
+
_: 1
|
|
437
|
+
}, 8, ["loading"])), [[k]])]);
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
}), Ct = /* @__PURE__ */ W(rt, [["__scopeId", "data-v-3764965c"]]);
|
|
441
|
+
export {
|
|
442
|
+
ht as P,
|
|
443
|
+
kt as a,
|
|
444
|
+
bt as b,
|
|
445
|
+
Ct as c,
|
|
446
|
+
K as p,
|
|
447
|
+
Se as r
|
|
448
|
+
};
|
|
@@ -19,6 +19,8 @@ export interface BillingPrice {
|
|
|
19
19
|
intervalCount?: number;
|
|
20
20
|
/** 订阅支付成功后附送积分 */
|
|
21
21
|
bonusPoints?: number;
|
|
22
|
+
/** 免费价可领取次数;0=无限;缺省按 1 */
|
|
23
|
+
claimLimit?: number;
|
|
22
24
|
metadata?: Record<string, unknown>;
|
|
23
25
|
features?: BillingProductFeature[];
|
|
24
26
|
}
|
|
@@ -110,7 +112,10 @@ export declare function useBillingPlans(defaultInterval?: BillingInterval | Bill
|
|
|
110
112
|
intervalCount?: number
|
|
111
113
|
/** 订阅支付成功后附送积分 */
|
|
112
114
|
| undefined;
|
|
113
|
-
bonusPoints?: number
|
|
115
|
+
bonusPoints?: number
|
|
116
|
+
/** 免费价可领取次数;0=无限;缺省按 1 */
|
|
117
|
+
| undefined;
|
|
118
|
+
claimLimit?: number | undefined;
|
|
114
119
|
metadata?: Record<string, unknown> | undefined;
|
|
115
120
|
features?: {
|
|
116
121
|
key: string;
|
|
@@ -137,7 +142,10 @@ export declare function useBillingPlans(defaultInterval?: BillingInterval | Bill
|
|
|
137
142
|
intervalCount?: number
|
|
138
143
|
/** 订阅支付成功后附送积分 */
|
|
139
144
|
| undefined;
|
|
140
|
-
bonusPoints?: number
|
|
145
|
+
bonusPoints?: number
|
|
146
|
+
/** 免费价可领取次数;0=无限;缺省按 1 */
|
|
147
|
+
| undefined;
|
|
148
|
+
claimLimit?: number | undefined;
|
|
141
149
|
metadata?: Record<string, unknown> | undefined;
|
|
142
150
|
features?: {
|
|
143
151
|
key: string;
|
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-DK3OkfZ9.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-DK3OkfZ9.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";
|