@jx3box/jx3box-common-ui 7.3.7 → 7.3.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/assets/css/thx.less
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
.mr(20px);
|
|
4
4
|
}
|
|
5
5
|
.x;
|
|
6
|
+
|
|
7
|
+
.w-boxcoin-user,.w-share2 {
|
|
8
|
+
.u-icon {
|
|
9
|
+
top: -1px;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
.w-fav2 {
|
|
13
|
+
// .y;
|
|
14
|
+
.pr;
|
|
15
|
+
top: 2px;
|
|
16
|
+
|
|
17
|
+
.u-count {
|
|
18
|
+
top: -12px;
|
|
19
|
+
}
|
|
20
|
+
.el-tooltip {
|
|
21
|
+
.pr;
|
|
22
|
+
top: 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
6
25
|
}
|
|
7
26
|
.w-thx-panel{
|
|
8
27
|
.mb(20px);
|
package/package.json
CHANGED
package/src/interact/Like2.vue
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<img
|
|
12
12
|
class="u-icon"
|
|
13
13
|
svg-inline
|
|
14
|
-
|
|
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="
|
|
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
|
}
|