@huyooo/ui 0.4.26 → 0.4.28
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/{CustomTable-C6Xcn_J7.js → CustomTable-KSnj5x8U.js} +106 -110
- package/dist/{FeedbackItem-MY9mxyf6.js → FeedbackItem-CFVbxhcl.js} +1 -1
- package/dist/{FeedbackModal-CMmvJOi1.js → FeedbackModal-DHWHALct.js} +1 -1
- package/dist/{PaySubscriptions-BS6gjndk.js → PaySubscriptions-u3gwyezu.js} +1 -1
- package/dist/ReferrerReferees-D2NqWvol.js +121 -0
- package/dist/{UserPanel-BdPRqGuj.js → UserPanel-B9y5Hs2k.js} +3 -3
- package/dist/common.js +4 -4
- package/dist/feedback.js +2 -2
- package/dist/index.js +6 -6
- package/dist/pay.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/ReferrerReferees-BSDBIeoR.js +0 -179
package/dist/user.js
CHANGED
package/package.json
CHANGED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
/* empty css */
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { defineComponent as V, ref as k, createBlock as v, openBlock as g, unref as e, withCtx as o, createElementVNode as i, createVNode as N, createCommentVNode as S, toDisplayString as n, createTextVNode as h } from "vue";
|
|
6
|
-
import { Modal as B, Tag as O } from "@arco-design/web-vue";
|
|
7
|
-
import { api as q } from "@huyooo/api";
|
|
8
|
-
import { u as E } from "./useTableHandle-DKUIdSSh.js";
|
|
9
|
-
import { C as H, f as L, a as M } from "./CustomTable-C6Xcn_J7.js";
|
|
10
|
-
import { C as y } from "./Clipboard-Bful1lNJ.js";
|
|
11
|
-
import { a as $ } from "./useAuthkitUsersProfile-Diituvy1.js";
|
|
12
|
-
import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
function F(d, p) {
|
|
14
|
-
return q({
|
|
15
|
-
url: `${d}/restfulApi/referrer/referees`,
|
|
16
|
-
method: "post",
|
|
17
|
-
data: p
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
const P = [{
|
|
21
|
-
key: "normal",
|
|
22
|
-
label: "正常",
|
|
23
|
-
color: "green"
|
|
24
|
-
}, {
|
|
25
|
-
key: "forbidden",
|
|
26
|
-
label: "禁用",
|
|
27
|
-
color: "red"
|
|
28
|
-
}], G = {
|
|
29
|
-
class: "invite-code-section"
|
|
30
|
-
}, J = {
|
|
31
|
-
class: "invite-code-value"
|
|
32
|
-
}, K = {
|
|
33
|
-
class: "id-with-clipboard"
|
|
34
|
-
}, Q = /* @__PURE__ */ V({
|
|
35
|
-
__name: "ReferrerReferees",
|
|
36
|
-
props: {
|
|
37
|
-
prefixUrl: {
|
|
38
|
-
type: String,
|
|
39
|
-
required: !0
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
emits: ["cancel"],
|
|
43
|
-
setup(d, {
|
|
44
|
-
expose: p,
|
|
45
|
-
emit: R
|
|
46
|
-
}) {
|
|
47
|
-
const z = d, A = R, {
|
|
48
|
-
pagination: r,
|
|
49
|
-
dataSource: I,
|
|
50
|
-
setPage: _
|
|
51
|
-
} = E("被邀请人"), {
|
|
52
|
-
userProfile: c
|
|
53
|
-
} = $(), W = [{
|
|
54
|
-
dataIndex: "refereeId",
|
|
55
|
-
slotName: "refereeId",
|
|
56
|
-
title: "被邀请人ID",
|
|
57
|
-
ellipsis: !0,
|
|
58
|
-
tooltip: !0,
|
|
59
|
-
minWidth: 180
|
|
60
|
-
}, {
|
|
61
|
-
dataIndex: "email",
|
|
62
|
-
slotName: "email",
|
|
63
|
-
title: "被邀请人邮箱",
|
|
64
|
-
ellipsis: !0,
|
|
65
|
-
tooltip: !0,
|
|
66
|
-
minWidth: 180
|
|
67
|
-
}, {
|
|
68
|
-
dataIndex: "phone",
|
|
69
|
-
slotName: "phone",
|
|
70
|
-
title: "手机",
|
|
71
|
-
ellipsis: !0,
|
|
72
|
-
tooltip: !0,
|
|
73
|
-
minWidth: 180
|
|
74
|
-
}, {
|
|
75
|
-
dataIndex: "status",
|
|
76
|
-
slotName: "status",
|
|
77
|
-
title: "状态",
|
|
78
|
-
ellipsis: !0,
|
|
79
|
-
tooltip: !0,
|
|
80
|
-
minWidth: 100
|
|
81
|
-
}, {
|
|
82
|
-
dataIndex: "createAt",
|
|
83
|
-
slotName: "createAt",
|
|
84
|
-
title: "创建日期",
|
|
85
|
-
ellipsis: !0,
|
|
86
|
-
tooltip: !0,
|
|
87
|
-
minWidth: 180
|
|
88
|
-
}], l = k(!1);
|
|
89
|
-
function m() {
|
|
90
|
-
l.value = !0, F(z.prefixUrl, {
|
|
91
|
-
current: r.value.current,
|
|
92
|
-
pageSize: r.value.pageSize
|
|
93
|
-
}).then(({
|
|
94
|
-
data: a
|
|
95
|
-
}) => {
|
|
96
|
-
l.value = !1, I.value = a.items, r.value.total = a.count;
|
|
97
|
-
}).catch(() => {
|
|
98
|
-
l.value = !1;
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
function w(a) {
|
|
102
|
-
_(a, r.value.pageSize), m();
|
|
103
|
-
}
|
|
104
|
-
function D(a) {
|
|
105
|
-
_(r.value.current, a), m();
|
|
106
|
-
}
|
|
107
|
-
const s = k(!1);
|
|
108
|
-
function T() {
|
|
109
|
-
s.value = !1, A("cancel");
|
|
110
|
-
}
|
|
111
|
-
function U(a) {
|
|
112
|
-
s.value = a, m();
|
|
113
|
-
}
|
|
114
|
-
return p({
|
|
115
|
-
setData: U
|
|
116
|
-
}), (a, u) => (g(), v(e(B), {
|
|
117
|
-
visible: s.value,
|
|
118
|
-
"onUpdate:visible": u[0] || (u[0] = (f) => s.value = f),
|
|
119
|
-
title: "被邀请人详情",
|
|
120
|
-
width: "60%",
|
|
121
|
-
"ok-loading": l.value,
|
|
122
|
-
footer: !1,
|
|
123
|
-
"mask-closable": !1,
|
|
124
|
-
"unmount-on-close": "",
|
|
125
|
-
onCancel: T
|
|
126
|
-
}, {
|
|
127
|
-
default: o(() => {
|
|
128
|
-
var f, b;
|
|
129
|
-
return [i("div", G, [u[1] || (u[1] = i("div", {
|
|
130
|
-
class: "invite-code-label"
|
|
131
|
-
}, "我的邀请码:", -1)), i("div", J, [i("span", null, n(((f = e(c)) == null ? void 0 : f.referrerId) || "-"), 1), (b = e(c)) != null && b.referrerId ? (g(), v(y, {
|
|
132
|
-
key: 0,
|
|
133
|
-
value: e(c).referrerId,
|
|
134
|
-
message: "邀请码复制成功"
|
|
135
|
-
}, null, 8, ["value"])) : S("", !0)])]), N(H, {
|
|
136
|
-
columns: W,
|
|
137
|
-
data: e(I),
|
|
138
|
-
loading: l.value,
|
|
139
|
-
pagination: e(r),
|
|
140
|
-
onPageChange: w,
|
|
141
|
-
onPageSizeChange: D
|
|
142
|
-
}, {
|
|
143
|
-
refereeId: o(({
|
|
144
|
-
record: t
|
|
145
|
-
}) => [i("div", K, [i("span", null, n(t.refereeInfo.id || "-"), 1), t.refereeInfo.id ? (g(), v(y, {
|
|
146
|
-
key: 0,
|
|
147
|
-
value: t.refereeInfo.id,
|
|
148
|
-
message: "被邀请人ID复制成功"
|
|
149
|
-
}, null, 8, ["value"])) : S("", !0)])]),
|
|
150
|
-
email: o(({
|
|
151
|
-
record: t
|
|
152
|
-
}) => [h(n(t.refereeInfo.email || "-"), 1)]),
|
|
153
|
-
phone: o(({
|
|
154
|
-
record: t
|
|
155
|
-
}) => [h(n(t.refereeInfo.phone || "-"), 1)]),
|
|
156
|
-
status: o(({
|
|
157
|
-
record: t
|
|
158
|
-
}) => {
|
|
159
|
-
var x;
|
|
160
|
-
return [N(e(O), {
|
|
161
|
-
color: (x = e(L)(e(P), t.refereeInfo.status)) == null ? void 0 : x.color
|
|
162
|
-
}, {
|
|
163
|
-
default: o(() => {
|
|
164
|
-
var C;
|
|
165
|
-
return [h(n((C = e(M)(e(P), t.refereeInfo.status)) == null ? void 0 : C.label), 1)];
|
|
166
|
-
}),
|
|
167
|
-
_: 2
|
|
168
|
-
}, 1032, ["color"])];
|
|
169
|
-
}),
|
|
170
|
-
_: 1
|
|
171
|
-
}, 8, ["data", "loading", "pagination"])];
|
|
172
|
-
}),
|
|
173
|
-
_: 1
|
|
174
|
-
}, 8, ["visible", "ok-loading"]));
|
|
175
|
-
}
|
|
176
|
-
}), ue = /* @__PURE__ */ j(Q, [["__scopeId", "data-v-33f3e4fb"]]);
|
|
177
|
-
export {
|
|
178
|
-
ue as R
|
|
179
|
-
};
|