diff --git a/api/model/my_book.js b/api/model/my_book.js
index d46fae7..9348b5a 100644
--- a/api/model/my_book.js
+++ b/api/model/my_book.js
@@ -28,6 +28,18 @@ const api = {
method: 'POST',
auth: true,
},
+ // 删除作品章节
+ deleteMyNovel : {
+ url: '/my_book/deleteMyNovel',
+ method: 'POST',
+ auth: true,
+ },
+ // 多选删除我的作品
+ deleteMyShopList : {
+ url: '/my_book/deleteMyShopList',
+ method: 'POST',
+ auth: true,
+ },
}
export default api
\ No newline at end of file
diff --git a/components/novel/bookshelfItem.vue b/components/novel/bookshelfItem.vue
new file mode 100644
index 0000000..5af1517
--- /dev/null
+++ b/components/novel/bookshelfItem.vue
@@ -0,0 +1,211 @@
+
+
+
+
+ {{book.name}}
+ {{book.author}}
+ {{book.details || '暂无简介'}}
+
+
+
+ {{tag}}
+
+
+
+
+
+
+ {{ statusText }}
+
+
+ {{ item.service || '大家都在读' }}
+
+
+
+
+
+
+
+
+
diff --git a/components/novel/novelItem.vue b/components/novel/novelItem.vue
index 527c756..1ec5345 100644
--- a/components/novel/novelItem.vue
+++ b/components/novel/novelItem.vue
@@ -4,14 +4,14 @@
&& book.image.split(',')[0]" mode="aspectFill">
{{book.name}}
- {{book.author}}
- {{book.desc || '暂无简介'}}
+ {{book.author || '暂无作者昵称'}}
+ {{book.details || '暂无简介'}}
-
+
@@ -37,7 +37,7 @@
horizontal: {
type: Boolean,
default: false
- }
+ },
},
computed: {
statusClass() {
@@ -76,9 +76,9 @@
}
.book-cover {
- width: 160rpx;
- height: 210rpx;
- border-radius: 8rpx;
+ width: 150rpx;
+ height: 196rpx;
+ border-radius: 16rpx;
margin-right: 20rpx;
box-shadow: 0 4rpx 8rpx rgba(0,0,0,0.1);
}
@@ -96,14 +96,14 @@
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
- flex: 1;
- margin-right: 10rpx;
+ margin-bottom: 6rpx;
}
.book-author {
font-size: 24rpx;
- color: #666;
- margin-bottom: 10rpx;
+ color: #999;
+ margin-bottom: 6rpx;
+ flex: 1;
}
.book-desc {
@@ -114,13 +114,13 @@
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
- margin-bottom: 10rpx;
+ margin-bottom: 6rpx;
}
.content-row {
display: flex;
align-items: center;
- margin-bottom: 10rpx;
+ margin-bottom: 6rpx;
}
.book-tags {
diff --git a/components/novel/workItem.vue b/components/novel/workItem.vue
index 18f4698..64fd837 100644
--- a/components/novel/workItem.vue
+++ b/components/novel/workItem.vue
@@ -1,5 +1,5 @@
-
+
原创
@@ -63,7 +63,6 @@
},
statusText() {
const textMap = {
- // '0': '新建',
'0': '连载中',
'1': '已完结'
};
@@ -104,11 +103,14 @@
},
methods: {
handleClick() {
+ console.log('handleClick called, isManaging:', this.isManaging);
+ // 在编辑模式下,只触发选中事件
if (this.isManaging) {
this.$emit('click');
return;
}
- // 跳转到章节列表页面
+
+ // 非编辑模式下,跳转到章节列表页面
uni.navigateTo({
url: '/pages_order/author/chapterList?id=' + this.work.id
});
diff --git a/pages.json b/pages.json
index 824dfcf..d436db1 100644
--- a/pages.json
+++ b/pages.json
@@ -109,6 +109,9 @@
{
"path": "novel/Translation"
},
+ {
+ "path": "novel/bookList"
+ },
{
"path": "auth/Modifyinformation"
}
diff --git a/pages/chapter/index.vue b/pages/chapter/index.vue
deleted file mode 100644
index 52c8b4d..0000000
--- a/pages/chapter/index.vue
+++ /dev/null
@@ -1,160 +0,0 @@
-
-
-
-
-
-
-
- 章节名
- 第{{index + 1}}章
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/index/bookshelf.vue b/pages/index/bookshelf.vue
index 662f076..d103946 100644
--- a/pages/index/bookshelf.vue
+++ b/pages/index/bookshelf.vue
@@ -51,7 +51,8 @@
v-for="work in list"
:key="work.id"
:work="work"
- @click="toWorkDetail(work.id)"
+ :isManaging="isEditMode"
+ @click="toggleSelect(work, 'work')"
@longpress="enterEditMode"
/>
@@ -101,10 +102,22 @@
class="work-item-wrapper"
v-for="work in list"
:key="work.id"
- @click="toggleSelect(work, 'work')"
>
+
+
+
+
+
+
+
+
+
+
+
@@ -139,7 +152,7 @@
+
+
diff --git a/static/image/center/headImage.png b/static/image/center/headImage.png
new file mode 100644
index 0000000..65d23e6
Binary files /dev/null and b/static/image/center/headImage.png differ