@jx3box/jx3box-common-ui 5.6.0 → 5.6.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/author.less +10 -1
- package/package.json +1 -1
- package/src/Author.vue +20 -20
- package/src/filters/clientBy.vue +2 -2
- package/src/header/clientSwitch.vue +3 -3
- package/src/single/PostHeader.vue +1 -1
package/assets/css/author.less
CHANGED
|
@@ -40,8 +40,17 @@
|
|
|
40
40
|
padding: 2px 8px;
|
|
41
41
|
.fz(12px, 14px);
|
|
42
42
|
color: #fff;
|
|
43
|
-
background-color
|
|
43
|
+
background-color:#aaa;
|
|
44
44
|
border-radius: 2px;
|
|
45
|
+
|
|
46
|
+
&.lv-1{background-color: #32d3c4;}
|
|
47
|
+
&.lv-2{background-color: #86c0fb;}
|
|
48
|
+
&.lv-3{background-color: #33d9ff;}
|
|
49
|
+
&.lv-4{background-color: #ffdb2a;}
|
|
50
|
+
&.lv-5{background-color: #ffa739;}
|
|
51
|
+
&.lv-6{background-color: #ff70b2;}
|
|
52
|
+
&.lv-7{background-color: #ff3399;}
|
|
53
|
+
&.lv-8{background-color: #f93c3c;}
|
|
45
54
|
}
|
|
46
55
|
.u-vip {
|
|
47
56
|
.ml(5px);
|
package/package.json
CHANGED
package/src/Author.vue
CHANGED
|
@@ -4,26 +4,26 @@
|
|
|
4
4
|
<Avatar class="u-avatar" :uid="uid" :url="data.user_avatar" :size="68" :frame="data.user_avatar_frame" />
|
|
5
5
|
<div class="u-info">
|
|
6
6
|
<a class="u-name" :href="authorLink(uid)">
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
7
|
+
<span>{{ data.display_name.slice(0, 8) }}</span>
|
|
8
|
+
<el-tooltip class="item" effect="dark" content="签约作者" placement="top" v-if="isSuperAuthor">
|
|
9
|
+
<a class="u-superauthor" href="/dashboard/#/cooperation" target="_blank">
|
|
10
|
+
<img :src="super_author_icon" alt="superauthor" />
|
|
11
|
+
</a>
|
|
12
|
+
</el-tooltip>
|
|
13
|
+
</a>
|
|
14
|
+
<div class="u-extend">
|
|
15
|
+
<el-tooltip class="item" effect="dark" placement="top">
|
|
16
|
+
<div slot="content">
|
|
17
|
+
<span class="u-tips">经验值:{{ data.experience }}</span>
|
|
18
|
+
</div>
|
|
19
|
+
<span class="u-level" :class="'lv-' + level">Lv.{{ level }}</span>
|
|
20
|
+
</el-tooltip>
|
|
21
|
+
<el-tooltip class="item" effect="dark" :content="vipTypeTitle" placement="top" v-if="isVip">
|
|
22
|
+
<a class="u-vip" href="/vip/premium?from=sidebar_author" target="_blank">
|
|
23
|
+
<i class="i-icon-vip on">{{ vipType }}</i>
|
|
24
|
+
</a>
|
|
25
|
+
</el-tooltip>
|
|
26
|
+
</div>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
29
|
<div class="u-bio">{{ data.user_bio }}</div>
|
package/src/filters/clientBy.vue
CHANGED
|
@@ -17,13 +17,13 @@ export default {
|
|
|
17
17
|
clientThink: false,
|
|
18
18
|
clients: [
|
|
19
19
|
{
|
|
20
|
-
name: "
|
|
20
|
+
name: "重制",
|
|
21
21
|
client: "std",
|
|
22
22
|
from : 'origin.jx3box.com',
|
|
23
23
|
to : 'www.jx3box.com'
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
name: "
|
|
26
|
+
name: "缘起",
|
|
27
27
|
client: "origin",
|
|
28
28
|
to : 'origin.jx3box.com',
|
|
29
29
|
from : 'www.jx3box.com'
|
|
@@ -66,4 +66,4 @@ export default {
|
|
|
66
66
|
</script>
|
|
67
67
|
|
|
68
68
|
<style scoped lang="less">
|
|
69
|
-
</style>
|
|
69
|
+
</style>
|
|
@@ -94,7 +94,7 @@ export default {
|
|
|
94
94
|
return authorLink(this.post?.post_author);
|
|
95
95
|
},
|
|
96
96
|
author_name: function() {
|
|
97
|
-
return this.post?.
|
|
97
|
+
return this.post?.author_info?.display_name || "匿名";
|
|
98
98
|
},
|
|
99
99
|
post_date: function() {
|
|
100
100
|
return showDate(new Date(this.post?.post_date));
|