@jx3box/jx3box-ui 2.4.12 → 2.4.13
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/assets/css/single/thx.less +103 -94
- package/i18n/messages/en-US.js +1 -0
- package/i18n/messages/vi.js +1 -0
- package/i18n/messages/zh-CN.js +1 -0
- package/i18n/messages/zh-TW.js +1 -0
- package/package.json +1 -1
- package/src/interact/BoxcoinRecords.vue +14 -24
|
@@ -125,131 +125,140 @@
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
// 打赏记录:宽屏对齐列,窄容器保留寄语与时间。
|
|
129
|
+
.w-boxcoin-records {
|
|
130
|
+
container-type: inline-size;
|
|
131
|
+
}
|
|
128
132
|
.w-boxcoin-records-list {
|
|
129
133
|
max-width: 960px;
|
|
130
|
-
border: 1px solid #eee;
|
|
131
134
|
margin: 0 auto;
|
|
132
|
-
border-radius: 6px;
|
|
133
135
|
overflow: hidden;
|
|
136
|
+
border: 1px solid #e9ebf0;
|
|
137
|
+
border-radius: 8px;
|
|
138
|
+
background: #fff;
|
|
134
139
|
|
|
135
140
|
.u-list {
|
|
136
|
-
|
|
137
|
-
.x(left);
|
|
138
|
-
margin: 0 auto;
|
|
141
|
+
margin: 0;
|
|
139
142
|
padding: 0;
|
|
143
|
+
list-style: none;
|
|
144
|
+
text-align: left;
|
|
140
145
|
}
|
|
141
146
|
.u-item {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
a {
|
|
153
|
-
color: var(--el-color-primary);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
.u-meta {
|
|
157
|
-
.db;
|
|
158
|
-
.fl;
|
|
147
|
+
display: grid;
|
|
148
|
+
grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr) 84px minmax(0, 1.4fr) 142px;
|
|
149
|
+
align-items: center;
|
|
150
|
+
gap: 12px;
|
|
151
|
+
padding: 10px 16px;
|
|
152
|
+
border-bottom: 1px solid #f0f1f5;
|
|
153
|
+
font-size: 13px;
|
|
154
|
+
line-height: 1.6;
|
|
155
|
+
&:last-child { border-bottom: 0; }
|
|
159
156
|
}
|
|
157
|
+
.u-meta { min-width: 0; }
|
|
160
158
|
.u-action {
|
|
161
|
-
|
|
162
|
-
.db;
|
|
163
|
-
padding-right: 10px;
|
|
164
|
-
.flex;
|
|
159
|
+
display: flex;
|
|
165
160
|
align-items: center;
|
|
166
161
|
justify-content: center;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
.auto(x);
|
|
171
|
-
}
|
|
172
|
-
.x;
|
|
162
|
+
i { display: flex; }
|
|
163
|
+
svg, img { display: block; width: 20px; height: 20px; }
|
|
164
|
+
.el-icon svg { width: 16px; height: 16px; }
|
|
173
165
|
}
|
|
174
166
|
.u-user {
|
|
175
|
-
|
|
176
|
-
.nobreak;
|
|
177
|
-
.flex;
|
|
167
|
+
display: flex;
|
|
178
168
|
align-items: center;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
&.u-default {
|
|
185
|
-
color: @color;
|
|
186
|
-
&:hover {
|
|
187
|
-
text-decoration: none;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
169
|
+
gap: 6px;
|
|
170
|
+
color: #475569;
|
|
171
|
+
text-decoration: none;
|
|
172
|
+
span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
173
|
+
&[href]:hover { color: var(--el-color-primary); }
|
|
190
174
|
.u-user-avatar {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
175
|
+
flex: 0 0 24px;
|
|
176
|
+
width: 24px;
|
|
177
|
+
height: 24px;
|
|
178
|
+
border-radius: 50%;
|
|
179
|
+
object-fit: cover;
|
|
180
|
+
background: #f5f6f8;
|
|
195
181
|
}
|
|
196
182
|
}
|
|
197
|
-
.u-count {
|
|
198
|
-
.w(120px);
|
|
199
|
-
}
|
|
200
183
|
.u-head {
|
|
201
|
-
|
|
202
|
-
|
|
184
|
+
padding-top: 8px;
|
|
185
|
+
padding-bottom: 8px;
|
|
186
|
+
background: #f8f9fb;
|
|
187
|
+
color: #7b8798;
|
|
188
|
+
font-size: 12px;
|
|
189
|
+
font-weight: 500;
|
|
190
|
+
.u-user { color: inherit; }
|
|
203
191
|
}
|
|
204
192
|
.u-body {
|
|
193
|
+
&:hover { background: #fdfbfc; }
|
|
205
194
|
.u-count {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
color:
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
.nobreak;
|
|
214
|
-
.w(280px);
|
|
215
|
-
color: @color;
|
|
216
|
-
}
|
|
217
|
-
.u-delete {
|
|
218
|
-
.ml(20px);
|
|
219
|
-
color: #c00;
|
|
220
|
-
i {
|
|
221
|
-
.mr(3px);
|
|
222
|
-
}
|
|
223
|
-
.pointer;
|
|
224
|
-
&:hover {
|
|
225
|
-
color: #f00;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
.u-client {
|
|
229
|
-
color: @v4focus;
|
|
195
|
+
justify-self: start;
|
|
196
|
+
padding: 2px 8px;
|
|
197
|
+
border-radius: 4px;
|
|
198
|
+
background: #fff0f5;
|
|
199
|
+
color: #db5181;
|
|
200
|
+
font-variant-numeric: tabular-nums;
|
|
201
|
+
white-space: nowrap;
|
|
230
202
|
}
|
|
203
|
+
.u-remark { color: #596273; overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
204
|
+
.u-time { color: #8b95a5; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
205
|
+
}
|
|
206
|
+
.u-operations {
|
|
207
|
+
display: flex;
|
|
208
|
+
align-items: center;
|
|
209
|
+
justify-content: flex-end;
|
|
210
|
+
flex-wrap: wrap;
|
|
211
|
+
gap: 6px;
|
|
212
|
+
min-width: 0;
|
|
231
213
|
}
|
|
214
|
+
.u-client { color: #929aaa; font-size: 11px; overflow-wrap: anywhere; }
|
|
215
|
+
.u-delete {
|
|
216
|
+
padding: 3px 6px;
|
|
217
|
+
border: 0;
|
|
218
|
+
border-radius: 4px;
|
|
219
|
+
background: transparent;
|
|
220
|
+
color: #b76b73;
|
|
221
|
+
font: inherit;
|
|
222
|
+
font-size: 12px;
|
|
223
|
+
white-space: nowrap;
|
|
224
|
+
cursor: pointer;
|
|
225
|
+
&:hover { background: #fff0f0; color: #d94757; }
|
|
226
|
+
}
|
|
227
|
+
a:focus-visible, button:focus-visible { outline: 2px solid var(--el-color-primary); outline-offset: 2px; }
|
|
228
|
+
}
|
|
229
|
+
.w-boxcoin-records.is-admin .u-item {
|
|
230
|
+
grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr) 76px minmax(0, 1.2fr) 142px 90px;
|
|
231
|
+
column-gap: 10px;
|
|
232
232
|
}
|
|
233
233
|
.w-boxcoin-records-pages {
|
|
234
|
+
display: flex;
|
|
234
235
|
justify-content: center;
|
|
235
|
-
|
|
236
|
+
margin-top: 12px;
|
|
236
237
|
}
|
|
237
|
-
|
|
238
|
-
@media screen and (max-width: @phone) {
|
|
238
|
+
.boxcoin-records-compact() {
|
|
239
239
|
.w-boxcoin-records-list {
|
|
240
|
-
|
|
241
|
-
.u-
|
|
242
|
-
|
|
240
|
+
.u-head { display: none; }
|
|
241
|
+
.u-item.u-body {
|
|
242
|
+
grid-template-columns: 20px minmax(0, 1fr) auto;
|
|
243
|
+
gap: 8px;
|
|
244
|
+
padding: 12px;
|
|
243
245
|
}
|
|
244
|
-
.u-
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
.u-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
.u-remark {
|
|
252
|
-
.none;
|
|
246
|
+
.u-action { grid-column: 1; grid-row: 1; }
|
|
247
|
+
.u-participant { grid-column: 2; grid-row: 1; }
|
|
248
|
+
.u-count { grid-column: 3; grid-row: 1; }
|
|
249
|
+
.u-author {
|
|
250
|
+
grid-column: 2 / -1;
|
|
251
|
+
&::before { content: attr(data-label); flex-shrink: 0; color: #8b95a5; font-size: 12px; }
|
|
252
|
+
.u-user-avatar { flex-basis: 22px; width: 22px; height: 22px; }
|
|
253
253
|
}
|
|
254
|
+
.u-remark { grid-column: 2 / -1; }
|
|
255
|
+
.u-time { grid-column: 2 / -1; }
|
|
256
|
+
.u-operations { grid-column: 2 / -1; justify-content: flex-start; }
|
|
254
257
|
}
|
|
255
258
|
}
|
|
259
|
+
@container (max-width: 800px) {
|
|
260
|
+
.boxcoin-records-compact();
|
|
261
|
+
}
|
|
262
|
+
@media screen and (max-width: @phone) {
|
|
263
|
+
.boxcoin-records-compact();
|
|
264
|
+
}
|
package/i18n/messages/en-US.js
CHANGED
package/i18n/messages/vi.js
CHANGED
package/i18n/messages/zh-CN.js
CHANGED
package/i18n/messages/zh-TW.js
CHANGED
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="w-boxcoin-records" v-loading="loading">
|
|
2
|
+
<div class="w-boxcoin-records" :class="{ 'is-admin': isSuperAdmin }" v-loading="loading">
|
|
3
3
|
<div class="w-boxcoin-records-list" v-if="list && list.length">
|
|
4
4
|
<ul class="u-list">
|
|
5
5
|
<li class="u-item u-head">
|
|
6
6
|
<span class="u-meta u-action">
|
|
7
7
|
<el-icon><Trophy /></el-icon>
|
|
8
8
|
</span>
|
|
9
|
-
<span class="u-meta u-user">{{ $jx3boxT("jx3boxUi.boxcoinRecords.participant", "参与打赏") }}</span>
|
|
10
|
-
<span class="u-meta u-user">{{ $jx3boxT("jx3boxUi.boxcoinRecords.author", "收益作者") }}</span>
|
|
9
|
+
<span class="u-meta u-user u-participant">{{ $jx3boxT("jx3boxUi.boxcoinRecords.participant", "参与打赏") }}</span>
|
|
10
|
+
<span class="u-meta u-user u-author">{{ $jx3boxT("jx3boxUi.boxcoinRecords.author", "收益作者") }}</span>
|
|
11
11
|
<span class="u-meta u-count">{{ $jx3boxT("jx3boxUi.boxcoinRecords.boxcoin", "盒币") }}</span>
|
|
12
12
|
<span class="u-meta u-remark">{{ $jx3boxT("jx3boxUi.boxcoinRecords.remark", "寄语") }}</span>
|
|
13
|
-
<
|
|
13
|
+
<span class="u-meta u-time">{{ $jx3boxT("jx3boxUi.boxcoinRecords.time", "时间") }}</span>
|
|
14
14
|
</li>
|
|
15
15
|
<li v-for="(item, i) in list" :key="i" class="u-item u-body">
|
|
16
16
|
<span class="u-meta u-action">
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
</template>
|
|
23
23
|
</span>
|
|
24
24
|
<template v-if="item.ext_operate_user_info?.id == 1">
|
|
25
|
-
<span class="u-meta u-user u-default">
|
|
25
|
+
<span class="u-meta u-user u-participant u-default">
|
|
26
26
|
<img class="u-user-avatar" :src="showAvatar(item.ext_operate_user_info.avatar)" alt />
|
|
27
27
|
<span>{{ $jx3boxT("jx3boxUi.boxcoinRecords.system", "系统") }}</span>
|
|
28
28
|
</span>
|
|
29
29
|
</template>
|
|
30
|
-
<a v-else class="u-meta u-user" :href="authorLink(item.operate_user_id)" target="_blank">
|
|
30
|
+
<a v-else class="u-meta u-user u-participant" :href="authorLink(item.operate_user_id)" target="_blank">
|
|
31
31
|
<img class="u-user-avatar" :src="showAvatar(item.ext_operate_user_info.avatar)" alt />
|
|
32
|
-
<span>{{ item.ext_operate_user_info.display_name }}</span>
|
|
32
|
+
<span :title="item.ext_operate_user_info.display_name">{{ item.ext_operate_user_info.display_name }}</span>
|
|
33
33
|
</a>
|
|
34
|
-
<a class="u-meta u-user" :href="authorLink(item.user_id)" target="_blank">
|
|
34
|
+
<a class="u-meta u-user u-author" :data-label="$jx3boxT('jx3boxUi.boxcoinRecords.author', '收益作者')" :href="authorLink(item.user_id)" target="_blank">
|
|
35
35
|
<img class="u-user-avatar" :src="showAvatar(item.ext_user_info.avatar)" alt />
|
|
36
|
-
<span>{{ item.ext_user_info.display_name }}</span>
|
|
36
|
+
<span :title="item.ext_user_info.display_name">{{ item.ext_user_info.display_name }}</span>
|
|
37
37
|
</a>
|
|
38
38
|
<span class="u-meta u-count">
|
|
39
39
|
+
|
|
@@ -41,9 +41,11 @@
|
|
|
41
41
|
</span>
|
|
42
42
|
<span class="u-meta u-remark">{{ item.remark }}</span>
|
|
43
43
|
<time class="u-meta u-time">{{ showTime(item.created_at) }}</time>
|
|
44
|
-
<span class="u-
|
|
45
|
-
<
|
|
46
|
-
|
|
44
|
+
<span class="u-operations" v-if="isSuperAdmin">
|
|
45
|
+
<button type="button" class="u-delete" @click="recovery(item, i)">
|
|
46
|
+
{{ $jx3boxT("jx3boxUi.boxcoinRecords.revoke", "撤销") }}
|
|
47
|
+
</button>
|
|
48
|
+
<span class="u-client" v-if="item.client">({{ item.client }})</span>
|
|
47
49
|
</span>
|
|
48
50
|
</li>
|
|
49
51
|
</ul>
|
|
@@ -189,15 +191,3 @@ export default {
|
|
|
189
191
|
},
|
|
190
192
|
};
|
|
191
193
|
</script>
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
<style lang="less">
|
|
195
|
-
/* src/interact/BoxcoinRecords.vue */
|
|
196
|
-
.w-boxcoin-records-pages{
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
.flex(x);
|
|
201
|
-
margin-top:5px;
|
|
202
|
-
}
|
|
203
|
-
</style>
|