|
|
@@ -252,7 +252,11 @@ export default {
|
|
|
const date = new Date(dateStr)
|
|
|
return `${date.getMonth() + 1}月${date.getDate()}日`
|
|
|
},
|
|
|
- goToTasks() { uni.switchTab({ url: '/pages/tasks/tasks' }) },
|
|
|
+ goToTasks() {
|
|
|
+ // 从孩子端进入任务页,标记返回页面
|
|
|
+ uni.setStorageSync('lastVisitPage', '/pages/index/child-index')
|
|
|
+ uni.switchTab({ url: '/pages/tasks/tasks' })
|
|
|
+ },
|
|
|
goToRewards() { uni.switchTab({ url: '/pages/rewards/rewards' }) },
|
|
|
goToFocus() { uni.navigateTo({ url: '/pages/focus/focus' }) },
|
|
|
showPointsHistory() { uni.showToast({ title: '积分明细功能开发中', icon: 'none' }) },
|