@jx3box/jx3box-common-ui 8.9.26 → 8.9.28

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.
@@ -148,4 +148,11 @@
148
148
  .none;
149
149
  }
150
150
  }
151
+ .wechat-miniprogram{
152
+ .c-breadcrumb{
153
+ .u-op {
154
+ .none;
155
+ }
156
+ }
157
+ }
151
158
  }
@@ -69,4 +69,10 @@
69
69
  .none;
70
70
  }
71
71
  }
72
+
73
+ .wechat-miniprogram {
74
+ .c-footer {
75
+ .none;
76
+ }
77
+ }
72
78
  }
@@ -200,7 +200,7 @@ body {
200
200
  height: 100%;
201
201
  .flex;
202
202
  align-items: center;
203
- }
203
+ }
204
204
 
205
205
  &.on {
206
206
  .u-menu {
@@ -208,7 +208,7 @@ body {
208
208
  }
209
209
  }
210
210
 
211
- &:hover {
211
+ &:hover {
212
212
  .u-dropdown {
213
213
  opacity: 0.7;
214
214
  }
@@ -511,6 +511,12 @@ body {
511
511
  padding-top: 0;
512
512
  }
513
513
  }
514
+
515
+ .wechat-miniprogram {
516
+ .c-header {
517
+ .none;
518
+ }
519
+ }
514
520
  }
515
521
 
516
522
  .c-header-jx3box {
@@ -68,4 +68,14 @@ a{
68
68
  .mt(0);
69
69
  }
70
70
  }
71
+
72
+ .wechat-miniprogram {
73
+ .c-wiki-comments {
74
+ .none;
75
+ }
76
+
77
+ .m-single-comment {
78
+ .none;
79
+ }
80
+ }
71
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "8.9.26",
3
+ "version": "8.9.28",
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": "^1.9.3",
34
- "@jx3box/jx3box-common": "^8.3.5",
35
- "@jx3box/jx3box-data": "^3.5.8",
36
- "@jx3box/jx3box-editor": "^2.1.9",
33
+ "@jx3box/jx3box-comment-ui": "^1.9.9",
34
+ "@jx3box/jx3box-common": "^8.3.8",
35
+ "@jx3box/jx3box-data": "^3.6.8",
36
+ "@jx3box/jx3box-editor": "^2.2.15",
37
37
  "@jx3box/reporter": "^0.0.4",
38
38
  "axios": "^0.26.1",
39
39
  "dayjs": "^1.11.0",
package/src/Header.vue CHANGED
@@ -41,6 +41,7 @@ import search from "./header/search.vue";
41
41
  import nav from "./header/nav.vue";
42
42
  import user from "./header/user.vue";
43
43
  import Box from "../src/Box.vue";
44
+ import { isMiniProgram } from "@jx3box/jx3box-common/js/utils";
44
45
  // import gameSwitch from "./header/gameSwitch.vue";
45
46
 
46
47
  export default {
@@ -63,6 +64,10 @@ export default {
63
64
  if (window.navigator.userAgent.includes(KW)) {
64
65
  document.documentElement.classList.add("env-app");
65
66
  }
67
+
68
+ if (isMiniProgram()) {
69
+ document.documentElement.classList.add("wechat-miniprogram");
70
+ }
66
71
  },
67
72
 
68
73
  // 检查
@@ -2,8 +2,8 @@
2
2
  <div class="w-fav2" :class="{ disabled: favorite }" @click="doFav">
3
3
  <el-tooltip effect="dark" :content="favContent" placement="top-start">
4
4
  <div>
5
- <img v-if="favorite" class="u-icon" svg-inline src="../../assets/img/widget/unstar.svg" />
6
- <img v-else class="u-icon" svg-inline src="../../assets/img/widget/star.svg" />
5
+ <img v-if="favorite" class="u-icon" svg-inline :src="unstarIcon" />
6
+ <img v-else class="u-icon" svg-inline :src="starIcon" />
7
7
  <span class="u-count" v-if="!hiddenNum && total">{{ total }}</span>
8
8
  </div>
9
9
  </el-tooltip>
@@ -16,7 +16,7 @@ import { hasFav, addFav, delFav } from "../../service/fav";
16
16
  import { __cdn } from "@jx3box/jx3box-common/data/jx3box.json";
17
17
  export default {
18
18
  name: "Fav2",
19
- props: ["postType", "postId", "postTitle", "hiddenNum"],
19
+ props: ["postType", "postId", "postTitle", "hiddenNum", "isOld"],
20
20
  data: function () {
21
21
  return {
22
22
  login: User.isLogin(),
@@ -29,10 +29,10 @@ export default {
29
29
  return this.favorite ? "已收藏" : "收藏";
30
30
  },
31
31
  starIcon() {
32
- return __cdn + "design/vector/icon/collect.svg"
32
+ return this.isOld ? require("../../assets/img/widget/star.svg") : __cdn + "design/vector/icon/collect.svg"
33
33
  },
34
34
  unstarIcon() {
35
- return __cdn + "design/vector/icon/uncollect.svg"
35
+ return this.isOld ? require("../../assets/img/widget/unstar.svg") : __cdn + "design/vector/icon/uncollect.svg"
36
36
  },
37
37
  },
38
38
  methods: {
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="c-right-affix" :class="{ 'is-close': !isOpen }">
3
3
  <div class="item">
4
- <fav :postId="postId" :postType="postType" :postTitle="postTitle" :hiddenNum="true"></fav>
4
+ <fav :postId="postId" :postType="postType" :postTitle="postTitle" :hiddenNum="true" :isOld="true"></fav>
5
5
  </div>
6
6
  <el-tooltip v-if="showComment" effect="dark" content="去评论" placement="left">
7
7
  <div class="u-item" @click="toComment">