|
@@ -224,14 +224,14 @@ export default function IndexConsole(props: { record: any, count: number }) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
if (status != 'ONGOING1' && props.record.scenario.name == 'FAST_SLEEP') {
|
|
if (status != 'ONGOING1' && props.record.scenario.name == 'FAST_SLEEP') {
|
|
|
- if (status == 'WAIT_FOR_START') {
|
|
|
|
|
- Taro.showToast({
|
|
|
|
|
- title: t('feature.track_time_duration.console.lock_fast_tip'),
|
|
|
|
|
- icon: 'none'
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- vibrate()
|
|
|
|
|
|
|
+ // if (status == 'WAIT_FOR_START') {
|
|
|
|
|
+ // Taro.showToast({
|
|
|
|
|
+ // title: t('feature.track_time_duration.console.lock_fast_tip'),
|
|
|
|
|
+ // icon: 'none'
|
|
|
|
|
+ // })
|
|
|
|
|
+ // }
|
|
|
|
|
+
|
|
|
|
|
+ // vibrate()
|
|
|
setMutiEvent('start_sleep')
|
|
setMutiEvent('start_sleep')
|
|
|
setShowMutiPicker(true);
|
|
setShowMutiPicker(true);
|
|
|
return;
|
|
return;
|
|
@@ -284,12 +284,12 @@ export default function IndexConsole(props: { record: any, count: number }) {
|
|
|
}
|
|
}
|
|
|
if (status != 'ONGOING2' && status != 'ONGOING') {
|
|
if (status != 'ONGOING2' && status != 'ONGOING') {
|
|
|
|
|
|
|
|
- Taro.showToast({
|
|
|
|
|
- title: t('feature.track_time_duration.console.lock_sleep_tip'),
|
|
|
|
|
- icon: 'none'
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ // Taro.showToast({
|
|
|
|
|
+ // title: t('feature.track_time_duration.console.lock_sleep_tip'),
|
|
|
|
|
+ // icon: 'none'
|
|
|
|
|
+ // })
|
|
|
|
|
|
|
|
- vibrate()
|
|
|
|
|
|
|
+ // vibrate()
|
|
|
setMutiEvent('end_sleep')
|
|
setMutiEvent('end_sleep')
|
|
|
setShowMutiPicker(true);
|
|
setShowMutiPicker(true);
|
|
|
return;
|
|
return;
|
|
@@ -337,11 +337,11 @@ export default function IndexConsole(props: { record: any, count: number }) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
if (status == 'WAIT_FOR_START') {
|
|
if (status == 'WAIT_FOR_START') {
|
|
|
- Taro.showToast({
|
|
|
|
|
- title: t('feature.track_time_duration.console.lock_fast_tip'),
|
|
|
|
|
- icon: 'none'
|
|
|
|
|
- })
|
|
|
|
|
- vibrate()
|
|
|
|
|
|
|
+ // Taro.showToast({
|
|
|
|
|
+ // title: t('feature.track_time_duration.console.lock_fast_tip'),
|
|
|
|
|
+ // icon: 'none'
|
|
|
|
|
+ // })
|
|
|
|
|
+ // vibrate()
|
|
|
setMutiEvent('end_fast')
|
|
setMutiEvent('end_fast')
|
|
|
setShowMutiPicker(true);
|
|
setShowMutiPicker(true);
|
|
|
return;
|
|
return;
|
|
@@ -833,7 +833,7 @@ export default function IndexConsole(props: { record: any, count: number }) {
|
|
|
|
|
|
|
|
function mutiPickerContent() {
|
|
function mutiPickerContent() {
|
|
|
global.set_time = new Date().getTime()
|
|
global.set_time = new Date().getTime()
|
|
|
- return <IndexConsoleMuti status={status} event={mutiEvent} close={() => setShowMutiPicker(false)} />
|
|
|
|
|
|
|
+ return <IndexConsoleMuti status={status} event={mutiEvent} scenario={props.record.scenario.name} close={() => setShowMutiPicker(false)} />
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function single() {
|
|
function single() {
|
|
@@ -842,7 +842,7 @@ export default function IndexConsole(props: { record: any, count: number }) {
|
|
|
{
|
|
{
|
|
|
status == 'WAIT_FOR_START' &&
|
|
status == 'WAIT_FOR_START' &&
|
|
|
<View onClick={tapStartFast} className='console_btn'>
|
|
<View onClick={tapStartFast} className='console_btn'>
|
|
|
- <Text style={{ fontWeight: 'bold', color: ColorType.black }}>{t('feature.track_time_duration.common.start_fast')}</Text>
|
|
|
|
|
|
|
+ <Text style={{ fontWeight: 'bold', fontSize: rpxToPx(32), color: ColorType.black }}>{t('feature.track_time_duration.common.start_fast')}</Text>
|
|
|
</View>
|
|
</View>
|
|
|
}
|
|
}
|
|
|
{/* {
|
|
{/* {
|
|
@@ -850,12 +850,28 @@ export default function IndexConsole(props: { record: any, count: number }) {
|
|
|
} */}
|
|
} */}
|
|
|
{
|
|
{
|
|
|
status == 'ONGOING' && <View onClick={tapEndFast} className={status == 'ONGOING' ? 'console_btn' : 'console_btn btn_disable'}>
|
|
status == 'ONGOING' && <View onClick={tapEndFast} className={status == 'ONGOING' ? 'console_btn' : 'console_btn btn_disable'}>
|
|
|
- <Text style={{ fontWeight: 'bold', color: ColorType.black }}>{t('feature.track_time_duration.common.end_fast')}</Text>
|
|
|
|
|
|
|
+ <Text style={{ fontWeight: 'bold', fontSize: rpxToPx(32), color: ColorType.black }}>{t('feature.track_time_duration.common.end_fast')}</Text>
|
|
|
|
|
+ </View>
|
|
|
|
|
+ }
|
|
|
|
|
+ {
|
|
|
|
|
+ status == 'WAIT_FOR_START' && <View>
|
|
|
|
|
+ {
|
|
|
|
|
+ !expand && <Text className='expand' onClick={() => { setExpand(true) }}>{expandBtnText()}</Text>
|
|
|
|
|
+ }
|
|
|
|
|
+ </View>
|
|
|
|
|
+ }
|
|
|
|
|
+ {expand && <View className='btn_line' />}
|
|
|
|
|
+ {
|
|
|
|
|
+ expand && <View onClick={tapEndFast} className={status == 'ONGOING3' ? 'console_btn' : 'console_btn btn_disable'}>
|
|
|
|
|
+ <Text style={{ fontWeight: 'bold', fontSize: rpxToPx(32), color: ColorType.black }}>{t('feature.track_time_duration.common.end_fast')}</Text>
|
|
|
</View>
|
|
</View>
|
|
|
}
|
|
}
|
|
|
{
|
|
{
|
|
|
showTimePicker && modalContent()
|
|
showTimePicker && modalContent()
|
|
|
}
|
|
}
|
|
|
|
|
+ {
|
|
|
|
|
+ showMutiPicker && mutiContent()
|
|
|
|
|
+ }
|
|
|
</View>
|
|
</View>
|
|
|
}
|
|
}
|
|
|
else if (props.record.scenario.name == 'SLEEP') {
|
|
else if (props.record.scenario.name == 'SLEEP') {
|