@jx3box/jx3box-common-ui 9.0.3 → 9.0.5
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/author.less +1 -1
- package/package.json +1 -1
- package/src/Author.vue +1 -1
- package/src/author/AuthorRss.vue +7 -2
package/assets/css/author.less
CHANGED
package/package.json
CHANGED
package/src/Author.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<template v-if="data">
|
|
5
5
|
<div class="u-interact">
|
|
6
6
|
<!-- <AuthorFollow style="margin-right: 8px" :uid="uid" /> -->
|
|
7
|
-
<AuthorRss style="margin-right: 8px" :uid="uid" />
|
|
7
|
+
<AuthorRss style="margin-right: 8px" :uid="uid" :data="data" />
|
|
8
8
|
<!-- <AuthorGift :uid="uid" /> -->
|
|
9
9
|
<el-button class="u-btn" size="mini" @click="onMessage">
|
|
10
10
|
<img class="u-msg-icon" svg-inline :src="src" />
|
package/src/author/AuthorRss.vue
CHANGED
|
@@ -26,6 +26,10 @@ export default {
|
|
|
26
26
|
type: Number,
|
|
27
27
|
default: 0,
|
|
28
28
|
},
|
|
29
|
+
data: {
|
|
30
|
+
type: Object,
|
|
31
|
+
default: () => {},
|
|
32
|
+
},
|
|
29
33
|
},
|
|
30
34
|
data() {
|
|
31
35
|
return {
|
|
@@ -80,9 +84,10 @@ export default {
|
|
|
80
84
|
if (this.subscribed) {
|
|
81
85
|
this.unsubscribe({ id: this.uid });
|
|
82
86
|
} else {
|
|
83
|
-
subscribeAuthor({ id: this.uid })
|
|
87
|
+
subscribeAuthor({ id: this.uid, data: { title: this.data?.display_name } })
|
|
84
88
|
.then((res) => {
|
|
85
89
|
this.subscribed = true;
|
|
90
|
+
this.$message.success("订阅成功");
|
|
86
91
|
})
|
|
87
92
|
.catch((err) => {
|
|
88
93
|
console.log(err);
|
|
@@ -142,7 +147,7 @@ export default {
|
|
|
142
147
|
.u-icon {
|
|
143
148
|
.size(12px);
|
|
144
149
|
.pr;
|
|
145
|
-
top:
|
|
150
|
+
top: 1px;
|
|
146
151
|
filter: invert(40%) sepia(5%) saturate(419%) hue-rotate(182deg) brightness(89%) contrast(84%);
|
|
147
152
|
}
|
|
148
153
|
}
|