@jx3box/jx3box-vue3-ui 1.0.1 → 1.0.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-vue3-ui",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/service/author.js CHANGED
@@ -34,9 +34,9 @@ async function getDouyu(ids) {
34
34
  return res.data.data;
35
35
  }
36
36
 
37
- async function getUserMedals(uid) {
38
- return $cms({ mute: true })
39
- .get("/api/cms/user/medal/" + uid)
37
+ async function getUserMedals(uid, params) {
38
+ return $next({ mute: true })
39
+ .get("/api/next2/user/" + uid + "/medals", {params})
40
40
  .then((res) => {
41
41
  return res.data.data;
42
42
  });
@@ -26,7 +26,7 @@ import * as utilModule from "@jx3box/jx3box-common/js/utils";
26
26
  const { getMedalLink } = utilModule;
27
27
  import { getUserMedals } from "../../service/author";
28
28
  import JX3BOX from "@jx3box/jx3box-common/data/jx3box.json";
29
- const { __imgPath, __Root } = JX3BOX;
29
+ const { __cdn, __Root } = JX3BOX;
30
30
 
31
31
  export default {
32
32
  name: "AuthorMedals",
@@ -52,12 +52,12 @@ export default {
52
52
  },
53
53
  methods: {
54
54
  loadMedals: function () {
55
- getUserMedals(this.uid).then((data) => {
55
+ getUserMedals(this.uid, {is_wear: 1}).then((data) => {
56
56
  this.medals = data || [];
57
57
  });
58
58
  },
59
59
  showIcon(medal) {
60
- return __imgPath + "image/medals/user/" + medal + ".gif";
60
+ return __cdn + "design/medals/user/" + medal + ".gif";
61
61
  },
62
62
  getMedalLink(medal) {
63
63
  if (medal.medal_url) return `${__Root}${medal.medal_url}`;
@@ -89,6 +89,7 @@ export default {
89
89
  pageTotal: 1,
90
90
  total: 0,
91
91
  },
92
+ decoration: null,
92
93
  };
93
94
  },
94
95
  computed: {