@jx3box/jx3box-common-ui 8.2.7 → 8.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "8.2.7",
3
+ "version": "8.2.9",
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="8719">
18
+ <LeftSidebar :open="true" :uid="8">
19
19
  <LeftSideToggle :mobileOnly="true" />
20
- <Author :author="author" :uid="8719" />
20
+ <Author :author="author" :uid="8" />
21
21
  </LeftSidebar>
22
22
 
23
23
  <Main :withoutLeft="false" :withoutRight="false">
@@ -25,16 +25,13 @@ export default {
25
25
  },
26
26
  computed: {
27
27
  isJdt() {
28
- return this.honor?.val?.toLowerCase()?.includes("jdt");
28
+ return this.honor?.honor_info?.img?.toLowerCase()?.includes("jdt");
29
29
  },
30
30
  },
31
31
  methods: {
32
32
  imgUrl: function () {
33
- let item = this.honor;
33
+ let item = this.honor?.honor_info;
34
34
  if (!item) return;
35
- if (item.isImgIndex) {
36
- return __imgPath + `decoration/honor/${item.img}/${item.img}_${item.imgIndex}.${item.img_ext}`;
37
- }
38
35
  return __imgPath + `decoration/honor/${item.img}/${item.img}.${item.img_ext}`;
39
36
  },
40
37
  getHonor() {
@@ -67,7 +64,6 @@ export default {
67
64
  let ranking = honorConfig.ranking;
68
65
  let honorStr = honorConfig.year || "";
69
66
 
70
- console.log(honorConfig, regPrefix)
71
67
  if (!only) {
72
68
  if (regPrefix) {
73
69
  honorStr = honorStr + (data[regPrefix[0].slice(1, -1)] || "");
@@ -77,7 +73,7 @@ export default {
77
73
  } else {
78
74
  honorStr = prefix;
79
75
  }
80
- if (ranking.length > 0) {
76
+ if (ranking?.length > 0) {
81
77
  data.imgIndex = 0;
82
78
  for (let i = 0; i < ranking.length; i++) {
83
79
  if (
@@ -13,6 +13,7 @@
13
13
 
14
14
  <script>
15
15
  import { getConfig, getUserMeta, setUserMeta } from "../../service/cms";
16
+ import User from "@jx3box/jx3box-common/js/user";
16
17
  export default {
17
18
  name: "shop",
18
19
  data: function () {