|
@@ -240,7 +240,16 @@ export default function Component(props: any) {
|
|
|
var count = Taro.getStorageSync('lastWorkoutDuration') ?? 60 * 50
|
|
var count = Taro.getStorageSync('lastWorkoutDuration') ?? 60 * 50
|
|
|
//进行中的处理
|
|
//进行中的处理
|
|
|
if (item.code == workout.code && workout.status == 'ing') {
|
|
if (item.code == workout.code && workout.status == 'ing') {
|
|
|
- Taro.navigateTo({ url: '/pages/workout/Working?type=stop_watch&restore=true&count=' + count })
|
|
|
|
|
|
|
+ jumpPage('/pages/workout/Working?type=stop_watch&restore=true&count=' + count,
|
|
|
|
|
+ 'Working',
|
|
|
|
|
+ navigation,
|
|
|
|
|
+ {
|
|
|
|
|
+ type: 'stop_watch',
|
|
|
|
|
+ restore: true,
|
|
|
|
|
+ count: count
|
|
|
|
|
+ }
|
|
|
|
|
+ )
|
|
|
|
|
+ // Taro.navigateTo({ url: '/pages/workout/Working?type=stop_watch&restore=true&count=' + count })
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
if (workout.status == 'ing') {
|
|
if (workout.status == 'ing') {
|
|
@@ -277,7 +286,16 @@ export default function Component(props: any) {
|
|
|
setSelItem(lastObject)
|
|
setSelItem(lastObject)
|
|
|
dispatch(setCurrentWorkoutItem(lastObject))
|
|
dispatch(setCurrentWorkoutItem(lastObject))
|
|
|
var count = Taro.getStorageSync('lastWorkoutDuration') ?? 60 * 50
|
|
var count = Taro.getStorageSync('lastWorkoutDuration') ?? 60 * 50
|
|
|
- Taro.navigateTo({ url: '/pages/workout/Working?type=stop_watch&restore=true&count=' + count })
|
|
|
|
|
|
|
+ jumpPage('/pages/workout/Working?type=stop_watch&restore=true&count=' + count,
|
|
|
|
|
+ 'Working',
|
|
|
|
|
+ navigation,
|
|
|
|
|
+ {
|
|
|
|
|
+ type: 'stop_watch',
|
|
|
|
|
+ restore: true,
|
|
|
|
|
+ count: count
|
|
|
|
|
+ }
|
|
|
|
|
+ )
|
|
|
|
|
+ // Taro.navigateTo({ url: '/pages/workout/Working?type=stop_watch&restore=true&count=' + count })
|
|
|
} else if (res.cancel) {
|
|
} else if (res.cancel) {
|
|
|
console.log('用户点击取消')
|
|
console.log('用户点击取消')
|
|
|
}
|
|
}
|
|
@@ -305,10 +323,6 @@ export default function Component(props: any) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function timeStart() {
|
|
|
|
|
- Taro.navigateTo({ url: '/pages/workout/Working?type=timer' })
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
function successAuth() {
|
|
function successAuth() {
|
|
|
Taro.setStorage({ key: 'auth', data: true })
|
|
Taro.setStorage({ key: 'auth', data: true })
|
|
|
setAllowRun(true)
|
|
setAllowRun(true)
|
|
@@ -889,7 +903,15 @@ export default function Component(props: any) {
|
|
|
setTargetTime(count);
|
|
setTargetTime(count);
|
|
|
setShowModal(false);
|
|
setShowModal(false);
|
|
|
Taro.setStorageSync('lastWorkoutDuration', count)
|
|
Taro.setStorageSync('lastWorkoutDuration', count)
|
|
|
- Taro.navigateTo({ url: '/pages/workout/Working?type=stop_watch&count=' + count })
|
|
|
|
|
|
|
+ jumpPage('/pages/workout/Working?type=stop_watch&count=' + count,
|
|
|
|
|
+ 'Working',
|
|
|
|
|
+ navigation,
|
|
|
|
|
+ {
|
|
|
|
|
+ type: 'stop_watch',
|
|
|
|
|
+ count: count
|
|
|
|
|
+ }
|
|
|
|
|
+ )
|
|
|
|
|
+ // Taro.navigateTo({ url: '/pages/workout/Working?type=stop_watch&count=' + count })
|
|
|
}} />
|
|
}} />
|
|
|
}
|
|
}
|
|
|
{
|
|
{
|