首页接口更新&&支付页面调试
This commit is contained in:
@@ -13,11 +13,8 @@ import mask from './_assets/Mask group.webp'
|
||||
export type DashboardPageProps = {}
|
||||
|
||||
export default async function DashboardPage(props: DashboardPageProps) {
|
||||
const resp = await listInitialization({
|
||||
page: 1,
|
||||
size: 5,
|
||||
})
|
||||
|
||||
const resp = await listInitialization()
|
||||
console.log(resp, 'respresprespresprespresp')
|
||||
if (!resp.success) {
|
||||
return (
|
||||
<div className="col-start-4 row-start-3 row-span-2 flex justify-center items-center">
|
||||
@@ -47,10 +44,10 @@ export default async function DashboardPage(props: DashboardPageProps) {
|
||||
{/* 磁贴集 */}
|
||||
{initData && (
|
||||
<Pins
|
||||
short_term={String(initData.short_term)}
|
||||
short_term_monthly={String(initData.short_term_monthly)}
|
||||
long_term={String(initData.long_term)}
|
||||
long_term_monthly={String(initData.long_term_monthly)}
|
||||
short_term={String(initData.free.short.ResourceCount)}
|
||||
short_term_monthly={String(initData.free.short.ResourceQuotaSum)}
|
||||
long_term={String(initData.free.long.ResourceCount)}
|
||||
long_term_monthly={String(initData.free.long.ResourceDailyFreeSum)}
|
||||
/>
|
||||
)}
|
||||
|
||||
@@ -65,7 +62,7 @@ export default async function DashboardPage(props: DashboardPageProps) {
|
||||
{/* 通知 */}
|
||||
<div className="md:col-start-4 md:row-start-3 md:row-span-2">
|
||||
{initData && (
|
||||
<Announcements list={initData.list}/>
|
||||
<Announcements list={initData.anno.list}/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user