@jx3box/jx3box-common-ui 5.7.1 → 5.7.2
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/package.json +3 -3
- package/src/Author.vue +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jx3box/jx3box-common-ui",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.2",
|
|
4
4
|
"description": "JX3BOX UI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@jx3box/jx3box-comment-ui": "^1.7.0",
|
|
34
|
-
"@jx3box/jx3box-common": "^7.1.
|
|
35
|
-
"@jx3box/jx3box-data": "^1.9.
|
|
34
|
+
"@jx3box/jx3box-common": "^7.1.4",
|
|
35
|
+
"@jx3box/jx3box-data": "^1.9.4",
|
|
36
36
|
"@jx3box/jx3box-editor": "^1.2.7",
|
|
37
37
|
"axios": "^0.26.1",
|
|
38
38
|
"dayjs": "^1.11.0",
|
package/src/Author.vue
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<div slot="content">
|
|
17
17
|
<span class="u-tips">经验值:{{ data.experience }}</span>
|
|
18
18
|
</div>
|
|
19
|
-
<span class="u-level" :class="'lv-' + level">Lv.{{ level }}</span>
|
|
19
|
+
<span class="u-level" :class="'lv-' + level" :style={backgroundColor:showLevelColor(level)}>Lv.{{ level }}</span>
|
|
20
20
|
</el-tooltip>
|
|
21
21
|
<el-tooltip class="item" effect="dark" :content="vipTypeTitle" placement="top" v-if="isVip">
|
|
22
22
|
<a class="u-vip" href="/vip/premium?from=sidebar_author" target="_blank">
|
|
@@ -83,7 +83,7 @@ const liveStatusMap = ["等待开播", "直播中", "直播结束"];
|
|
|
83
83
|
import Avatar from "./author/Avatar.vue";
|
|
84
84
|
import Authorposts from "./author/Authorposts.vue";
|
|
85
85
|
import { authorLink, tvLink, getLink, getThumbnail } from "@jx3box/jx3box-common/js/utils";
|
|
86
|
-
import { __server, __imgPath } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
86
|
+
import { __server, __imgPath,__userLevelColor } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
87
87
|
import { getUserInfo, getDouyu, getUserMedals, getUserPublicTeams } from "../service/author";
|
|
88
88
|
import { user as medal_map } from "@jx3box/jx3box-common/data/medals.json";
|
|
89
89
|
import User from "@jx3box/jx3box-common/js/user";
|
|
@@ -198,6 +198,9 @@ export default {
|
|
|
198
198
|
showTeamLogo: function(val) {
|
|
199
199
|
return getThumbnail(val, 96);
|
|
200
200
|
},
|
|
201
|
+
showLevelColor:function (level){
|
|
202
|
+
return __userLevelColor[level]
|
|
203
|
+
}
|
|
201
204
|
},
|
|
202
205
|
watch: {
|
|
203
206
|
uid: function() {
|