@huyooo/ui 0.11.17 → 0.12.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as K, computed as d, openBlock as i, createBlock as O, withCtx as v, createVNode as m, onMounted as ue, resolveDirective as _e, createElementBlock as n, withDirectives as de, unref as t, normalizeClass as p, createElementVNode as s, toDisplayString as l, Fragment as P, renderList as f, createCommentVNode as
|
|
1
|
+
import { defineComponent as K, computed as d, openBlock as i, createBlock as O, withCtx as v, createVNode as m, onMounted as ue, resolveDirective as _e, createElementBlock as n, withDirectives as de, unref as t, normalizeClass as p, createElementVNode as s, toDisplayString as l, Fragment as P, renderList as f, createCommentVNode as c, createTextVNode as G } from "vue";
|
|
2
2
|
import { L as ge, a as Pe } from "./LandingPageFAQ-CZJXvor9.js";
|
|
3
3
|
import { L as fe } from "./LandingPageSectionHeader-D_74W4My.js";
|
|
4
4
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -25,7 +25,7 @@ const ye = /* @__PURE__ */ K({
|
|
|
25
25
|
default: void 0
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
setup(
|
|
28
|
+
setup(o) {
|
|
29
29
|
const h = [{
|
|
30
30
|
question: "可以先试用再付费吗?",
|
|
31
31
|
answer: "可以。支持试用的方案会在卡片按钮上标明试用天数。试用期间可使用对应方案能力,到期后再决定是否继续订阅。"
|
|
@@ -50,16 +50,16 @@ const ye = /* @__PURE__ */ K({
|
|
|
50
50
|
}, {
|
|
51
51
|
question: "使用订阅服务有什么限制?",
|
|
52
52
|
answer: "请按正常业务场景使用服务,禁止共享、转售订阅或用于违法违规场景。严重滥用可能导致服务受限或账户终止。"
|
|
53
|
-
}], y =
|
|
53
|
+
}], y = o, k = d(() => y.faqItems ?? h);
|
|
54
54
|
return (b, w) => (i(), O(ge, {
|
|
55
55
|
class: "PricingFAQ"
|
|
56
56
|
}, {
|
|
57
57
|
BlockHeader: v(() => [m(fe, {
|
|
58
|
-
title:
|
|
59
|
-
subtitle:
|
|
58
|
+
title: o.title,
|
|
59
|
+
subtitle: o.subtitle
|
|
60
60
|
}, null, 8, ["title", "subtitle"])]),
|
|
61
61
|
BlockBody: v(() => [m(Pe, {
|
|
62
|
-
"active-keys":
|
|
62
|
+
"active-keys": o.activeKeys,
|
|
63
63
|
"faq-items": k.value
|
|
64
64
|
}, null, 8, ["active-keys", "faq-items"])]),
|
|
65
65
|
_: 1
|
|
@@ -131,8 +131,8 @@ const ye = /* @__PURE__ */ K({
|
|
|
131
131
|
default: ""
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
|
-
setup(
|
|
135
|
-
const h =
|
|
134
|
+
setup(o) {
|
|
135
|
+
const h = o, {
|
|
136
136
|
products: y,
|
|
137
137
|
plans: k,
|
|
138
138
|
currentSubscription: b,
|
|
@@ -186,10 +186,10 @@ const ye = /* @__PURE__ */ K({
|
|
|
186
186
|
function re(a) {
|
|
187
187
|
return (a.description || x(a, 0)).replace(/^\s*\d+\s*天(?:免费)?体验[,,、\s]*/, "").replace(/^\s*免费体验[,,、\s]*/, "").trim();
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function ce() {
|
|
190
190
|
return I.value ? "权益加载中" : C.value ? "正在体验当前权益" : "立即体验";
|
|
191
191
|
}
|
|
192
|
-
async function
|
|
192
|
+
async function oe() {
|
|
193
193
|
if (!V.value) {
|
|
194
194
|
if (Q.value) {
|
|
195
195
|
await N();
|
|
@@ -217,23 +217,23 @@ const ye = /* @__PURE__ */ K({
|
|
|
217
217
|
}, [m(t(M), {
|
|
218
218
|
icon: "mingcute:check-circle-fill",
|
|
219
219
|
class: "PricingPlans__trialFeatureIcon"
|
|
220
|
-
}), s("span", null, l(e.title), 1)]))), 128))])) :
|
|
220
|
+
}), s("span", null, l(e.title), 1)]))), 128))])) : c("", !0)]), s("div", Ie, [m(t(H), {
|
|
221
221
|
size: "large",
|
|
222
222
|
class: "PricingPlans__trialButton",
|
|
223
223
|
loading: I.value,
|
|
224
224
|
disabled: V.value,
|
|
225
|
-
onClick:
|
|
225
|
+
onClick: oe
|
|
226
226
|
}, {
|
|
227
|
-
default: v(() => [G(l(
|
|
227
|
+
default: v(() => [G(l(ce()), 1)]),
|
|
228
228
|
_: 1
|
|
229
|
-
}, 8, ["loading", "disabled"])])])], 2)) :
|
|
229
|
+
}, 8, ["loading", "disabled"])])])], 2)) : c("", !0), B.value.length ? (i(), n("div", Le, [t(D).length > 1 ? (i(), n("div", we, [(i(!0), n(P, null, f(t(D), (e) => (i(), n("button", {
|
|
230
230
|
key: e.value,
|
|
231
231
|
type: "button",
|
|
232
232
|
class: p(["PricingPlans__toggleItem", {
|
|
233
233
|
"is-active": t(j) === e.value
|
|
234
234
|
}]),
|
|
235
235
|
onClick: (L) => t(J)(e.value)
|
|
236
|
-
}, [s("span", null, l(e.label), 1), e.badge ? (i(), n("span", De, l(e.badge), 1)) :
|
|
236
|
+
}, [s("span", null, l(e.label), 1), e.badge ? (i(), n("span", De, l(e.badge), 1)) : c("", !0)], 10, qe))), 128))])) : c("", !0), o.note ? (i(), n("p", Te, l(o.note), 1)) : c("", !0)])) : c("", !0), B.value.length ? (i(), n("div", Ae, [(i(!0), n(P, null, f(B.value, (e, L) => (i(), n("article", {
|
|
237
237
|
key: e.id,
|
|
238
238
|
class: p(["PricingPlans__card", {
|
|
239
239
|
"is-recommended": t(A)(e),
|
|
@@ -242,9 +242,9 @@ const ye = /* @__PURE__ */ K({
|
|
|
242
242
|
}, [s("div", Fe, [(i(!0), n(P, null, f(t(ee)(e), (u) => (i(), n("span", {
|
|
243
243
|
key: u.type,
|
|
244
244
|
class: p(["PricingPlans__badge", `is-${u.type}`])
|
|
245
|
-
}, l(u.label), 3))), 128))]), s("div", Se, [s("h2", null, l(e.name), 1), s("p", null, l(e.description || ae(L)), 1)]), s("div", xe, [t(F)(e) ? (i(), n("span", Ee, " ¥" + l(t(F)(e)), 1)) :
|
|
245
|
+
}, l(u.label), 3))), 128))]), s("div", Se, [s("h2", null, l(e.name), 1), s("p", null, l(e.description || ae(L)), 1)]), s("div", xe, [t(F)(e) ? (i(), n("span", Ee, " ¥" + l(t(F)(e)), 1)) : c("", !0), r[0] || (r[0] = s("span", {
|
|
246
246
|
class: "PricingPlans__currency"
|
|
247
|
-
}, "¥", -1)), s("span", Ne, l(t(Y)(e)), 1), s("span", Qe, l(t(Z)(e)), 1)]), t(S)(e) ? (i(), n("p", Ve, l(t(S)(e)), 1)) :
|
|
247
|
+
}, "¥", -1)), s("span", Ne, l(t(Y)(e)), 1), s("span", Qe, l(t(Z)(e)), 1)]), t(S)(e) ? (i(), n("p", Ve, l(t(S)(e)), 1)) : c("", !0), s("p", $e, l(t(x)(e, L)), 1), m(t(H), {
|
|
248
248
|
long: "",
|
|
249
249
|
size: "large",
|
|
250
250
|
class: "PricingPlans__button",
|
|
@@ -265,12 +265,12 @@ const ye = /* @__PURE__ */ K({
|
|
|
265
265
|
}, [m(t(M), {
|
|
266
266
|
icon: "mingcute:check-circle-fill",
|
|
267
267
|
class: "PricingPlans__featureIcon"
|
|
268
|
-
}), s("span", null, l(z.title), 1)]))), 128))])]))), 128))])], 2))), 128))])) : !_.value && !t(q) ? (i(), n("div", He, " 当前暂无可订阅方案 ")) :
|
|
268
|
+
}), s("span", null, l(z.title), 1)]))), 128))])]))), 128))])], 2))), 128))])) : !_.value && !t(q) ? (i(), n("div", He, " 当前暂无可订阅方案 ")) : c("", !0)]),
|
|
269
269
|
_: 1
|
|
270
270
|
}, 8, ["loading"])), [[g]])]);
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
|
-
}), it = /* @__PURE__ */ R(Me, [["__scopeId", "data-v-
|
|
273
|
+
}), it = /* @__PURE__ */ R(Me, [["__scopeId", "data-v-4dedccfd"]]);
|
|
274
274
|
export {
|
|
275
275
|
tt as P,
|
|
276
276
|
it as a
|
package/dist/main.js
CHANGED
|
@@ -37,7 +37,7 @@ import { C as J7, a as Q7 } from "./CollapseItem-DUzZA6tx.js";
|
|
|
37
37
|
import { C as X7, E as e5 } from "./CustomTable-BUkwlbzN.js";
|
|
38
38
|
import { M as o5, a as s5 } from "./Menu-Cy2ZPeaz.js";
|
|
39
39
|
import { P as i5, u as n5 } from "./PaySubscriptions-DS4kJNb_.js";
|
|
40
|
-
import { P as c5, a as l5 } from "./PricingPlans-
|
|
40
|
+
import { P as c5, a as l5 } from "./PricingPlans-B7lJ8lYV.js";
|
|
41
41
|
import { R as d5 } from "./ReferrerReferees-DhS91Ulf.js";
|
|
42
42
|
import { _ as f5 } from "./Upload.vue_vue_type_script_setup_true_lang-DOHui-lA.js";
|
|
43
43
|
import { U as h5, a as _5, b as g5, c as m5, d as L5, _ as y5, e as w5, f as F5, g as M5, h as k5, i as v5, j as x5, k as H5, l as Z5, m as V5 } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-9cF5hBYc.js";
|
package/dist/pay.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { P as a, u as r } from "./PaySubscriptions-DS4kJNb_.js";
|
|
2
|
-
import { P as u, a as n } from "./PricingPlans-
|
|
2
|
+
import { P as u, a as n } from "./PricingPlans-B7lJ8lYV.js";
|
|
3
3
|
import { u as t, a as P } from "./useSubscriptionCheckout-DNLuRGmx.js";
|
|
4
4
|
export {
|
|
5
5
|
a as PaySubscriptions,
|