@jx3box/jx3box-common-ui 8.2.4 → 8.2.5
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 +2 -2
- package/src/author/AuthorHonor.vue +14 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jx3box/jx3box-common-ui",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.5",
|
|
4
4
|
"description": "JX3BOX UI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@jx3box/jx3box-comment-ui": "^1.8.7",
|
|
34
34
|
"@jx3box/jx3box-common": "^8.2.4",
|
|
35
35
|
"@jx3box/jx3box-data": "^3.5.6",
|
|
36
|
-
"@jx3box/jx3box-editor": "^2.1.
|
|
36
|
+
"@jx3box/jx3box-editor": "^2.1.7",
|
|
37
37
|
"@jx3box/reporter": "^0.0.4",
|
|
38
38
|
"axios": "^0.26.1",
|
|
39
39
|
"dayjs": "^1.11.0",
|
|
@@ -26,8 +26,8 @@ export default {
|
|
|
26
26
|
},
|
|
27
27
|
computed: {
|
|
28
28
|
isJdt() {
|
|
29
|
-
return this.honor?.val?.toLowerCase()?.includes(
|
|
30
|
-
}
|
|
29
|
+
return this.honor?.val?.toLowerCase()?.includes("jdt");
|
|
30
|
+
},
|
|
31
31
|
},
|
|
32
32
|
methods: {
|
|
33
33
|
imgUrl: function () {
|
|
@@ -65,19 +65,27 @@ export default {
|
|
|
65
65
|
getHonorJson().then((res) => {
|
|
66
66
|
let honorList = res.data;
|
|
67
67
|
let honorConfig = honorList[data.img];
|
|
68
|
+
let only = honorConfig.only;
|
|
68
69
|
let prefix = honorConfig.prefix;
|
|
69
70
|
let regPrefix = honorConfig.prefix.match(/\{([^{}]+?)\}/g);
|
|
70
71
|
let ranking = honorConfig.ranking;
|
|
71
72
|
let honorStr = honorConfig.year || "";
|
|
72
|
-
if (
|
|
73
|
-
|
|
73
|
+
if (!only) {
|
|
74
|
+
if (regPrefix) {
|
|
75
|
+
honorStr = honorStr + (data[regPrefix[0].slice(1, -1)] || "");
|
|
76
|
+
} else {
|
|
77
|
+
honorStr = honorStr + prefix;
|
|
78
|
+
}
|
|
74
79
|
} else {
|
|
75
|
-
honorStr =
|
|
80
|
+
honorStr = prefix;
|
|
76
81
|
}
|
|
77
82
|
if (ranking.length > 0) {
|
|
78
83
|
data.imgIndex = 0;
|
|
79
84
|
for (let i = 0; i < ranking.length; i++) {
|
|
80
|
-
if (
|
|
85
|
+
if (
|
|
86
|
+
honor.ranking !== undefined &&
|
|
87
|
+
inRange(Number(honor.ranking), ranking[i][0], ranking[i][1])
|
|
88
|
+
) {
|
|
81
89
|
data.imgIndex = i;
|
|
82
90
|
let str = ranking[i][2];
|
|
83
91
|
let regStr = str.match(/\{([^{}]+?)\}/g);
|