hookehuyr

refactor(Dashboard): 移除未使用的步数状态管理及相关代码

清理不再使用的useStepsStore导入和变量声明,同时移除相册数据中未使用的createTime字段
......@@ -195,7 +195,6 @@ import TotalPointsDisplay from '@/components/TotalPointsDisplay.vue';
import PointsCollector from '@/components/PointsCollector.vue'
import WeRunAuth from '@/components/WeRunAuth.vue'
import { useMediaPreview } from '@/composables/useMediaPreview';
import { useStepsStore } from '@/stores/steps';
// 默认家庭封面图
const defaultFamilyCover = 'https://cdn.ipadbiz.cn/lls_prog/images/default-family-cover.png';
// 默认头像
......@@ -203,9 +202,6 @@ const defaultAvatar = 'https://cdn.ipadbiz.cn/mlaj/images/icon_1.jpeg'
// 接口信息
import { getFamilyDashboardAPI } from '@/api/family'
// 使用步数状态管理
const stepsStore = useStepsStore();
const todaySteps = ref(0);
const isWeRunAuthorized = ref(false);
const pointsCollectorRef = ref(null)
......@@ -241,13 +237,11 @@ const albumData = ref([
{
type: 'image',
url: 'https://cdn.ipadbiz.cn/hager/0513-1_FsxMk28AGz6N_D1zZFFOl_EaRdss.png',
createTime: '2024-01-15 10:30'
},
{
type: 'video',
url: 'https://vjs.zencdn.net/v/oceans.mp4',
thumbnail: 'https://cdn.ipadbiz.cn/hager/0513-1_FsxMk28AGz6N_D1zZFFOl_EaRdss.png',
createTime: '2024-01-14 16:20'
}
]);
......@@ -316,7 +310,6 @@ const getTotalSteps = () => {
return familyMembers.value.reduce((sum, member) => sum + member.today_step, 0).toLocaleString()
}
// Mock data for family members
const familyMembers = ref([]);
const goToProfile = () => {
......@@ -415,37 +408,3 @@ useReady(async () => {
});
})
</script>
<style lang="less">
.loading-dots {
display: inline-block;
.dot {
display: inline-block;
animation: loading-bounce 1.4s ease-in-out infinite both;
&:nth-child(1) {
animation-delay: -0.32s;
}
&:nth-child(2) {
animation-delay: -0.16s;
}
&:nth-child(3) {
animation-delay: 0s;
}
}
}
@keyframes loading-bounce {
0%, 80%, 100% {
transform: scale(0.8);
opacity: 0.5;
}
40% {
transform: scale(1);
opacity: 1;
}
}
</style>
......