@huyooo/ui 0.4.24 → 0.4.26
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/{ReferrerReferees-BZqtRuiP.js → ReferrerReferees-BSDBIeoR.js} +38 -45
- package/dist/{UserPanel-BL8qPaxq.js → UserPanel-BdPRqGuj.js} +119 -111
- package/dist/common.js +2 -2
- package/dist/components/User/UserBasicInformation.vue.d.ts +9 -0
- package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { defineComponent as V, ref as k, createBlock as v, openBlock as g, unref as e, withCtx as
|
|
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
6
|
import { Modal as B, Tag as O } from "@arco-design/web-vue";
|
|
7
7
|
import { api as q } from "@huyooo/api";
|
|
8
8
|
import { u as E } from "./useTableHandle-DKUIdSSh.js";
|
|
9
9
|
import { C as H, f as L, a as M } from "./CustomTable-C6Xcn_J7.js";
|
|
10
|
-
import { C as
|
|
10
|
+
import { C as y } from "./Clipboard-Bful1lNJ.js";
|
|
11
11
|
import { a as $ } from "./useAuthkitUsersProfile-Diituvy1.js";
|
|
12
12
|
import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
function F(
|
|
13
|
+
function F(d, p) {
|
|
14
14
|
return q({
|
|
15
|
-
url: `${
|
|
15
|
+
url: `${d}/restfulApi/referrer/referees`,
|
|
16
16
|
method: "post",
|
|
17
17
|
data: p
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
const
|
|
20
|
+
const P = [{
|
|
21
21
|
key: "normal",
|
|
22
22
|
label: "正常",
|
|
23
23
|
color: "green"
|
|
@@ -40,17 +40,17 @@ const y = [{
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
emits: ["cancel"],
|
|
43
|
-
setup(
|
|
43
|
+
setup(d, {
|
|
44
44
|
expose: p,
|
|
45
|
-
emit:
|
|
45
|
+
emit: R
|
|
46
46
|
}) {
|
|
47
|
-
const
|
|
48
|
-
pagination:
|
|
47
|
+
const z = d, A = R, {
|
|
48
|
+
pagination: r,
|
|
49
49
|
dataSource: I,
|
|
50
50
|
setPage: _
|
|
51
51
|
} = E("被邀请人"), {
|
|
52
52
|
userProfile: c
|
|
53
|
-
} = $(),
|
|
53
|
+
} = $(), W = [{
|
|
54
54
|
dataIndex: "refereeId",
|
|
55
55
|
slotName: "refereeId",
|
|
56
56
|
title: "被邀请人ID",
|
|
@@ -85,35 +85,28 @@ const y = [{
|
|
|
85
85
|
ellipsis: !0,
|
|
86
86
|
tooltip: !0,
|
|
87
87
|
minWidth: 180
|
|
88
|
-
},
|
|
89
|
-
dataIndex: "updateAt",
|
|
90
|
-
slotName: "updateAt",
|
|
91
|
-
title: "更新日期",
|
|
92
|
-
ellipsis: !0,
|
|
93
|
-
tooltip: !0,
|
|
94
|
-
minWidth: 180
|
|
95
|
-
}], r = k(!1);
|
|
88
|
+
}], l = k(!1);
|
|
96
89
|
function m() {
|
|
97
|
-
|
|
98
|
-
current:
|
|
99
|
-
pageSize:
|
|
90
|
+
l.value = !0, F(z.prefixUrl, {
|
|
91
|
+
current: r.value.current,
|
|
92
|
+
pageSize: r.value.pageSize
|
|
100
93
|
}).then(({
|
|
101
94
|
data: a
|
|
102
95
|
}) => {
|
|
103
|
-
|
|
96
|
+
l.value = !1, I.value = a.items, r.value.total = a.count;
|
|
104
97
|
}).catch(() => {
|
|
105
|
-
|
|
98
|
+
l.value = !1;
|
|
106
99
|
});
|
|
107
100
|
}
|
|
108
101
|
function w(a) {
|
|
109
|
-
_(a,
|
|
102
|
+
_(a, r.value.pageSize), m();
|
|
110
103
|
}
|
|
111
104
|
function D(a) {
|
|
112
|
-
_(
|
|
105
|
+
_(r.value.current, a), m();
|
|
113
106
|
}
|
|
114
107
|
const s = k(!1);
|
|
115
108
|
function T() {
|
|
116
|
-
s.value = !1,
|
|
109
|
+
s.value = !1, A("cancel");
|
|
117
110
|
}
|
|
118
111
|
function U(a) {
|
|
119
112
|
s.value = a, m();
|
|
@@ -122,54 +115,54 @@ const y = [{
|
|
|
122
115
|
setData: U
|
|
123
116
|
}), (a, u) => (g(), v(e(B), {
|
|
124
117
|
visible: s.value,
|
|
125
|
-
"onUpdate:visible": u[0] || (u[0] = (
|
|
118
|
+
"onUpdate:visible": u[0] || (u[0] = (f) => s.value = f),
|
|
126
119
|
title: "被邀请人详情",
|
|
127
120
|
width: "60%",
|
|
128
|
-
"ok-loading":
|
|
121
|
+
"ok-loading": l.value,
|
|
129
122
|
footer: !1,
|
|
130
123
|
"mask-closable": !1,
|
|
131
124
|
"unmount-on-close": "",
|
|
132
125
|
onCancel: T
|
|
133
126
|
}, {
|
|
134
|
-
default:
|
|
135
|
-
var
|
|
136
|
-
return [
|
|
127
|
+
default: o(() => {
|
|
128
|
+
var f, b;
|
|
129
|
+
return [i("div", G, [u[1] || (u[1] = i("div", {
|
|
137
130
|
class: "invite-code-label"
|
|
138
|
-
}, "我的邀请码:", -1)),
|
|
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, {
|
|
139
132
|
key: 0,
|
|
140
|
-
value: e(c).
|
|
133
|
+
value: e(c).referrerId,
|
|
141
134
|
message: "邀请码复制成功"
|
|
142
135
|
}, null, 8, ["value"])) : S("", !0)])]), N(H, {
|
|
143
|
-
columns:
|
|
136
|
+
columns: W,
|
|
144
137
|
data: e(I),
|
|
145
|
-
loading:
|
|
146
|
-
pagination: e(
|
|
138
|
+
loading: l.value,
|
|
139
|
+
pagination: e(r),
|
|
147
140
|
onPageChange: w,
|
|
148
141
|
onPageSizeChange: D
|
|
149
142
|
}, {
|
|
150
|
-
refereeId:
|
|
143
|
+
refereeId: o(({
|
|
151
144
|
record: t
|
|
152
|
-
}) => [
|
|
145
|
+
}) => [i("div", K, [i("span", null, n(t.refereeInfo.id || "-"), 1), t.refereeInfo.id ? (g(), v(y, {
|
|
153
146
|
key: 0,
|
|
154
147
|
value: t.refereeInfo.id,
|
|
155
148
|
message: "被邀请人ID复制成功"
|
|
156
149
|
}, null, 8, ["value"])) : S("", !0)])]),
|
|
157
|
-
email:
|
|
150
|
+
email: o(({
|
|
158
151
|
record: t
|
|
159
152
|
}) => [h(n(t.refereeInfo.email || "-"), 1)]),
|
|
160
|
-
phone:
|
|
153
|
+
phone: o(({
|
|
161
154
|
record: t
|
|
162
155
|
}) => [h(n(t.refereeInfo.phone || "-"), 1)]),
|
|
163
|
-
status:
|
|
156
|
+
status: o(({
|
|
164
157
|
record: t
|
|
165
158
|
}) => {
|
|
166
159
|
var x;
|
|
167
160
|
return [N(e(O), {
|
|
168
|
-
color: (x = e(L)(e(
|
|
161
|
+
color: (x = e(L)(e(P), t.refereeInfo.status)) == null ? void 0 : x.color
|
|
169
162
|
}, {
|
|
170
|
-
default:
|
|
163
|
+
default: o(() => {
|
|
171
164
|
var C;
|
|
172
|
-
return [h(n((C = e(M)(e(
|
|
165
|
+
return [h(n((C = e(M)(e(P), t.refereeInfo.status)) == null ? void 0 : C.label), 1)];
|
|
173
166
|
}),
|
|
174
167
|
_: 2
|
|
175
168
|
}, 1032, ["color"])];
|
|
@@ -180,7 +173,7 @@ const y = [{
|
|
|
180
173
|
_: 1
|
|
181
174
|
}, 8, ["visible", "ok-loading"]));
|
|
182
175
|
}
|
|
183
|
-
}), ue = /* @__PURE__ */ j(Q, [["__scopeId", "data-v-
|
|
176
|
+
}), ue = /* @__PURE__ */ j(Q, [["__scopeId", "data-v-33f3e4fb"]]);
|
|
184
177
|
export {
|
|
185
178
|
ue as R
|
|
186
179
|
};
|