@jx3box/jx3box-common-ui 8.0.6 → 8.0.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": "8.0.6",
3
+ "version": "8.0.8",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/App.vue CHANGED
@@ -15,9 +15,9 @@
15
15
  bread info
16
16
  </Breadcrumb>
17
17
 
18
- <LeftSidebar :open="true" :uid="8">
18
+ <LeftSidebar :open="true" :uid="2">
19
19
  <LeftSideToggle :mobileOnly="true" />
20
- <Author :author="author" :uid="8" />
20
+ <Author :author="author" :uid="2" />
21
21
  </LeftSidebar>
22
22
 
23
23
  <Main :withoutLeft="false" :withoutRight="false">
@@ -58,7 +58,7 @@ export default {
58
58
  return __imgPath + "image/medals/user/" + medal + ".gif";
59
59
  },
60
60
  getMedalLink(medal) {
61
- return getMedalLink(medal.rank_id, medal.medal_type || "rank");
61
+ return medal.rank_id ? getMedalLink(medal.rank_id, medal.medal_type || "rank") : "";
62
62
  },
63
63
  },
64
64
  created: function () {},
@@ -1,15 +1,22 @@
1
1
  <template>
2
2
  <div class="m-medal">
3
- <a :href="medalLink(item)" target="_blank" class="u-medal" v-for="item in medals" :key="item.id" :title="item.medal_desc">
4
- <img class="u-medal-img" :src="showIcon(item.medal)">
3
+ <a
4
+ :href="medalLink(item)"
5
+ target="_blank"
6
+ class="u-medal"
7
+ v-for="item in medals"
8
+ :key="item.id"
9
+ :title="item.medal_desc"
10
+ >
11
+ <img class="u-medal-img" :src="showIcon(item.medal)" />
5
12
  </a>
6
13
  </div>
7
14
  </template>
8
15
 
9
16
  <script>
10
- import { getMedalLink } from '@jx3box/jx3box-common/js/utils'
17
+ import { getMedalLink } from "@jx3box/jx3box-common/js/utils";
11
18
  export default {
12
- name: 'author_medal',
19
+ name: "author_medal",
13
20
  props: {
14
21
  medals: {
15
22
  type: Array,
@@ -18,14 +25,14 @@ export default {
18
25
  showIcon: {
19
26
  type: Function,
20
27
  default: () => true,
21
- }
28
+ },
22
29
  },
23
30
  methods: {
24
- medalLink({ rank_id, medal_type = 'rank' }) {
25
- return getMedalLink(rank_id, medal_type)
26
- }
27
- }
28
- }
31
+ medalLink({ rank_id, medal_type = "rank" }) {
32
+ return rank_id ? getMedalLink(rank_id, medal_type) : "";
33
+ },
34
+ },
35
+ };
29
36
  </script>
30
37
 
31
38
  <style lang="less">
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="m-single-collection" v-if="list && list.length">
3
- <!-- <div class="u-title"><i class="el-icon-connection"></i> 关联</div>
3
+ <div class="u-title"><i class="el-icon-connection"></i> 关联</div>
4
4
  <ul class="u-list">
5
5
  <li v-for="(item, i) in list" :key="i">
6
6
  <el-tooltip class="item" effect="dark" :content="item.title" placement="left">
@@ -10,10 +10,10 @@
10
10
  </a>
11
11
  </el-tooltip>
12
12
  </li>
13
- </ul> -->
14
- <a class="u-image" :href="`collection/${store.id}`">
13
+ </ul>
14
+ <!-- <a class="u-image" :href="`collection/${store.id}`">
15
15
  <img :src="getCover(store.image)" />
16
- </a>
16
+ </a> -->
17
17
  </div>
18
18
  </template>
19
19