import { View, Text, Switch } from "@tarojs/components"; import './move_setting_reminder.scss' import Cell from "../base/cell"; import { useEffect, useState } from "react"; import { getMoveSchedules } from "@/services/health"; export default function MoveSettingReminder() { const [selIndex, setSelIndex] = useState(-1) const [hours, setHours] = useState('') const [total, setTotal] = useState('') const [detail, setDetail] = useState(null) useEffect(() => { getMoveSchedules().then(res => { setDetail(res) setHours((res as any).goal.hour) setTotal((res as any).goal.day) }) }, []) if (!detail) return return 打卡时刻表 { detail.schedules.map((item, index) => { return {item.reminder_time} check in for {item.time}-{item.end_time} }) } }