更新:1.课程详情增加骨架屏;2.图书首页和图书详情增加骨架屏;
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { homeApi } from '@/api/modules/book_home'
|
||||
import { bookHomeApi } from '@/api/modules/book_home'
|
||||
import BookPrice from '@/components/book/BookPrice.vue'
|
||||
import type { IBookWithStats, IVipInfo } from '@/types/home'
|
||||
|
||||
@@ -66,7 +66,7 @@ onLoad((options: any) => {
|
||||
* 获取VIP信息
|
||||
*/
|
||||
const getVipInfo = async () => {
|
||||
const res = await homeApi.getVipInfo()
|
||||
const res = await bookHomeApi.getVipInfo()
|
||||
vipInfo.value = res.vipInfo
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ const handleSearch = async () => {
|
||||
loading.value = true
|
||||
isEmpty.value = false
|
||||
|
||||
const res = await homeApi.searchBooks({
|
||||
const res = await bookHomeApi.searchBooks({
|
||||
title: keyword.value.trim(),
|
||||
page: 1,
|
||||
limit: 10,
|
||||
|
||||
Reference in New Issue
Block a user