feat: 统一推荐指数显示格式,移除地图底部免责声明
AI Code Review / review (pull_request) Successful in 2m31s

This commit is contained in:
2026-07-31 15:01:44 +08:00
parent 12380cd8cf
commit 09f8ec7ecf
2 changed files with 2 additions and 19 deletions
+2 -5
View File
@@ -18,11 +18,8 @@ export function formatOpeningHours(openingHours: PoiOpeningHours): string {
return openingHours.displayText?.trim() || '开放时间待确认'
}
export function formatRecommendationLabel(source: RecommendationSource, index: number): string {
const label = source === 'official_editorial'
? '官方推荐指数'
: 'POC 推荐指数(待审核)'
return `${label} ${index}/5`
export function formatRecommendationLabel(_source: RecommendationSource, index: number): string {
return `推荐指数 ${index}/5`
}
export function filterPois(pois: readonly Poi[], filter: PoiFilter = {}): Poi[] {
-14
View File
@@ -624,10 +624,6 @@ onUnload(stopForegroundLocationUpdates)
@close="mapStore.selectPoi(null)"
@detail="openDetail"
/>
<view class="map-page__disclaimer">
{{ datasetMeta?.disclaimer }}
</view>
</template>
</view>
</template>
@@ -745,14 +741,4 @@ style:
border-radius: 28rpx;
box-shadow: 0 8rpx 24rpx rgb(24 32 29 / 16%);
}
.map-page__disclaimer {
flex: none;
padding: 8rpx 24rpx calc(8rpx + env(safe-area-inset-bottom));
font-size: 20rpx;
line-height: 30rpx;
color: #8a9690;
text-align: center;
background: #f5f7f6;
}
</style>