@jx3box/jx3box-common-ui 5.7.12 → 5.7.13

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": "5.7.12",
3
+ "version": "5.7.13",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/App.vue CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  <LeftSidebar :open="true">
10
10
  <LeftSideToggle :mobileOnly="true" />
11
- <Author :author="author" :uid="2" />
11
+ <Author :author="author" :uid="8" />
12
12
  </LeftSidebar>
13
13
 
14
14
  <Main :withoutLeft="false" :withoutRight="false">
package/src/Author.vue CHANGED
@@ -59,9 +59,10 @@
59
59
  <span>作者荣誉</span>
60
60
  </div>
61
61
  <div class="u-medals" v-if="medals && medals.length">
62
- <span class="u-medal" v-for="(item, i) in medals" :key="i">
62
+ <!-- <span class="u-medal" v-for="(item, i) in medals" :key="i">
63
63
  <img :src="showMedalIcon(item.medal)" :title="showMedalDesc(item)" />
64
- </span>
64
+ </span> -->
65
+ <medal :medals="medals" :showIcon="showMedalIcon"></medal>
65
66
  </div>
66
67
  </div>
67
68
  <div class="u-teams" v-if="teams && teams.length">
@@ -88,6 +89,7 @@ import { getUserInfo, getDouyu, getUserMedals, getUserPublicTeams } from "../ser
88
89
  import { user as medal_map } from "@jx3box/jx3box-common/data/medals.json";
89
90
  import User from "@jx3box/jx3box-common/js/user";
90
91
  import { __userLevel } from "@jx3box/jx3box-common/data/jx3box.json";
92
+ import medal from './medal/medal.vue'
91
93
  export default {
92
94
  name: "Author",
93
95
  props: ["uid"],
@@ -213,6 +215,7 @@ export default {
213
215
  components: {
214
216
  Avatar,
215
217
  Authorposts,
218
+ medal
216
219
  },
217
220
  };
218
221
  </script>