@jx3box/jx3box-common-ui 7.9.11 → 8.0.1
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 +1 -1
- package/src/App.vue +2 -2
- package/src/Author.vue +11 -7
- package/src/author/AuthorFollow.vue +6 -6
- package/src/bread/Admin.vue +8 -2
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
bread info
|
|
16
16
|
</Breadcrumb>
|
|
17
17
|
|
|
18
|
-
<LeftSidebar :open="true" :uid="
|
|
18
|
+
<LeftSidebar :open="true" :uid="8">
|
|
19
19
|
<LeftSideToggle :mobileOnly="true" />
|
|
20
|
-
<Author :author="author" :uid="
|
|
20
|
+
<Author :author="author" :uid="8" />
|
|
21
21
|
</LeftSidebar>
|
|
22
22
|
|
|
23
23
|
<Main :withoutLeft="false" :withoutRight="false">
|
package/src/Author.vue
CHANGED
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
<AuthorInfo :uid="uid" @ready="installModules" />
|
|
4
4
|
<template v-if="data">
|
|
5
5
|
<div class="u-interact">
|
|
6
|
-
<AuthorFollow style="margin-right: 8px
|
|
7
|
-
<AuthorGift :uid="uid" />
|
|
6
|
+
<AuthorFollow style="margin-right: 8px" :uid="uid" />
|
|
7
|
+
<!-- <AuthorGift :uid="uid" /> -->
|
|
8
|
+
<el-button icon="el-icon-message" class="u-btn" size="mini" @click="onMessage">私信</el-button>
|
|
8
9
|
</div>
|
|
9
10
|
<!-- <AuthorMsg :uid="uid" /> -->
|
|
10
11
|
<AuthorLink class="u-block u-links" :uid="uid" :data="data" />
|
|
11
12
|
<AuthorMedals class="u-block u-trophy" :uid="uid" />
|
|
12
13
|
<AuthorTeams class="u-block u-teams" :uid="uid" />
|
|
13
|
-
<AuthorFans class="u-block u-fans" :uid="uid" />
|
|
14
|
+
<!-- <AuthorFans class="u-block u-fans" :uid="uid" /> -->
|
|
14
15
|
<slot></slot>
|
|
15
16
|
<AuthorPosts class="u-block u-posts" :uid="uid" />
|
|
16
17
|
</template>
|
|
@@ -22,8 +23,8 @@ import AuthorInfo from "./author/AuthorInfo.vue";
|
|
|
22
23
|
import AuthorLink from "./author/AuthorLink.vue";
|
|
23
24
|
import AuthorFollow from "./author/AuthorFollow.vue";
|
|
24
25
|
// import AuthorMsg from "./author/AuthorMsg.vue";
|
|
25
|
-
import AuthorGift from "./author/AuthorGift.vue";
|
|
26
|
-
import AuthorFans from "./author/AuthorFans.vue";
|
|
26
|
+
// import AuthorGift from "./author/AuthorGift.vue";
|
|
27
|
+
// import AuthorFans from "./author/AuthorFans.vue";
|
|
27
28
|
import AuthorMedals from "./author/AuthorMedals.vue";
|
|
28
29
|
import AuthorTeams from "./author/AuthorTeams.vue";
|
|
29
30
|
import AuthorPosts from "./author/AuthorPosts.vue";
|
|
@@ -39,17 +40,20 @@ export default {
|
|
|
39
40
|
installModules: function (data) {
|
|
40
41
|
this.data = data;
|
|
41
42
|
},
|
|
43
|
+
onMessage: function () {
|
|
44
|
+
window.open("/dashboard/letter?receiver=" + this.uid, "_blank");
|
|
45
|
+
},
|
|
42
46
|
},
|
|
43
47
|
components: {
|
|
44
48
|
AuthorInfo,
|
|
45
49
|
AuthorLink,
|
|
46
50
|
AuthorFollow,
|
|
47
51
|
// AuthorMsg,
|
|
48
|
-
AuthorGift,
|
|
52
|
+
// AuthorGift,
|
|
49
53
|
AuthorMedals,
|
|
50
54
|
AuthorTeams,
|
|
51
55
|
AuthorPosts,
|
|
52
|
-
AuthorFans,
|
|
56
|
+
// AuthorFans,
|
|
53
57
|
},
|
|
54
58
|
};
|
|
55
59
|
</script>
|
|
@@ -58,12 +58,12 @@ export default {
|
|
|
58
58
|
},
|
|
59
59
|
actions() {
|
|
60
60
|
return [
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
},
|
|
61
|
+
// {
|
|
62
|
+
// label: "发送私信",
|
|
63
|
+
// action: () => {
|
|
64
|
+
// window.open("/dashboard/letter?receiver=" + this.uid);
|
|
65
|
+
// },
|
|
66
|
+
// },
|
|
67
67
|
{
|
|
68
68
|
label: "取消关注",
|
|
69
69
|
action: () => {
|
package/src/bread/Admin.vue
CHANGED
|
@@ -39,9 +39,11 @@
|
|
|
39
39
|
class="c-admin-highlight-block"
|
|
40
40
|
v-model="color"
|
|
41
41
|
:predefine="color_options"
|
|
42
|
+
size="mini"
|
|
42
43
|
></el-color-picker>
|
|
43
|
-
<span class="c-admin-highlight-preview" :style="{ color: color }">预览高亮效果</span>
|
|
44
|
+
<span class="c-admin-highlight-preview" :style="{ color: color }" style="margin-right: 10px;">预览高亮效果</span>
|
|
44
45
|
</template>
|
|
46
|
+
<el-checkbox class="c-admin-highlight-checkbox" v-model="isStar" :true-label="1" :false-label="0">精选</el-checkbox>
|
|
45
47
|
|
|
46
48
|
<el-divider content-position="left">封面海报</el-divider>
|
|
47
49
|
<div class="c-admin-banner">
|
|
@@ -176,6 +178,7 @@ export default {
|
|
|
176
178
|
// 置顶
|
|
177
179
|
isSticky: false,
|
|
178
180
|
sticky: 0,
|
|
181
|
+
isStar: 0,
|
|
179
182
|
|
|
180
183
|
// 海报
|
|
181
184
|
uploadurl: __cms + "api/cms/upload",
|
|
@@ -202,6 +205,7 @@ export default {
|
|
|
202
205
|
color: this.isHighlight ? this.color : "",
|
|
203
206
|
mark: this.mark || [],
|
|
204
207
|
sticky: this.isSticky ? Date.now() : null,
|
|
208
|
+
star: this.isStar
|
|
205
209
|
};
|
|
206
210
|
},
|
|
207
211
|
isAdmin: function () {
|
|
@@ -259,7 +263,7 @@ export default {
|
|
|
259
263
|
// 拉
|
|
260
264
|
pull: function () {
|
|
261
265
|
getSetting(this.pid).then((data) => {
|
|
262
|
-
let { ID, color, mark, post_status, post_author, sticky, post_banner, post_type, visible } = data;
|
|
266
|
+
let { ID, color, mark, post_status, post_author, sticky, post_banner, post_type, visible, star } = data;
|
|
263
267
|
this.pid = ID;
|
|
264
268
|
this.post_status = post_status;
|
|
265
269
|
this.visible = visible;
|
|
@@ -272,6 +276,8 @@ export default {
|
|
|
272
276
|
this.sticky = sticky || 0;
|
|
273
277
|
if (this.sticky) this.isSticky = true;
|
|
274
278
|
|
|
279
|
+
this.isStar = star || 0;
|
|
280
|
+
|
|
275
281
|
// 设置加载完成标识
|
|
276
282
|
this.pulled = true;
|
|
277
283
|
});
|