|
|
@@ -63,6 +63,7 @@ export default function Component(props: { records: any[] }) {
|
|
|
}
|
|
|
|
|
|
function schedules(item) {
|
|
|
+ console.log(item)
|
|
|
var timelineItems: any = [];
|
|
|
for (var i = item.records.length - 1; i > 0; i--) {
|
|
|
var type = item.records[i].type == 'total' ? t('feature.track_something.activity.total') :
|
|
|
@@ -115,10 +116,6 @@ export default function Component(props: { records: any[] }) {
|
|
|
|
|
|
<RecordItem onClick={() => showDetail(item)} delete={() => deleteRecord(item.records[0])}>
|
|
|
<View className="operate_item">
|
|
|
- {/* <View className="status_bg">
|
|
|
- <Text className="status_text">{item.records[0].type == 'total' ? '总计' : item.records[0].type == 'sync' ? '同步' : '打卡'}</Text>
|
|
|
- </View>
|
|
|
- <View style={{ width: 12 }} /> */}
|
|
|
<Text className="value" style={{ backgroundColor: global.isDebug ? 'red' : 'transparent' }}>{item.records[0].items[0].value}</Text>
|
|
|
<Text className="unit">步</Text>
|
|
|
<View style={{ flex: 1 }} />
|
|
|
@@ -131,33 +128,4 @@ export default function Component(props: { records: any[] }) {
|
|
|
})
|
|
|
}
|
|
|
</View>
|
|
|
-
|
|
|
- // return <View style={{ display: 'flex', flexDirection: 'column' }}>
|
|
|
- // {
|
|
|
- // user.test_user && <Text style={{ color: '#fff', position: 'absolute', right: 50, top: 0 }} onClick={()=>global.clearHistory()}>删除全部</Text>
|
|
|
- // }
|
|
|
- // {
|
|
|
- // (list as any).map(item => {
|
|
|
- // return <View style={{ display: 'flex', flexDirection: 'column' }}>
|
|
|
- // <Text className="operate_day">{formateDate(item.date + '')}</Text>
|
|
|
- // {
|
|
|
- // item.records.map(record => {
|
|
|
- // return <RecordItem delete={() => deleteRecord(record)}>
|
|
|
- // <View className="operate_item">
|
|
|
- // <View className="status_bg">
|
|
|
- // <Text className="status_text">{record.type == 'total' ? '总计' : record.type == 'sync' ? '同步' : '打卡'}</Text>
|
|
|
- // </View>
|
|
|
- // <View style={{ width: 12 }} />
|
|
|
- // <Text className="value">{record.items[0].value}</Text>
|
|
|
- // <Text className="unit">步</Text>
|
|
|
- // <View style={{ flex: 1 }} />
|
|
|
- // <Text className="time">{formateHourMinutes(record.timestamp)}</Text>
|
|
|
- // </View>
|
|
|
- // </RecordItem>
|
|
|
- // })
|
|
|
- // }
|
|
|
- // </View>
|
|
|
- // })
|
|
|
- // }
|
|
|
- // </View>
|
|
|
}
|