更新:图书搜索功能;听书实时显示对应文字;书籍评论功能完善;

This commit is contained in:
2025-11-12 09:02:30 +08:00
parent 9fcc1b8549
commit 1da75a59f2
21 changed files with 484 additions and 828 deletions

View File

@@ -8,6 +8,7 @@ export const ENV = process.env.NODE_ENV || 'development';
const BASE_URL_MAP = {
development: {
MAIN: 'http://192.168.110.100:9300/pb/',
// MAIN: 'https://global.nuttyreading.com/',
// PAYMENT: 'https://dev-pay.example.com', // 暂时用不到
// CDN: 'https://cdn-dev.example.com', // 暂时用不到
},

View File

@@ -200,5 +200,17 @@ export const bookApi = {
method: 'POST',
data: { bookId }
})
},
/**
* 获取听书章节内容(带音频时间点)
* @param chapterId 章节ID
*/
getChapterContentListen(chapterId: number) {
return client.request<IApiResponse<{ bookChapterContents: any[] }>>({
url: 'bookAbroad/home/getBookChapterContentListen',
method: 'POST',
data: { chapterId }
})
}
}

View File

@@ -97,7 +97,7 @@ export const homeApi = {
limit: number,
}) {
return client.request<ISearchResponse>({
url: 'book/shopproduct/selectList',
url: 'bookAbroad/home/searchBook',
method: 'POST',
data
})