mirror of
https://github.com/201206030/novel-front-web.git
synced 2025-04-26 15:30:52 +00:00
feat: 增加作家小说发布列表
This commit is contained in:
parent
6535af4038
commit
e697c9e82f
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
VUE_APP_BASE_API_URL = 'http://127.0.0.1:8888/api'
|
VUE_APP_BASE_API_URL = 'http://127.0.0.1:8888/api'
|
||||||
VUE_APP_BASE_IMG_URL = 'http://47.106.243.172:8888'
|
VUE_APP_BASE_IMG_URL = 'http://127.0.0.1:8888'
|
||||||
VUE_APP_BASE_UPLOAD_IMG_URL = 'http://127.0.0.1:8888'
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,5 +2,4 @@
|
|||||||
|
|
||||||
ENV = 'production'
|
ENV = 'production'
|
||||||
VUE_APP_BASE_API_URL = 'http://47.106.243.172:8888/api/front'
|
VUE_APP_BASE_API_URL = 'http://47.106.243.172:8888/api/front'
|
||||||
VUE_APP_BASE_IMG_URL = 'http://47.106.243.172:8888'
|
VUE_APP_BASE_IMG_URL = 'http://127.0.0.1:8888'
|
||||||
VUE_APP_BASE_UPLOAD_IMG_URL = 'http://127.0.0.1:8888'
|
|
||||||
|
@ -6,4 +6,8 @@ export function getAuthorStatus() {
|
|||||||
|
|
||||||
export function register(params) {
|
export function register(params) {
|
||||||
return request.post('/author/register', params);
|
return request.post('/author/register', params);
|
||||||
|
}
|
||||||
|
|
||||||
|
export function listBooks() {
|
||||||
|
return request.get('/author/books');
|
||||||
}
|
}
|
17
src/components/author/Header.vue
Normal file
17
src/components/author/Header.vue
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<template>
|
||||||
|
<div class="header">
|
||||||
|
<div class="mainNav" id="mainNav">
|
||||||
|
<div class="box_center cf" style="text-align: center;height: 44px;line-height: 48px;color: #fff;font-size: 16px;">
|
||||||
|
|
||||||
|
小说精品屋作家管理
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "AuthorHeader"
|
||||||
|
};
|
||||||
|
</script>
|
@ -158,7 +158,7 @@
|
|||||||
<img
|
<img
|
||||||
:src="
|
:src="
|
||||||
item.commentUserPhoto
|
item.commentUserPhoto
|
||||||
? uploadImgBaseUrl + item.commentUserPhoto
|
? imgBaseUrl + item.commentUserPhoto
|
||||||
: man
|
: man
|
||||||
"
|
"
|
||||||
class="user_head"
|
class="user_head"
|
||||||
@ -365,7 +365,6 @@ export default {
|
|||||||
commentContent: "",
|
commentContent: "",
|
||||||
newestComments: {},
|
newestComments: {},
|
||||||
imgBaseUrl: process.env.VUE_APP_BASE_IMG_URL,
|
imgBaseUrl: process.env.VUE_APP_BASE_IMG_URL,
|
||||||
uploadImgBaseUrl: process.env.VUE_APP_BASE_UPLOAD_IMG_URL,
|
|
||||||
dialogUpdateCommentFormVisible: false,
|
dialogUpdateCommentFormVisible: false,
|
||||||
commentId: "",
|
commentId: "",
|
||||||
updateComment: "",
|
updateComment: "",
|
||||||
|
@ -16,13 +16,13 @@
|
|||||||
<i class="tit">我的头像</i>
|
<i class="tit">我的头像</i>
|
||||||
<el-upload
|
<el-upload
|
||||||
class="avatar-uploader"
|
class="avatar-uploader"
|
||||||
:action="baseUrl + '/resource/image'"
|
:action="baseUrl + '/front/resource/image'"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
:on-success="handleAvatarSuccess"
|
:on-success="handleAvatarSuccess"
|
||||||
:before-upload="beforeAvatarUpload"
|
:before-upload="beforeAvatarUpload"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
:src="userPhoto ? uploadImgBaseUrl + userPhoto : man"
|
:src="userPhoto ? imgBaseUrl + userPhoto : man"
|
||||||
class="avatar"
|
class="avatar"
|
||||||
/>
|
/>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
@ -32,7 +32,7 @@
|
|||||||
id="imgLogo"
|
id="imgLogo"
|
||||||
class="user_img"
|
class="user_img"
|
||||||
alt="我的头像"
|
alt="我的头像"
|
||||||
:src="userPhoto ? (uploadImgBaseUrl + userPhoto) : man"
|
:src="userPhoto ? (imgBaseUrl + userPhoto) : man"
|
||||||
/>
|
/>
|
||||||
<input
|
<input
|
||||||
class="opacity"
|
class="opacity"
|
||||||
@ -103,7 +103,7 @@ export default {
|
|||||||
userPhoto: "",
|
userPhoto: "",
|
||||||
nickName: "",
|
nickName: "",
|
||||||
baseUrl: process.env.VUE_APP_BASE_API_URL,
|
baseUrl: process.env.VUE_APP_BASE_API_URL,
|
||||||
uploadImgBaseUrl: process.env.VUE_APP_BASE_UPLOAD_IMG_URL,
|
imgBaseUrl: process.env.VUE_APP_BASE_IMG_URL,
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user