leon hace 1 año
padre
commit
2f82bd6094

+ 4 - 1
src/app.config.ts

@@ -25,6 +25,7 @@ const appConfig = defineAppConfig({
     'pages/account/Member',
     'pages/explore/Index'
   ],
+  entryPagePath:'pages/clock/Clock',
   subPackages: [
     {
       root: 'moduleA',
@@ -37,6 +38,7 @@ const appConfig = defineAppConfig({
     'mysvg': './components/basic/svg',
     // 't-popup':'tdesgin-miniprogram/popup/popup'
   },
+  restartStrategy:'homePage',
   "requiredPrivateInfos": [
     "chooseLocation"
   ],
@@ -72,7 +74,8 @@ const appConfig = defineAppConfig({
     "navigationBarBackgroundColor": "#000000",
     "navigationBarTitleText": "Weixin",
     "navigationBarTextStyle": "white",
-    "backgroundColor": "#000000"
+    "backgroundColor": "#000000",
+    "restartStrategy":"homePage"
   },
   // darkmode: true
 })

+ 1 - 1
src/app.scss

@@ -244,7 +244,7 @@ page {
     color: #fff;
     opacity: 0.2;
     margin-left: 86px;
-    margin-right: 46px;
+    margin-right: 86px;
     line-height: 32px;
     font-size: 24px;
     margin-top: 20px;

+ 1 - 1
src/components/navigation/TabBar.tsx

@@ -72,7 +72,7 @@ export default function Component(props: { index: number }) {
 
 
         <View className={selIndex == 3 ? 'tabbar-item tabbar-item-sel' : 'tabbar-item'} onClick={() => switchTab(3)}>
-            <Text>更多</Text>
+            <Text></Text>
         </View>
     </View>
 }

+ 11 - 8
src/context/locales/en.js

@@ -4,7 +4,7 @@ export default {
         metric: 'Metric',
         activity: 'Activity',
         nutrition: 'Nutrition',
-        more: 'More'
+        more: 'Me'
     },
     share: {
         title: 'Weight Loss/Fasting Sleep/Body Management/Metric Recording/Exercise Check-in, all in fast16cc',
@@ -27,10 +27,11 @@ export default {
             title: 'Workouts'
         },
         explore: {
-            title: 'Explore'
+            title: 'Explore',
+            share_title:'My explore'
         },
         more: {
-            title: 'More',
+            title: 'Me',
             un_login: 'Not logged in',
             stone: 'Reverse aging stone',
             stone_desc: 'Member system upgrading, during which metric recording is temporarily exempt from reverse aging stone recording. Please stay tuned.',
@@ -92,7 +93,8 @@ export default {
         user_profile: {
             title: 'Edit profile',
             nickname: 'Nickname',
-            save: 'Save'
+            save: 'Save',
+            nickname_footer:'Tip: Envisioning the kind of person you aspire to be, name yourself accordingly.'
         }
     },
     feature: {
@@ -219,10 +221,11 @@ export default {
             note:'Note',
             night_tip:'Times displayed represent global annual averages for sunset and sunrise. Actual times vary based on your location and season.',
             day_tip:'Times displayed represent global annual averages for sunrise and sunset. Actual times vary based on your location and season.',
-            alert_night_content:'Sunset and sunrise times are global annual averages. Actual times vary depending on your location and season.',
-            alert_day_content:'Sunrise and sunset times are global annual averages. Actual times vary depending on your location and season.',
-            choose_location:'Choose location',
-            view_more:'See More',
+            alert_location_required:'Location Required',
+            alert_night_content:'Enable location so we can calculate the daily sunset and sunrise times in your city.',
+            alert_day_content:'Enable location so we can calculate the daily sunrise and sunset times in your city.',
+            choose_location:'Enable location',
+            view_more:'More',
             got_it:'Got it',
             more:'More',
             night_alert_title:'Night Ring On',

+ 16 - 13
src/context/locales/zh.js

@@ -4,7 +4,7 @@ export default {
         metric: '指标',
         activity: '运动',
         nutrition: '营养',
-        more: '更多'
+        more: ''
     },
     share: {
         title: '减脂/断食睡眠/身材管理/指标记录/运动打卡, 尽在fast16cc',
@@ -21,16 +21,17 @@ export default {
             title: '指标',
         },
         food: {
-            title: '食',
+            title: '食物日记',
         },
         workout: {
-            title: '运动'
+            title: '运动训练'
         },
         explore: {
-            title: '发现'
+            title: '发现',
+            share_title:'我的发现'
         },
         more: {
-            title: '更多',
+            title: '',
             un_login: '未登录',
             stone: '逆龄石',
             stone_desc: '会员体系升级中,期间指标记录限时免逆龄石记录\n敬请期待',
@@ -91,7 +92,8 @@ export default {
         user_profile: {
             title: '编辑资料',
             nickname: '昵称',
-            save: '保存'
+            save: '保存',
+            nickname_footer:'提示:想象你想要成为的样子, 并以此取名。不断暗示自己愈发美丽、健康!'
         }
 
 
@@ -133,7 +135,7 @@ export default {
                 max_time_value: '不能再早了',
                 update_success: '更新成功',
                 input_nickname: '请输入昵称',
-                ongoing: '请先完成记录',//进行中点击加号,actionsheet item时弹此提示
+                ongoing: '请先完成当前记录',//进行中点击加号,actionsheet item时弹此提示
             },
             action_sheet: {
                 delete: '删除'
@@ -224,10 +226,11 @@ export default {
             note: '提示',
             night_tip:'当前显示时间为全球各地年均日落日出时间,\n实际时间会根据您所在地理位置和季节有所变化。',
             day_tip:'当前显示时间为全球各地平均日出日落时间,\n实际时间会根据您所在地理位置和季节有所变化。',
-            alert_night_content: '当地日落日出时间\n会根据您所在地理位置和季节计算得出。',
-            alert_day_content: '当地日出日落时间\n会根据您所在地理位置和季节计算得出。',
+            alert_location_required:'需要位置计算日出日落',
+            alert_night_content: '根据位置信息, 以计算您所在城市每天日落日出时间。',
+            alert_day_content: '根据位置信息, 以计算您所在城市每天日出日落时间。',
             choose_location:'选择位置',
-            view_more:'查看更多',
+            view_more:'更多',
             got_it: '我知道了',
             more: '更多',
             night_alert_title: '夜间环已开启',
@@ -239,7 +242,7 @@ export default {
             common: {
                 schedule: '日程',
                 current_schedule: '当前进程',
-                share_title: '我的断食睡眠日记',
+                share_title: '我的断食睡眠日记',
                 start_fast: '开始断食',//正常态
                 started_fasting: '开始断食',//完成时
                 end_fast: '结束断食',
@@ -455,7 +458,7 @@ export default {
             picker_end_title: '结束时间',
             camera: '拍摄食物',
             album: '从相册选择',
-            share_title: '我的食日记',
+            share_title: '我的食日记',
             prompt: '提示',
             prompt_detail: '日记列表顺序发生变化,点击刷新',
             sence_desc: '拍摄食物,记录餐前饥饿感\n记录餐后饱足感',
@@ -473,7 +476,7 @@ export default {
             disable_switch_modal_btn: '我知道了'
         },
         workout: {
-            share_title: '我的运动日记',
+            share_title: '我的运动训练',
             finish_title: '{{name}}计时训练中',
             finish_current: '请先结束训练',
             add_more: '添加更多',

+ 1 - 0
src/features/common/RecordItem.tsx

@@ -27,6 +27,7 @@ export default function Component(props: { children: React.ReactNode, onClick?:
         }
         Taro.showActionSheet({
             itemList: [t('feature.common.action_sheet.delete')],
+            itemColor:'#ff0000'
         })
             .then(res => {
                 switch (res.tapIndex) {

+ 15 - 2
src/features/trackTimeDuration/components/CircadianDetailPopup.tsx

@@ -31,6 +31,19 @@ export default function CircadianDetailPopup(props: { record: any, schedule?: an
     const common = useSelector((state: any) => state.common);
     const { t } = useTranslation()
 
+    useEffect(() => {
+        if (props.record.status == 'COMPLETED') {
+            if ((props.record.sleep && props.record.sleep.status == 'COMPLETED') &&
+                props.record.scenario == 'FAST_SLEEP') {
+                setTabIndex(1)
+            }
+            else {
+                setTabIndex(2)
+            }
+        }
+
+    }, [])
+
     useEffect(() => {
         checkTimezone()
         // var current_record = props.record
@@ -511,7 +524,7 @@ export default function CircadianDetailPopup(props: { record: any, schedule?: an
     }
 
     function events() {
-        return <View style={{display:'flex',flexDirection:'row',alignItems:'center',justifyContent:'center'}}>
+        return <View style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'center' }}>
             <TimelineFastSleep
                 data={props.record}
                 first_real_check_time={props.record.first_real_check_time ? props.record.first_real_check_time : 0}
@@ -641,8 +654,8 @@ export default function CircadianDetailPopup(props: { record: any, schedule?: an
         return <View />
     }
 
-
     return <View className='detail_container'>
+
         <Text className='detail_popup_title'>{getTitle()}<Text className='detail_popup_subttitle'> {getSubTitle()}</Text></Text>
         <View className='detail_tabbar'>
             <View onClick={() => { setTabIndex(0) }} className={tabIndex == 0 ? 'detail_tabitem_sel' : 'detail_tabitem_nor'}>{t('feature.day_night.overview')}</View>

+ 2 - 2
src/features/trackTimeDuration/components/DayNightCard.tsx

@@ -642,7 +642,7 @@ export default function DayNightCard(props: { isNight: boolean, count: number })
     }
 
     function longClick() {
-        if (user.isLogin && authInfo)
+        if (user.isLogin && user.test_user && authInfo)
             setShowDetailModal(true)
     }
 
@@ -655,7 +655,7 @@ export default function DayNightCard(props: { isNight: boolean, count: number })
             return
         }
         Taro.showModal({
-            title: t('feature.day_night.note'),
+            title: t('feature.day_night.alert_location_required'),
             content: props.isNight ? t('feature.day_night.alert_night_content') : t('feature.day_night.alert_day_content'),
             confirmText: t('feature.day_night.choose_location'),
             cancelText: t('feature.day_night.view_more'),

+ 2 - 2
src/features/trackTimeDuration/components/Discovery.tsx

@@ -541,10 +541,10 @@ export default function Discovery() {
                     </View>
                 </View>
                 <View className="food_btn1" style={{ backgroundColor: ColorType.food }} onClick={goFood}>
-                    <Text style={{ fontWeight: 'bold' }}>食物日记</Text>
+                    <Text style={{ fontWeight: 'bold' }}>{t('page.food.title')}</Text>
                 </View>
                 <View className="food_btn1" style={{ backgroundColor: ColorType.activity, marginBottom: 0 }} onClick={goAcitivity}>
-                    <Text style={{ fontWeight: 'bold' }}>运动训练</Text>
+                    <Text style={{ fontWeight: 'bold' }}>{t('page.workout.title')}</Text>
                 </View>
 
             </View>

+ 3 - 0
src/features/trackTimeDuration/components/IndexConsole.tsx

@@ -448,6 +448,7 @@ export default function IndexConsole(props: { record: any }) {
                     setFirstEnter(false)
                     hidePicker()
                     setBtnDisable(false)
+                    
                     if (permission.wxPubFollow) {
                         Taro.showModal({
                             title: t('feature.track_time_duration.reminders.wake_title'),
@@ -485,6 +486,7 @@ export default function IndexConsole(props: { record: any }) {
                     global.indexPageRefresh()
                     setFirstEnter(false)
                     hidePicker()
+                    global.refrehWeekly()
                     if (props.record.current_record.scenario == 'SLEEP') {
                         global.scrollToLatest()
                     }
@@ -503,6 +505,7 @@ export default function IndexConsole(props: { record: any }) {
                     setFirstEnter(false)
                     hidePicker()
                     global.scrollToLatest()
+                    global.refrehWeekly()
                 }).catch((e) => {
                     setBtnDisable(false)
                     var picker = limitPickerRef.current;

+ 2 - 1
src/features/trackTimeDuration/components/IndexItem.tsx

@@ -80,9 +80,10 @@ export default function Component(props: { type: string, data: any, time: any, s
 
         var currentDot1 = getDot(record, true)
         var targetBigRing1 = getTarget(record, true)
+        targetBigRing1.color = record.scenario=='SLEEP'?ColorType.sleep+'66':ColorType.fast+'66'
         if (record.status == 'ONGOING') {
             var realRing1 = getReal(record, true, false)
-
+            // debugger
             return <Rings common={common} bgRing={bgRing} currentDot={currentDot1} realRing={realRing1} targetRing={targetBigRing1} canvasId={props.type + 'index_big'} />
         }
         if (record.status == 'WAIT_FOR_START') {

+ 33 - 12
src/features/trackTimeDuration/components/RecordFastSleep.tsx

@@ -5,7 +5,7 @@ import RecordItem from "@/features/common/RecordItem";
 import { delRecord } from "@/services/trackTimeDuration";
 import { ModalType } from "@/utils/types";
 import { View, Text, Image, PageContainer } from "@tarojs/components";
-import Taro from "@tarojs/taro";
+import Taro, { usePageScroll } from "@tarojs/taro";
 import { useEffect, useState, memo } from "react";
 import TimelineFastSleep from "./TimelineFastSleep";
 import { TimeFormatter } from "@/utils/time_format";
@@ -37,6 +37,8 @@ let stageCanvasId = new Date().getTime()
 
 let startX = 0
 let startY = 0
+
+// let disableDismiss = false
 //https://www.php.cn/faq/629819.html
 
 // export default function RecordFastSleep(props: { data: any, type: string, delSuccess?: Function, index: any }) {
@@ -50,6 +52,7 @@ const RecordFastSleep = memo((props: { data: any, type: string, index: number })
     const [selIndex, setSelIndex] = useState(0)
     const [showMoreModal, setShowMoreModal] = useState(false)
     const [showDel, setShowDel] = useState(false)
+    const [disableDismiss, setDisableDismiss] = useState(false)
     const { t } = useTranslation()
     var canvasId = props.data.id
     const record = props.data;
@@ -72,13 +75,13 @@ const RecordFastSleep = memo((props: { data: any, type: string, index: number })
 
         }
 
-        if (props.index==-20000){
-            global.refreshRecent = ()=>{
-                setCount((index)=>index+1)
+        if (props.index == -20000) {
+            global.refreshRecent = () => {
+                setCount((index) => index + 1)
             }
-            setTimeout(()=>{
-                setCount((index)=>index+1)
-            },100)
+            setTimeout(() => {
+                setCount((index) => index + 1)
+            }, 100)
         }
         // console.log(sqrt(-4).toString())
     }, [props.data])
@@ -177,8 +180,15 @@ const RecordFastSleep = memo((props: { data: any, type: string, index: number })
         </View>
     }
 
+
+
     function showDetail(e) {
-        setShowDel(false);
+        if (showDel){
+            setShowDel(false);
+            return
+        }
+        dispatch(setSelID(-1))
+        
         if (props.type == 'latest') {
             setSegmentIndex(0)
             global.segmentIndex = 0
@@ -240,7 +250,7 @@ const RecordFastSleep = memo((props: { data: any, type: string, index: number })
                 (props.data.scenario == 'SLEEP' && props.data.sleep.status == "NOT_COMPLETED")) {
                 realRing.durationArc = 0.01
             }
-            if (props.data.scenario=='FAST_SLEEP' && props.data.fast.status == "NOT_COMPLETED"){
+            if (props.data.scenario == 'FAST_SLEEP' && props.data.fast.status == "NOT_COMPLETED") {
                 realRing.durationArc = 0.01
             }
             return <Rings common={common} bgRing={bgRing} canvasId={canvasId} realRing={realRing} />
@@ -470,7 +480,7 @@ const RecordFastSleep = memo((props: { data: any, type: string, index: number })
                 fastDuration = t('feature.common.wait_for_end')
             }
 
-            if (record.status == 'COMPLETED' && record.fast.status=='NOT_COMPLETED'){
+            if (record.status == 'COMPLETED' && record.fast.status == 'NOT_COMPLETED') {
                 fastDuration = t('feature.common.not_completed')
             }
 
@@ -530,6 +540,8 @@ const RecordFastSleep = memo((props: { data: any, type: string, index: number })
     function touchStart(e) {
         startX = e.touches[0].clientX
         startY = e.touches[0].clientY
+        setDisableDismiss(true)
+        // disableDismiss = true
     }
 
     function touchMove(e) {
@@ -540,12 +552,13 @@ const RecordFastSleep = memo((props: { data: any, type: string, index: number })
 
 
         if (Math.abs(deltaX) > Math.abs(deltaY)) {
-            if (deltaX < -60) {
+            if (deltaX < -80) {
                 setShowDel(true)
+
                 dispatch(setSelID(props.data.id))
                 global.selId = props.data.id
             }
-            else if (deltaX > 60) {
+            else if (deltaX > 80) {
                 setShowDel(false)
                 // global.selId = -1
             }
@@ -556,8 +569,16 @@ const RecordFastSleep = memo((props: { data: any, type: string, index: number })
 
     function touchEnd(e) {
         startX = 0
+        setDisableDismiss(false)
     }
 
+    usePageScroll((e) => {
+        if (showDel && !disableDismiss) {
+            console.log(disableDismiss)
+            // setShowDel(false)
+        }
+    })
+
     function modalContent() {
         if (process.env.TARO_ENV == 'weapp') {
             return <Modal

+ 28 - 4
src/features/trackTimeDuration/components/WeekCalendar.tsx

@@ -23,17 +23,41 @@ const WeekCalendar = memo(() => {
     const [minTime, setMinTime] = useState(0)
     const [left, setLeft] = useState(0)
     const [isLoading, setIsLoading] = useState(false)
-    const {t} = useTranslation()
+    const { t } = useTranslation()
     const pageSize = 34
 
     useEffect(() => {
-        pageIndex = -1
+        // pageIndex = -1
         getRecords()
     }, [])
 
+    global.refrehWeekly = () => {
+        // getRecords()
+        if (isLoading) return
+        pageIndex=0;
+        setIsLoading(true)
+        var timestamp = TimeFormatter.getMondayTimestamp()
+        var list: any = []
+        var offset = 12 * 3600 * 1000 + pageIndex * pageSize * 24 * 3600 * 1000
+        for (var i = 0; i < pageSize; i++) {
+            list.push(`${i + pageIndex * pageSize},${timestamp - 7 * 24 * 3600 * 1000 * i - offset},${timestamp - 7 * 24 * 3600 * 1000 * i + 7 * 24 * 3600 * 1000 - offset}`)
+        }
+        clockSummaryStats({ times: list.join(';') }).then(res => {
+            var list = (res as any).data.reverse()
+            if (pageIndex == 0) {
+                setCalendars(list)
+                setSummary(list[current].summary_stats ? list[current].summary_stats : null)
+                setCalendarData(list[current])
+
+                setIsLoading(false)
+            }
+
+        })
+    }
+
     function getRecords() {
         if (isLoading) return
-        pageIndex++;
+        pageIndex=0;
         setIsLoading(true)
         var timestamp = TimeFormatter.getMondayTimestamp()
         var list: any = []
@@ -161,7 +185,7 @@ const WeekCalendar = memo(() => {
 
                             // // 
                             if (index == current || index == current - 1 || index == current + 1)
-                                return <WeekCalendarItem data={item} key={index} isCurrentWeek={index==calendars.length-1}/>
+                                return <WeekCalendarItem data={item} key={index} isCurrentWeek={index == calendars.length - 1} />
                             return <View style={{ width: parseInt(rpxToPx(658) + ''), flexShrink: 0 }} />
                         })
                     }

+ 1 - 1
src/features/trackTimeDuration/components/WeekCalendarItem.tsx

@@ -47,7 +47,7 @@ export default function WeekCalendarItem(props: { data: any, isCurrentWeek: bool
         return ()=>{
             timer && clearInterval(timer)
         }
-    }, [])
+    }, [props.data])
 
     useEffect(() => {
         if (timer)

+ 6 - 5
src/pages/account/EditPage.tsx

@@ -38,7 +38,7 @@ export default function Page() {
 
 
     useEffect(() => {
-        if (process.env.TARO_ENV=='rn'){
+        if (process.env.TARO_ENV == 'rn') {
             setValue(router.params.name as any)
             return
         }
@@ -70,7 +70,7 @@ export default function Page() {
             })
 
             setTimeout(() => {
-                if (process.env.TARO_ENV=='weapp'){
+                if (process.env.TARO_ENV == 'weapp') {
                     Taro.navigateBack()
                 }
                 else {
@@ -84,17 +84,18 @@ export default function Page() {
         // dispatch(update({nickname:value}).then() as any)
     }
 
-    return <View style={{flex:1}}>
+    return <View style={{ flex: 1 }}>
         <View style={{ height: 20 }}></View>
         {/* <Input type="nickname" placeholder="请输入昵称" style={{ color: '#fff' }} value={value} onInput={handleChange} /> */}
         <Inputs autoFocus placeholder={t('feature.common.toast.input_nickname')} value={value} onChange={handleChange} onConfirm={save}
             openType="nickname"
         />
-        <View style={{flex:1}}/>
+        <View className="cell_footer">{t('page.user_profile.nickname_footer')}</View>
+        <View style={{ flex: 1 }} />
         <Footer>
             <ChooseScenarioBtn disable={btnDisable} title={t('page.user_profile.save')} onClick={save} background={ColorType.fast} />
         </Footer>
-        <View style={{height:40}}/>
+        <View style={{ height: 40 }} />
         {/* <Text onClick={save} style={{ color: '#fff' }}>保存</Text> */}
     </View>
 }

+ 1 - 1
src/pages/account/Profile.tsx

@@ -112,7 +112,7 @@ export default function Page() {
     function goSetting(e) {
         console.log('apple')
         jumpPage('/pages/account/Setting', 'Setting', navigation)
-        if (process.env.TARO_ENV == 'weapp') {
+        if (process.env.TARO_ENV == 'weapp' && e) {
             e.stopPropagation()
         }
     }

+ 2 - 1
src/pages/clock/Clock.config.ts

@@ -5,5 +5,6 @@ export default definePageConfig({
     },
     // "disableScroll": true,
     "enablePullDownRefresh": false,
-    "navigationBarTitleText": ""
+    "navigationBarTitleText": "",
+    "restartStrategy":"homePage"
 })

+ 8 - 20
src/pages/clock/Clock.tsx

@@ -139,7 +139,7 @@ export default function Page() {
             dispatch(clearNightStore());
         }
 
-    }, [user.isLogin, time.status])
+    }, [user.isLogin])
 
     useReady(async () => {
         const userData = await getStorage('userData');
@@ -150,15 +150,6 @@ export default function Page() {
 
         }
 
-        // if (process.env.TARO_ENV == 'weapp') {
-        //     useShareAppMessage((e) => {
-        //         return {
-        //             title: t('feature.track_time_duration.common.share_title'),
-        //             path: 'pages/clock/Clock'
-        //         }
-        //     })
-        // }
-
     })
 
     async function checkVersionUpdate() {
@@ -198,11 +189,11 @@ export default function Page() {
         pauseTimer = false
 
         if (user.isLogin) {
-            getInfo().then(res => {
-                dispatch(getInfoSuccess(res))
-            }).catch(e => {
-                Taro.stopPullDownRefresh()
-            })
+            // getInfo().then(res => {
+            //     dispatch(getInfoSuccess(res))
+            // }).catch(e => {
+            //     Taro.stopPullDownRefresh()
+            // })
             if (global.refreshRecent) {
                 global.refreshRecent()
             }
@@ -308,7 +299,6 @@ export default function Page() {
         if (userData) {
             dispatch(getInfoSuccess(JSON.parse(userData)));
         }
-        // getCheckData()
     }
 
     async function loadRNCache() {
@@ -324,7 +314,6 @@ export default function Page() {
         if (userData) {
             dispatch(getInfoSuccess(JSON.parse(userData)));
         }
-        // getCheckData()
     }
 
 
@@ -386,8 +375,8 @@ export default function Page() {
             getClockRecords({
                 page: 1,
                 limit: 1,
-                part_completed: true
-                // completed: true
+                // part_completed: true
+                completed: true
             }).then(res => {
                 setRecords((res as any).data)
             })
@@ -467,7 +456,6 @@ export default function Page() {
             })
         }
         else {
-            debugger
             Taro.showModal({
                 title: t('feature.track_time_duration.reminders.schedule_title'),
                 content: scenario.name == 'FAST' ?

+ 5 - 2
src/pages/common/RecordsHistory.tsx

@@ -181,8 +181,8 @@ export default function Page() {
                 page: page,
                 limit: pageSize,
                 scenario: scenario,
-                // completed: true,
-                part_completed: true
+                completed: true,
+                // part_completed: true
             }).then(res => {
                 Taro.stopPullDownRefresh()
                 setTriggered(false)
@@ -268,6 +268,7 @@ export default function Page() {
 
     global.delFastSleep = (item) => {
         removeItem(item)
+        global.refrehWeekly()
     }
 
     global.clearHistory = () => {
@@ -313,6 +314,8 @@ export default function Page() {
             clearTimeRecords().then(res => {
                 refresh()
                 global.indexPageRefresh()
+
+                global.refrehWeekly()
                 // global.refreshTime()
                 // global.refreshMetric()
                 // Taro.getCurrentPages()[0].refresh()

+ 1 - 1
src/pages/explore/Index.tsx

@@ -16,7 +16,7 @@ export default function Explore() {
     if (process.env.TARO_ENV == 'weapp') {
         useShareAppMessage((e) => {
             return {
-                title: t('feature.track_time_duration.common.share_title'),
+                title: t('page.explore.share_title'),
                 path: 'pages/explore/Index'
             }
         })