feat:修复纪念日问题
This commit is contained in:
@@ -29,7 +29,6 @@ import { defineProps, PropType } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { useAnniversaryStore } from '@/store/anniversary.ts'
|
||||
import { IAnniversary } from '@/types/anniversary.ts'
|
||||
import { isMobile } from 'vue3-common/utils/layoutUtil'
|
||||
import { getAnniversaryRemainDays } from '@/utils/home/anniversaryUtil'
|
||||
|
||||
const router = useRouter()
|
||||
@@ -45,7 +44,7 @@ const props = defineProps({
|
||||
const selectDateCardClick = async () => {
|
||||
anniversaryStore.anniversaryApiType = 'UPDATE'
|
||||
|
||||
if (isMobile() && props.dateItem?.category !== '节假日') {
|
||||
if (props.dateItem?.category !== '节假日') {
|
||||
anniversaryStore.currentAnniversary = props.dateItem as IAnniversary
|
||||
const { id } = anniversaryStore.currentAnniversary
|
||||
await router.push({ name: 'MobileHomeAnniversaryDetailId', params: { id } })
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
<template>
|
||||
<div class="date-list">
|
||||
<!-- <el-empty v-if="planStore.planList.length === 0" />-->
|
||||
|
||||
<el-scrollbar>
|
||||
<date-card v-for="(item, index) in 4"
|
||||
:key="index" :plan="item">
|
||||
</date-card>
|
||||
</el-scrollbar>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import DateCard from '@/components/Home/Anniversary/AnniversaryCard.vue'
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@use "@/styles/home.variable.module.scss";
|
||||
|
||||
.date-list {
|
||||
height: calc(100vh - 120px);
|
||||
|
||||
.el-scrollbar {
|
||||
.el-scrollbar__view {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2vh;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -10,7 +10,6 @@
|
||||
<script setup lang="ts">
|
||||
import { defineProps, PropType } from 'vue'
|
||||
import { IAnniversaryCategory } from '@/types/anniversary'
|
||||
import { isMobile } from 'vue3-common/utils/layoutUtil'
|
||||
import { useAnniversaryStore } from '@/store/anniversary'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
@@ -29,10 +28,8 @@ const router = useRouter()
|
||||
const anniversaryStore = useAnniversaryStore()
|
||||
|
||||
const selectCategoryClick = () => {
|
||||
if (isMobile()) {
|
||||
anniversaryStore.queryInfo.category = props.categoryItem?.name as string
|
||||
router.push({ name: 'MobileHomeAnniversaryList' })
|
||||
}
|
||||
anniversaryStore.queryInfo.category = props.categoryItem?.name as string
|
||||
router.push({ name: 'MobileHomeAnniversaryList' })
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -91,6 +91,9 @@ const updateChart = () => {
|
||||
label: {
|
||||
color: '#FFFFFF'
|
||||
}
|
||||
},
|
||||
label: {
|
||||
show: false
|
||||
}
|
||||
}]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user