@jx3box/jx3box-common-ui 9.3.6 → 9.3.8

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-common-ui",
3
- "version": "9.3.6",
3
+ "version": "9.3.8",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/service/author.js CHANGED
@@ -47,9 +47,11 @@ function getDouyu(ids) {
47
47
  });
48
48
  }
49
49
  // 获取用户勋章
50
- function getUserMedals(uid) {
51
- return $cms({ mute: true })
52
- .get("/api/cms/user/medal/" + uid)
50
+ function getUserMedals(uid, params) {
51
+ return $next({ mute: true })
52
+ .get("/api/next2/user/" + uid + "/medals", {
53
+ params
54
+ })
53
55
  .then((res) => {
54
56
  return res.data.data;
55
57
  });
@@ -25,7 +25,7 @@
25
25
  <script>
26
26
  import { getMedalLink } from "@jx3box/jx3box-common/js/utils";
27
27
  import { getUserMedals } from "../../service/author";
28
- import { __imgPath, __Root } from "@jx3box/jx3box-common/data/jx3box.json";
28
+ import { __cdn, __Root } from "@jx3box/jx3box-common/data/jx3box.json";
29
29
  export default {
30
30
  name: "AuthorMedals",
31
31
  props: ["uid"],
@@ -50,12 +50,12 @@ export default {
50
50
  },
51
51
  methods: {
52
52
  loadMedals: function () {
53
- getUserMedals(this.uid).then((data) => {
53
+ getUserMedals(this.uid, {is_wear: 1}).then((data) => {
54
54
  this.medals = data || [];
55
55
  });
56
56
  },
57
57
  showIcon(medal) {
58
- return __imgPath + "image/medals/user/" + medal + ".gif";
58
+ return __cdn + "design/medals/user/" + medal + ".gif";
59
59
  },
60
60
  getMedalLink(medal) {
61
61
  if (medal.medal_url) return `${__Root}${medal.medal_url}`