diff --git a/src/components/cloud/EncyclopediaProgressCard.vue b/src/components/cloud/EncyclopediaProgressCard.vue new file mode 100644 index 0000000..cc4c299 --- /dev/null +++ b/src/components/cloud/EncyclopediaProgressCard.vue @@ -0,0 +1,65 @@ + + + + + + + 当前进度 + {{ progressText }} + + + {{ isLoggedIn ? percent : 0 }}% + + + + + + + + 已解锁 {{ unlockedCount }} 枚徽章,还差 {{ Math.max(totalCount - unlockedCount, 0) }} 枚。 + + + 登录后可同步你的个人图鉴进度。 + + + + diff --git a/src/types/amap.d.ts b/src/types/amap.d.ts index 6f3031e..6258309 100644 --- a/src/types/amap.d.ts +++ b/src/types/amap.d.ts @@ -8,7 +8,9 @@ declare namespace AMap { setCenter(center: [number, number]): void setZoom(zoom: number): void setPitch(pitch: number): void + getPitch(): number setRotation(rotation: number): void + getRotation(): number on(event: string, callback: (...args: unknown[]) => void): void off(event: string, callback: (...args: unknown[]) => void): void getCenter(): { lng: number; lat: number } @@ -28,6 +30,8 @@ declare namespace AMap { mapStyle?: string features?: string[] layers?: unknown[] + skyColor?: string + maxPitch?: number resizeEnable?: boolean dragEnable?: boolean zoomEnable?: boolean diff --git a/src/views/encyclopedia/EncyclopediaView.vue b/src/views/encyclopedia/EncyclopediaView.vue index 55ed33f..ed44297 100644 --- a/src/views/encyclopedia/EncyclopediaView.vue +++ b/src/views/encyclopedia/EncyclopediaView.vue @@ -1,9 +1,10 @@
当前进度
{{ progressText }}
+ + 已解锁 {{ unlockedCount }} 枚徽章,还差 {{ Math.max(totalCount - unlockedCount, 0) }} 枚。 + + + 登录后可同步你的个人图鉴进度。 + +