@huyooo/ui 0.11.11 → 0.11.14
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-DrX6fwKt.js → AuthkitAppSetting-p_ZzaAK3.js} +6 -6
- package/dist/{AuthkitGithubBinding-r2oVuCSV.js → AuthkitGithubBinding-Cwly1un7.js} +7 -7
- package/dist/{Clipboard-ChMNfcO5.js → Clipboard-k0jtK4CJ.js} +1 -1
- package/dist/{Contact-Yqmjh47e.js → Contact-BGZm3i5l.js} +2 -2
- package/dist/{FeedbackItem-DHp_C0pN.js → FeedbackItem-opB6y-f2.js} +3 -3
- package/dist/{FeedbackModal-Dzl0Alp7.js → FeedbackModal-9CNnFC6B.js} +3 -3
- package/dist/{MessageHandle-BcRjYeVi.js → MessageHandle-BZBT7Ii1.js} +2 -2
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BOtgTje-.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BbKvsNKj.js} +2 -2
- package/dist/{PaySubscriptions-BsU0XmXf.js → PaySubscriptions-DS4kJNb_.js} +187 -171
- package/dist/{PricingPlans-YroHYNiM.js → PricingPlans-v8ZL2XaL.js} +23 -23
- package/dist/{ReferrerReferees-B-ISyXHw.js → ReferrerReferees-DhS91Ulf.js} +4 -4
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-CDWyo3RL.js → Upload.vue_vue_type_script_setup_true_lang-DOHui-lA.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Czix4_tj.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-9cF5hBYc.js} +91 -91
- package/dist/{WidthContainer-CYYbzXj0.js → WidthContainer-ektCstwj.js} +8 -8
- package/dist/{apiClients-KFp-rs-C.js → apiClients-B8bOvWw_.js} +28 -27
- package/dist/authkit.js +9 -9
- package/dist/common/globalConfig.d.ts +8 -0
- package/dist/common.js +1 -1
- package/dist/composables.js +12 -12
- package/dist/feedback.js +3 -3
- package/dist/main.js +30 -30
- package/dist/message.js +3 -3
- package/dist/pay.js +3 -3
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-B9_VzVkQ.js → useAuthkitAppsAuthPageInfo-6ncIP9RT.js} +1 -1
- package/dist/{useAuthkitAuth-Doj5VYjK.js → useAuthkitAuth-Bj8XxPtO.js} +1 -1
- package/dist/{useAuthkitCreateAndUpdate-DomftQMK.js → useAuthkitCreateAndUpdate-CUf8HARI.js} +1 -1
- package/dist/{useAuthkitUsersProfile-FJnHJad-.js → useAuthkitUsersProfile-CoQceogN.js} +2 -2
- package/dist/{useDownloads-CzC3gLUV.js → useDownloads-B8FzX8T_.js} +1 -1
- package/dist/{useEnsureAuthenticated-D78tsddF.js → useEnsureAuthenticated-MpHmn2co.js} +2 -2
- package/dist/{useLegalLinks-OGVbqXVy.js → useLegalLinks-CVHYmza0.js} +2 -2
- package/dist/{useMessageNotifications-DeHFJFcX.js → useMessageNotifications-Bstn2qtG.js} +1 -1
- package/dist/{useSEO-BZhVKEZr.js → useSEO-DU86KCMJ.js} +2 -2
- package/dist/{useSubscriptionCheckout-DmxORGSV.js → useSubscriptionCheckout-Dv8Rq5jU.js} +2 -2
- package/dist/{useTableHandle-jw0P7-2a.js → useTableHandle-B9aFmwYM.js} +1 -1
- package/dist/{useUploadCos-keDKcs0j.js → useUploadCos-DTMIoW7p.js} +1 -1
- package/dist/user.js +1 -1
- package/dist/utils/pricing.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { U as
|
|
4
|
+
import { U as gt } from "./index-D3Kp6R4z.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { ref as v, computed as f, defineComponent as
|
|
10
|
-
import { Modal as
|
|
11
|
-
import { f as
|
|
12
|
-
import { u as
|
|
13
|
-
import { C as
|
|
14
|
-
import { _ as
|
|
15
|
-
function
|
|
9
|
+
import { ref as v, computed as f, defineComponent as yt, openBlock as s, createBlock as I, unref as n, isRef as bt, withCtx as o, createElementVNode as i, createElementBlock as r, toDisplayString as c, createTextVNode as p, createVNode as d, createCommentVNode as g, Fragment as _t, renderList as kt } from "vue";
|
|
10
|
+
import { Modal as ht, Button as w, Popconfirm as St, Tabs as wt, TabPane as D, Tag as O, Spin as Pt, Empty as Ct, Progress as xt } from "@arco-design/web-vue";
|
|
11
|
+
import { f as P, g as F } from "./apiClients-B8bOvWw_.js";
|
|
12
|
+
import { u as It } from "./useAuthkitCreateAndUpdate-CUf8HARI.js";
|
|
13
|
+
import { C as H } from "./CustomTable-BUkwlbzN.js";
|
|
14
|
+
import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
function j() {
|
|
16
16
|
return {
|
|
17
17
|
current: null,
|
|
18
18
|
trial: null,
|
|
@@ -23,126 +23,141 @@ function H() {
|
|
|
23
23
|
pendingInvoice: null
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
const
|
|
26
|
+
function At() {
|
|
27
|
+
const l = v(j()), C = v(!1), E = f(() => l.value.current), z = f(() => l.value.trial), L = f(() => l.value.entitlement), y = f(() => l.value.features), k = f(() => l.value.quotas), u = f(() => l.value.pointsBalance), U = f(() => l.value.pendingInvoice);
|
|
28
28
|
async function A() {
|
|
29
|
-
|
|
29
|
+
C.value = !0;
|
|
30
30
|
try {
|
|
31
31
|
const {
|
|
32
|
-
data:
|
|
33
|
-
error:
|
|
34
|
-
} = await
|
|
35
|
-
if (
|
|
36
|
-
throw new Error(
|
|
37
|
-
|
|
32
|
+
data: W,
|
|
33
|
+
error: N
|
|
34
|
+
} = await P.subscriptions.summary.post();
|
|
35
|
+
if (N)
|
|
36
|
+
throw new Error(N.message || "获取订阅摘要失败");
|
|
37
|
+
l.value = W || j();
|
|
38
38
|
} finally {
|
|
39
|
-
|
|
39
|
+
C.value = !1;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
return {
|
|
43
|
-
summary:
|
|
43
|
+
summary: l,
|
|
44
44
|
current: E,
|
|
45
45
|
trial: z,
|
|
46
46
|
entitlement: L,
|
|
47
47
|
features: y,
|
|
48
48
|
quotas: k,
|
|
49
|
-
pointsBalance:
|
|
50
|
-
pendingInvoice:
|
|
51
|
-
loading:
|
|
49
|
+
pointsBalance: u,
|
|
50
|
+
pendingInvoice: U,
|
|
51
|
+
loading: C,
|
|
52
52
|
refresh: A
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
function Wt(l) {
|
|
56
|
+
return /^https?:\/\//i.test(l) || l.startsWith("//");
|
|
57
|
+
}
|
|
58
|
+
function Nt() {
|
|
59
|
+
if (F.openPricing) {
|
|
60
|
+
F.openPricing();
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const l = F.pricingUrl || "/Pricing";
|
|
64
|
+
if (Wt(l)) {
|
|
65
|
+
window.open(l, "_blank", "noopener,noreferrer");
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
window.location.assign(l);
|
|
69
|
+
}
|
|
70
|
+
const Et = {
|
|
56
71
|
class: "content"
|
|
57
|
-
},
|
|
72
|
+
}, Lt = {
|
|
58
73
|
key: 0,
|
|
59
74
|
class: "current-subscription-card"
|
|
60
|
-
},
|
|
75
|
+
}, Ut = {
|
|
61
76
|
class: "subscription-header"
|
|
62
|
-
},
|
|
77
|
+
}, Tt = {
|
|
63
78
|
class: "subscription-info"
|
|
64
|
-
},
|
|
79
|
+
}, $t = {
|
|
65
80
|
class: "subscription-actions"
|
|
66
|
-
},
|
|
81
|
+
}, Bt = {
|
|
67
82
|
class: "subscription-details"
|
|
68
|
-
},
|
|
83
|
+
}, qt = {
|
|
69
84
|
key: 0,
|
|
70
85
|
class: "detail-item"
|
|
71
|
-
},
|
|
86
|
+
}, Dt = {
|
|
72
87
|
key: 1,
|
|
73
88
|
class: "detail-item"
|
|
74
|
-
},
|
|
89
|
+
}, Ft = {
|
|
75
90
|
key: 2,
|
|
76
91
|
class: "detail-item"
|
|
77
|
-
},
|
|
92
|
+
}, Vt = {
|
|
78
93
|
class: "label"
|
|
79
|
-
},
|
|
94
|
+
}, Mt = {
|
|
80
95
|
key: 3,
|
|
81
96
|
class: "detail-item warning"
|
|
82
|
-
},
|
|
97
|
+
}, Rt = {
|
|
83
98
|
key: 4,
|
|
84
99
|
class: "detail-item"
|
|
85
|
-
},
|
|
100
|
+
}, Kt = {
|
|
86
101
|
key: 0,
|
|
87
102
|
class: "pending-invoice-alert"
|
|
88
|
-
},
|
|
103
|
+
}, Ot = {
|
|
89
104
|
key: 1,
|
|
90
105
|
class: "no-subscription-row"
|
|
91
|
-
},
|
|
106
|
+
}, Ht = {
|
|
92
107
|
key: 1
|
|
93
|
-
},
|
|
108
|
+
}, jt = {
|
|
94
109
|
key: 0,
|
|
95
110
|
class: "quotas-loading"
|
|
96
|
-
},
|
|
111
|
+
}, Gt = {
|
|
97
112
|
key: 1,
|
|
98
113
|
class: "no-quotas"
|
|
99
|
-
},
|
|
114
|
+
}, Jt = {
|
|
100
115
|
key: 2,
|
|
101
116
|
class: "quotas-grid"
|
|
102
|
-
},
|
|
117
|
+
}, Qt = {
|
|
103
118
|
class: "quota-header"
|
|
104
|
-
},
|
|
119
|
+
}, Xt = {
|
|
105
120
|
class: "quota-name"
|
|
106
|
-
},
|
|
121
|
+
}, Yt = {
|
|
107
122
|
class: "quota-period"
|
|
108
|
-
},
|
|
123
|
+
}, Zt = {
|
|
109
124
|
class: "quota-progress"
|
|
110
|
-
},
|
|
125
|
+
}, te = {
|
|
111
126
|
class: "quota-detail"
|
|
112
|
-
},
|
|
127
|
+
}, ee = {
|
|
113
128
|
key: 0
|
|
114
|
-
},
|
|
129
|
+
}, ne = {
|
|
115
130
|
key: 1
|
|
116
|
-
},
|
|
131
|
+
}, ae = {
|
|
117
132
|
key: 2,
|
|
118
133
|
class: "reset-time"
|
|
119
|
-
},
|
|
134
|
+
}, ie = /* @__PURE__ */ yt({
|
|
120
135
|
__name: "PaySubscriptions",
|
|
121
136
|
emits: ["confirm", "cancel"],
|
|
122
|
-
setup(
|
|
123
|
-
expose:
|
|
137
|
+
setup(l, {
|
|
138
|
+
expose: C,
|
|
124
139
|
emit: E
|
|
125
140
|
}) {
|
|
126
141
|
const z = E, {
|
|
127
142
|
changeType: L,
|
|
128
143
|
show: y
|
|
129
|
-
} =
|
|
130
|
-
current:
|
|
131
|
-
entitlement:
|
|
144
|
+
} = It(z), k = v("subscriptions"), {
|
|
145
|
+
current: u,
|
|
146
|
+
entitlement: U,
|
|
132
147
|
quotas: A,
|
|
133
|
-
pointsBalance:
|
|
134
|
-
pendingInvoice:
|
|
135
|
-
loading:
|
|
136
|
-
refresh:
|
|
137
|
-
} =
|
|
148
|
+
pointsBalance: W,
|
|
149
|
+
pendingInvoice: N,
|
|
150
|
+
loading: G,
|
|
151
|
+
refresh: T
|
|
152
|
+
} = At(), h = f(() => U.value), V = v([]), $ = v(!1), b = v({
|
|
138
153
|
current: 1,
|
|
139
154
|
pageSize: 10,
|
|
140
155
|
total: 0
|
|
141
|
-
}),
|
|
156
|
+
}), M = v([]), B = v(!1), _ = v({
|
|
142
157
|
current: 1,
|
|
143
158
|
pageSize: 10,
|
|
144
159
|
total: 0
|
|
145
|
-
}),
|
|
160
|
+
}), J = f(() => G.value), Q = [{
|
|
146
161
|
dataIndex: "productName",
|
|
147
162
|
title: "产品",
|
|
148
163
|
minWidth: 120
|
|
@@ -173,7 +188,7 @@ const At = {
|
|
|
173
188
|
dataIndex: "createAt",
|
|
174
189
|
title: "创建时间",
|
|
175
190
|
minWidth: 160
|
|
176
|
-
}],
|
|
191
|
+
}], X = [{
|
|
177
192
|
dataIndex: "productName",
|
|
178
193
|
title: "产品",
|
|
179
194
|
minWidth: 120
|
|
@@ -206,7 +221,7 @@ const At = {
|
|
|
206
221
|
minWidth: 100,
|
|
207
222
|
fixed: "right"
|
|
208
223
|
}];
|
|
209
|
-
function
|
|
224
|
+
function Y(t) {
|
|
210
225
|
return {
|
|
211
226
|
trialing: "blue",
|
|
212
227
|
active: "green",
|
|
@@ -216,7 +231,7 @@ const At = {
|
|
|
216
231
|
incomplete: "red"
|
|
217
232
|
}[t] || "gray";
|
|
218
233
|
}
|
|
219
|
-
function
|
|
234
|
+
function Z(t) {
|
|
220
235
|
return {
|
|
221
236
|
trialing: "试用中",
|
|
222
237
|
active: "已激活",
|
|
@@ -227,7 +242,7 @@ const At = {
|
|
|
227
242
|
paused: "已暂停"
|
|
228
243
|
}[t] || t;
|
|
229
244
|
}
|
|
230
|
-
function
|
|
245
|
+
function tt(t) {
|
|
231
246
|
return {
|
|
232
247
|
draft: "gray",
|
|
233
248
|
open: "orange",
|
|
@@ -236,7 +251,7 @@ const At = {
|
|
|
236
251
|
uncollectible: "red"
|
|
237
252
|
}[t] || "gray";
|
|
238
253
|
}
|
|
239
|
-
function
|
|
254
|
+
function et(t) {
|
|
240
255
|
return {
|
|
241
256
|
draft: "草稿",
|
|
242
257
|
open: "待支付",
|
|
@@ -245,7 +260,7 @@ const At = {
|
|
|
245
260
|
uncollectible: "无法收款"
|
|
246
261
|
}[t] || t;
|
|
247
262
|
}
|
|
248
|
-
function
|
|
263
|
+
function nt(t) {
|
|
249
264
|
return {
|
|
250
265
|
day: "每天",
|
|
251
266
|
week: "每周",
|
|
@@ -254,252 +269,252 @@ const At = {
|
|
|
254
269
|
lifetime: "不重置"
|
|
255
270
|
}[t] || t;
|
|
256
271
|
}
|
|
257
|
-
function
|
|
258
|
-
const
|
|
259
|
-
day: `${
|
|
260
|
-
week: `${
|
|
261
|
-
month: `${
|
|
262
|
-
year: `${
|
|
272
|
+
function R(t, e = 1) {
|
|
273
|
+
const m = e > 1 ? `每 ${e} ` : "按", S = {
|
|
274
|
+
day: `${m}天`,
|
|
275
|
+
week: `${m}周`,
|
|
276
|
+
month: `${m}月`,
|
|
277
|
+
year: `${m}年`
|
|
263
278
|
};
|
|
264
279
|
return t ? S[t] || t : "-";
|
|
265
280
|
}
|
|
266
|
-
function
|
|
281
|
+
function at(t, e, m = 1) {
|
|
267
282
|
if (typeof t != "number") return "-";
|
|
268
|
-
const S =
|
|
283
|
+
const S = R(e, m).replace("按", "").replace("每 ", "");
|
|
269
284
|
return `¥${(t / 100).toFixed(2)} / ${S}`;
|
|
270
285
|
}
|
|
271
|
-
function
|
|
286
|
+
function it() {
|
|
272
287
|
y.value = !1, z("cancel");
|
|
273
288
|
}
|
|
274
|
-
function
|
|
275
|
-
|
|
289
|
+
function K() {
|
|
290
|
+
Nt();
|
|
276
291
|
}
|
|
277
|
-
function
|
|
292
|
+
function st(t) {
|
|
278
293
|
window.open(t, "_blank", "noopener,noreferrer");
|
|
279
294
|
}
|
|
280
|
-
async function
|
|
281
|
-
await
|
|
295
|
+
async function ot() {
|
|
296
|
+
await T();
|
|
282
297
|
}
|
|
283
298
|
async function x() {
|
|
284
|
-
|
|
299
|
+
$.value = !0;
|
|
285
300
|
const {
|
|
286
301
|
data: t
|
|
287
|
-
} = await
|
|
302
|
+
} = await P.subscriptions.my.post({
|
|
288
303
|
current: b.value.current,
|
|
289
304
|
pageSize: b.value.pageSize
|
|
290
305
|
});
|
|
291
|
-
|
|
306
|
+
$.value = !1, t && (V.value = t.items, b.value.total = t.count);
|
|
292
307
|
}
|
|
293
308
|
async function q() {
|
|
294
|
-
|
|
309
|
+
B.value = !0;
|
|
295
310
|
const {
|
|
296
311
|
data: t
|
|
297
|
-
} = await
|
|
312
|
+
} = await P.invoices.my.post({
|
|
298
313
|
current: _.value.current,
|
|
299
314
|
pageSize: _.value.pageSize
|
|
300
315
|
});
|
|
301
|
-
|
|
316
|
+
B.value = !1, t && (M.value = t.items, _.value.total = t.count);
|
|
302
317
|
}
|
|
303
|
-
async function
|
|
318
|
+
async function lt(t) {
|
|
304
319
|
const {
|
|
305
320
|
data: e
|
|
306
|
-
} = await
|
|
321
|
+
} = await P.invoices.pay.post({
|
|
307
322
|
id: t.id
|
|
308
323
|
});
|
|
309
|
-
e != null && e.alipayUrl &&
|
|
324
|
+
e != null && e.alipayUrl && st(e.alipayUrl);
|
|
310
325
|
}
|
|
311
|
-
async function
|
|
312
|
-
if (!
|
|
326
|
+
async function rt() {
|
|
327
|
+
if (!u.value) return;
|
|
313
328
|
const {
|
|
314
329
|
error: t
|
|
315
|
-
} = await
|
|
316
|
-
subscriptionId:
|
|
330
|
+
} = await P.subscriptions.cancel.post({
|
|
331
|
+
subscriptionId: u.value.id,
|
|
317
332
|
cancelAtPeriodEnd: !0
|
|
318
333
|
});
|
|
319
|
-
t || (await
|
|
334
|
+
t || (await T(), await x());
|
|
320
335
|
}
|
|
321
|
-
async function
|
|
322
|
-
if (!
|
|
336
|
+
async function ut() {
|
|
337
|
+
if (!u.value) return;
|
|
323
338
|
const {
|
|
324
339
|
error: t
|
|
325
|
-
} = await
|
|
326
|
-
subscriptionId:
|
|
340
|
+
} = await P.subscriptions.resume.post({
|
|
341
|
+
subscriptionId: u.value.id
|
|
327
342
|
});
|
|
328
|
-
t || (await
|
|
343
|
+
t || (await T(), await x());
|
|
329
344
|
}
|
|
330
|
-
function
|
|
345
|
+
function ct(t) {
|
|
331
346
|
b.value.current = t, x();
|
|
332
347
|
}
|
|
333
|
-
function
|
|
348
|
+
function dt(t) {
|
|
334
349
|
b.value.pageSize = t, b.value.current = 1, x();
|
|
335
350
|
}
|
|
336
|
-
function
|
|
351
|
+
function pt(t) {
|
|
337
352
|
_.value.current = t, q();
|
|
338
353
|
}
|
|
339
|
-
function
|
|
354
|
+
function mt(t) {
|
|
340
355
|
_.value.pageSize = t, _.value.current = 1, q();
|
|
341
356
|
}
|
|
342
|
-
function
|
|
357
|
+
function vt(t) {
|
|
343
358
|
return (t == null ? void 0 : t.target) === "invoices" ? "invoices" : (t == null ? void 0 : t.target) === "quotas" ? "quotas" : "subscriptions";
|
|
344
359
|
}
|
|
345
|
-
function
|
|
346
|
-
y.value = e, L.value = "编辑", k.value =
|
|
360
|
+
function ft(t, e) {
|
|
361
|
+
y.value = e, L.value = "编辑", k.value = vt(t), e && (ot(), x(), q());
|
|
347
362
|
}
|
|
348
|
-
return
|
|
349
|
-
setData:
|
|
350
|
-
}), (t, e) => (s(),
|
|
363
|
+
return C({
|
|
364
|
+
setData: ft
|
|
365
|
+
}), (t, e) => (s(), I(n(ht), {
|
|
351
366
|
visible: n(y),
|
|
352
|
-
"onUpdate:visible": e[2] || (e[2] = (
|
|
367
|
+
"onUpdate:visible": e[2] || (e[2] = (m) => bt(y) ? y.value = m : null),
|
|
353
368
|
loading: !1,
|
|
354
369
|
"body-class": "SubscriptionsbodyClass",
|
|
355
370
|
"mask-closable": !1,
|
|
356
371
|
footer: !1,
|
|
357
|
-
width: n(
|
|
358
|
-
onCancel:
|
|
372
|
+
width: n(gt),
|
|
373
|
+
onCancel: it
|
|
359
374
|
}, {
|
|
360
|
-
title: o(() => [...e[3] || (e[3] = [
|
|
375
|
+
title: o(() => [...e[3] || (e[3] = [p(" 订阅管理 ", -1)])]),
|
|
361
376
|
default: o(() => {
|
|
362
|
-
var
|
|
363
|
-
return [i("div",
|
|
377
|
+
var m, S;
|
|
378
|
+
return [i("div", Et, [h.value ? (s(), r("div", Lt, [i("div", Ut, [i("div", Tt, [i("h3", null, c(h.value.productName), 1)]), i("div", $t, [h.value.type === "trial" ? (s(), I(n(w), {
|
|
364
379
|
key: 0,
|
|
365
380
|
type: "primary",
|
|
366
381
|
size: "small",
|
|
367
|
-
onClick:
|
|
382
|
+
onClick: K
|
|
368
383
|
}, {
|
|
369
|
-
default: o(() => [...e[4] || (e[4] = [
|
|
384
|
+
default: o(() => [...e[4] || (e[4] = [p(" 立即订阅 ", -1)])]),
|
|
370
385
|
_: 1
|
|
371
|
-
})) : (
|
|
386
|
+
})) : (m = n(u)) != null && m.cancelAtPeriodEnd ? (s(), I(n(w), {
|
|
372
387
|
key: 1,
|
|
373
388
|
type: "primary",
|
|
374
389
|
size: "small",
|
|
375
|
-
onClick:
|
|
390
|
+
onClick: ut
|
|
376
391
|
}, {
|
|
377
|
-
default: o(() => [...e[5] || (e[5] = [
|
|
392
|
+
default: o(() => [...e[5] || (e[5] = [p(" 恢复订阅 ", -1)])]),
|
|
378
393
|
_: 1
|
|
379
|
-
})) : n(
|
|
394
|
+
})) : n(u) ? (s(), I(n(St), {
|
|
380
395
|
key: 2,
|
|
381
396
|
content: "取消后订阅将在当前周期结束时失效,确定取消吗?",
|
|
382
|
-
onOk:
|
|
397
|
+
onOk: rt
|
|
383
398
|
}, {
|
|
384
|
-
default: o(() => [
|
|
399
|
+
default: o(() => [d(n(w), {
|
|
385
400
|
type: "outline",
|
|
386
401
|
size: "small",
|
|
387
402
|
status: "warning"
|
|
388
403
|
}, {
|
|
389
|
-
default: o(() => [...e[6] || (e[6] = [
|
|
404
|
+
default: o(() => [...e[6] || (e[6] = [p(" 取消订阅 ", -1)])]),
|
|
390
405
|
_: 1
|
|
391
406
|
})]),
|
|
392
407
|
_: 1
|
|
393
|
-
})) : g("", !0)])]), i("div",
|
|
408
|
+
})) : g("", !0)])]), i("div", Bt, [n(u) ? (s(), r("div", qt, [e[7] || (e[7] = i("span", {
|
|
394
409
|
class: "label"
|
|
395
|
-
}, "计费周期:", -1)), i("span", null,
|
|
410
|
+
}, "计费周期:", -1)), i("span", null, c(R(n(u).interval, n(u).intervalCount)), 1)])) : g("", !0), n(u) ? (s(), r("div", Dt, [e[8] || (e[8] = i("span", {
|
|
396
411
|
class: "label"
|
|
397
|
-
}, "价格:", -1)), i("span", null,
|
|
412
|
+
}, "价格:", -1)), i("span", null, c(at(n(u).unitAmount, n(u).interval, n(u).intervalCount)), 1)])) : g("", !0), h.value.endAt ? (s(), r("div", Ft, [i("span", Vt, c(h.value.type === "trial" ? "试用有效期至:" : "当前周期结束:"), 1), i("span", null, c(h.value.endAt), 1)])) : g("", !0), (S = n(u)) != null && S.cancelAtPeriodEnd ? (s(), r("div", Mt, [...e[9] || (e[9] = [i("span", {
|
|
398
413
|
class: "label"
|
|
399
|
-
}, "订阅将于周期结束后停止", -1)])])) : g("", !0), n(
|
|
414
|
+
}, "订阅将于周期结束后停止", -1)])])) : g("", !0), n(W) ? (s(), r("div", Rt, [e[10] || (e[10] = i("span", {
|
|
400
415
|
class: "label"
|
|
401
|
-
}, "积分余额:", -1)), i("span", null,
|
|
416
|
+
}, "积分余额:", -1)), i("span", null, c(n(W).totalPoints), 1)])) : g("", !0)]), n(N) ? (s(), r("div", Kt, [e[12] || (e[12] = i("div", null, [i("strong", null, "存在待支付账单"), i("span", null, "请前往账单记录选择具体账单完成支付。")], -1)), d(n(w), {
|
|
402
417
|
type: "primary",
|
|
403
418
|
status: "warning",
|
|
404
419
|
size: "small",
|
|
405
420
|
onClick: e[0] || (e[0] = (a) => k.value = "invoices")
|
|
406
421
|
}, {
|
|
407
|
-
default: o(() => [...e[11] || (e[11] = [
|
|
422
|
+
default: o(() => [...e[11] || (e[11] = [p(" 去处理 ", -1)])]),
|
|
408
423
|
_: 1
|
|
409
|
-
})])) : g("", !0)])) : (s(),
|
|
424
|
+
})])) : g("", !0)])) : (s(), r("div", Ot, [e[14] || (e[14] = i("span", {
|
|
410
425
|
class: "no-subscription-text"
|
|
411
|
-
}, "暂无方案", -1)),
|
|
426
|
+
}, "暂无方案", -1)), d(n(w), {
|
|
412
427
|
type: "primary",
|
|
413
428
|
size: "small",
|
|
414
|
-
onClick:
|
|
429
|
+
onClick: K
|
|
415
430
|
}, {
|
|
416
|
-
default: o(() => [...e[13] || (e[13] = [
|
|
431
|
+
default: o(() => [...e[13] || (e[13] = [p("查看价格方案", -1)])]),
|
|
417
432
|
_: 1
|
|
418
|
-
})])),
|
|
433
|
+
})])), d(n(wt), {
|
|
419
434
|
"active-key": k.value,
|
|
420
435
|
"onUpdate:activeKey": e[1] || (e[1] = (a) => k.value = a),
|
|
421
436
|
class: "subscription-tabs"
|
|
422
437
|
}, {
|
|
423
|
-
default: o(() => [
|
|
438
|
+
default: o(() => [d(n(D), {
|
|
424
439
|
key: "subscriptions",
|
|
425
440
|
title: "订阅历史"
|
|
426
441
|
}, {
|
|
427
|
-
default: o(() => [
|
|
428
|
-
columns:
|
|
429
|
-
data:
|
|
430
|
-
loading:
|
|
442
|
+
default: o(() => [d(H, {
|
|
443
|
+
columns: Q,
|
|
444
|
+
data: V.value,
|
|
445
|
+
loading: $.value,
|
|
431
446
|
pagination: b.value,
|
|
432
|
-
onPageChange:
|
|
433
|
-
onPageSizeChange:
|
|
447
|
+
onPageChange: ct,
|
|
448
|
+
onPageSizeChange: dt
|
|
434
449
|
}, {
|
|
435
450
|
status: o(({
|
|
436
451
|
record: a
|
|
437
|
-
}) => [
|
|
438
|
-
color:
|
|
452
|
+
}) => [d(n(O), {
|
|
453
|
+
color: Y(a.status)
|
|
439
454
|
}, {
|
|
440
|
-
default: o(() => [
|
|
455
|
+
default: o(() => [p(c(Z(a.status)), 1)]),
|
|
441
456
|
_: 2
|
|
442
457
|
}, 1032, ["color"])]),
|
|
443
458
|
interval: o(({
|
|
444
459
|
record: a
|
|
445
|
-
}) => [
|
|
460
|
+
}) => [p(c(a.interval === "month" ? "按月" : a.interval === "year" ? "按年" : a.interval || "-"), 1)]),
|
|
446
461
|
unitAmount: o(({
|
|
447
462
|
record: a
|
|
448
|
-
}) => [
|
|
463
|
+
}) => [p(c(a.unitAmount ? `¥${(a.unitAmount / 100).toFixed(2)}` : "-"), 1)]),
|
|
449
464
|
_: 1
|
|
450
465
|
}, 8, ["data", "loading", "pagination"])]),
|
|
451
466
|
_: 1
|
|
452
|
-
}),
|
|
467
|
+
}), d(n(D), {
|
|
453
468
|
key: "invoices",
|
|
454
469
|
title: "账单记录"
|
|
455
470
|
}, {
|
|
456
|
-
default: o(() => [
|
|
457
|
-
columns:
|
|
458
|
-
data:
|
|
459
|
-
loading:
|
|
471
|
+
default: o(() => [d(H, {
|
|
472
|
+
columns: X,
|
|
473
|
+
data: M.value,
|
|
474
|
+
loading: B.value,
|
|
460
475
|
pagination: _.value,
|
|
461
|
-
onPageChange:
|
|
462
|
-
onPageSizeChange:
|
|
476
|
+
onPageChange: pt,
|
|
477
|
+
onPageSizeChange: mt
|
|
463
478
|
}, {
|
|
464
479
|
status: o(({
|
|
465
480
|
record: a
|
|
466
|
-
}) => [
|
|
467
|
-
color:
|
|
481
|
+
}) => [d(n(O), {
|
|
482
|
+
color: tt(a.status)
|
|
468
483
|
}, {
|
|
469
|
-
default: o(() => [
|
|
484
|
+
default: o(() => [p(c(et(a.status)), 1)]),
|
|
470
485
|
_: 2
|
|
471
486
|
}, 1032, ["color"])]),
|
|
472
487
|
total: o(({
|
|
473
488
|
record: a
|
|
474
|
-
}) => [
|
|
489
|
+
}) => [p(" ¥" + c((a.total / 100).toFixed(2)), 1)]),
|
|
475
490
|
actions: o(({
|
|
476
491
|
record: a
|
|
477
|
-
}) => [a.status === "open" ? (s(),
|
|
492
|
+
}) => [a.status === "open" ? (s(), I(n(w), {
|
|
478
493
|
key: 0,
|
|
479
494
|
type: "primary",
|
|
480
495
|
status: "warning",
|
|
481
496
|
size: "mini",
|
|
482
|
-
onClick: (
|
|
497
|
+
onClick: (se) => lt(a)
|
|
483
498
|
}, {
|
|
484
|
-
default: o(() => [...e[15] || (e[15] = [
|
|
499
|
+
default: o(() => [...e[15] || (e[15] = [p(" 去支付 ", -1)])]),
|
|
485
500
|
_: 1
|
|
486
|
-
}, 8, ["onClick"])) : (s(),
|
|
501
|
+
}, 8, ["onClick"])) : (s(), r("span", Ht, "-"))]),
|
|
487
502
|
_: 1
|
|
488
503
|
}, 8, ["data", "loading", "pagination"])]),
|
|
489
504
|
_: 1
|
|
490
|
-
}),
|
|
505
|
+
}), d(n(D), {
|
|
491
506
|
key: "quotas",
|
|
492
507
|
title: "配额使用"
|
|
493
508
|
}, {
|
|
494
|
-
default: o(() => [
|
|
509
|
+
default: o(() => [J.value ? (s(), r("div", jt, [d(n(Pt))])) : n(A).length === 0 ? (s(), r("div", Gt, [d(n(Ct), {
|
|
495
510
|
description: "暂无配额限制"
|
|
496
|
-
})])) : (s(),
|
|
511
|
+
})])) : (s(), r("div", Jt, [(s(!0), r(_t, null, kt(n(A), (a) => (s(), r("div", {
|
|
497
512
|
key: a.featureKey,
|
|
498
513
|
class: "quota-card"
|
|
499
|
-
}, [i("div",
|
|
514
|
+
}, [i("div", Qt, [i("span", Xt, c(a.name), 1), i("span", Yt, c(nt(a.period)), 1)]), i("div", Zt, [d(n(xt), {
|
|
500
515
|
percent: a.percentage,
|
|
501
516
|
status: a.percentage >= 90 ? "danger" : a.percentage >= 70 ? "warning" : "normal"
|
|
502
|
-
}, null, 8, ["percent", "status"])]), i("div",
|
|
517
|
+
}, null, 8, ["percent", "status"])]), i("div", te, [a.unlimited ? (s(), r("span", ee, "无限制")) : (s(), r("span", ne, "已使用 " + c(a.used) + " / " + c(a.limit), 1)), a.resetsAt ? (s(), r("span", ae, c(a.resetsAt) + " 重置", 1)) : g("", !0)])]))), 128))]))]),
|
|
503
518
|
_: 1
|
|
504
519
|
})]),
|
|
505
520
|
_: 1
|
|
@@ -508,8 +523,9 @@ const At = {
|
|
|
508
523
|
_: 1
|
|
509
524
|
}, 8, ["visible", "width"]));
|
|
510
525
|
}
|
|
511
|
-
}),
|
|
526
|
+
}), ke = /* @__PURE__ */ zt(ie, [["__scopeId", "data-v-a5f046fb"]]);
|
|
512
527
|
export {
|
|
513
|
-
|
|
514
|
-
|
|
528
|
+
ke as P,
|
|
529
|
+
Nt as o,
|
|
530
|
+
At as u
|
|
515
531
|
};
|