更新:图书搜索功能;听书实时显示对应文字;书籍评论功能完善;
This commit is contained in:
@@ -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', // 暂时用不到
|
||||
},
|
||||
|
||||
@@ -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 }
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ export const homeApi = {
|
||||
limit: number,
|
||||
}) {
|
||||
return client.request<ISearchResponse>({
|
||||
url: 'book/shopproduct/selectList',
|
||||
url: 'bookAbroad/home/searchBook',
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
Reference in New Issue
Block a user