@jx3box/jx3box-common-ui 7.3.6 → 7.3.8

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": "7.3.6",
3
+ "version": "7.3.8",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -46,13 +46,13 @@ export default {
46
46
  this.isOpen = data;
47
47
  });
48
48
 
49
- // if (window.innerWidth < 1024) {
50
- // this.isOpen = false;
49
+ if (window.innerWidth < 1024) {
50
+ this.isOpen = false;
51
51
 
52
- // document.addEventListener("click", function () {
53
- // Bus.$emit("toggleRightSide", false);
54
- // });
55
- // }
52
+ // document.addEventListener("click", function () {
53
+ // Bus.$emit("toggleRightSide", false);
54
+ // });
55
+ }
56
56
  },
57
57
  };
58
58
  </script>
@@ -11,7 +11,7 @@
11
11
  <img
12
12
  class="u-icon"
13
13
  svg-inline
14
- :src="likeImg"
14
+ src="../../assets/img/widget/like2.svg"
15
15
  />
16
16
  <span class="u-count" v-if="count">{{ count }}</span>
17
17
  </div>
@@ -21,7 +21,6 @@
21
21
 
22
22
  <script>
23
23
  import { postStat, getStat } from "@jx3box/jx3box-common/js/stat";
24
- import _ from "lodash";
25
24
  export default {
26
25
  name: "Like2",
27
26
  props: ["postType", "postId"],
@@ -29,8 +28,6 @@ export default {
29
28
  return {
30
29
  status: true,
31
30
  count: 0,
32
-
33
- likeImg: require("../../assets/img/widget/like4.png"),
34
31
  };
35
32
  },
36
33
  computed: {
@@ -50,15 +47,11 @@ export default {
50
47
  // 点赞
51
48
  addLike: function () {
52
49
  if (!this.ready) return;
53
- this.likeImg = require("../../assets/img/widget/like4ing.gif");
54
50
  this.count++;
55
51
  if (this.status) {
56
52
  postStat(this.postType, this.postId, "likes");
57
53
  }
58
54
  this.status = false;
59
- _.debounce(() => {
60
- this.likeImg = require("../../assets/img/widget/like4.png");
61
- }, 2800)();
62
55
  },
63
56
  },
64
57
  watch : {
@@ -2,7 +2,7 @@
2
2
  <div class="w-boxcoin-user" v-if="allowBoxcoin">
3
3
  <el-tooltip effect="dark" content="投币" placement="top-start">
4
4
  <div class="w-boxcoin-block" @click="openBoxcoinPop">
5
- <img class="u-icon" svg-inline src="../../assets/img/widget/heart1.svg" />
5
+ <img class="u-icon" svg-inline :src="likeImg" />
6
6
  <span class="u-count" v-if="boxcoin">{{boxcoin}}</span>
7
7
  </div>
8
8
  </el-tooltip>
@@ -51,6 +51,7 @@
51
51
  import { rewardBoxcoin } from "../../service/thx.js";
52
52
  import User from "@jx3box/jx3box-common/js/user";
53
53
  import Contributors from './Contributors.vue';
54
+ import _ from "lodash";
54
55
  export default {
55
56
  name: "BoxcoinUser",
56
57
  props: ["boxcoin", "postType", "postId", "userId", "own", "points", "authors",'client'],
@@ -70,6 +71,8 @@ export default {
70
71
  chargeLink: "/vip/boxcoin?redirect=" + location.href,
71
72
 
72
73
  chosen: '', // 被选中的人
74
+
75
+ likeImg: require("../../assets/img/widget/like4.png"),
73
76
  };
74
77
  },
75
78
  computed: {
@@ -105,7 +108,12 @@ export default {
105
108
  methods: {
106
109
  openBoxcoinPop: function () {
107
110
  if (User.isLogin()) {
111
+ this.likeImg = require("../../assets/img/widget/like4ing.gif");
108
112
  this.visible = true;
113
+
114
+ _.debounce(() => {
115
+ this.likeImg = require("../../assets/img/widget/like4.png");
116
+ }, 2800)();
109
117
  } else {
110
118
  User.toLogin();
111
119
  }