@jx3box/jx3box-common-ui 9.0.28 → 9.0.30

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.28",
3
+ "version": "9.0.30",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,8 +31,8 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@jx3box/jx3box-comment-ui": "^2.0.2",
34
- "@jx3box/jx3box-common": "^8.5.4",
35
- "@jx3box/jx3box-data": "^3.7.6",
34
+ "@jx3box/jx3box-common": "^8.5.5",
35
+ "@jx3box/jx3box-data": "^3.7.7",
36
36
  "@jx3box/jx3box-editor": "^2.2.23",
37
37
  "@jx3box/reporter": "^0.0.4",
38
38
  "axios": "^0.26.1",
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
  };
package/src/Header.vue CHANGED
@@ -92,6 +92,16 @@ export default {
92
92
  // 检查
93
93
  init: function () {
94
94
  this.checkIsWebView();
95
+
96
+ const token = this.getUrlParam("__token");
97
+
98
+ token && localStorage.setItem("__token", token);
99
+ },
100
+
101
+ getUrlParam(name) {
102
+ var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
103
+ var r = window.location.search.substr(1).match(reg);
104
+ return r ? decodeURIComponent(r[2]) : null;
95
105
  },
96
106
  },
97
107
  created: function () {
@@ -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>