@jx3box/jx3box-common-ui 5.1.1 → 5.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "5.1.1",
3
+ "version": "5.1.5",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/service/author.js CHANGED
@@ -6,7 +6,7 @@ function getUserInfo(uid) {
6
6
  return $cms({ mute: true })
7
7
  .get(`/api/cms/user/${uid}/info`)
8
8
  .then((res) => {
9
- return res.data?.data;
9
+ return res.data.data;
10
10
  });
11
11
  }
12
12
 
@@ -76,7 +76,7 @@ export default {
76
76
  confirm: function () {
77
77
  if (this.status) {
78
78
  this.visible = false;
79
- this.$emit("confirm", this.uid);
79
+ this.$emit("confirm", this.userdata);
80
80
  } else {
81
81
  this.$alert("用户不存在 或 UID不正确", "提醒", {
82
82
  confirmButtonText: "确定",
@@ -173,7 +173,7 @@ export default {
173
173
  methods: {
174
174
  // 消息
175
175
  checkMSG: function () {
176
- getMsg().then((res) => {
176
+ this.isLogin && getMsg().then((res) => {
177
177
  this.pop = !!res.data.data.unread;
178
178
  });
179
179
  },
@@ -57,6 +57,9 @@ export default {
57
57
  !!~~val && this.loadData();
58
58
  },
59
59
  },
60
+ defaultVisible : function (val){
61
+ this.visible = val
62
+ }
60
63
  },
61
64
  methods: {
62
65
  handleShow: function () {
@@ -18,10 +18,11 @@
18
18
  :key="i"
19
19
  :href="item.post_author_info.ID | authorLink"
20
20
  target="_blank"
21
+ v-show="item.status"
21
22
  >
22
23
  <img class="u-avatar" :src="item.post_author_info.user_avatar | showAvatar" />
23
24
  <span class="u-name">{{item.post_author_info.display_name}}</span>
24
- <i class="u-label">{{item.label}}</i>
25
+ <i class="u-label">{{item.label | formatLabel}}</i>
25
26
  </a>
26
27
  </div>
27
28
  <a class="w-creators-edit" :href="editLink" v-if="isCreator">
@@ -91,6 +92,9 @@ export default {
91
92
  return showAvatar(val, 48);
92
93
  },
93
94
  authorLink,
95
+ formatLabel : function (str){
96
+ return str && str.slice(0,8)
97
+ }
94
98
  },
95
99
  created: function () {},
96
100
  mounted: function () {},
@@ -114,7 +118,7 @@ export default {
114
118
  .lt(0);
115
119
  writing-mode: vertical-rl;
116
120
  .fz(12px);
117
- background: #49c10f;
121
+ background: @primary;
118
122
  color: #fff;
119
123
  .h(100%);
120
124
  .x;
@@ -145,6 +149,7 @@ export default {
145
149
  .bold;
146
150
  .db;
147
151
  color: @color;
152
+ margin-bottom: 2px;
148
153
  }
149
154
  &:hover {
150
155
  .u-name {
@@ -152,7 +157,7 @@ export default {
152
157
  }
153
158
  }
154
159
  .u-up {
155
- .db;
160
+ // .db;
156
161
  .fz(12px,1);
157
162
  font-style: normal;
158
163
  background-color: @pink;
@@ -162,7 +167,7 @@ export default {
162
167
  .mt(5px);
163
168
  }
164
169
  .u-label {
165
- .db;
170
+ // .db;
166
171
  .fz(12px,1);
167
172
  font-style: normal;
168
173
  background-color: @color-link;