@jx3box/jx3box-common-ui 9.1.8 → 9.2.0
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/main.less +8 -6
- package/package.json +1 -1
- package/service/fav.js +7 -4
- package/src/interact/watchLater.vue +6 -1
package/assets/css/main.less
CHANGED
|
@@ -69,13 +69,15 @@ a{
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.v-miniprogram
|
|
73
|
-
|
|
74
|
-
.
|
|
75
|
-
|
|
72
|
+
.v-miniprogram {
|
|
73
|
+
&.from-seasun {
|
|
74
|
+
.c-wiki-comments {
|
|
75
|
+
.none;
|
|
76
|
+
}
|
|
76
77
|
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
.m-single-comment {
|
|
79
|
+
.none;
|
|
80
|
+
}
|
|
79
81
|
}
|
|
80
82
|
}
|
|
81
83
|
|
package/package.json
CHANGED
package/service/fav.js
CHANGED
|
@@ -18,11 +18,14 @@ function delFav(id) {
|
|
|
18
18
|
|
|
19
19
|
// 稍后再看
|
|
20
20
|
function addWatchLater(data) {
|
|
21
|
-
return $n.post(`api/next2/userdata/
|
|
21
|
+
return $n.post(`api/next2/userdata/watch-later/item`, data)
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
function delWatchLater(params) {
|
|
25
|
-
return $n.delete(`api/next2/userdata/
|
|
25
|
+
return $n.delete(`api/next2/userdata/watch-later/item`, { params })
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
// 删除稍后再看 by meta_id
|
|
28
|
+
function delWatchLaterByMetaId(meta_id) {
|
|
29
|
+
return $n.delete(`api/next2/userdata/watch-later/item/content_meta/${meta_id}`)
|
|
30
|
+
}
|
|
31
|
+
export { hasFav, addFav, delFav, addWatchLater, delWatchLater, delWatchLaterByMetaId };
|
|
@@ -33,6 +33,10 @@ export default {
|
|
|
33
33
|
type: String,
|
|
34
34
|
default: "",
|
|
35
35
|
},
|
|
36
|
+
contentId: {
|
|
37
|
+
type: Number,
|
|
38
|
+
default: 0,
|
|
39
|
+
}
|
|
36
40
|
},
|
|
37
41
|
data: function () {
|
|
38
42
|
return {
|
|
@@ -57,6 +61,7 @@ export default {
|
|
|
57
61
|
title: this.title,
|
|
58
62
|
author_id: this.authorId,
|
|
59
63
|
banner: this.banner,
|
|
64
|
+
content_meta_id: this.contentId,
|
|
60
65
|
}
|
|
61
66
|
}
|
|
62
67
|
},
|
|
@@ -76,7 +81,7 @@ export default {
|
|
|
76
81
|
},
|
|
77
82
|
rmWatchLater: function () {
|
|
78
83
|
// remove watch later
|
|
79
|
-
delWatchLater(omit(this.data, ['title'])).then(() => {
|
|
84
|
+
delWatchLater(omit(this.data, ['title', 'author_id', 'banner', 'content_meta_id'])).then(() => {
|
|
80
85
|
this.favorite = false;
|
|
81
86
|
});
|
|
82
87
|
},
|