|
@@ -31,10 +31,10 @@ export default function Component() {
|
|
|
const seconds = Math.floor(time % 60);
|
|
const seconds = Math.floor(time % 60);
|
|
|
var strDuration = ''
|
|
var strDuration = ''
|
|
|
if (hours > 0) {
|
|
if (hours > 0) {
|
|
|
- strDuration = `${hours}时`
|
|
|
|
|
|
|
+ strDuration = `${hours}小时`
|
|
|
}
|
|
}
|
|
|
if (minutes > 0) {
|
|
if (minutes > 0) {
|
|
|
- strDuration += `${minutes}分`
|
|
|
|
|
|
|
+ strDuration += `${minutes}分钟`
|
|
|
}
|
|
}
|
|
|
if (seconds > 0) {
|
|
if (seconds > 0) {
|
|
|
strDuration += `${seconds}秒`
|
|
strDuration += `${seconds}秒`
|
|
@@ -180,20 +180,20 @@ export default function Component() {
|
|
|
|
|
|
|
|
return <View style={{ color: '#fff', display: 'flex', flexDirection: 'column' }}>
|
|
return <View style={{ color: '#fff', display: 'flex', flexDirection: 'column' }}>
|
|
|
<Text className="result_detail_text" style={{ color: router.params.themeColor }}>{router.params.title}</Text>
|
|
<Text className="result_detail_text" style={{ color: router.params.themeColor }}>{router.params.title}</Text>
|
|
|
- <Text className="result_detail_text" style={{ color: '#fff', opacity: 0.4, marginTop: rpxToPx(10), marginBottom: rpxToPx(20) }}>计时训练</Text>
|
|
|
|
|
- <Text className="result_detail_text">训练统计</Text>
|
|
|
|
|
- <View style={{ marginLeft: rpxToPx(32), display: 'flex', flexDirection: 'column' }}>
|
|
|
|
|
- <Text>总量</Text>
|
|
|
|
|
- <Text style={{ color: router.params.themeColor }}>{getTotalValue()}</Text>
|
|
|
|
|
- <Text>用时</Text>
|
|
|
|
|
|
|
+ <Text className="result_type">计时训练</Text>
|
|
|
|
|
+ <Text className="result_group_text">训练统计</Text>
|
|
|
|
|
+ <View style={{ marginLeft: rpxToPx(32), display: 'flex', flexDirection: 'column',marginBottom:rpxToPx(56) }}>
|
|
|
|
|
+ <Text className="result_summary_title">总量</Text>
|
|
|
|
|
+ <Text className="result_summary_total" style={{ color: router.params.themeColor }}>{getTotalValue()}</Text>
|
|
|
|
|
+ <Text className="result_summary_title">用时</Text>
|
|
|
<View style={{ flexDirection: 'row', display: 'flex', width: '100%' }}>
|
|
<View style={{ flexDirection: 'row', display: 'flex', width: '100%' }}>
|
|
|
- <View style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', flex: 1 }}>
|
|
|
|
|
- <Text style={{ color: router.params.themeColor }}>{getRealDuration()}</Text>
|
|
|
|
|
- <Text>实际</Text>
|
|
|
|
|
|
|
+ <View style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}>
|
|
|
|
|
+ <Text className="result_summary_time" style={{ color: router.params.themeColor }}>{getRealDuration()}</Text>
|
|
|
|
|
+ <Text className="result_summary_desc">实际</Text>
|
|
|
</View>
|
|
</View>
|
|
|
- <View style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', flex: 1 }}>
|
|
|
|
|
- <Text style={{ color: router.params.themeColor }}>{getPlanDuration()}</Text>
|
|
|
|
|
- <Text>计划</Text>
|
|
|
|
|
|
|
+ <View style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', marginLeft:rpxToPx(90) }}>
|
|
|
|
|
+ <Text className="result_summary_time" style={{ color: router.params.themeColor }}>{getPlanDuration()}</Text>
|
|
|
|
|
+ <Text className="result_summary_desc">计划</Text>
|
|
|
</View>
|
|
</View>
|
|
|
</View>
|
|
</View>
|
|
|
|
|
|
|
@@ -202,17 +202,17 @@ export default function Component() {
|
|
|
<Text>用时</Text>
|
|
<Text>用时</Text>
|
|
|
<Text style={{ color: router.params.themeColor }}>111</Text>
|
|
<Text style={{ color: router.params.themeColor }}>111</Text>
|
|
|
</View> */}
|
|
</View> */}
|
|
|
- <Text className="result_detail_text">训练详情</Text>
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ <Text className="result_group_text" style={{marginBottom:rpxToPx(48),marginTop:0}}>训练详情</Text>
|
|
|
|
|
+ {/* {
|
|
|
histories.length > 0 && <Text className="result_count">共{getCount()}组</Text>
|
|
histories.length > 0 && <Text className="result_count">共{getCount()}组</Text>
|
|
|
- }
|
|
|
|
|
|
|
+ } */}
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
histories.map((item, index) => {
|
|
histories.map((item, index) => {
|
|
|
- return <View key={index} className={item.typ == 'WORK' ? 'result_item' : 'result_item result_item_rest'}>
|
|
|
|
|
|
|
+ return <View key={index} className={item.type == 'WORK' ? 'result_item' : 'result_item result_item_rest'}>
|
|
|
<Text>{item.type == 'WORK' ? `第${getIndex(index)}组` : '组间休息'}</Text>
|
|
<Text>{item.type == 'WORK' ? `第${getIndex(index)}组` : '组间休息'}</Text>
|
|
|
- {item.type == 'WORK' && <Text style={{ color: router.params.themeColor }}>{getValue(item)}</Text>}
|
|
|
|
|
|
|
+ {item.type == 'WORK' && <Text className="workout_result_value" style={{ color: router.params.themeColor }}>{getValue(item)}</Text>}
|
|
|
<Text className="result_time">{twoTimeDuration(item.start.timestamp, item.end.timestamp)}</Text>
|
|
<Text className="result_time">{twoTimeDuration(item.start.timestamp, item.end.timestamp)}</Text>
|
|
|
</View>
|
|
</View>
|
|
|
})
|
|
})
|