@jx3box/jx3box-editor 1.3.0 → 1.3.3
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/module/author.less +8 -5
- package/package.json +1 -1
- package/src/Author.vue +7 -3
- package/src/Resource.vue +17 -14
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
.w-author {
|
|
2
2
|
.w-author-wrapper {
|
|
3
|
-
@max-width:
|
|
4
|
-
@min-width:
|
|
3
|
+
@max-width: 280px;
|
|
4
|
+
@min-width: 280px;
|
|
5
5
|
max-width: @max-width;
|
|
6
6
|
min-width: @min-width;
|
|
7
|
-
|
|
7
|
+
width: 280px;
|
|
8
|
+
padding: 10px;
|
|
8
9
|
background-color: #fff;
|
|
9
10
|
box-sizing: border-box;
|
|
10
11
|
|
|
@@ -154,10 +155,12 @@
|
|
|
154
155
|
// color:@color-link;
|
|
155
156
|
}
|
|
156
157
|
.r(3px);
|
|
158
|
+
padding:0 5px;
|
|
159
|
+
display: flex;
|
|
160
|
+
align-items: center;
|
|
157
161
|
}
|
|
158
162
|
.u-team-logo {
|
|
159
|
-
.size(
|
|
160
|
-
.y;
|
|
163
|
+
.size(22px);
|
|
161
164
|
.mr(4px);
|
|
162
165
|
.r(4px);
|
|
163
166
|
}
|
package/package.json
CHANGED
package/src/Author.vue
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div class="u-info">
|
|
7
7
|
<a class="u-name" :href="authorLink(uid)" target="_blank">
|
|
8
8
|
<span>{{ data.display_name.slice(0, 8) }}</span>
|
|
9
|
-
<a class="u-superauthor" href="/dashboard
|
|
9
|
+
<a class="u-superauthor" href="/dashboard/cooperation" target="_blank">
|
|
10
10
|
<img :src="super_author_icon" alt="superauthor" />
|
|
11
11
|
</a>
|
|
12
12
|
</a>
|
|
@@ -97,7 +97,6 @@ export default {
|
|
|
97
97
|
},
|
|
98
98
|
loadMedals: function() {
|
|
99
99
|
return getUserMedals(this.uid).then((data) => {
|
|
100
|
-
console.log(data)
|
|
101
100
|
this.medals = data;
|
|
102
101
|
});
|
|
103
102
|
},
|
|
@@ -131,15 +130,20 @@ export default {
|
|
|
131
130
|
@import "../assets/css/module/author.less";
|
|
132
131
|
.w-author {
|
|
133
132
|
.w-author-wrapper {
|
|
133
|
+
.u-author{
|
|
134
|
+
padding:5px 0 15px 0;
|
|
135
|
+
}
|
|
134
136
|
.u-avatar {
|
|
135
137
|
.fl;
|
|
136
138
|
.mr(15px);
|
|
137
|
-
.size(48px);
|
|
138
139
|
}
|
|
139
140
|
img {
|
|
140
141
|
border: none;
|
|
142
|
+
margin:0;
|
|
143
|
+
padding:0;
|
|
141
144
|
}
|
|
142
145
|
a {
|
|
146
|
+
.lh(28px);
|
|
143
147
|
text-decoration: none;
|
|
144
148
|
&:hover {
|
|
145
149
|
text-decoration: none;
|
package/src/Resource.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="c-resource">
|
|
3
3
|
<!-- 上传触发按钮 -->
|
|
4
|
-
<el-button class="u-switch" type="primary" @click="openDialog" :disabled="!enable"> <img class="u-icon" svg-inline src="../assets/img/jx3.svg"
|
|
4
|
+
<el-button class="u-switch" type="primary" @click="openDialog" :disabled="!enable"> <img class="u-icon" svg-inline src="../assets/img/jx3.svg" />剑三资源 </el-button>
|
|
5
5
|
|
|
6
6
|
<!-- 弹出界面 -->
|
|
7
7
|
<el-dialog class="c-large-dialog" title="剑三数据库" :visible.sync="dialogVisible">
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
</el-tab-pane>
|
|
167
167
|
<el-tab-pane label="魔盒用户" name="authors">
|
|
168
168
|
<span slot="label" class="u-tab-label">
|
|
169
|
-
<i class="el-icon-s-custom"></i>
|
|
169
|
+
<i class="el-icon-s-custom" style="margin-right:5px;"></i>
|
|
170
170
|
<b>魔盒用户</b>
|
|
171
171
|
</span>
|
|
172
172
|
<p v-if="total && done" class="m-resource-count">
|
|
@@ -180,6 +180,9 @@
|
|
|
180
180
|
<span class="u-name">
|
|
181
181
|
{{ o.display_name }}
|
|
182
182
|
</span>
|
|
183
|
+
<div class="u-remark">
|
|
184
|
+
{{o.user_bio}}
|
|
185
|
+
</div>
|
|
183
186
|
</span>
|
|
184
187
|
</li>
|
|
185
188
|
</ul>
|
|
@@ -386,7 +389,7 @@ export default {
|
|
|
386
389
|
this.done = true;
|
|
387
390
|
this.loading = false;
|
|
388
391
|
});
|
|
389
|
-
|
|
392
|
+
|
|
390
393
|
} else if (this.type === 'emotions') {
|
|
391
394
|
this.per = 30;
|
|
392
395
|
params = {
|
|
@@ -450,10 +453,11 @@ export default {
|
|
|
450
453
|
try {
|
|
451
454
|
let author = sessionStorage.getItem("atAuthor");
|
|
452
455
|
if (author) {
|
|
453
|
-
author = JSON.parse(author);
|
|
454
456
|
author = author.split(',') || [];
|
|
455
|
-
author.push(this.selectedAuthor.
|
|
457
|
+
author.push(this.selectedAuthor.ID);
|
|
456
458
|
sessionStorage.setItem("atAuthor", JSON.stringify(author.join(',')));
|
|
459
|
+
} else {
|
|
460
|
+
sessionStorage.setItem("atAuthor", JSON.stringify(this.selectedAuthor.ID));
|
|
457
461
|
}
|
|
458
462
|
} catch (error) {
|
|
459
463
|
console.log(error)
|
|
@@ -465,9 +469,9 @@ export default {
|
|
|
465
469
|
this.setAuthors();
|
|
466
470
|
this.$emit("insert", this.html);
|
|
467
471
|
this.dialogVisible = false;
|
|
468
|
-
this.
|
|
472
|
+
this.selectedAuthor = {};
|
|
469
473
|
} else {
|
|
470
|
-
this.$
|
|
474
|
+
this.$alert('您的等级不足或无权限(Lv2以上可用)', '消息');
|
|
471
475
|
return;
|
|
472
476
|
}
|
|
473
477
|
} else {
|
|
@@ -529,9 +533,9 @@ export default {
|
|
|
529
533
|
},
|
|
530
534
|
selectAuthor: function (o){
|
|
531
535
|
this.resetItems();
|
|
532
|
-
this.
|
|
536
|
+
this.selectedAuthor = o;
|
|
533
537
|
o.isSelected = true;
|
|
534
|
-
this.html = `<a data-type="author" class="e-jx3-author w-jx3-element" data-mode="" data-id="${o.ID}" target="_blank" href="/author/${o.ID}"
|
|
538
|
+
this.html = `<a data-type="author" class="e-jx3-author w-jx3-element" data-mode="" data-id="${o.ID}" target="_blank" href="/author/${o.ID}">@${o.display_name}</a>`
|
|
535
539
|
},
|
|
536
540
|
selectEmotion: function (o){
|
|
537
541
|
this.resetItems();
|
|
@@ -560,14 +564,13 @@ export default {
|
|
|
560
564
|
return domain + getLink(type,id).slice(1)
|
|
561
565
|
},
|
|
562
566
|
userAvatar: function(url) {
|
|
563
|
-
return showAvatar(url);
|
|
567
|
+
return showAvatar(url,'m');
|
|
564
568
|
},
|
|
565
569
|
loadUserInfo: function (){
|
|
566
570
|
if (!this.uid) return;
|
|
567
|
-
|
|
568
|
-
.
|
|
569
|
-
|
|
570
|
-
})
|
|
571
|
+
getUserInfo(this.uid).then(res => {
|
|
572
|
+
this.userInfo = res
|
|
573
|
+
})
|
|
571
574
|
},
|
|
572
575
|
|
|
573
576
|
// 杂项
|