Add check-in feature and update travel planner UI

This commit is contained in:
周瑞哲
2026-07-31 12:50:14 +08:00
parent ac4179086c
commit 3ef7266591
44 changed files with 2919 additions and 144 deletions
+31 -2
View File
@@ -10,6 +10,7 @@ defineProps<{
}>()
const emit = defineEmits<{
checkIns: []
select: [categoryCode: string | null]
}>()
</script>
@@ -21,7 +22,10 @@ const emit = defineEmits<{
<text class="map-filter-header__title">光明区文旅资源</text>
<text class="map-filter-header__scope">{{ coverageLabel }}</text>
</view>
<text class="map-filter-header__count"> {{ resultCount }} 个点位</text>
<view class="map-filter-header__actions">
<text class="map-filter-header__count"> {{ resultCount }} 个点位</text>
<button class="map-filter-header__check-ins" @click="emit('checkIns')">我的打卡</button>
</view>
</view>
<scroll-view class="map-filter-header__scroll" scroll-x :show-scrollbar="false">
@@ -91,11 +95,36 @@ const emit = defineEmits<{
}
.map-filter-header__count {
flex: none;
font-weight: 600;
color: #167a5b;
}
.map-filter-header__actions {
display: flex;
flex: none;
flex-direction: column;
gap: 4rpx;
align-items: flex-end;
}
.map-filter-header__check-ins {
width: auto;
height: 42rpx;
padding: 0 15rpx;
margin: 0;
font-size: 20rpx;
font-weight: 700;
line-height: 42rpx;
color: #0e6247;
background: #e8f4ee;
border: 0;
border-radius: 21rpx;
}
.map-filter-header__check-ins::after {
border: 0;
}
.map-filter-header__scroll {
width: 100%;
height: 80rpx;