@huyooo/ui 0.11.2 → 0.11.6
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-CjQiWZab.js +1914 -0
- package/dist/{Clipboard---tG2Zxz.js → Clipboard-ChMNfcO5.js} +1 -1
- package/dist/{Contact-BEUbBGiB.js → Contact-Yqmjh47e.js} +8 -7
- package/dist/{CustomTable-CVZ4mFzi.js → CustomTable-BUkwlbzN.js} +3 -2
- package/dist/{FeedbackItem-CN041vTm.js → FeedbackItem-DHp_C0pN.js} +3 -3
- package/dist/FeedbackModal-Dzl0Alp7.js +1050 -0
- package/dist/LandingPageFAQ-CZJXvor9.js +80 -0
- package/dist/LandingPageLinkGroup-DDNRivMt.js +521 -0
- package/dist/LandingPageSectionHeader-D_74W4My.js +69 -0
- package/dist/{LandingPageSectionTabs-B6ZVxR47.js → LandingPageSectionTabs-Ce3_Rc2L.js} +354 -426
- package/dist/MessageHandle-BcRjYeVi.js +924 -0
- package/dist/MessageList-Bo6YCfRO.js +233 -0
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-F6neJUg3.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BOtgTje-.js} +2 -2
- package/dist/PaySubscriptions-BsU0XmXf.js +515 -0
- package/dist/PricingPlans-BfVy4xU0.js +210 -0
- package/dist/ReferrerReferees-CHSoGrE1.js +106 -0
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-D_-oMTOo.js → Upload.vue_vue_type_script_setup_true_lang-CDWyo3RL.js} +1 -1
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-B4tD8pIE.js +508 -0
- package/dist/WidthContainer-BzS-A143.js +693 -0
- package/dist/{apiClients-9b4zNZ2S.js → apiClients-KFp-rs-C.js} +79 -73
- package/dist/authkit.d.ts +7 -0
- package/dist/authkit.js +52 -45
- package/dist/common/globalConfig.d.ts +4 -2
- package/dist/common/userMenuModal.d.ts +1 -0
- package/dist/common.js +2 -2
- package/dist/components/Authkit/AppSetting/AuthkitOAuthBinding.vue.d.ts +31 -0
- package/dist/components/Authkit/AppSetting/AuthkitPhoneBinding.vue.d.ts +14 -0
- package/dist/components/Authkit/AppSetting/AuthkitPhoneVerify.vue.d.ts +66 -0
- package/dist/components/Authkit/Auth/AuthkitBindPhone.vue.d.ts +27 -0
- package/dist/components/Authkit/Auth/AuthkitEmailUpdate.vue.d.ts +11 -1
- package/dist/components/Authkit/Auth/AuthkitOauthCallback.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitOauthItem.vue.d.ts +1 -1
- package/dist/components/Authkit/Auth/AuthkitPasswordAuth.vue.d.ts +11 -1
- package/dist/components/Authkit/Auth/AuthkitPhonePasswordUpdateAndVerify.vue.d.ts +68 -0
- package/dist/components/Authkit/Auth/AuthkitSignInEmailCode.vue.d.ts +68 -0
- package/dist/components/Authkit/Auth/AuthkitSwitchSignUpOrResetPassword.vue.d.ts +15 -3
- package/dist/components/Authkit/AuthkitOAuthCallbackProvider.vue.d.ts +11 -0
- package/dist/components/Authkit/AuthkitProvider.vue.d.ts +45 -0
- package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +9 -0
- package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +11 -6
- package/dist/components/LandingPage/LandingPageSections.vue.d.ts +1 -1
- package/dist/components/Pay/PaySubscriptions.vue.d.ts +2 -1
- package/dist/components/Pay/PricingFAQ.vue.d.ts +17 -0
- package/dist/components/Pay/PricingPlans.vue.d.ts +12 -0
- package/dist/components/UserMenu/UserMenuModals.vue.d.ts +2 -2
- package/dist/components/UserMenu/parts/UserSubscriptionBaseInformation.vue.d.ts +8 -0
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +26 -0
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +21 -9
- package/dist/composables/Authkit/useEnsureAuthenticated.d.ts +26 -0
- package/dist/composables/Authkit/useOauth.d.ts +4 -1
- package/dist/composables/Billing/useBillingPlans.d.ts +201 -0
- package/dist/composables/Billing/useBillingSubscriptionSummary.d.ts +280 -0
- package/dist/composables/Billing/useSubscriptionCheckout.d.ts +12 -0
- package/dist/composables/UserMenu/useUserMenu.d.ts +5 -1
- package/dist/composables.d.ts +2 -0
- package/dist/composables.js +25 -22
- package/dist/feedback.js +3 -3
- package/dist/index-D3Kp6R4z.js +4 -0
- package/dist/landingPage.js +42 -40
- package/dist/main.d.ts +1 -0
- package/dist/main.js +677 -631
- package/dist/message.js +19 -18
- package/dist/pay.d.ts +5 -0
- package/dist/pay.js +9 -2
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api/auth.generated.d.ts +103 -39
- package/dist/types/api/billing.generated.d.ts +61 -28
- package/dist/types/api.d.ts +1 -1
- package/dist/types/app.d.ts +14 -0
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-494yLvsu.js → useAuthkitAppsAuthPageInfo-B9_VzVkQ.js} +20 -7
- package/dist/{useAuthkitCreateAndUpdate-DyRtFxZS.js → useAuthkitCreateAndUpdate-DomftQMK.js} +1 -1
- package/dist/useAuthkitUsersProfile-D4h6OOdR.js +201 -0
- package/dist/{useDownloads-DaeIY0E9.js → useDownloads-CzC3gLUV.js} +1 -1
- package/dist/useEnsureAuthenticated-C_Ss0e9n.js +2247 -0
- package/dist/{useLegalLinks-CPbWqlu6.js → useLegalLinks-OGVbqXVy.js} +2 -2
- package/dist/{useMessageNotifications-Dg5q-C_o.js → useMessageNotifications-DeHFJFcX.js} +1 -1
- package/dist/{useSEO-CXX9dcBx.js → useSEO--jTDDkXk.js} +2 -2
- package/dist/useSubscriptionCheckout-CQ6wHuLI.js +345 -0
- package/dist/{useTableHandle-Cjq4gcC0.js → useTableHandle-jw0P7-2a.js} +1 -1
- package/dist/{useUploadCos-DiJmmbRf.js → useUploadCos-keDKcs0j.js} +501 -515
- package/dist/useUserMenu-ClPBlvaM.js +44 -0
- package/dist/user.js +12 -13
- package/dist/utils/apiMiddlewares.d.ts +6 -0
- package/dist/utils/legacyApi.d.ts +18 -0
- package/package.json +1 -1
- package/dist/AuthkitAppSetting-BCrLMpLg.js +0 -1322
- package/dist/AuthkitSignInPhone-DmCQ2fWs.js +0 -1721
- package/dist/FeedbackModal-aI28o-w5.js +0 -1053
- package/dist/LandingPageSectionHeader-Cs1x8i3q.js +0 -584
- package/dist/MessageHandle-BV1nKlxs.js +0 -1147
- package/dist/PaySubscriptions-B3gI1Eme.js +0 -408
- package/dist/ReferrerReferees-DJzPo7X5.js +0 -106
- package/dist/UserAccountMenu-CJ9KKVYa.js +0 -371
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-ClAXNSgl.js +0 -81
- package/dist/WidthContainer-BG10rumn.js +0 -669
- package/dist/useAuthkitUsersProfile-lGlQP54m.js +0 -186
- package/dist/useUserMenu-B3HKZKJ4.js +0 -43
|
@@ -1,408 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
/* empty css */
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
|
-
/* empty css */
|
|
7
|
-
/* empty css */
|
|
8
|
-
import { defineComponent as tt, ref as d, openBlock as l, createBlock as P, unref as u, isRef as et, withCtx as s, createElementVNode as n, createElementBlock as c, toDisplayString as o, createVNode as r, createTextVNode as p, createCommentVNode as L, Fragment as at, renderList as nt } from "vue";
|
|
9
|
-
import { Modal as it, Tag as C, Button as I, Popconfirm as st, Tabs as ot, TabPane as w, Spin as lt, Empty as ut, Progress as rt } from "@arco-design/web-vue";
|
|
10
|
-
import { f as g } from "./apiClients-9b4zNZ2S.js";
|
|
11
|
-
import { u as ct } from "./useAuthkitCreateAndUpdate-DyRtFxZS.js";
|
|
12
|
-
import { C as q } from "./CustomTable-CVZ4mFzi.js";
|
|
13
|
-
import { _ as dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const pt = {
|
|
15
|
-
class: "content"
|
|
16
|
-
}, vt = {
|
|
17
|
-
key: 0,
|
|
18
|
-
class: "current-subscription-card"
|
|
19
|
-
}, mt = {
|
|
20
|
-
class: "subscription-header"
|
|
21
|
-
}, gt = {
|
|
22
|
-
class: "subscription-info"
|
|
23
|
-
}, ft = {
|
|
24
|
-
class: "subscription-actions"
|
|
25
|
-
}, bt = {
|
|
26
|
-
class: "subscription-details"
|
|
27
|
-
}, _t = {
|
|
28
|
-
class: "detail-item"
|
|
29
|
-
}, yt = {
|
|
30
|
-
class: "detail-item"
|
|
31
|
-
}, ht = {
|
|
32
|
-
key: 0,
|
|
33
|
-
class: "detail-item"
|
|
34
|
-
}, kt = {
|
|
35
|
-
key: 1,
|
|
36
|
-
class: "detail-item"
|
|
37
|
-
}, St = {
|
|
38
|
-
key: 2,
|
|
39
|
-
class: "detail-item warning"
|
|
40
|
-
}, xt = {
|
|
41
|
-
key: 1,
|
|
42
|
-
class: "no-subscription-row"
|
|
43
|
-
}, Pt = {
|
|
44
|
-
key: 0,
|
|
45
|
-
class: "quotas-loading"
|
|
46
|
-
}, Ct = {
|
|
47
|
-
key: 1,
|
|
48
|
-
class: "no-quotas"
|
|
49
|
-
}, It = {
|
|
50
|
-
key: 2,
|
|
51
|
-
class: "quotas-grid"
|
|
52
|
-
}, wt = {
|
|
53
|
-
class: "quota-header"
|
|
54
|
-
}, At = {
|
|
55
|
-
class: "quota-name"
|
|
56
|
-
}, zt = {
|
|
57
|
-
class: "quota-period"
|
|
58
|
-
}, Nt = {
|
|
59
|
-
class: "quota-progress"
|
|
60
|
-
}, Wt = {
|
|
61
|
-
class: "quota-detail"
|
|
62
|
-
}, Et = {
|
|
63
|
-
key: 0
|
|
64
|
-
}, Tt = {
|
|
65
|
-
key: 1
|
|
66
|
-
}, Lt = {
|
|
67
|
-
key: 2,
|
|
68
|
-
class: "reset-time"
|
|
69
|
-
}, qt = /* @__PURE__ */ tt({
|
|
70
|
-
__name: "PaySubscriptions",
|
|
71
|
-
emits: ["confirm", "cancel"],
|
|
72
|
-
setup(Bt, {
|
|
73
|
-
expose: B,
|
|
74
|
-
emit: F
|
|
75
|
-
}) {
|
|
76
|
-
const A = F, {
|
|
77
|
-
changeType: V,
|
|
78
|
-
show: f
|
|
79
|
-
} = ct(A), z = d("subscriptions"), i = d(null), N = d([]), y = d(!1), v = d({
|
|
80
|
-
current: 1,
|
|
81
|
-
pageSize: 10,
|
|
82
|
-
total: 0
|
|
83
|
-
}), W = d([]), h = d(!1), m = d({
|
|
84
|
-
current: 1,
|
|
85
|
-
pageSize: 10,
|
|
86
|
-
total: 0
|
|
87
|
-
}), _ = d([]), k = d(!1), U = [{
|
|
88
|
-
dataIndex: "productName",
|
|
89
|
-
title: "产品",
|
|
90
|
-
minWidth: 120
|
|
91
|
-
}, {
|
|
92
|
-
dataIndex: "interval",
|
|
93
|
-
slotName: "interval",
|
|
94
|
-
title: "周期",
|
|
95
|
-
minWidth: 80
|
|
96
|
-
}, {
|
|
97
|
-
dataIndex: "unitAmount",
|
|
98
|
-
slotName: "unitAmount",
|
|
99
|
-
title: "价格",
|
|
100
|
-
minWidth: 100
|
|
101
|
-
}, {
|
|
102
|
-
dataIndex: "status",
|
|
103
|
-
slotName: "status",
|
|
104
|
-
title: "状态",
|
|
105
|
-
minWidth: 100
|
|
106
|
-
}, {
|
|
107
|
-
dataIndex: "currentPeriodStart",
|
|
108
|
-
title: "开始时间",
|
|
109
|
-
minWidth: 160
|
|
110
|
-
}, {
|
|
111
|
-
dataIndex: "currentPeriodEnd",
|
|
112
|
-
title: "结束时间",
|
|
113
|
-
minWidth: 160
|
|
114
|
-
}, {
|
|
115
|
-
dataIndex: "createAt",
|
|
116
|
-
title: "创建时间",
|
|
117
|
-
minWidth: 160
|
|
118
|
-
}], D = [{
|
|
119
|
-
dataIndex: "productName",
|
|
120
|
-
title: "产品",
|
|
121
|
-
minWidth: 120
|
|
122
|
-
}, {
|
|
123
|
-
dataIndex: "total",
|
|
124
|
-
slotName: "total",
|
|
125
|
-
title: "金额",
|
|
126
|
-
minWidth: 100
|
|
127
|
-
}, {
|
|
128
|
-
dataIndex: "status",
|
|
129
|
-
slotName: "status",
|
|
130
|
-
title: "状态",
|
|
131
|
-
minWidth: 100
|
|
132
|
-
}, {
|
|
133
|
-
dataIndex: "tradeNo",
|
|
134
|
-
title: "交易号",
|
|
135
|
-
minWidth: 200
|
|
136
|
-
}, {
|
|
137
|
-
dataIndex: "paidAt",
|
|
138
|
-
title: "支付时间",
|
|
139
|
-
minWidth: 160
|
|
140
|
-
}, {
|
|
141
|
-
dataIndex: "createAt",
|
|
142
|
-
title: "创建时间",
|
|
143
|
-
minWidth: 160
|
|
144
|
-
}];
|
|
145
|
-
function E(t) {
|
|
146
|
-
return {
|
|
147
|
-
trialing: "blue",
|
|
148
|
-
active: "green",
|
|
149
|
-
past_due: "orange",
|
|
150
|
-
canceled: "gray",
|
|
151
|
-
expired: "gray",
|
|
152
|
-
incomplete: "red"
|
|
153
|
-
}[t] || "gray";
|
|
154
|
-
}
|
|
155
|
-
function T(t) {
|
|
156
|
-
return {
|
|
157
|
-
trialing: "试用中",
|
|
158
|
-
active: "已激活",
|
|
159
|
-
past_due: "逾期",
|
|
160
|
-
canceled: "已取消",
|
|
161
|
-
expired: "已过期",
|
|
162
|
-
incomplete: "未完成",
|
|
163
|
-
paused: "已暂停"
|
|
164
|
-
}[t] || t;
|
|
165
|
-
}
|
|
166
|
-
function K(t) {
|
|
167
|
-
return {
|
|
168
|
-
draft: "gray",
|
|
169
|
-
open: "orange",
|
|
170
|
-
paid: "green",
|
|
171
|
-
void: "red",
|
|
172
|
-
uncollectible: "red"
|
|
173
|
-
}[t] || "gray";
|
|
174
|
-
}
|
|
175
|
-
function R(t) {
|
|
176
|
-
return {
|
|
177
|
-
draft: "草稿",
|
|
178
|
-
open: "待支付",
|
|
179
|
-
paid: "已支付",
|
|
180
|
-
void: "已作废",
|
|
181
|
-
uncollectible: "无法收款"
|
|
182
|
-
}[t] || t;
|
|
183
|
-
}
|
|
184
|
-
function M(t) {
|
|
185
|
-
return {
|
|
186
|
-
day: "每天",
|
|
187
|
-
week: "每周",
|
|
188
|
-
month: "每月",
|
|
189
|
-
year: "每年",
|
|
190
|
-
lifetime: "永久"
|
|
191
|
-
}[t] || t;
|
|
192
|
-
}
|
|
193
|
-
function O() {
|
|
194
|
-
f.value = !1, A("cancel");
|
|
195
|
-
}
|
|
196
|
-
function Q() {
|
|
197
|
-
window.open("/Pricing", "_blank");
|
|
198
|
-
}
|
|
199
|
-
async function S() {
|
|
200
|
-
const {
|
|
201
|
-
data: t
|
|
202
|
-
} = await g.subscriptions.current.post({});
|
|
203
|
-
i.value = t;
|
|
204
|
-
}
|
|
205
|
-
async function b() {
|
|
206
|
-
y.value = !0;
|
|
207
|
-
const {
|
|
208
|
-
data: t
|
|
209
|
-
} = await g.subscriptions.my.post({
|
|
210
|
-
current: v.value.current,
|
|
211
|
-
pageSize: v.value.pageSize
|
|
212
|
-
});
|
|
213
|
-
y.value = !1, t && (N.value = t.items, v.value.total = t.count);
|
|
214
|
-
}
|
|
215
|
-
async function x() {
|
|
216
|
-
h.value = !0;
|
|
217
|
-
const {
|
|
218
|
-
data: t
|
|
219
|
-
} = await g.invoices.my.post({
|
|
220
|
-
current: m.value.current,
|
|
221
|
-
pageSize: m.value.pageSize
|
|
222
|
-
});
|
|
223
|
-
h.value = !1, t && (W.value = t.items, m.value.total = t.count);
|
|
224
|
-
}
|
|
225
|
-
async function $() {
|
|
226
|
-
k.value = !0;
|
|
227
|
-
const {
|
|
228
|
-
data: t
|
|
229
|
-
} = await g.quotas.my.post({});
|
|
230
|
-
k.value = !1, t && t.hasSubscription ? _.value = t.quotas : _.value = [];
|
|
231
|
-
}
|
|
232
|
-
async function j() {
|
|
233
|
-
if (!i.value) return;
|
|
234
|
-
const {
|
|
235
|
-
error: t
|
|
236
|
-
} = await g.subscriptions.cancel.post({
|
|
237
|
-
subscriptionId: i.value.id,
|
|
238
|
-
cancelAtPeriodEnd: !0
|
|
239
|
-
});
|
|
240
|
-
t || (await S(), await b());
|
|
241
|
-
}
|
|
242
|
-
async function G() {
|
|
243
|
-
if (!i.value) return;
|
|
244
|
-
const {
|
|
245
|
-
error: t
|
|
246
|
-
} = await g.subscriptions.resume.post({
|
|
247
|
-
subscriptionId: i.value.id
|
|
248
|
-
});
|
|
249
|
-
t || (await S(), await b());
|
|
250
|
-
}
|
|
251
|
-
function H(t) {
|
|
252
|
-
v.value.current = t, b();
|
|
253
|
-
}
|
|
254
|
-
function J(t) {
|
|
255
|
-
v.value.pageSize = t, v.value.current = 1, b();
|
|
256
|
-
}
|
|
257
|
-
function X(t) {
|
|
258
|
-
m.value.current = t, x();
|
|
259
|
-
}
|
|
260
|
-
function Y(t) {
|
|
261
|
-
m.value.pageSize = t, m.value.current = 1, x();
|
|
262
|
-
}
|
|
263
|
-
function Z(t, e) {
|
|
264
|
-
f.value = e, V.value = "编辑", e && (S(), b(), x(), $());
|
|
265
|
-
}
|
|
266
|
-
return B({
|
|
267
|
-
setData: Z
|
|
268
|
-
}), (t, e) => (l(), P(u(it), {
|
|
269
|
-
visible: u(f),
|
|
270
|
-
"onUpdate:visible": e[1] || (e[1] = (a) => et(f) ? f.value = a : null),
|
|
271
|
-
loading: !1,
|
|
272
|
-
"body-class": "SubscriptionsbodyClass",
|
|
273
|
-
"mask-closable": !1,
|
|
274
|
-
footer: !1,
|
|
275
|
-
width: "90%",
|
|
276
|
-
onCancel: O
|
|
277
|
-
}, {
|
|
278
|
-
title: s(() => [...e[2] || (e[2] = [p(" 订阅管理 ", -1)])]),
|
|
279
|
-
default: s(() => [n("div", pt, [i.value ? (l(), c("div", vt, [n("div", mt, [n("div", gt, [n("h3", null, o(i.value.productName), 1), r(u(C), {
|
|
280
|
-
color: E(i.value.status)
|
|
281
|
-
}, {
|
|
282
|
-
default: s(() => [p(o(T(i.value.status)), 1)]),
|
|
283
|
-
_: 1
|
|
284
|
-
}, 8, ["color"])]), n("div", ft, [i.value.cancelAtPeriodEnd ? (l(), P(u(I), {
|
|
285
|
-
key: 0,
|
|
286
|
-
type: "primary",
|
|
287
|
-
size: "small",
|
|
288
|
-
onClick: G
|
|
289
|
-
}, {
|
|
290
|
-
default: s(() => [...e[3] || (e[3] = [p(" 恢复订阅 ", -1)])]),
|
|
291
|
-
_: 1
|
|
292
|
-
})) : (l(), P(u(st), {
|
|
293
|
-
key: 1,
|
|
294
|
-
content: "取消后订阅将在当前周期结束时失效,确定取消吗?",
|
|
295
|
-
onOk: j
|
|
296
|
-
}, {
|
|
297
|
-
default: s(() => [r(u(I), {
|
|
298
|
-
type: "outline",
|
|
299
|
-
size: "small",
|
|
300
|
-
status: "warning"
|
|
301
|
-
}, {
|
|
302
|
-
default: s(() => [...e[4] || (e[4] = [p(" 取消订阅 ", -1)])]),
|
|
303
|
-
_: 1
|
|
304
|
-
})]),
|
|
305
|
-
_: 1
|
|
306
|
-
}))])]), n("div", bt, [n("div", _t, [e[5] || (e[5] = n("span", {
|
|
307
|
-
class: "label"
|
|
308
|
-
}, "计费周期:", -1)), n("span", null, o(i.value.interval === "month" ? "按月" : i.value.interval === "year" ? "按年" : i.value.interval), 1)]), n("div", yt, [e[6] || (e[6] = n("span", {
|
|
309
|
-
class: "label"
|
|
310
|
-
}, "价格:", -1)), n("span", null, "¥" + o(((i.value.unitAmount ?? 0) / 100).toFixed(2)) + " / " + o(i.value.interval === "month" ? "月" : "年"), 1)]), i.value.status === "trialing" ? (l(), c("div", ht, [e[7] || (e[7] = n("span", {
|
|
311
|
-
class: "label"
|
|
312
|
-
}, "试用结束:", -1)), n("span", null, o(i.value.trialEnd), 1)])) : (l(), c("div", kt, [e[8] || (e[8] = n("span", {
|
|
313
|
-
class: "label"
|
|
314
|
-
}, "当前周期结束:", -1)), n("span", null, o(i.value.currentPeriodEnd), 1)])), i.value.cancelAtPeriodEnd ? (l(), c("div", St, [...e[9] || (e[9] = [n("span", {
|
|
315
|
-
class: "label"
|
|
316
|
-
}, "订阅将于周期结束后停止", -1)])])) : L("", !0)])])) : (l(), c("div", xt, [e[11] || (e[11] = n("span", {
|
|
317
|
-
class: "no-subscription-text"
|
|
318
|
-
}, "暂无订阅", -1)), r(u(I), {
|
|
319
|
-
type: "primary",
|
|
320
|
-
size: "small",
|
|
321
|
-
onClick: Q
|
|
322
|
-
}, {
|
|
323
|
-
default: s(() => [...e[10] || (e[10] = [p("查看价格方案", -1)])]),
|
|
324
|
-
_: 1
|
|
325
|
-
})])), r(u(ot), {
|
|
326
|
-
"active-key": z.value,
|
|
327
|
-
"onUpdate:activeKey": e[0] || (e[0] = (a) => z.value = a),
|
|
328
|
-
class: "subscription-tabs"
|
|
329
|
-
}, {
|
|
330
|
-
default: s(() => [r(u(w), {
|
|
331
|
-
key: "subscriptions",
|
|
332
|
-
title: "订阅历史"
|
|
333
|
-
}, {
|
|
334
|
-
default: s(() => [r(q, {
|
|
335
|
-
columns: U,
|
|
336
|
-
data: N.value,
|
|
337
|
-
loading: y.value,
|
|
338
|
-
pagination: v.value,
|
|
339
|
-
onPageChange: H,
|
|
340
|
-
onPageSizeChange: J
|
|
341
|
-
}, {
|
|
342
|
-
status: s(({
|
|
343
|
-
record: a
|
|
344
|
-
}) => [r(u(C), {
|
|
345
|
-
color: E(a.status)
|
|
346
|
-
}, {
|
|
347
|
-
default: s(() => [p(o(T(a.status)), 1)]),
|
|
348
|
-
_: 2
|
|
349
|
-
}, 1032, ["color"])]),
|
|
350
|
-
interval: s(({
|
|
351
|
-
record: a
|
|
352
|
-
}) => [p(o(a.interval === "month" ? "按月" : a.interval === "year" ? "按年" : a.interval || "-"), 1)]),
|
|
353
|
-
unitAmount: s(({
|
|
354
|
-
record: a
|
|
355
|
-
}) => [p(o(a.unitAmount ? `¥${(a.unitAmount / 100).toFixed(2)}` : "-"), 1)]),
|
|
356
|
-
_: 1
|
|
357
|
-
}, 8, ["data", "loading", "pagination"])]),
|
|
358
|
-
_: 1
|
|
359
|
-
}), r(u(w), {
|
|
360
|
-
key: "invoices",
|
|
361
|
-
title: "账单记录"
|
|
362
|
-
}, {
|
|
363
|
-
default: s(() => [r(q, {
|
|
364
|
-
columns: D,
|
|
365
|
-
data: W.value,
|
|
366
|
-
loading: h.value,
|
|
367
|
-
pagination: m.value,
|
|
368
|
-
onPageChange: X,
|
|
369
|
-
onPageSizeChange: Y
|
|
370
|
-
}, {
|
|
371
|
-
status: s(({
|
|
372
|
-
record: a
|
|
373
|
-
}) => [r(u(C), {
|
|
374
|
-
color: K(a.status)
|
|
375
|
-
}, {
|
|
376
|
-
default: s(() => [p(o(R(a.status)), 1)]),
|
|
377
|
-
_: 2
|
|
378
|
-
}, 1032, ["color"])]),
|
|
379
|
-
total: s(({
|
|
380
|
-
record: a
|
|
381
|
-
}) => [p(" ¥" + o((a.total / 100).toFixed(2)), 1)]),
|
|
382
|
-
_: 1
|
|
383
|
-
}, 8, ["data", "loading", "pagination"])]),
|
|
384
|
-
_: 1
|
|
385
|
-
}), r(u(w), {
|
|
386
|
-
key: "quotas",
|
|
387
|
-
title: "配额使用"
|
|
388
|
-
}, {
|
|
389
|
-
default: s(() => [k.value ? (l(), c("div", Pt, [r(u(lt))])) : _.value.length === 0 ? (l(), c("div", Ct, [r(u(ut), {
|
|
390
|
-
description: "暂无配额限制"
|
|
391
|
-
})])) : (l(), c("div", It, [(l(!0), c(at, null, nt(_.value, (a) => (l(), c("div", {
|
|
392
|
-
key: a.featureKey,
|
|
393
|
-
class: "quota-card"
|
|
394
|
-
}, [n("div", wt, [n("span", At, o(a.name), 1), n("span", zt, o(M(a.period)), 1)]), n("div", Nt, [r(u(rt), {
|
|
395
|
-
percent: a.percentage,
|
|
396
|
-
status: a.percentage >= 90 ? "danger" : a.percentage >= 70 ? "warning" : "normal"
|
|
397
|
-
}, null, 8, ["percent", "status"])]), n("div", Wt, [a.unlimited ? (l(), c("span", Et, "无限制")) : (l(), c("span", Tt, "已使用 " + o(a.used) + " / " + o(a.limit), 1)), a.resetsAt ? (l(), c("span", Lt, o(a.resetsAt) + " 重置", 1)) : L("", !0)])]))), 128))]))]),
|
|
398
|
-
_: 1
|
|
399
|
-
})]),
|
|
400
|
-
_: 1
|
|
401
|
-
}, 8, ["active-key"])])]),
|
|
402
|
-
_: 1
|
|
403
|
-
}, 8, ["visible"]));
|
|
404
|
-
}
|
|
405
|
-
}), Jt = /* @__PURE__ */ dt(qt, [["__scopeId", "data-v-cf38d6a7"]]);
|
|
406
|
-
export {
|
|
407
|
-
Jt as P
|
|
408
|
-
};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
/* empty css */
|
|
3
|
-
/* empty css */
|
|
4
|
-
import { defineComponent as R, ref as d, openBlock as p, createBlock as v, unref as t, withCtx as g, createElementVNode as n, toDisplayString as _, createCommentVNode as z, createVNode as w, createTextVNode as A } from "vue";
|
|
5
|
-
import { Modal as V } from "@arco-design/web-vue";
|
|
6
|
-
import { e as y } from "./apiClients-9b4zNZ2S.js";
|
|
7
|
-
import { u as T } from "./useTableHandle-Cjq4gcC0.js";
|
|
8
|
-
import { C as B } from "./CustomTable-CVZ4mFzi.js";
|
|
9
|
-
import { C as D } from "./Clipboard---tG2Zxz.js";
|
|
10
|
-
import { a as U } from "./useAuthkitUsersProfile-lGlQP54m.js";
|
|
11
|
-
import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const H = {
|
|
13
|
-
class: "invite-code-section"
|
|
14
|
-
}, M = {
|
|
15
|
-
class: "invite-code-value"
|
|
16
|
-
}, j = /* @__PURE__ */ R({
|
|
17
|
-
__name: "ReferrerReferees",
|
|
18
|
-
emits: ["cancel"],
|
|
19
|
-
setup(q, {
|
|
20
|
-
expose: C,
|
|
21
|
-
emit: h
|
|
22
|
-
}) {
|
|
23
|
-
const b = h, {
|
|
24
|
-
pagination: a,
|
|
25
|
-
dataSource: c,
|
|
26
|
-
setPage: f
|
|
27
|
-
} = T("被邀请人"), {
|
|
28
|
-
userProfile: s
|
|
29
|
-
} = U(), x = [{
|
|
30
|
-
dataIndex: "email",
|
|
31
|
-
slotName: "email",
|
|
32
|
-
title: "被邀请人邮箱",
|
|
33
|
-
ellipsis: !0,
|
|
34
|
-
tooltip: !0
|
|
35
|
-
}, {
|
|
36
|
-
dataIndex: "createAt",
|
|
37
|
-
slotName: "createAt",
|
|
38
|
-
title: "创建日期",
|
|
39
|
-
ellipsis: !0,
|
|
40
|
-
tooltip: !0
|
|
41
|
-
}], o = d(!1);
|
|
42
|
-
async function u() {
|
|
43
|
-
o.value = !0;
|
|
44
|
-
const {
|
|
45
|
-
data: e
|
|
46
|
-
} = await y.referrer.referees.post({
|
|
47
|
-
current: a.value.current,
|
|
48
|
-
pageSize: a.value.pageSize
|
|
49
|
-
});
|
|
50
|
-
o.value = !1, e && (c.value = e.items, a.value.total = e.count);
|
|
51
|
-
}
|
|
52
|
-
function k(e) {
|
|
53
|
-
f(e, a.value.pageSize), u();
|
|
54
|
-
}
|
|
55
|
-
function I(e) {
|
|
56
|
-
f(a.value.current, e), u();
|
|
57
|
-
}
|
|
58
|
-
const r = d(!1);
|
|
59
|
-
function S() {
|
|
60
|
-
r.value = !1, b("cancel");
|
|
61
|
-
}
|
|
62
|
-
function N(e) {
|
|
63
|
-
r.value = e, e && u();
|
|
64
|
-
}
|
|
65
|
-
return C({
|
|
66
|
-
setData: N
|
|
67
|
-
}), (e, i) => (p(), v(t(V), {
|
|
68
|
-
visible: r.value,
|
|
69
|
-
"onUpdate:visible": i[0] || (i[0] = (l) => r.value = l),
|
|
70
|
-
title: "被邀请人详情",
|
|
71
|
-
width: "60%",
|
|
72
|
-
"ok-loading": o.value,
|
|
73
|
-
footer: !1,
|
|
74
|
-
"mask-closable": !1,
|
|
75
|
-
"unmount-on-close": "",
|
|
76
|
-
onCancel: S
|
|
77
|
-
}, {
|
|
78
|
-
default: g(() => {
|
|
79
|
-
var l, m;
|
|
80
|
-
return [n("div", H, [i[1] || (i[1] = n("div", {
|
|
81
|
-
class: "invite-code-label"
|
|
82
|
-
}, "我的邀请码:", -1)), n("div", M, [n("span", null, _(((l = t(s)) == null ? void 0 : l.referrerId) || "-"), 1), (m = t(s)) != null && m.referrerId ? (p(), v(D, {
|
|
83
|
-
key: 0,
|
|
84
|
-
value: t(s).referrerId,
|
|
85
|
-
message: "邀请码复制成功"
|
|
86
|
-
}, null, 8, ["value"])) : z("", !0)])]), w(B, {
|
|
87
|
-
columns: x,
|
|
88
|
-
data: t(c),
|
|
89
|
-
loading: o.value,
|
|
90
|
-
pagination: t(a),
|
|
91
|
-
onPageChange: k,
|
|
92
|
-
onPageSizeChange: I
|
|
93
|
-
}, {
|
|
94
|
-
email: g(({
|
|
95
|
-
record: P
|
|
96
|
-
}) => [A(_(P.refereeInfo.email || "-"), 1)]),
|
|
97
|
-
_: 1
|
|
98
|
-
}, 8, ["data", "loading", "pagination"])];
|
|
99
|
-
}),
|
|
100
|
-
_: 1
|
|
101
|
-
}, 8, ["visible", "ok-loading"]));
|
|
102
|
-
}
|
|
103
|
-
}), $ = /* @__PURE__ */ E(j, [["__scopeId", "data-v-d32f6e5c"]]);
|
|
104
|
-
export {
|
|
105
|
-
$ as R
|
|
106
|
-
};
|