@jx3box/jx3box-common-ui 6.7.4 → 6.7.7

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.
@@ -757,10 +757,11 @@ body {
757
757
  .c-header-manage {
758
758
  height: 100%;
759
759
  .u-manage {
760
- padding: 0 10px;
760
+ padding: 0 10px 0 8px;
761
761
  height: 100%;
762
762
  .flex;
763
763
  align-items: center;
764
+ svg{.size(19px);}
764
765
  }
765
766
  }
766
767
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "6.7.4",
3
+ "version": "6.7.7",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,7 +9,7 @@
9
9
  "build": "vue-cli-service build",
10
10
  "lint": "vue-cli-service lint",
11
11
  "inspect": "vue inspect > output.js",
12
- "update": "npm --registry https://registry.npmjs.org install @jx3box/jx3box-common@latest @jx3box/jx3box-data@latest",
12
+ "update": "npm --registry https://registry.npmjs.org install @jx3box/jx3box-common@latest @jx3box/jx3box-data@latest @jx3box/jx3box-comment-ui@latest @jx3box/jx3box-editor@latest",
13
13
  "header": "vue-cli-service build --target lib --name newheader src/Header.vue && cp public/index.html dist/newheader.html"
14
14
  },
15
15
  "eslintConfig": {
@@ -30,8 +30,10 @@
30
30
  "last 2 versions"
31
31
  ],
32
32
  "dependencies": {
33
+ "@jx3box/jx3box-comment-ui": "^1.7.8",
33
34
  "@jx3box/jx3box-common": "^7.6.2",
34
35
  "@jx3box/jx3box-data": "^3.0.3",
36
+ "@jx3box/jx3box-editor": "^1.6.9",
35
37
  "axios": "^0.26.1",
36
38
  "dayjs": "^1.11.0",
37
39
  "element-ui": "^2.13.2",
@@ -5,17 +5,16 @@
5
5
  </div>
6
6
 
7
7
  <div class="c-game-list" v-show="showMore">
8
- <a
8
+ <span
9
9
  class="u-game-item"
10
10
  v-for="item in games"
11
11
  :key="item.key"
12
12
  :class="{ active: current === item.key, disabled: item.disabled }"
13
- :href="itemHref(item)"
14
13
  @click.stop="handleClick(item)"
15
14
  >
16
15
  <img class="u-img" :src="item.img" alt="" />
17
16
  <span>{{ item.name }}</span>
18
- </a>
17
+ </span>
19
18
  </div>
20
19
  </div>
21
20
  </template>
@@ -31,14 +30,14 @@ export default {
31
30
  name: "剑网3",
32
31
  img: __imgPath + "image/xsj/jx3czb.png",
33
32
  key: "jx3",
34
- path: "https://www.jx3box.com",
33
+ path: "www.jx3box.com",
35
34
  disabled: false,
36
35
  },
37
36
  {
38
37
  name: "剑网3缘起",
39
38
  img: __imgPath + "image/xsj/jx3yq.png",
40
39
  key: "jx3origin",
41
- path: "https://origin.jx3box.com",
40
+ path: "origin.jx3box.com",
42
41
  disabled: false,
43
42
  },
44
43
  {
@@ -107,14 +106,25 @@ export default {
107
106
  if (item.disabled) {
108
107
  return;
109
108
  }
110
- this.current = item.key;
111
- },
112
- itemHref(item) {
113
- if (item.disabled) {
114
- return "javascript:;";
109
+ if (['jx3', 'jx3origin'].includes(this.current) && ['jx3', 'jx3origin'].includes(item.key)) {
110
+ const _current = this.games.find((game) => game.key == this.current);
111
+ const _next = this.games.find((game) => game.key == item.key);
112
+
113
+ location.href = location.href.replace(
114
+ _current.path,
115
+ _next.path
116
+ );
117
+ } else {
118
+ location.href = item.path;
115
119
  }
116
- return item.path;
120
+ this.current = item.key;
117
121
  },
122
+ // itemHref(item) {
123
+ // if (item.disabled) {
124
+ // return "javascript:;";
125
+ // }
126
+ // return item.path;
127
+ // },
118
128
  onShow() {
119
129
  this.showMore = !this.showMore;
120
130
  },