feat: 增加作家小说发布列表

This commit is contained in:
xiongxiaoyang 2022-05-29 16:33:46 +08:00
parent 6535af4038
commit e697c9e82f
7 changed files with 722 additions and 321 deletions

View File

@ -2,7 +2,6 @@
ENV = 'development'
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_UPLOAD_IMG_URL = 'http://127.0.0.1:8888'
VUE_APP_BASE_IMG_URL = 'http://127.0.0.1:8888'

View File

@ -2,5 +2,4 @@
ENV = 'production'
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_UPLOAD_IMG_URL = 'http://127.0.0.1:8888'
VUE_APP_BASE_IMG_URL = 'http://127.0.0.1:8888'

View File

@ -7,3 +7,7 @@ export function getAuthorStatus() {
export function register(params) {
return request.post('/author/register', params);
}
export function listBooks() {
return request.get('/author/books');
}

View 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>

View File

@ -158,7 +158,7 @@
<img
:src="
item.commentUserPhoto
? uploadImgBaseUrl + item.commentUserPhoto
? imgBaseUrl + item.commentUserPhoto
: man
"
class="user_head"
@ -365,7 +365,6 @@ export default {
commentContent: "",
newestComments: {},
imgBaseUrl: process.env.VUE_APP_BASE_IMG_URL,
uploadImgBaseUrl: process.env.VUE_APP_BASE_UPLOAD_IMG_URL,
dialogUpdateCommentFormVisible: false,
commentId: "",
updateComment: "",

View File

@ -16,13 +16,13 @@
<i class="tit">我的头像</i>
<el-upload
class="avatar-uploader"
:action="baseUrl + '/resource/image'"
:action="baseUrl + '/front/resource/image'"
:show-file-list="false"
:on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload"
>
<img
:src="userPhoto ? uploadImgBaseUrl + userPhoto : man"
:src="userPhoto ? imgBaseUrl + userPhoto : man"
class="avatar"
/>
</el-upload>
@ -32,7 +32,7 @@
id="imgLogo"
class="user_img"
alt="我的头像"
:src="userPhoto ? (uploadImgBaseUrl + userPhoto) : man"
:src="userPhoto ? (imgBaseUrl + userPhoto) : man"
/>
<input
class="opacity"
@ -103,7 +103,7 @@ export default {
userPhoto: "",
nickName: "",
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 () => {

File diff suppressed because it is too large Load Diff