@jx3box/jx3box-common-ui 9.0.27 → 9.0.29

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.0.27",
3
+ "version": "9.0.29",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,10 +30,10 @@
30
30
  "last 2 versions"
31
31
  ],
32
32
  "dependencies": {
33
- "@jx3box/jx3box-comment-ui": "^2.0.1",
33
+ "@jx3box/jx3box-comment-ui": "^2.0.2",
34
34
  "@jx3box/jx3box-common": "^8.5.4",
35
- "@jx3box/jx3box-data": "^3.7.5",
36
- "@jx3box/jx3box-editor": "^2.2.21",
35
+ "@jx3box/jx3box-data": "^3.7.6",
36
+ "@jx3box/jx3box-editor": "^2.2.23",
37
37
  "@jx3box/reporter": "^0.0.4",
38
38
  "axios": "^0.26.1",
39
39
  "dayjs": "^1.11.0",
package/src/Author.vue CHANGED
@@ -15,7 +15,7 @@
15
15
  <!-- <AuthorLink class="u-block u-links" :uid="uid" :data="data" /> -->
16
16
  <AuthorMedals class="u-block u-trophy" :uid="uid" />
17
17
  <!-- <AuthorTeams class="u-block u-teams" :uid="uid" /> -->
18
- <AuthorFans class="u-block u-fans" :uid="uid" />
18
+ <!-- <AuthorFans class="u-block u-fans" :uid="uid" /> -->
19
19
  <slot></slot>
20
20
  <AuthorPosts class="u-block u-posts" :uid="uid" />
21
21
  </template>
@@ -28,7 +28,7 @@ import AuthorInfo from "./author/AuthorInfo.vue";
28
28
  // import AuthorFollow from "./author/AuthorFollow.vue";
29
29
  // import AuthorMsg from "./author/AuthorMsg.vue";
30
30
  // import AuthorGift from "./author/AuthorGift.vue";
31
- import AuthorFans from "./author/AuthorFans.vue";
31
+ // import AuthorFans from "./author/AuthorFans.vue";
32
32
  import AuthorMedals from "./author/AuthorMedals.vue";
33
33
  // import AuthorTeams from "./author/AuthorTeams.vue";
34
34
  import AuthorPosts from "./author/AuthorPosts.vue";
@@ -60,7 +60,7 @@ export default {
60
60
  AuthorMedals,
61
61
  // AuthorTeams,
62
62
  AuthorPosts,
63
- AuthorFans,
63
+ // AuthorFans,
64
64
  AuthorRss,
65
65
  },
66
66
  };
@@ -5,7 +5,7 @@
5
5
  <img svg-inline src="../../assets/img/leftsidebar/fans.svg" />
6
6
  <span>粉丝榜</span>
7
7
  </div>
8
- <div class="f-avatar">
8
+ <div class="f-avatar" v-if="list.length">
9
9
  <el-tooltip
10
10
  class="item"
11
11
  effect="dark"
@@ -22,7 +22,7 @@
22
22
  </div>
23
23
  <div class="f-bottom">
24
24
  粉丝数: <span class="u-count">{{ fans_count }}</span
25
- >,累计收到盒币打赏: <span class="u-count">{{ boxcoin_count }}</span>
25
+ ><template v-if="boxcoin_count">,累计收到盒币打赏: <span class="u-count">{{ boxcoin_count }}</span></template>
26
26
  </div>
27
27
  </div>
28
28
  </template>
@@ -61,7 +61,7 @@ export default {
61
61
  });
62
62
 
63
63
  getFansList(this.uid, this.fansLimit).then((res) => {
64
- this.list = res.data.data.list;
64
+ this.list = res.data.data.list || [];
65
65
  });
66
66
  },
67
67
  showAvatar,
@@ -40,7 +40,7 @@ export default {
40
40
  },
41
41
  computed: {
42
42
  btnText() {
43
- return this.subscribed ? "已订阅" : "订阅";
43
+ return this.subscribed ? "已关注" : "关注";
44
44
  },
45
45
  btnType() {
46
46
  return !this.subscribed ? "info" : "warning";
@@ -87,7 +87,7 @@ export default {
87
87
  subscribeAuthor({ id: this.uid, data: { title: this.data?.display_name } })
88
88
  .then((res) => {
89
89
  this.subscribed = true;
90
- this.$message.success("订阅成功");
90
+ this.$message.success("关注成功");
91
91
  })
92
92
  .catch((err) => {
93
93
  console.log(err);