@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.
@@ -87,7 +87,7 @@
87
87
  .u-msg-icon {
88
88
  .size(12px);
89
89
  .pr;
90
- top: 2px;
90
+ top: 1px;
91
91
  filter: invert(40%) sepia(5%) saturate(419%) hue-rotate(182deg) brightness(89%) contrast(84%);
92
92
  }
93
93
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "9.0.3",
3
+ "version": "9.0.5",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
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" />
@@ -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: 2px;
150
+ top: 1px;
146
151
  filter: invert(40%) sepia(5%) saturate(419%) hue-rotate(182deg) brightness(89%) contrast(84%);
147
152
  }
148
153
  }