@huyooo/ui 0.13.2 → 0.13.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-p_ZzaAK3.js → AuthkitAppSetting-EL2ZvAVT.js} +6 -6
- package/dist/{AuthkitGithubBinding-Cwly1un7.js → AuthkitGithubBinding-Ba9sbNEh.js} +6 -6
- package/dist/{Clipboard-k0jtK4CJ.js → Clipboard-CdJtMvg6.js} +1 -1
- package/dist/{Contact-BGZm3i5l.js → Contact-Z2VFVeKK.js} +2 -2
- package/dist/{FeedbackItem-opB6y-f2.js → FeedbackItem-B_MDdk4s.js} +3 -3
- package/dist/{FeedbackModal-9CNnFC6B.js → FeedbackModal-qrcBDDQM.js} +3 -3
- package/dist/{MessageHandle-BZBT7Ii1.js → MessageHandle-Y96z-IXv.js} +2 -2
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BbKvsNKj.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-CfmjFcay.js} +2 -2
- package/dist/{PaySubscriptions-Bxh35MKo.js → PaySubscriptions-C75OtmYw.js} +388 -425
- package/dist/{PricingPlans-BRJPtzFK.js → PricingPlans-DCYIVuuT.js} +4 -4
- package/dist/{ReferrerReferees-Hh88qOrp.js → ReferrerReferees-8eSsuPfa.js} +4 -4
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-DOHui-lA.js → Upload.vue_vue_type_script_setup_true_lang-BAibfVEN.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-_BUbnxAH.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BEVmBNlU.js} +39 -39
- package/dist/{WidthContainer-CjKGJYG4.js → WidthContainer-Dqf_-qGk.js} +8 -8
- package/dist/{apiClients-B8bOvWw_.js → apiClients-D56ALwwO.js} +2 -2
- package/dist/authkit.js +9 -9
- package/dist/common.js +1 -1
- package/dist/composables/Billing/useBillingStatusOptions.d.ts +93 -0
- package/dist/composables.d.ts +1 -0
- package/dist/composables.js +44 -36
- package/dist/feedback.js +3 -3
- package/dist/main.js +248 -240
- package/dist/message.js +3 -3
- package/dist/pay.d.ts +1 -0
- package/dist/pay.js +21 -13
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api/billing.generated.d.ts +2252 -649
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-6ncIP9RT.js → useAuthkitAppsAuthPageInfo-RMs8sOwk.js} +1 -1
- package/dist/{useAuthkitAuth-Bj8XxPtO.js → useAuthkitAuth-B8aO6aMa.js} +1 -1
- package/dist/{useAuthkitCreateAndUpdate-CUf8HARI.js → useAuthkitCreateAndUpdate-DkiLs143.js} +1 -1
- package/dist/{useAuthkitUsersProfile-CoQceogN.js → useAuthkitUsersProfile-CWAr0CNv.js} +2 -2
- package/dist/useBillingStatusOptions-CottFcAr.js +127 -0
- package/dist/{useDownloads-Dj91-I6H.js → useDownloads-DqF1USJ7.js} +1 -1
- package/dist/{useEnsureAuthenticated-MpHmn2co.js → useEnsureAuthenticated-D99GiwEk.js} +2 -2
- package/dist/{useLegalLinks-CVHYmza0.js → useLegalLinks-DRTOYp3n.js} +2 -2
- package/dist/{useMessageNotifications-Bstn2qtG.js → useMessageNotifications-CUpk6zCE.js} +1 -1
- package/dist/{useSEO-DU86KCMJ.js → useSEO-CUKPmGRx.js} +2 -2
- package/dist/{useSubscriptionCheckout-DNLuRGmx.js → useSubscriptionCheckout-CAgy1CFj.js} +2 -2
- package/dist/{useTableHandle-B9aFmwYM.js → useTableHandle-CCKjahT0.js} +1 -1
- package/dist/{useUploadCos-DTMIoW7p.js → useUploadCos-Bxctd4E6.js} +1 -1
- package/dist/user.js +1 -1
- package/package.json +2 -2
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { U as
|
|
6
|
+
import { U as Ct } from "./index-D3Kp6R4z.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
|
-
import {
|
|
10
|
-
import { ref as g, computed as A, onUnmounted as
|
|
11
|
-
import { Message as
|
|
12
|
-
import { u as
|
|
13
|
-
import {
|
|
14
|
-
import { C as
|
|
15
|
-
import {
|
|
9
|
+
import { e as B, g as Z } from "./apiClients-D56ALwwO.js";
|
|
10
|
+
import { ref as g, computed as A, onUnmounted as Ae, defineComponent as It, openBlock as l, createElementBlock as r, Fragment as Q, createVNode as u, unref as n, isRef as xt, withCtx as s, createElementVNode as a, toDisplayString as o, createBlock as q, createTextVNode as d, createCommentVNode as T, renderList as Ne, normalizeClass as Oe } from "vue";
|
|
11
|
+
import { Message as S, Modal as We, Button as k, Popconfirm as ae, Tabs as Nt, TabPane as ne, Spin as me, Empty as Te, Progress as Ot, Tag as X, Tooltip as Wt } from "@arco-design/web-vue";
|
|
12
|
+
import { u as Tt, b as zt, a as At } from "./useBillingStatusOptions-CottFcAr.js";
|
|
13
|
+
import { u as Et } from "./useAuthkitCreateAndUpdate-DkiLs143.js";
|
|
14
|
+
import { C as fe } from "./CustomTable-BBcd4nNL.js";
|
|
15
|
+
import { C as Lt } from "./Clipboard-CdJtMvg6.js";
|
|
16
|
+
import { _ as Rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
17
|
function ze() {
|
|
17
18
|
return {
|
|
18
19
|
current: null,
|
|
@@ -24,52 +25,52 @@ function ze() {
|
|
|
24
25
|
pendingInvoice: null
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
-
const
|
|
29
|
-
async function
|
|
28
|
+
function $t() {
|
|
29
|
+
const v = g(ze()), _ = g(!1), p = A(() => v.value.current), h = A(() => v.value.trial), P = A(() => v.value.entitlement), x = A(() => v.value.features), y = A(() => v.value.quotas), f = A(() => v.value.pointsBalance), R = A(() => v.value.pendingInvoice);
|
|
30
|
+
async function E() {
|
|
30
31
|
_.value = !0;
|
|
31
32
|
try {
|
|
32
33
|
const {
|
|
33
34
|
data: b,
|
|
34
|
-
error:
|
|
35
|
+
error: C
|
|
35
36
|
} = await B.subscriptions.summary.post();
|
|
36
|
-
if (
|
|
37
|
-
throw new Error(
|
|
38
|
-
|
|
37
|
+
if (C)
|
|
38
|
+
throw new Error(C.message || "获取订阅摘要失败");
|
|
39
|
+
v.value = b || ze();
|
|
39
40
|
} finally {
|
|
40
41
|
_.value = !1;
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
return {
|
|
44
|
-
summary:
|
|
45
|
+
summary: v,
|
|
45
46
|
current: p,
|
|
46
47
|
trial: h,
|
|
47
48
|
entitlement: P,
|
|
48
|
-
features:
|
|
49
|
+
features: x,
|
|
49
50
|
quotas: y,
|
|
50
51
|
pointsBalance: f,
|
|
51
|
-
pendingInvoice:
|
|
52
|
+
pendingInvoice: R,
|
|
52
53
|
loading: _,
|
|
53
|
-
refresh:
|
|
54
|
+
refresh: E
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
-
return /^https?:\/\//i.test(
|
|
57
|
+
function Ut(v) {
|
|
58
|
+
return /^https?:\/\//i.test(v) || v.startsWith("//");
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
+
function Bt() {
|
|
60
61
|
if (Z.openPricing) {
|
|
61
62
|
Z.openPricing();
|
|
62
63
|
return;
|
|
63
64
|
}
|
|
64
|
-
const
|
|
65
|
-
if (
|
|
66
|
-
window.open(
|
|
65
|
+
const v = Z.pricingUrl || "/Pricing";
|
|
66
|
+
if (Ut(v)) {
|
|
67
|
+
window.open(v, "_blank", "noopener,noreferrer");
|
|
67
68
|
return;
|
|
68
69
|
}
|
|
69
|
-
window.location.assign(
|
|
70
|
+
window.location.assign(v);
|
|
70
71
|
}
|
|
71
|
-
async function K(
|
|
72
|
-
const p = localStorage.getItem("jwtToken"), h = await fetch(`${Z.billingPrefixUrl}${
|
|
72
|
+
async function K(v, _ = {}) {
|
|
73
|
+
const p = localStorage.getItem("jwtToken"), h = await fetch(`${Z.billingPrefixUrl}${v}`, {
|
|
73
74
|
method: "POST",
|
|
74
75
|
headers: {
|
|
75
76
|
"Content-Type": "application/json",
|
|
@@ -84,8 +85,8 @@ async function K(m, _ = {}) {
|
|
|
84
85
|
throw new Error((P == null ? void 0 : P.message) || "请求失败");
|
|
85
86
|
return P;
|
|
86
87
|
}
|
|
87
|
-
async function
|
|
88
|
-
if (
|
|
88
|
+
async function Ht(v, _) {
|
|
89
|
+
if (v === "recharge") {
|
|
89
90
|
const p = await K("/pointsRecharge/verifyPayment", {
|
|
90
91
|
orderId: _
|
|
91
92
|
});
|
|
@@ -96,7 +97,7 @@ async function At(m, _) {
|
|
|
96
97
|
pointsAdded: p.pointsAdded
|
|
97
98
|
};
|
|
98
99
|
}
|
|
99
|
-
if (
|
|
100
|
+
if (v === "subscription") {
|
|
100
101
|
const p = await K("/invoices/verifyPayment", {
|
|
101
102
|
orderId: _
|
|
102
103
|
});
|
|
@@ -112,70 +113,70 @@ async function At(m, _) {
|
|
|
112
113
|
message: "暂不支持的支付场景"
|
|
113
114
|
};
|
|
114
115
|
}
|
|
115
|
-
const
|
|
116
|
-
function
|
|
117
|
-
const
|
|
116
|
+
const Dt = 3e3;
|
|
117
|
+
function Ee() {
|
|
118
|
+
const v = g(!1), _ = g("");
|
|
118
119
|
let p = null;
|
|
119
120
|
function h() {
|
|
120
121
|
p && (clearInterval(p), p = null);
|
|
121
122
|
}
|
|
122
123
|
async function P(y, f) {
|
|
123
|
-
|
|
124
|
+
v.value = !0;
|
|
124
125
|
try {
|
|
125
|
-
return await
|
|
126
|
+
return await Ht(y, f);
|
|
126
127
|
} finally {
|
|
127
|
-
|
|
128
|
+
v.value = !1;
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
|
-
function
|
|
131
|
+
function x(y) {
|
|
131
132
|
h();
|
|
132
133
|
const f = async () => {
|
|
133
|
-
var
|
|
134
|
+
var R, E;
|
|
134
135
|
try {
|
|
135
136
|
const b = await P(y.scene, y.orderId);
|
|
136
137
|
if (b.success) {
|
|
137
138
|
h(), y.onSuccess(b);
|
|
138
139
|
return;
|
|
139
140
|
}
|
|
140
|
-
_.value = b.message || "等待支付确认...", (
|
|
141
|
+
_.value = b.message || "等待支付确认...", (R = y.onWaiting) == null || R.call(y, b);
|
|
141
142
|
} catch (b) {
|
|
142
|
-
h(), (
|
|
143
|
+
h(), (E = y.onError) == null || E.call(y, b);
|
|
143
144
|
}
|
|
144
145
|
};
|
|
145
146
|
f(), p = setInterval(() => {
|
|
146
147
|
f();
|
|
147
|
-
},
|
|
148
|
+
}, Dt);
|
|
148
149
|
}
|
|
149
|
-
return
|
|
150
|
-
checking:
|
|
150
|
+
return Ae(h), {
|
|
151
|
+
checking: v,
|
|
151
152
|
statusText: _,
|
|
152
|
-
startPolling:
|
|
153
|
+
startPolling: x,
|
|
153
154
|
stopPolling: h,
|
|
154
155
|
verifyNow: P
|
|
155
156
|
};
|
|
156
157
|
}
|
|
157
|
-
function
|
|
158
|
+
function mn(v) {
|
|
158
159
|
const _ = g("loading"), p = g("正在确认支付结果..."), {
|
|
159
160
|
checking: h,
|
|
160
161
|
statusText: P,
|
|
161
|
-
startPolling:
|
|
162
|
+
startPolling: x,
|
|
162
163
|
stopPolling: y,
|
|
163
164
|
verifyNow: f
|
|
164
|
-
} =
|
|
165
|
-
async function
|
|
166
|
-
_.value = "loading", p.value = "正在确认支付结果...",
|
|
167
|
-
scene:
|
|
165
|
+
} = Ee();
|
|
166
|
+
async function R(E, b) {
|
|
167
|
+
_.value = "loading", p.value = "正在确认支付结果...", x({
|
|
168
|
+
scene: E,
|
|
168
169
|
orderId: b,
|
|
169
|
-
onSuccess: (
|
|
170
|
-
_.value = "success", p.value =
|
|
171
|
-
window.location.replace(
|
|
170
|
+
onSuccess: (C) => {
|
|
171
|
+
_.value = "success", p.value = C.message || "支付成功", window.setTimeout(() => {
|
|
172
|
+
window.location.replace(v());
|
|
172
173
|
}, 1200);
|
|
173
174
|
},
|
|
174
|
-
onWaiting: (
|
|
175
|
-
p.value =
|
|
175
|
+
onWaiting: (C) => {
|
|
176
|
+
p.value = C.message || P.value || "等待支付确认...";
|
|
176
177
|
},
|
|
177
|
-
onError: (
|
|
178
|
-
_.value = "failed", p.value =
|
|
178
|
+
onError: (C) => {
|
|
179
|
+
_.value = "failed", p.value = C instanceof Error ? C.message : "确认支付失败", S.error(p.value);
|
|
179
180
|
}
|
|
180
181
|
});
|
|
181
182
|
}
|
|
@@ -184,189 +185,189 @@ function on(m) {
|
|
|
184
185
|
message: p,
|
|
185
186
|
checking: h,
|
|
186
187
|
statusText: P,
|
|
187
|
-
confirmPayment:
|
|
188
|
+
confirmPayment: R,
|
|
188
189
|
stopPolling: y,
|
|
189
190
|
verifyNow: f
|
|
190
191
|
};
|
|
191
192
|
}
|
|
192
|
-
const
|
|
193
|
+
const Yt = {
|
|
193
194
|
class: "content"
|
|
194
|
-
},
|
|
195
|
+
}, Mt = {
|
|
195
196
|
key: 0,
|
|
196
197
|
class: "current-subscription-card"
|
|
197
|
-
},
|
|
198
|
+
}, Ft = {
|
|
198
199
|
class: "subscription-header"
|
|
199
|
-
},
|
|
200
|
+
}, Vt = {
|
|
200
201
|
class: "subscription-info"
|
|
201
|
-
},
|
|
202
|
+
}, jt = {
|
|
202
203
|
class: "subscription-actions"
|
|
203
|
-
},
|
|
204
|
+
}, qt = {
|
|
204
205
|
class: "subscription-details"
|
|
205
|
-
},
|
|
206
|
+
}, Kt = {
|
|
206
207
|
key: 0,
|
|
207
208
|
class: "detail-item"
|
|
208
|
-
},
|
|
209
|
+
}, Jt = {
|
|
209
210
|
key: 1,
|
|
210
211
|
class: "detail-item"
|
|
211
|
-
},
|
|
212
|
+
}, Gt = {
|
|
212
213
|
key: 2,
|
|
213
214
|
class: "detail-item"
|
|
214
|
-
},
|
|
215
|
+
}, Qt = {
|
|
215
216
|
key: 3,
|
|
216
217
|
class: "detail-item"
|
|
217
|
-
},
|
|
218
|
+
}, Xt = {
|
|
218
219
|
class: "label"
|
|
219
|
-
},
|
|
220
|
+
}, Zt = {
|
|
220
221
|
key: 4,
|
|
221
222
|
class: "detail-item warning"
|
|
222
|
-
},
|
|
223
|
+
}, ea = {
|
|
223
224
|
key: 5,
|
|
224
225
|
class: "detail-item warning"
|
|
225
|
-
},
|
|
226
|
+
}, ta = {
|
|
226
227
|
key: 6,
|
|
227
228
|
class: "detail-item"
|
|
228
|
-
},
|
|
229
|
+
}, aa = {
|
|
229
230
|
key: 0,
|
|
230
231
|
class: "pending-invoice-alert"
|
|
231
|
-
},
|
|
232
|
+
}, na = {
|
|
232
233
|
key: 1,
|
|
233
234
|
class: "no-subscription-row"
|
|
234
|
-
},
|
|
235
|
+
}, sa = {
|
|
235
236
|
class: "overview-grid"
|
|
236
|
-
},
|
|
237
|
+
}, ia = {
|
|
237
238
|
class: "overview-card"
|
|
238
|
-
},
|
|
239
|
+
}, oa = {
|
|
239
240
|
class: "overview-card__value"
|
|
240
|
-
},
|
|
241
|
+
}, la = {
|
|
241
242
|
key: 0,
|
|
242
243
|
class: "overview-card__meta"
|
|
243
|
-
},
|
|
244
|
+
}, ra = {
|
|
244
245
|
class: "overview-card"
|
|
245
|
-
},
|
|
246
|
+
}, ua = {
|
|
246
247
|
class: "overview-card__value"
|
|
247
|
-
},
|
|
248
|
+
}, ca = {
|
|
248
249
|
class: "overview-card"
|
|
249
|
-
},
|
|
250
|
+
}, da = {
|
|
250
251
|
class: "overview-card__value"
|
|
251
|
-
},
|
|
252
|
+
}, pa = {
|
|
252
253
|
key: 0,
|
|
253
254
|
class: "quotas-loading"
|
|
254
|
-
},
|
|
255
|
+
}, va = {
|
|
255
256
|
key: 1,
|
|
256
257
|
class: "no-quotas"
|
|
257
|
-
},
|
|
258
|
+
}, ma = {
|
|
258
259
|
key: 2,
|
|
259
260
|
class: "quotas-grid"
|
|
260
|
-
},
|
|
261
|
+
}, fa = {
|
|
261
262
|
class: "quota-header"
|
|
262
|
-
},
|
|
263
|
+
}, ga = {
|
|
263
264
|
class: "quota-name"
|
|
264
|
-
},
|
|
265
|
+
}, ya = {
|
|
265
266
|
class: "quota-period"
|
|
266
|
-
},
|
|
267
|
+
}, _a = {
|
|
267
268
|
class: "quota-progress"
|
|
268
|
-
},
|
|
269
|
+
}, wa = {
|
|
269
270
|
class: "quota-detail"
|
|
270
|
-
},
|
|
271
|
+
}, ba = {
|
|
271
272
|
key: 0
|
|
272
|
-
},
|
|
273
|
+
}, ha = {
|
|
273
274
|
key: 1
|
|
274
|
-
},
|
|
275
|
+
}, ka = {
|
|
275
276
|
key: 2,
|
|
276
277
|
class: "reset-time"
|
|
277
|
-
},
|
|
278
|
+
}, Pa = ["title"], Sa = {
|
|
278
279
|
key: 1
|
|
279
|
-
},
|
|
280
|
+
}, Ca = {
|
|
280
281
|
key: 0,
|
|
281
282
|
class: "invoice-actions"
|
|
282
|
-
},
|
|
283
|
+
}, Ia = {
|
|
283
284
|
key: 1,
|
|
284
285
|
class: "invoice-actions"
|
|
285
|
-
},
|
|
286
|
+
}, xa = {
|
|
286
287
|
key: 2
|
|
287
|
-
},
|
|
288
|
+
}, Na = {
|
|
288
289
|
class: "points-panel"
|
|
289
|
-
},
|
|
290
|
+
}, Oa = {
|
|
290
291
|
class: "points-balance-card"
|
|
291
|
-
},
|
|
292
|
+
}, Wa = {
|
|
292
293
|
class: "points-balance-value"
|
|
293
|
-
},
|
|
294
|
+
}, Ta = {
|
|
294
295
|
key: 0,
|
|
295
296
|
class: "points-loading"
|
|
296
|
-
},
|
|
297
|
+
}, za = {
|
|
297
298
|
key: 1,
|
|
298
299
|
class: "points-empty"
|
|
299
|
-
},
|
|
300
|
+
}, Aa = {
|
|
300
301
|
key: 2,
|
|
301
302
|
class: "points-package-grid"
|
|
302
|
-
},
|
|
303
|
+
}, Ea = ["onClick"], La = {
|
|
303
304
|
class: "points-package-name"
|
|
304
|
-
},
|
|
305
|
+
}, Ra = {
|
|
305
306
|
class: "points-package-value"
|
|
306
|
-
},
|
|
307
|
+
}, $a = {
|
|
307
308
|
class: "points-package-meta"
|
|
308
|
-
},
|
|
309
|
+
}, Ua = {
|
|
309
310
|
class: "points-pay-row"
|
|
310
|
-
},
|
|
311
|
+
}, Ba = {
|
|
311
312
|
key: 0
|
|
312
|
-
},
|
|
313
|
+
}, Ha = {
|
|
313
314
|
key: 1
|
|
314
|
-
},
|
|
315
|
+
}, Da = {
|
|
315
316
|
key: 1
|
|
316
|
-
},
|
|
317
|
+
}, Ya = {
|
|
317
318
|
key: 0,
|
|
318
319
|
class: "invoice-actions"
|
|
319
|
-
},
|
|
320
|
+
}, Ma = {
|
|
320
321
|
key: 1
|
|
321
|
-
},
|
|
322
|
+
}, Fa = {
|
|
322
323
|
class: "points-money-cell"
|
|
323
|
-
},
|
|
324
|
+
}, Va = {
|
|
324
325
|
class: "payment-wait-content"
|
|
325
|
-
},
|
|
326
|
+
}, ja = {
|
|
326
327
|
class: "payment-wait-summary"
|
|
327
|
-
},
|
|
328
|
+
}, qa = {
|
|
328
329
|
class: "payment-wait-icon"
|
|
329
|
-
},
|
|
330
|
+
}, Ka = {
|
|
330
331
|
class: "payment-wait-tip"
|
|
331
|
-
},
|
|
332
|
+
}, Ja = {
|
|
332
333
|
class: "payment-wait-actions"
|
|
333
|
-
},
|
|
334
|
+
}, Ga = /* @__PURE__ */ It({
|
|
334
335
|
__name: "PaySubscriptions",
|
|
335
336
|
emits: ["confirm", "cancel"],
|
|
336
|
-
setup(
|
|
337
|
+
setup(v, {
|
|
337
338
|
expose: _,
|
|
338
339
|
emit: p
|
|
339
340
|
}) {
|
|
340
341
|
const h = p, {
|
|
341
342
|
changeType: P,
|
|
342
|
-
show:
|
|
343
|
-
} =
|
|
343
|
+
show: x
|
|
344
|
+
} = Et(h), y = g("overview"), {
|
|
344
345
|
current: f,
|
|
345
|
-
entitlement:
|
|
346
|
-
quotas:
|
|
346
|
+
entitlement: R,
|
|
347
|
+
quotas: E,
|
|
347
348
|
pointsBalance: b,
|
|
348
|
-
pendingInvoice:
|
|
349
|
-
loading:
|
|
350
|
-
refresh:
|
|
351
|
-
} =
|
|
349
|
+
pendingInvoice: C,
|
|
350
|
+
loading: ge,
|
|
351
|
+
refresh: L
|
|
352
|
+
} = $t(), N = A(() => R.value), se = Tt(), ie = zt(), oe = At(), ye = g([]), le = g(!1), H = g({
|
|
352
353
|
current: 1,
|
|
353
354
|
pageSize: 10,
|
|
354
355
|
total: 0
|
|
355
|
-
}), M = g([]),
|
|
356
|
-
checking:
|
|
357
|
-
statusText:
|
|
358
|
-
startPolling:
|
|
359
|
-
stopPolling:
|
|
360
|
-
verifyNow:
|
|
361
|
-
} =
|
|
356
|
+
}), M = g([]), $ = g(""), re = g(!1), ue = g(!1), F = g(!1), O = g(null), {
|
|
357
|
+
checking: Le,
|
|
358
|
+
statusText: z,
|
|
359
|
+
startPolling: Re,
|
|
360
|
+
stopPolling: ce,
|
|
361
|
+
verifyNow: $e
|
|
362
|
+
} = Ee(), V = g(!1), _e = g([]), de = g(!1), D = g({
|
|
362
363
|
current: 1,
|
|
363
364
|
pageSize: 10,
|
|
364
365
|
total: 0
|
|
365
|
-
}),
|
|
366
|
+
}), we = g([]), pe = g(!1), Y = g({
|
|
366
367
|
current: 1,
|
|
367
368
|
pageSize: 10,
|
|
368
369
|
total: 0
|
|
369
|
-
}), ee = A(() => M.value.find((e) => e.id ===
|
|
370
|
+
}), ee = A(() => M.value.find((e) => e.id === $.value)), Ue = A(() => ge.value), Be = [{
|
|
370
371
|
dataIndex: "id",
|
|
371
372
|
slotName: "id",
|
|
372
373
|
title: "账单 ID",
|
|
@@ -427,7 +428,7 @@ const Ot = {
|
|
|
427
428
|
width: 190,
|
|
428
429
|
fixed: "right",
|
|
429
430
|
cellClassName: "invoice-actions-cell"
|
|
430
|
-
}],
|
|
431
|
+
}], He = [{
|
|
431
432
|
dataIndex: "packageName",
|
|
432
433
|
title: "套餐",
|
|
433
434
|
minWidth: 180
|
|
@@ -471,7 +472,7 @@ const Ot = {
|
|
|
471
472
|
width: 120,
|
|
472
473
|
fixed: "right",
|
|
473
474
|
cellClassName: "invoice-actions-cell"
|
|
474
|
-
}],
|
|
475
|
+
}], De = [{
|
|
475
476
|
dataIndex: "type",
|
|
476
477
|
slotName: "type",
|
|
477
478
|
title: "类型",
|
|
@@ -506,27 +507,25 @@ const Ot = {
|
|
|
506
507
|
title: "时间",
|
|
507
508
|
minWidth: 180
|
|
508
509
|
}];
|
|
509
|
-
function
|
|
510
|
-
|
|
511
|
-
return {
|
|
512
|
-
draft: "gray",
|
|
513
|
-
open: "orange",
|
|
514
|
-
paid: "green",
|
|
515
|
-
void: "gray",
|
|
516
|
-
uncollectible: "red"
|
|
517
|
-
}[t] || "gray";
|
|
510
|
+
function Ye(e) {
|
|
511
|
+
return se.getStatusColor(e);
|
|
518
512
|
}
|
|
519
|
-
function
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
}[t] || e;
|
|
513
|
+
function Me(e) {
|
|
514
|
+
return se.getStatusLabel(e);
|
|
515
|
+
}
|
|
516
|
+
function be(e) {
|
|
517
|
+
return ie.getStatusColor(e);
|
|
518
|
+
}
|
|
519
|
+
function he(e) {
|
|
520
|
+
return ie.getStatusLabel(e);
|
|
528
521
|
}
|
|
529
|
-
function
|
|
522
|
+
function Fe(e) {
|
|
523
|
+
return oe.getStatusColor(e);
|
|
524
|
+
}
|
|
525
|
+
function Ve(e) {
|
|
526
|
+
return oe.getStatusLabel(e);
|
|
527
|
+
}
|
|
528
|
+
function je(e) {
|
|
530
529
|
return e ? {
|
|
531
530
|
new_subscription: "新购",
|
|
532
531
|
upgrade: "升级",
|
|
@@ -535,37 +534,17 @@ const Ot = {
|
|
|
535
534
|
subscription: "订阅"
|
|
536
535
|
}[e] || e : "-";
|
|
537
536
|
}
|
|
538
|
-
function
|
|
539
|
-
return {
|
|
540
|
-
pending: "orange",
|
|
541
|
-
approved: "blue",
|
|
542
|
-
processing: "blue",
|
|
543
|
-
success: "green",
|
|
544
|
-
failed: "red",
|
|
545
|
-
rejected: "gray"
|
|
546
|
-
}[e] || "gray";
|
|
547
|
-
}
|
|
548
|
-
function _e(e) {
|
|
549
|
-
return {
|
|
550
|
-
pending: "审核中",
|
|
551
|
-
approved: "已通过",
|
|
552
|
-
processing: "退款中",
|
|
553
|
-
success: "已退款",
|
|
554
|
-
failed: "退款失败",
|
|
555
|
-
rejected: "已拒绝"
|
|
556
|
-
}[e] || e;
|
|
557
|
-
}
|
|
558
|
-
function we() {
|
|
537
|
+
function ke() {
|
|
559
538
|
var e;
|
|
560
539
|
return ((e = b.value) == null ? void 0 : e.totalPoints) ?? 0;
|
|
561
540
|
}
|
|
562
|
-
function
|
|
563
|
-
return
|
|
541
|
+
function Pe(e) {
|
|
542
|
+
return ke() >= e.totalPoints;
|
|
564
543
|
}
|
|
565
|
-
function
|
|
566
|
-
return `退款将原路退钱,并扣除 ${
|
|
544
|
+
function qe(e) {
|
|
545
|
+
return `退款将原路退钱,并扣除 ${I(e.totalPoints)} 积分。当前余额 ${I(ke())}。提交后将进入人工审核,确定申请退款吗?`;
|
|
567
546
|
}
|
|
568
|
-
function
|
|
547
|
+
function Ke(e) {
|
|
569
548
|
return {
|
|
570
549
|
day: "每天",
|
|
571
550
|
week: "每周",
|
|
@@ -574,30 +553,30 @@ const Ot = {
|
|
|
574
553
|
lifetime: "不重置"
|
|
575
554
|
}[e] || e;
|
|
576
555
|
}
|
|
577
|
-
function
|
|
578
|
-
const
|
|
579
|
-
day: `${
|
|
580
|
-
week: `${
|
|
581
|
-
month: `${
|
|
582
|
-
year: `${
|
|
556
|
+
function Se(e, t = 1) {
|
|
557
|
+
const m = t > 1 ? `每 ${t} ` : "按", w = {
|
|
558
|
+
day: `${m}天`,
|
|
559
|
+
week: `${m}周`,
|
|
560
|
+
month: `${m}月`,
|
|
561
|
+
year: `${m}年`
|
|
583
562
|
};
|
|
584
563
|
return e ? w[e] || e : "-";
|
|
585
564
|
}
|
|
586
|
-
function
|
|
565
|
+
function Je(e, t, m = 1) {
|
|
587
566
|
if (typeof e != "number") return "-";
|
|
588
|
-
const w =
|
|
567
|
+
const w = Se(t, m).replace("按", "").replace("每 ", "");
|
|
589
568
|
return `¥${(e / 100).toFixed(2)} / ${w}`;
|
|
590
569
|
}
|
|
591
|
-
function
|
|
570
|
+
function I(e) {
|
|
592
571
|
return Number(e || 0).toLocaleString();
|
|
593
572
|
}
|
|
594
|
-
function
|
|
595
|
-
return typeof e == "number" ?
|
|
573
|
+
function Ge(e) {
|
|
574
|
+
return typeof e == "number" ? I(e) : "-";
|
|
596
575
|
}
|
|
597
|
-
function
|
|
576
|
+
function Ce(e, t = !1) {
|
|
598
577
|
return typeof e != "number" ? "-" : `${t && e > 0 ? "+" : ""}¥${(e / 100).toFixed(2)}`;
|
|
599
578
|
}
|
|
600
|
-
function
|
|
579
|
+
function Qe(e) {
|
|
601
580
|
var w, G;
|
|
602
581
|
const t = (w = e.metadata) == null ? void 0 : w.billing;
|
|
603
582
|
if (((t == null ? void 0 : t.currency) || ((G = t == null ? void 0 : t.pricing) == null ? void 0 : G.currency)) === "USD") {
|
|
@@ -606,27 +585,7 @@ const Ot = {
|
|
|
606
585
|
}
|
|
607
586
|
return "CNY";
|
|
608
587
|
}
|
|
609
|
-
function
|
|
610
|
-
return {
|
|
611
|
-
pending: "orange",
|
|
612
|
-
paying: "blue",
|
|
613
|
-
paid: "green",
|
|
614
|
-
cancelled: "gray",
|
|
615
|
-
expired: "red",
|
|
616
|
-
refunded: "purple"
|
|
617
|
-
}[e] || "gray";
|
|
618
|
-
}
|
|
619
|
-
function Ke(e) {
|
|
620
|
-
return {
|
|
621
|
-
pending: "待支付",
|
|
622
|
-
paying: "支付中",
|
|
623
|
-
paid: "已支付",
|
|
624
|
-
cancelled: "已取消",
|
|
625
|
-
expired: "已过期",
|
|
626
|
-
refunded: "已退款"
|
|
627
|
-
}[e] || e;
|
|
628
|
-
}
|
|
629
|
-
function Je(e) {
|
|
588
|
+
function Xe(e) {
|
|
630
589
|
return {
|
|
631
590
|
earn: "green",
|
|
632
591
|
spend: "orange",
|
|
@@ -637,7 +596,7 @@ const Ot = {
|
|
|
637
596
|
adjust: "purple"
|
|
638
597
|
}[e] || "gray";
|
|
639
598
|
}
|
|
640
|
-
function
|
|
599
|
+
function Ze(e) {
|
|
641
600
|
return {
|
|
642
601
|
earn: "收入",
|
|
643
602
|
spend: "消费",
|
|
@@ -648,7 +607,7 @@ const Ot = {
|
|
|
648
607
|
adjust: "调整"
|
|
649
608
|
}[e] || e;
|
|
650
609
|
}
|
|
651
|
-
function
|
|
610
|
+
function et(e) {
|
|
652
611
|
return e ? {
|
|
653
612
|
recharge: "积分充值",
|
|
654
613
|
subscription: "订阅赠送",
|
|
@@ -666,61 +625,64 @@ const Ot = {
|
|
|
666
625
|
referral: "邀请奖励"
|
|
667
626
|
}[e] || e : "";
|
|
668
627
|
}
|
|
669
|
-
function
|
|
670
|
-
return e.priceName ||
|
|
628
|
+
function tt(e) {
|
|
629
|
+
return e.priceName || et(e.subType) || (e.orderId ? "关联订单" : "-");
|
|
671
630
|
}
|
|
672
|
-
function
|
|
673
|
-
|
|
631
|
+
function at() {
|
|
632
|
+
x.value = !1, h("cancel");
|
|
674
633
|
}
|
|
675
|
-
function
|
|
676
|
-
|
|
634
|
+
function ve() {
|
|
635
|
+
Bt();
|
|
636
|
+
}
|
|
637
|
+
async function nt() {
|
|
638
|
+
y.value = "invoices", await j();
|
|
677
639
|
}
|
|
678
|
-
async function
|
|
679
|
-
|
|
640
|
+
async function st() {
|
|
641
|
+
await Promise.all([se.statusOptionsApi(), ie.statusOptionsApi(), oe.statusOptionsApi()]);
|
|
680
642
|
}
|
|
681
|
-
async function
|
|
682
|
-
await
|
|
643
|
+
async function it() {
|
|
644
|
+
await L();
|
|
683
645
|
}
|
|
684
|
-
async function
|
|
685
|
-
e === "points" ? await Promise.all([
|
|
646
|
+
async function Ie(e) {
|
|
647
|
+
e === "points" ? await Promise.all([ot(), U()]) : e === "usage" ? await J() : e === "invoices" && await j();
|
|
686
648
|
}
|
|
687
|
-
async function
|
|
688
|
-
|
|
649
|
+
async function j() {
|
|
650
|
+
le.value = !0;
|
|
689
651
|
const {
|
|
690
652
|
data: e
|
|
691
653
|
} = await B.invoices.my.post({
|
|
692
654
|
current: H.value.current,
|
|
693
655
|
pageSize: H.value.pageSize
|
|
694
656
|
});
|
|
695
|
-
|
|
657
|
+
le.value = !1, e && (ye.value = e.items, H.value.total = e.count);
|
|
696
658
|
}
|
|
697
|
-
async function
|
|
698
|
-
|
|
659
|
+
async function ot() {
|
|
660
|
+
re.value = !0;
|
|
699
661
|
try {
|
|
700
662
|
const e = await K("/pointsRecharge/packages");
|
|
701
|
-
M.value = e.packages || [], M.value.length > 0 &&
|
|
663
|
+
M.value = e.packages || [], M.value.length > 0 && !$.value && ($.value = M.value[0].id);
|
|
702
664
|
} catch (e) {
|
|
703
|
-
|
|
665
|
+
S.error(e instanceof Error ? e.message : "加载充值套餐失败");
|
|
704
666
|
} finally {
|
|
705
|
-
|
|
667
|
+
re.value = !1;
|
|
706
668
|
}
|
|
707
669
|
}
|
|
708
670
|
async function U() {
|
|
709
|
-
|
|
671
|
+
de.value = !0;
|
|
710
672
|
try {
|
|
711
673
|
const e = await K("/pointsRecharge/orders", {
|
|
712
674
|
page: D.value.current,
|
|
713
675
|
pageSize: D.value.pageSize
|
|
714
676
|
});
|
|
715
|
-
|
|
677
|
+
_e.value = e.items || [], D.value.total = e.count || 0;
|
|
716
678
|
} catch (e) {
|
|
717
|
-
|
|
679
|
+
S.error(e instanceof Error ? e.message : "加载充值记录失败");
|
|
718
680
|
} finally {
|
|
719
|
-
|
|
681
|
+
de.value = !1;
|
|
720
682
|
}
|
|
721
683
|
}
|
|
722
684
|
async function J() {
|
|
723
|
-
|
|
685
|
+
pe.value = !0;
|
|
724
686
|
try {
|
|
725
687
|
const {
|
|
726
688
|
data: e
|
|
@@ -728,69 +690,69 @@ const Ot = {
|
|
|
728
690
|
page: Y.value.current,
|
|
729
691
|
pageSize: Y.value.pageSize
|
|
730
692
|
});
|
|
731
|
-
|
|
693
|
+
we.value = (e == null ? void 0 : e.items) || [], Y.value.total = (e == null ? void 0 : e.count) || 0;
|
|
732
694
|
} finally {
|
|
733
|
-
|
|
695
|
+
pe.value = !1;
|
|
734
696
|
}
|
|
735
697
|
}
|
|
736
|
-
async function
|
|
698
|
+
async function lt() {
|
|
737
699
|
var e;
|
|
738
|
-
if (
|
|
739
|
-
|
|
700
|
+
if ($.value) {
|
|
701
|
+
ue.value = !0, O.value = null, z.value = "";
|
|
740
702
|
try {
|
|
741
703
|
const t = await K("/pointsRecharge/createOrder", {
|
|
742
|
-
packageId:
|
|
704
|
+
packageId: $.value,
|
|
743
705
|
payType: "alipay"
|
|
744
706
|
});
|
|
745
|
-
t.alipayUrl ? (
|
|
707
|
+
t.alipayUrl ? (O.value = {
|
|
746
708
|
orderId: t.orderId,
|
|
747
709
|
packageName: ((e = ee.value) == null ? void 0 : e.name) || "积分充值",
|
|
748
710
|
priceYuan: t.priceYuan,
|
|
749
711
|
totalPoints: t.totalPoints
|
|
750
|
-
}, window.open(t.alipayUrl, "_blank", "noopener,noreferrer"),
|
|
712
|
+
}, window.open(t.alipayUrl, "_blank", "noopener,noreferrer"), F.value = !0, rt(t.orderId), await U()) : S.error("获取支付链接失败");
|
|
751
713
|
} catch (t) {
|
|
752
|
-
|
|
714
|
+
S.error(t instanceof Error ? t.message : "创建充值订单失败");
|
|
753
715
|
} finally {
|
|
754
|
-
|
|
716
|
+
ue.value = !1;
|
|
755
717
|
}
|
|
756
718
|
}
|
|
757
719
|
}
|
|
758
|
-
function
|
|
759
|
-
|
|
720
|
+
function rt(e) {
|
|
721
|
+
z.value = "等待支付确认...", Re({
|
|
760
722
|
scene: "recharge",
|
|
761
723
|
orderId: e,
|
|
762
724
|
onSuccess: async (t) => {
|
|
763
725
|
var w;
|
|
764
|
-
const
|
|
765
|
-
|
|
726
|
+
const m = t.pointsAdded || ((w = O.value) == null ? void 0 : w.totalPoints) || 0;
|
|
727
|
+
F.value = !1, O.value = null, z.value = "", S.success(`充值成功,已到账 ${I(m)} 积分`), await L(), await U(), await J();
|
|
766
728
|
},
|
|
767
729
|
onWaiting: (t) => {
|
|
768
|
-
|
|
730
|
+
z.value = t.message || "等待支付确认...";
|
|
769
731
|
},
|
|
770
732
|
onError: (t) => {
|
|
771
|
-
|
|
733
|
+
z.value = t instanceof Error ? t.message : "查询支付状态失败";
|
|
772
734
|
}
|
|
773
735
|
});
|
|
774
736
|
}
|
|
775
|
-
async function
|
|
737
|
+
async function ut() {
|
|
776
738
|
var e, t;
|
|
777
|
-
if ((e =
|
|
739
|
+
if ((e = O.value) != null && e.orderId)
|
|
778
740
|
try {
|
|
779
|
-
const
|
|
780
|
-
if (
|
|
781
|
-
const w =
|
|
782
|
-
|
|
741
|
+
const m = await $e("recharge", O.value.orderId);
|
|
742
|
+
if (m.success) {
|
|
743
|
+
const w = m.pointsAdded || ((t = O.value) == null ? void 0 : t.totalPoints) || 0;
|
|
744
|
+
ce(), F.value = !1, O.value = null, z.value = "", S.success(`充值成功,已到账 ${I(w)} 积分`), await L(), await U(), await J();
|
|
783
745
|
return;
|
|
784
746
|
}
|
|
785
|
-
|
|
786
|
-
} catch (
|
|
787
|
-
|
|
747
|
+
z.value = m.message || "等待支付确认...";
|
|
748
|
+
} catch (m) {
|
|
749
|
+
z.value = m instanceof Error ? m.message : "查询支付状态失败";
|
|
788
750
|
}
|
|
789
751
|
}
|
|
790
|
-
function
|
|
791
|
-
|
|
752
|
+
function xe() {
|
|
753
|
+
ce(), F.value = !1, O.value = null, z.value = "", U();
|
|
792
754
|
}
|
|
793
|
-
async function
|
|
755
|
+
async function ct(e) {
|
|
794
756
|
const {
|
|
795
757
|
data: t
|
|
796
758
|
} = await B.invoices.pay.post({
|
|
@@ -798,7 +760,7 @@ const Ot = {
|
|
|
798
760
|
});
|
|
799
761
|
t != null && t.alipayUrl && window.open(t.alipayUrl, "_blank", "noopener,noreferrer");
|
|
800
762
|
}
|
|
801
|
-
async function
|
|
763
|
+
async function dt(e) {
|
|
802
764
|
const {
|
|
803
765
|
error: t
|
|
804
766
|
} = await B.invoices.cancel.post({
|
|
@@ -806,46 +768,46 @@ const Ot = {
|
|
|
806
768
|
reason: "用户取消待支付订阅账单"
|
|
807
769
|
});
|
|
808
770
|
if (t) {
|
|
809
|
-
|
|
771
|
+
S.error(t.message || "取消账单失败");
|
|
810
772
|
return;
|
|
811
773
|
}
|
|
812
|
-
|
|
774
|
+
S.success("账单已取消"), await L(), await j();
|
|
813
775
|
}
|
|
814
|
-
async function
|
|
815
|
-
if (
|
|
816
|
-
|
|
776
|
+
async function pt(e) {
|
|
777
|
+
if (V.value) return;
|
|
778
|
+
V.value = !0;
|
|
817
779
|
const {
|
|
818
780
|
error: t
|
|
819
781
|
} = await B.refund.applySubscription.post({
|
|
820
782
|
invoiceId: e.id,
|
|
821
783
|
reason: "用户申请订阅退款"
|
|
822
784
|
});
|
|
823
|
-
if (
|
|
824
|
-
|
|
785
|
+
if (V.value = !1, t) {
|
|
786
|
+
S.error(t.message || "申请退款失败");
|
|
825
787
|
return;
|
|
826
788
|
}
|
|
827
|
-
|
|
789
|
+
S.success("退款申请已提交,等待人工审核"), await L(), await j();
|
|
828
790
|
}
|
|
829
|
-
async function
|
|
830
|
-
if (!
|
|
831
|
-
if (!
|
|
832
|
-
|
|
791
|
+
async function vt(e) {
|
|
792
|
+
if (!V.value) {
|
|
793
|
+
if (!Pe(e)) {
|
|
794
|
+
S.warning("账户积分不足,无法退款");
|
|
833
795
|
return;
|
|
834
796
|
}
|
|
835
|
-
|
|
797
|
+
V.value = !0;
|
|
836
798
|
try {
|
|
837
799
|
await K("/refund/apply", {
|
|
838
800
|
orderId: e.id,
|
|
839
801
|
reason: "用户申请充值退款"
|
|
840
|
-
}),
|
|
802
|
+
}), S.success("退款申请已提交,等待人工审核"), await L(), await U();
|
|
841
803
|
} catch (t) {
|
|
842
|
-
|
|
804
|
+
S.error(t instanceof Error ? t.message : "申请退款失败");
|
|
843
805
|
} finally {
|
|
844
|
-
|
|
806
|
+
V.value = !1;
|
|
845
807
|
}
|
|
846
808
|
}
|
|
847
809
|
}
|
|
848
|
-
async function
|
|
810
|
+
async function mt() {
|
|
849
811
|
if (!f.value) return;
|
|
850
812
|
const {
|
|
851
813
|
error: e
|
|
@@ -853,74 +815,75 @@ const Ot = {
|
|
|
853
815
|
subscriptionId: f.value.id,
|
|
854
816
|
cancelAtPeriodEnd: !0
|
|
855
817
|
});
|
|
856
|
-
e || await
|
|
818
|
+
e || await L();
|
|
857
819
|
}
|
|
858
|
-
async function
|
|
820
|
+
async function ft() {
|
|
859
821
|
if (!f.value) return;
|
|
860
822
|
const {
|
|
861
823
|
error: e
|
|
862
824
|
} = await B.subscriptions.resume.post({
|
|
863
825
|
subscriptionId: f.value.id
|
|
864
826
|
});
|
|
865
|
-
e || await
|
|
827
|
+
e || await L();
|
|
866
828
|
}
|
|
867
|
-
function
|
|
868
|
-
H.value.current = e,
|
|
829
|
+
function gt(e) {
|
|
830
|
+
H.value.current = e, j();
|
|
869
831
|
}
|
|
870
|
-
function
|
|
871
|
-
H.value.pageSize = e, H.value.current = 1,
|
|
832
|
+
function yt(e) {
|
|
833
|
+
H.value.pageSize = e, H.value.current = 1, j();
|
|
872
834
|
}
|
|
873
|
-
function
|
|
835
|
+
function _t(e) {
|
|
874
836
|
D.value.current = e, U();
|
|
875
837
|
}
|
|
876
|
-
function
|
|
838
|
+
function wt(e) {
|
|
877
839
|
D.value.pageSize = e, D.value.current = 1, U();
|
|
878
840
|
}
|
|
879
|
-
function
|
|
841
|
+
function bt(e) {
|
|
880
842
|
Y.value.current = e, J();
|
|
881
843
|
}
|
|
882
|
-
function
|
|
844
|
+
function ht(e) {
|
|
883
845
|
Y.value.pageSize = e, Y.value.current = 1, J();
|
|
884
846
|
}
|
|
885
|
-
function
|
|
847
|
+
function kt(e) {
|
|
886
848
|
return (e == null ? void 0 : e.target) === "points" ? "points" : (e == null ? void 0 : e.target) === "usage" ? "usage" : (e == null ? void 0 : e.target) === "invoices" || (e == null ? void 0 : e.target) === "subscriptions" ? "invoices" : ((e == null ? void 0 : e.target) === "quotas", "overview");
|
|
887
849
|
}
|
|
888
|
-
function
|
|
889
|
-
|
|
850
|
+
function Pt(e) {
|
|
851
|
+
Ie(String(e));
|
|
890
852
|
}
|
|
891
|
-
function
|
|
892
|
-
|
|
853
|
+
function St(e, t) {
|
|
854
|
+
x.value = t, P.value = "编辑", y.value = kt(e), t && (st(), it(), Ie(y.value));
|
|
893
855
|
}
|
|
894
|
-
return
|
|
895
|
-
|
|
856
|
+
return Ae(() => {
|
|
857
|
+
ce();
|
|
896
858
|
}), _({
|
|
897
|
-
setData:
|
|
898
|
-
}), (e, t) => (l(), r(Q, null, [u(n(
|
|
899
|
-
visible: n(
|
|
900
|
-
"onUpdate:visible": t[1] || (t[1] = (
|
|
859
|
+
setData: St
|
|
860
|
+
}), (e, t) => (l(), r(Q, null, [u(n(We), {
|
|
861
|
+
visible: n(x),
|
|
862
|
+
"onUpdate:visible": t[1] || (t[1] = (m) => xt(x) ? x.value = m : null),
|
|
901
863
|
loading: !1,
|
|
902
864
|
"body-class": "SubscriptionsbodyClass",
|
|
903
865
|
"mask-closable": !1,
|
|
904
866
|
footer: !1,
|
|
905
|
-
width: n(
|
|
906
|
-
|
|
867
|
+
width: n(Ct),
|
|
868
|
+
"unmount-on-close": "",
|
|
869
|
+
onCancel: at
|
|
907
870
|
}, {
|
|
908
871
|
title: s(() => [...t[3] || (t[3] = [d(" 订阅与积分 ", -1)])]),
|
|
909
872
|
default: s(() => {
|
|
910
|
-
var
|
|
911
|
-
return [a("div",
|
|
873
|
+
var m, w, G;
|
|
874
|
+
return [a("div", Yt, [N.value ? (l(), r("div", Mt, [a("div", Ft, [a("div", Vt, [a("h3", null, o(N.value.productName), 1)]), a("div", jt, [N.value.type === "trial" ? (l(), q(n(k), {
|
|
912
875
|
key: 0,
|
|
913
876
|
type: "primary",
|
|
914
877
|
size: "small",
|
|
915
|
-
onClick:
|
|
878
|
+
onClick: ve
|
|
916
879
|
}, {
|
|
917
880
|
default: s(() => [...t[4] || (t[4] = [d(" 立即订阅 ", -1)])]),
|
|
918
881
|
_: 1
|
|
919
|
-
})) : (
|
|
882
|
+
})) : (m = n(f)) != null && m.cancelAtPeriodEnd ? (l(), q(n(k), {
|
|
920
883
|
key: 1,
|
|
921
884
|
type: "primary",
|
|
922
885
|
size: "small",
|
|
923
|
-
onClick:
|
|
886
|
+
onClick: ft
|
|
924
887
|
}, {
|
|
925
888
|
default: s(() => [...t[5] || (t[5] = [d(" 恢复订阅 ", -1)])]),
|
|
926
889
|
_: 1
|
|
@@ -929,13 +892,13 @@ const Ot = {
|
|
|
929
892
|
}, [u(n(k), {
|
|
930
893
|
type: "primary",
|
|
931
894
|
size: "small",
|
|
932
|
-
onClick:
|
|
895
|
+
onClick: ve
|
|
933
896
|
}, {
|
|
934
897
|
default: s(() => [...t[6] || (t[6] = [d(" 修改订阅 ", -1)])]),
|
|
935
898
|
_: 1
|
|
936
899
|
}), u(n(ae), {
|
|
937
900
|
content: "取消后订阅将在当前周期结束时失效,确定取消吗?",
|
|
938
|
-
onOk:
|
|
901
|
+
onOk: mt
|
|
939
902
|
}, {
|
|
940
903
|
default: s(() => [u(n(k), {
|
|
941
904
|
type: "outline",
|
|
@@ -946,40 +909,40 @@ const Ot = {
|
|
|
946
909
|
_: 1
|
|
947
910
|
})]),
|
|
948
911
|
_: 1
|
|
949
|
-
})], 64)) : T("", !0)])]), a("div",
|
|
912
|
+
})], 64)) : T("", !0)])]), a("div", qt, [n(f) ? (l(), r("div", Kt, [t[8] || (t[8] = a("span", {
|
|
950
913
|
class: "label"
|
|
951
|
-
}, "价格方案:", -1)), a("span", null, o(N.value.productName), 1)])) : T("", !0), n(f) ? (l(), r("div",
|
|
914
|
+
}, "价格方案:", -1)), a("span", null, o(N.value.productName), 1)])) : T("", !0), n(f) ? (l(), r("div", Jt, [t[9] || (t[9] = a("span", {
|
|
952
915
|
class: "label"
|
|
953
|
-
}, "计费周期:", -1)), a("span", null, o(
|
|
916
|
+
}, "计费周期:", -1)), a("span", null, o(Se(n(f).interval, n(f).intervalCount)), 1)])) : T("", !0), n(f) ? (l(), r("div", Gt, [t[10] || (t[10] = a("span", {
|
|
954
917
|
class: "label"
|
|
955
|
-
}, "价格:", -1)), a("span", null, o(
|
|
918
|
+
}, "价格:", -1)), a("span", null, o(Je(n(f).unitAmount, n(f).interval, n(f).intervalCount)), 1)])) : T("", !0), N.value.endAt ? (l(), r("div", Qt, [a("span", Xt, o(N.value.type === "trial" ? "试用有效期至:" : "当前周期结束:"), 1), a("span", null, o(N.value.endAt), 1)])) : T("", !0), (w = n(f)) != null && w.cancelAtPeriodEnd ? (l(), r("div", Zt, [...t[11] || (t[11] = [a("span", {
|
|
956
919
|
class: "label"
|
|
957
|
-
}, "订阅将于周期结束后停止", -1)])])) : (G = n(f)) != null && G.pendingChange ? (l(), r("div",
|
|
920
|
+
}, "订阅将于周期结束后停止", -1)])])) : (G = n(f)) != null && G.pendingChange ? (l(), r("div", ea, [t[12] || (t[12] = a("span", {
|
|
958
921
|
class: "label"
|
|
959
|
-
}, "到期后变更为:", -1)), a("span", null, o(n(f).pendingChange.productName || "新方案"), 1)])) : T("", !0), n(b) ? (l(), r("div",
|
|
922
|
+
}, "到期后变更为:", -1)), a("span", null, o(n(f).pendingChange.productName || "新方案"), 1)])) : T("", !0), n(b) ? (l(), r("div", ta, [t[13] || (t[13] = a("span", {
|
|
960
923
|
class: "label"
|
|
961
|
-
}, "积分余额:", -1)), a("span", null, o(n(b).totalPoints), 1)])) : T("", !0)]), n(
|
|
924
|
+
}, "积分余额:", -1)), a("span", null, o(n(b).totalPoints), 1)])) : T("", !0)]), n(C) ? (l(), r("div", aa, [t[15] || (t[15] = a("div", null, [a("strong", null, "存在待支付订阅账单"), a("span", null, "可继续支付,也可取消后重新选择方案。")], -1)), u(n(k), {
|
|
962
925
|
type: "primary",
|
|
963
926
|
status: "warning",
|
|
964
927
|
size: "small",
|
|
965
|
-
onClick:
|
|
928
|
+
onClick: nt
|
|
966
929
|
}, {
|
|
967
930
|
default: s(() => [...t[14] || (t[14] = [d(" 处理 ", -1)])]),
|
|
968
931
|
_: 1
|
|
969
|
-
})])) : T("", !0)])) : (l(), r("div",
|
|
932
|
+
})])) : T("", !0)])) : (l(), r("div", na, [t[17] || (t[17] = a("span", {
|
|
970
933
|
class: "no-subscription-text"
|
|
971
934
|
}, "暂无方案", -1)), u(n(k), {
|
|
972
935
|
type: "primary",
|
|
973
936
|
size: "small",
|
|
974
|
-
onClick:
|
|
937
|
+
onClick: ve
|
|
975
938
|
}, {
|
|
976
939
|
default: s(() => [...t[16] || (t[16] = [d("查看价格方案", -1)])]),
|
|
977
940
|
_: 1
|
|
978
|
-
})])), u(n(
|
|
941
|
+
})])), u(n(Nt), {
|
|
979
942
|
"active-key": y.value,
|
|
980
943
|
"onUpdate:activeKey": t[0] || (t[0] = (i) => y.value = i),
|
|
981
944
|
class: "subscription-tabs",
|
|
982
|
-
onChange:
|
|
945
|
+
onChange: Pt
|
|
983
946
|
}, {
|
|
984
947
|
default: s(() => [u(n(ne), {
|
|
985
948
|
key: "overview",
|
|
@@ -987,84 +950,84 @@ const Ot = {
|
|
|
987
950
|
}, {
|
|
988
951
|
default: s(() => {
|
|
989
952
|
var i, c, te;
|
|
990
|
-
return [a("div",
|
|
953
|
+
return [a("div", sa, [a("div", ia, [t[18] || (t[18] = a("div", {
|
|
991
954
|
class: "overview-card__label"
|
|
992
|
-
}, "当前权益", -1)), a("div",
|
|
955
|
+
}, "当前权益", -1)), a("div", oa, o(((i = N.value) == null ? void 0 : i.productName) || "暂无方案"), 1), (c = N.value) != null && c.endAt ? (l(), r("div", la, o(N.value.type === "trial" ? "试用有效期至" : "当前周期结束") + ":" + o(N.value.endAt), 1)) : T("", !0)]), a("div", ra, [t[19] || (t[19] = a("div", {
|
|
993
956
|
class: "overview-card__label"
|
|
994
|
-
}, "积分余额", -1)), a("div",
|
|
957
|
+
}, "积分余额", -1)), a("div", ua, o(I(((te = n(b)) == null ? void 0 : te.totalPoints) || 0)), 1), t[20] || (t[20] = a("div", {
|
|
995
958
|
class: "overview-card__meta"
|
|
996
|
-
}, "用于 AI 模型调用和按量服务消费", -1))]), a("div",
|
|
959
|
+
}, "用于 AI 模型调用和按量服务消费", -1))]), a("div", ca, [t[21] || (t[21] = a("div", {
|
|
997
960
|
class: "overview-card__label"
|
|
998
|
-
}, "待支付订阅账单", -1)), a("div",
|
|
961
|
+
}, "待支付订阅账单", -1)), a("div", da, o(n(C) ? `¥${(n(C).total / 100).toFixed(2)}` : "无"), 1), t[22] || (t[22] = a("div", {
|
|
999
962
|
class: "overview-card__meta"
|
|
1000
|
-
}, "仅包含订阅方案产生的待支付账单", -1))])]),
|
|
963
|
+
}, "仅包含订阅方案产生的待支付账单", -1))])]), Ue.value ? (l(), r("div", pa, [u(n(me))])) : n(E).length === 0 ? (l(), r("div", va, [u(n(Te), {
|
|
1001
964
|
description: "暂无配额限制"
|
|
1002
|
-
})])) : (l(), r("div",
|
|
965
|
+
})])) : (l(), r("div", ma, [(l(!0), r(Q, null, Ne(n(E), (W) => (l(), r("div", {
|
|
1003
966
|
key: W.featureKey,
|
|
1004
967
|
class: "quota-card"
|
|
1005
|
-
}, [a("div",
|
|
968
|
+
}, [a("div", fa, [a("span", ga, o(W.name), 1), a("span", ya, o(Ke(W.period)), 1)]), a("div", _a, [u(n(Ot), {
|
|
1006
969
|
percent: W.percentage,
|
|
1007
970
|
status: W.percentage >= 90 ? "danger" : W.percentage >= 70 ? "warning" : "normal"
|
|
1008
|
-
}, null, 8, ["percent", "status"])]), a("div",
|
|
971
|
+
}, null, 8, ["percent", "status"])]), a("div", wa, [W.unlimited ? (l(), r("span", ba, "无限制")) : (l(), r("span", ha, "已使用 " + o(W.used) + " / " + o(W.limit), 1)), W.resetsAt ? (l(), r("span", ka, o(W.resetsAt) + " 重置", 1)) : T("", !0)])]))), 128))]))];
|
|
1009
972
|
}),
|
|
1010
973
|
_: 1
|
|
1011
974
|
}), u(n(ne), {
|
|
1012
975
|
key: "invoices",
|
|
1013
976
|
title: "订阅账单"
|
|
1014
977
|
}, {
|
|
1015
|
-
default: s(() => [u(
|
|
1016
|
-
columns:
|
|
1017
|
-
data:
|
|
1018
|
-
loading:
|
|
978
|
+
default: s(() => [u(fe, {
|
|
979
|
+
columns: Be,
|
|
980
|
+
data: ye.value,
|
|
981
|
+
loading: le.value,
|
|
1019
982
|
pagination: H.value,
|
|
1020
|
-
onPageChange:
|
|
1021
|
-
onPageSizeChange:
|
|
983
|
+
onPageChange: gt,
|
|
984
|
+
onPageSizeChange: yt
|
|
1022
985
|
}, {
|
|
1023
986
|
id: s(({
|
|
1024
987
|
record: i
|
|
1025
988
|
}) => [a("span", {
|
|
1026
989
|
class: "copyable-id mono-value",
|
|
1027
990
|
title: i.id
|
|
1028
|
-
}, [a("span", null, o(i.id), 1), u(
|
|
991
|
+
}, [a("span", null, o(i.id), 1), u(Lt, {
|
|
1029
992
|
value: i.id,
|
|
1030
993
|
message: "账单 ID 已复制"
|
|
1031
|
-
}, null, 8, ["value"])], 8,
|
|
994
|
+
}, null, 8, ["value"])], 8, Pa)]),
|
|
1032
995
|
status: s(({
|
|
1033
996
|
record: i
|
|
1034
997
|
}) => [u(n(X), {
|
|
1035
|
-
color:
|
|
998
|
+
color: Ye(i.status)
|
|
1036
999
|
}, {
|
|
1037
|
-
default: s(() => [d(o(
|
|
1000
|
+
default: s(() => [d(o(Me(i.status)), 1)]),
|
|
1038
1001
|
_: 2
|
|
1039
1002
|
}, 1032, ["color"])]),
|
|
1040
1003
|
billingType: s(({
|
|
1041
1004
|
record: i
|
|
1042
|
-
}) => [d(o(
|
|
1005
|
+
}) => [d(o(je(i.billingType)), 1)]),
|
|
1043
1006
|
refund: s(({
|
|
1044
1007
|
record: i
|
|
1045
1008
|
}) => [i.refund ? (l(), q(n(X), {
|
|
1046
1009
|
key: 0,
|
|
1047
|
-
color:
|
|
1010
|
+
color: be(i.refund.status)
|
|
1048
1011
|
}, {
|
|
1049
|
-
default: s(() => [d(o(
|
|
1012
|
+
default: s(() => [d(o(he(i.refund.status)), 1)]),
|
|
1050
1013
|
_: 2
|
|
1051
|
-
}, 1032, ["color"])) : (l(), r("span",
|
|
1014
|
+
}, 1032, ["color"])) : (l(), r("span", Sa, "-"))]),
|
|
1052
1015
|
total: s(({
|
|
1053
1016
|
record: i
|
|
1054
1017
|
}) => [d(" ¥" + o((i.total / 100).toFixed(2)), 1)]),
|
|
1055
1018
|
actions: s(({
|
|
1056
1019
|
record: i
|
|
1057
|
-
}) => [i.status === "open" ? (l(), r("div",
|
|
1020
|
+
}) => [i.status === "open" ? (l(), r("div", Ca, [u(n(k), {
|
|
1058
1021
|
type: "primary",
|
|
1059
1022
|
status: "warning",
|
|
1060
1023
|
size: "small",
|
|
1061
|
-
onClick: (c) =>
|
|
1024
|
+
onClick: (c) => ct(i)
|
|
1062
1025
|
}, {
|
|
1063
1026
|
default: s(() => [...t[23] || (t[23] = [d(" 去支付 ", -1)])]),
|
|
1064
1027
|
_: 1
|
|
1065
1028
|
}, 8, ["onClick"]), u(n(ae), {
|
|
1066
1029
|
content: "取消后可重新发起支付,订阅方案不会变更。确定取消吗?",
|
|
1067
|
-
onOk: (c) =>
|
|
1030
|
+
onOk: (c) => dt(i)
|
|
1068
1031
|
}, {
|
|
1069
1032
|
default: s(() => [u(n(k), {
|
|
1070
1033
|
type: "secondary",
|
|
@@ -1075,9 +1038,9 @@ const Ot = {
|
|
|
1075
1038
|
_: 1
|
|
1076
1039
|
})]),
|
|
1077
1040
|
_: 1
|
|
1078
|
-
}, 8, ["onOk"])])) : i.status === "paid" && !i.refund ? (l(), r("div",
|
|
1041
|
+
}, 8, ["onOk"])])) : i.status === "paid" && !i.refund ? (l(), r("div", Ia, [u(n(ae), {
|
|
1079
1042
|
content: "提交后将进入人工审核,审核通过后原路退款。确定申请退款吗?",
|
|
1080
|
-
onOk: (c) =>
|
|
1043
|
+
onOk: (c) => pt(i)
|
|
1081
1044
|
}, {
|
|
1082
1045
|
default: s(() => [u(n(k), {
|
|
1083
1046
|
type: "secondary",
|
|
@@ -1087,7 +1050,7 @@ const Ot = {
|
|
|
1087
1050
|
_: 1
|
|
1088
1051
|
})]),
|
|
1089
1052
|
_: 1
|
|
1090
|
-
}, 8, ["onOk"])])) : (l(), r("span",
|
|
1053
|
+
}, 8, ["onOk"])])) : (l(), r("span", xa, "-"))]),
|
|
1091
1054
|
_: 1
|
|
1092
1055
|
}, 8, ["data", "loading", "pagination"])]),
|
|
1093
1056
|
_: 1
|
|
@@ -1097,76 +1060,76 @@ const Ot = {
|
|
|
1097
1060
|
}, {
|
|
1098
1061
|
default: s(() => {
|
|
1099
1062
|
var i;
|
|
1100
|
-
return [a("div",
|
|
1063
|
+
return [a("div", Na, [a("div", Oa, [a("div", null, [t[26] || (t[26] = a("div", {
|
|
1101
1064
|
class: "points-balance-label"
|
|
1102
|
-
}, "当前积分余额", -1)), a("div",
|
|
1065
|
+
}, "当前积分余额", -1)), a("div", Wa, o(I(((i = n(b)) == null ? void 0 : i.totalPoints) || 0)), 1), t[27] || (t[27] = a("div", {
|
|
1103
1066
|
class: "points-balance-tip"
|
|
1104
1067
|
}, "充值后实时到账。退款需账户积分不少于该单充值积分。", -1))]), u(n(k), {
|
|
1105
|
-
loading: n(
|
|
1106
|
-
onClick: n(
|
|
1068
|
+
loading: n(ge),
|
|
1069
|
+
onClick: n(L)
|
|
1107
1070
|
}, {
|
|
1108
1071
|
default: s(() => [...t[28] || (t[28] = [d("刷新余额", -1)])]),
|
|
1109
1072
|
_: 1
|
|
1110
1073
|
}, 8, ["loading", "onClick"])]), t[32] || (t[32] = a("div", {
|
|
1111
1074
|
class: "points-section-header"
|
|
1112
|
-
}, [a("h4", null, "充值套餐")], -1)),
|
|
1075
|
+
}, [a("h4", null, "充值套餐")], -1)), re.value ? (l(), r("div", Ta, [u(n(me))])) : M.value.length === 0 ? (l(), r("div", za, [u(n(Te), {
|
|
1113
1076
|
description: "暂无充值套餐"
|
|
1114
|
-
})])) : (l(), r("div",
|
|
1077
|
+
})])) : (l(), r("div", Aa, [(l(!0), r(Q, null, Ne(M.value, (c) => (l(), r("button", {
|
|
1115
1078
|
key: c.id,
|
|
1116
1079
|
type: "button",
|
|
1117
|
-
class:
|
|
1118
|
-
"points-package--selected":
|
|
1080
|
+
class: Oe(["points-package", {
|
|
1081
|
+
"points-package--selected": $.value === c.id
|
|
1119
1082
|
}]),
|
|
1120
|
-
onClick: (te) =>
|
|
1121
|
-
}, [a("span",
|
|
1083
|
+
onClick: (te) => $.value = c.id
|
|
1084
|
+
}, [a("span", La, o(c.name), 1), a("span", Ra, o(I(c.totalPoints)) + " 积分", 1), a("span", $a, [d(" ¥" + o(c.priceYuan) + " ", 1), c.bonus > 0 ? (l(), r(Q, {
|
|
1122
1085
|
key: 0
|
|
1123
|
-
}, [d(" · 赠送 " + o(
|
|
1086
|
+
}, [d(" · 赠送 " + o(I(c.bonus)), 1)], 64)) : T("", !0)])], 10, Ea))), 128))])), a("div", Ua, [ee.value ? (l(), r("span", Ba, " 应付 ¥" + o(ee.value.priceYuan) + ",获得 " + o(I(ee.value.totalPoints)) + " 积分 ", 1)) : (l(), r("span", Ha, "请选择充值套餐")), u(n(k), {
|
|
1124
1087
|
type: "primary",
|
|
1125
|
-
loading:
|
|
1126
|
-
disabled:
|
|
1127
|
-
onClick:
|
|
1088
|
+
loading: ue.value,
|
|
1089
|
+
disabled: !$.value,
|
|
1090
|
+
onClick: lt
|
|
1128
1091
|
}, {
|
|
1129
1092
|
default: s(() => [...t[29] || (t[29] = [d(" 立即充值 ", -1)])]),
|
|
1130
1093
|
_: 1
|
|
1131
1094
|
}, 8, ["loading", "disabled"])]), t[33] || (t[33] = a("div", {
|
|
1132
1095
|
class: "points-section-header"
|
|
1133
|
-
}, [a("h4", null, "充值记录")], -1)), u(
|
|
1134
|
-
columns:
|
|
1135
|
-
data:
|
|
1136
|
-
loading:
|
|
1096
|
+
}, [a("h4", null, "充值记录")], -1)), u(fe, {
|
|
1097
|
+
columns: He,
|
|
1098
|
+
data: _e.value,
|
|
1099
|
+
loading: de.value,
|
|
1137
1100
|
pagination: D.value,
|
|
1138
|
-
onPageChange:
|
|
1139
|
-
onPageSizeChange:
|
|
1101
|
+
onPageChange: _t,
|
|
1102
|
+
onPageSizeChange: wt
|
|
1140
1103
|
}, {
|
|
1141
1104
|
price: s(({
|
|
1142
1105
|
record: c
|
|
1143
1106
|
}) => [d(" ¥" + o(c.priceYuan), 1)]),
|
|
1144
1107
|
points: s(({
|
|
1145
1108
|
record: c
|
|
1146
|
-
}) => [d(o(
|
|
1109
|
+
}) => [d(o(I(c.totalPoints)), 1)]),
|
|
1147
1110
|
status: s(({
|
|
1148
1111
|
record: c
|
|
1149
1112
|
}) => [u(n(X), {
|
|
1150
|
-
color:
|
|
1113
|
+
color: Fe(c.status)
|
|
1151
1114
|
}, {
|
|
1152
|
-
default: s(() => [d(o(
|
|
1115
|
+
default: s(() => [d(o(Ve(c.status)), 1)]),
|
|
1153
1116
|
_: 2
|
|
1154
1117
|
}, 1032, ["color"])]),
|
|
1155
1118
|
refund: s(({
|
|
1156
1119
|
record: c
|
|
1157
1120
|
}) => [c.refund ? (l(), q(n(X), {
|
|
1158
1121
|
key: 0,
|
|
1159
|
-
color:
|
|
1122
|
+
color: be(c.refund.status)
|
|
1160
1123
|
}, {
|
|
1161
|
-
default: s(() => [d(o(
|
|
1124
|
+
default: s(() => [d(o(he(c.refund.status)), 1)]),
|
|
1162
1125
|
_: 2
|
|
1163
|
-
}, 1032, ["color"])) : (l(), r("span",
|
|
1126
|
+
}, 1032, ["color"])) : (l(), r("span", Da, "-"))]),
|
|
1164
1127
|
actions: s(({
|
|
1165
1128
|
record: c
|
|
1166
|
-
}) => [c.status === "paid" && !c.refund ? (l(), r("div",
|
|
1129
|
+
}) => [c.status === "paid" && !c.refund ? (l(), r("div", Ya, [Pe(c) ? (l(), q(n(ae), {
|
|
1167
1130
|
key: 0,
|
|
1168
|
-
content:
|
|
1169
|
-
onOk: (te) =>
|
|
1131
|
+
content: qe(c),
|
|
1132
|
+
onOk: (te) => vt(c)
|
|
1170
1133
|
}, {
|
|
1171
1134
|
default: s(() => [u(n(k), {
|
|
1172
1135
|
type: "secondary",
|
|
@@ -1176,7 +1139,7 @@ const Ot = {
|
|
|
1176
1139
|
_: 1
|
|
1177
1140
|
})]),
|
|
1178
1141
|
_: 1
|
|
1179
|
-
}, 8, ["content", "onOk"])) : (l(), q(n(
|
|
1142
|
+
}, 8, ["content", "onOk"])) : (l(), q(n(Wt), {
|
|
1180
1143
|
key: 1,
|
|
1181
1144
|
content: "账户积分不足,无法退款"
|
|
1182
1145
|
}, {
|
|
@@ -1189,7 +1152,7 @@ const Ot = {
|
|
|
1189
1152
|
_: 1
|
|
1190
1153
|
})]),
|
|
1191
1154
|
_: 1
|
|
1192
|
-
}))])) : (l(), r("span",
|
|
1155
|
+
}))])) : (l(), r("span", Ma, "-"))]),
|
|
1193
1156
|
_: 1
|
|
1194
1157
|
}, 8, ["data", "loading", "pagination"])])];
|
|
1195
1158
|
}),
|
|
@@ -1198,39 +1161,39 @@ const Ot = {
|
|
|
1198
1161
|
key: "usage",
|
|
1199
1162
|
title: "积分流水"
|
|
1200
1163
|
}, {
|
|
1201
|
-
default: s(() => [u(
|
|
1202
|
-
columns:
|
|
1203
|
-
data:
|
|
1204
|
-
loading:
|
|
1164
|
+
default: s(() => [u(fe, {
|
|
1165
|
+
columns: De,
|
|
1166
|
+
data: we.value,
|
|
1167
|
+
loading: pe.value,
|
|
1205
1168
|
pagination: Y.value,
|
|
1206
|
-
onPageChange:
|
|
1207
|
-
onPageSizeChange:
|
|
1169
|
+
onPageChange: bt,
|
|
1170
|
+
onPageSizeChange: ht
|
|
1208
1171
|
}, {
|
|
1209
1172
|
type: s(({
|
|
1210
1173
|
record: i
|
|
1211
1174
|
}) => [u(n(X), {
|
|
1212
|
-
color:
|
|
1175
|
+
color: Xe(i.type)
|
|
1213
1176
|
}, {
|
|
1214
|
-
default: s(() => [d(o(
|
|
1177
|
+
default: s(() => [d(o(Ze(i.type)), 1)]),
|
|
1215
1178
|
_: 2
|
|
1216
1179
|
}, 1032, ["color"])]),
|
|
1217
1180
|
amount: s(({
|
|
1218
1181
|
record: i
|
|
1219
1182
|
}) => [a("div", {
|
|
1220
|
-
class:
|
|
1221
|
-
}, [a("span", null, o(
|
|
1183
|
+
class: Oe(["points-money-cell", i.amount >= 0 ? "points-amount-plus" : "points-amount-minus"])
|
|
1184
|
+
}, [a("span", null, o(Ce(i.amount, !0)), 1), a("small", null, o(i.amount >= 0 ? "+" : "") + o(I(i.amount)) + " 积分", 1)], 2)]),
|
|
1222
1185
|
balance: s(({
|
|
1223
1186
|
record: i
|
|
1224
|
-
}) => [a("div",
|
|
1187
|
+
}) => [a("div", Fa, [a("span", null, o(Ce(i.balance)), 1), a("small", null, o(Ge(i.balance)) + " 积分", 1)])]),
|
|
1225
1188
|
exchangeRate: s(({
|
|
1226
1189
|
record: i
|
|
1227
|
-
}) => [d(o(
|
|
1190
|
+
}) => [d(o(Qe(i)), 1)]),
|
|
1228
1191
|
description: s(({
|
|
1229
1192
|
record: i
|
|
1230
1193
|
}) => [d(o(i.description || "-"), 1)]),
|
|
1231
1194
|
service: s(({
|
|
1232
1195
|
record: i
|
|
1233
|
-
}) => [d(o(
|
|
1196
|
+
}) => [d(o(tt(i)), 1)]),
|
|
1234
1197
|
_: 1
|
|
1235
1198
|
}, 8, ["data", "loading", "pagination"])]),
|
|
1236
1199
|
_: 1
|
|
@@ -1239,28 +1202,28 @@ const Ot = {
|
|
|
1239
1202
|
}, 8, ["active-key"])])];
|
|
1240
1203
|
}),
|
|
1241
1204
|
_: 1
|
|
1242
|
-
}, 8, ["visible", "width"]), u(n(
|
|
1243
|
-
visible:
|
|
1244
|
-
"onUpdate:visible": t[2] || (t[2] = (
|
|
1205
|
+
}, 8, ["visible", "width"]), u(n(We), {
|
|
1206
|
+
visible: F.value,
|
|
1207
|
+
"onUpdate:visible": t[2] || (t[2] = (m) => F.value = m),
|
|
1245
1208
|
title: "等待支付完成",
|
|
1246
1209
|
footer: !1,
|
|
1247
1210
|
"mask-closable": !1,
|
|
1248
1211
|
width: 380,
|
|
1249
|
-
onCancel:
|
|
1212
|
+
onCancel: xe
|
|
1250
1213
|
}, {
|
|
1251
1214
|
default: s(() => {
|
|
1252
|
-
var
|
|
1253
|
-
return [a("div",
|
|
1215
|
+
var m, w;
|
|
1216
|
+
return [a("div", Va, [a("div", ja, [a("span", null, o(((m = O.value) == null ? void 0 : m.packageName) || "积分充值"), 1), a("strong", null, "¥" + o(((w = O.value) == null ? void 0 : w.priceYuan) || "0.00"), 1)]), a("div", qa, [u(n(me), {
|
|
1254
1217
|
size: 32
|
|
1255
|
-
})]), a("div",
|
|
1256
|
-
onClick:
|
|
1218
|
+
})]), a("div", Ka, [t[34] || (t[34] = a("span", null, "支付宝收银台已在浏览器打开", -1)), a("small", null, o(n(z) || "请在支付宝页面完成支付,支付成功后这里会自动刷新余额"), 1)]), a("div", Ja, [u(n(k), {
|
|
1219
|
+
onClick: xe
|
|
1257
1220
|
}, {
|
|
1258
1221
|
default: s(() => [...t[35] || (t[35] = [d("取消", -1)])]),
|
|
1259
1222
|
_: 1
|
|
1260
1223
|
}), u(n(k), {
|
|
1261
1224
|
type: "primary",
|
|
1262
|
-
loading: n(
|
|
1263
|
-
onClick:
|
|
1225
|
+
loading: n(Le),
|
|
1226
|
+
onClick: ut
|
|
1264
1227
|
}, {
|
|
1265
1228
|
default: s(() => [...t[36] || (t[36] = [d(" 我已完成支付 ", -1)])]),
|
|
1266
1229
|
_: 1
|
|
@@ -1269,12 +1232,12 @@ const Ot = {
|
|
|
1269
1232
|
_: 1
|
|
1270
1233
|
}, 8, ["visible"])], 64));
|
|
1271
1234
|
}
|
|
1272
|
-
}),
|
|
1235
|
+
}), fn = /* @__PURE__ */ Rt(Ga, [["__scopeId", "data-v-9a1d08cc"]]);
|
|
1273
1236
|
export {
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1237
|
+
fn as P,
|
|
1238
|
+
Ee as a,
|
|
1239
|
+
mn as b,
|
|
1240
|
+
Bt as o,
|
|
1241
|
+
$t as u,
|
|
1242
|
+
Ht as v
|
|
1280
1243
|
};
|