@jx3box/jx3box-common-ui 7.8.8 → 7.8.9

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.
@@ -412,6 +412,11 @@ body {
412
412
  border-top-right-radius: 4px;
413
413
  }
414
414
 
415
+ .u-expire {
416
+ font-size: 12px;
417
+ color: #999;
418
+ }
419
+
415
420
  .u-basic {
416
421
  .flex;
417
422
  align-items: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "7.8.8",
3
+ "version": "7.8.9",
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": "^1.7.16",
34
- "@jx3box/jx3box-common": "^8.0.2",
35
- "@jx3box/jx3box-data": "^3.5.2",
34
+ "@jx3box/jx3box-common": "^8.0.3",
35
+ "@jx3box/jx3box-data": "^3.5.3",
36
36
  "@jx3box/jx3box-editor": "^1.9.9",
37
37
  "@jx3box/reporter": "^0.0.4",
38
38
  "axios": "^0.26.1",
@@ -44,6 +44,7 @@
44
44
  <img :src="super_author_icon" class="u-superauthor-profile" alt="superauthor" title="签约作者" :class="{ off: !isSuperAuthor }" /></a>
45
45
  <a class="u-vip" href="/vip/premium?from=header_usermenu" target="_blank" title="专业版账号">
46
46
  <i class="i-icon-vip" :class="{ on: isPRO }">{{ vipType }}</i>
47
+ <span class="u-expire" v-if="isPRO">(有效期至:{{ pro_expire_date }})</span>
47
48
  </a>
48
49
  </div>
49
50
  <div class="u-id">
@@ -81,6 +82,7 @@
81
82
  import User from "@jx3box/jx3box-common/js/user";
82
83
  import { showAvatar } from "@jx3box/jx3box-common/js/utils";
83
84
  import { getMyInfo } from "../../service/author";
85
+ import { showDate } from "@jx3box/jx3box-common/js/moment";
84
86
  import { __Links, __Root, __imgPath, __OriginRoot } from "@jx3box/jx3box-common/data/jx3box.json";
85
87
  import { copyText } from "../../assets/js/utils";
86
88
  import { getMenu } from "../../service/header";
@@ -135,6 +137,9 @@ export default {
135
137
  isEditor() {
136
138
  return User.isEditor();
137
139
  },
140
+ pro_expire_date: function() {
141
+ return this.asset.pro_expire_date ? showDate(this.asset.pro_expire_date) : '-';
142
+ },
138
143
  },
139
144
  mounted() {
140
145
  this.loadMyInfo();