更新:图书搜索功能;听书实时显示对应文字;书籍评论功能完善;
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { homeApi } from '@/api/modules/home'
|
||||
import { homeApi } from '@/api/modules/book_home'
|
||||
import type { IBookWithStats, IVipInfo } from '@/types/home'
|
||||
|
||||
const { t } = useI18n()
|
||||
@@ -93,7 +93,7 @@ const handleSearch = async () => {
|
||||
|
||||
try {
|
||||
const res = await homeApi.searchBooks({
|
||||
key: keyword.value.trim(),
|
||||
title: keyword.value.trim(),
|
||||
page: 1,
|
||||
limit: 10,
|
||||
})
|
||||
@@ -196,6 +196,7 @@ onMounted(async () => {
|
||||
:deep() {
|
||||
.wd-search {
|
||||
background: transparent;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user