|
@@ -265,6 +265,271 @@ export default function HistoryItem(props: {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ function temp() {
|
|
|
|
|
+ return <View className="history_item2" onClick={goDetail}>
|
|
|
|
|
+ <View className="cell_date" >
|
|
|
|
|
+ <View className="h42 bold" style={{ lineHeight: rpxToPx(60) + 'px' }}>{historyDate()}</View>
|
|
|
|
|
+ <View className="h24 bold" style={{ marginLeft: rpxToPx(6), marginTop: rpxToPx(13), lineHeight: rpxToPx(47) + 'px' }}>{historyMonth()}</View>
|
|
|
|
|
+ </View>
|
|
|
|
|
+ <View className="history_content" style={{ paddingTop: rpxToPx(4) }}>
|
|
|
|
|
+ {
|
|
|
|
|
+ props.data.dataArray.map((content, i) => {
|
|
|
|
|
+ return <View style={{ display: 'flex', flexDirection: 'row', marginBottom: rpxToPx(12), flex: 1 }} key={i}>
|
|
|
|
|
+ {
|
|
|
|
|
+ content.type == 'TEXT' && <View style={{
|
|
|
|
|
+ display: 'flex',
|
|
|
|
|
+ flex: 1,
|
|
|
|
|
+ flexShrink: 0,
|
|
|
|
|
+ flexDirection: 'column',
|
|
|
|
|
+ backgroundColor: '#fafafa',
|
|
|
|
|
+ paddingLeft: rpxToPx(20),
|
|
|
|
|
+ paddingRight: rpxToPx(20),
|
|
|
|
|
+ paddingTop: rpxToPx(12),
|
|
|
|
|
+ paddingBottom: rpxToPx(12)
|
|
|
|
|
+ }}>{content.data.map((detail, j) => {
|
|
|
|
|
+ return <TimeTitleDesc
|
|
|
|
|
+ key={j * 100}
|
|
|
|
|
+ className={'line2'}
|
|
|
|
|
+ time=''
|
|
|
|
|
+ title={detail.title}
|
|
|
|
|
+ desc={detail.description}
|
|
|
|
|
+ />
|
|
|
|
|
+ })}</View>
|
|
|
|
|
+ }
|
|
|
|
|
+ {
|
|
|
|
|
+ content.type == 'PIC' && <CoverList imgs={content.data} count={content.data.length} />
|
|
|
|
|
+ }
|
|
|
|
|
+ {
|
|
|
|
|
+ content.type == 'PIC_TEXT' && <Image
|
|
|
|
|
+ style={{ width: rpxToPx(178), height: rpxToPx(178), marginRight: rpxToPx(7), flexShrink: 0 }}
|
|
|
|
|
+ src={content.data[0].url}
|
|
|
|
|
+ onClick={(e) => {
|
|
|
|
|
+ if (process.env.TARO_ENV == 'weapp') {
|
|
|
|
|
+ e.stopPropagation()
|
|
|
|
|
+ }
|
|
|
|
|
+ Taro.previewImage({
|
|
|
|
|
+ current: content.data[0].url,
|
|
|
|
|
+ urls: [content.data[0].url]
|
|
|
|
|
+ })
|
|
|
|
|
+ }}
|
|
|
|
|
+ mode="aspectFill" />
|
|
|
|
|
+ }
|
|
|
|
|
+ {
|
|
|
|
|
+ content.type == 'PIC_TEXT' && <View style={{
|
|
|
|
|
+ display: 'flex',
|
|
|
|
|
+ flex: 1,
|
|
|
|
|
+ flexShrink: 0,
|
|
|
|
|
+ flexDirection: 'column',
|
|
|
|
|
+ backgroundColor: 'transparent',
|
|
|
|
|
+ paddingLeft: rpxToPx(17),
|
|
|
|
|
+ paddingRight: 0,
|
|
|
|
|
+ paddingTop: 0,
|
|
|
|
|
+ paddingBottom: 0
|
|
|
|
|
+ }}>
|
|
|
|
|
+ <TimeTitleDesc
|
|
|
|
|
+ className={'line3'}
|
|
|
|
|
+ time=''
|
|
|
|
|
+ title={content.data[0].title}
|
|
|
|
|
+ desc={content.data[0].description}
|
|
|
|
|
+ />
|
|
|
|
|
+ </View>
|
|
|
|
|
+ }
|
|
|
|
|
+ </View>
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ {/* {
|
|
|
|
|
+ props.data.events.map((event, i) => {
|
|
|
|
|
+ return event.moments && event.moments.map((moment, j) => {
|
|
|
|
|
+ return <View style={{ display: 'flex', flexDirection: 'row', marginBottom: rpxToPx(12), flex: 1 }} key={i * 100 + j}>
|
|
|
|
|
+ {
|
|
|
|
|
+ moment.media && moment.media.length > 0 && <Image
|
|
|
|
|
+ style={{ width: rpxToPx(178), height: rpxToPx(178), marginRight: rpxToPx(7), flexShrink: 0 }}
|
|
|
|
|
+ src={moment.media[0].url}
|
|
|
|
|
+ mode="aspectFill" />
|
|
|
|
|
+ }
|
|
|
|
|
+ {
|
|
|
|
|
+ momentItem(moment)
|
|
|
|
|
+ }
|
|
|
|
|
+ </View>
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ } */}
|
|
|
|
|
+
|
|
|
|
|
+ {/* <View style={{ display: 'flex', flexDirection: 'column', marginBottom: rpxToPx(12), flex: 1, paddingTop: rpxToPx(4) }}>
|
|
|
|
|
+ {
|
|
|
|
|
+ props.data.events.map((item, index) => {
|
|
|
|
|
+ return <TimeTitleDesc
|
|
|
|
|
+ timeObj={item.time}
|
|
|
|
|
+ time={item.time && dayjs(item.time.timestamp).format('HH:mm')}
|
|
|
|
|
+ dayTag={dayTag(index)}
|
|
|
|
|
+ title={getTitle(item)}
|
|
|
|
|
+ desc={item.moments && item.moments.length > 0 ? item.moments[0].description : ''}
|
|
|
|
|
+ />
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ </View> */}
|
|
|
|
|
+ {/* {
|
|
|
|
|
+ mediaCount() > 0 && <CoverList count={mediaCount()} imgs={imgList()} />
|
|
|
|
|
+ } */}
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ props.type != 'FAST,SLEEP' && props.mode != 'EAT' && props.mode != 'ACTIVE' && props.data.windows.map((item, index) => {
|
|
|
|
|
+ return <TargetProgress key={index} showLine={index < props.data.windows.length - 1}
|
|
|
|
|
+ color={getThemeColor(item.window)}
|
|
|
|
|
+ showRing={props.fast_type != 'LF'}
|
|
|
|
|
+ desc={item.description}
|
|
|
|
|
+ icon={
|
|
|
|
|
+ props.fast_type == 'LF' ? <IconLongFast color={MainColorType.fast} width={rpxToPx(32)} /> : null
|
|
|
|
|
+ }
|
|
|
|
|
+ canvasId={`${item.window}${item.window_range.start_timestamp}${index}`}
|
|
|
|
|
+ startTimestamp={item.window_range.start_timestamp}
|
|
|
|
|
+ endTimerstamp={item.window_range.end_timestamp}
|
|
|
|
|
+ />
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ props.type == 'FAST,SLEEP' && <TargetProgress
|
|
|
|
|
+ showRing={true}
|
|
|
|
|
+ doubleRing={true}
|
|
|
|
|
+ first={props.data.windows[0]}
|
|
|
|
|
+ second={props.data.windows[1]}
|
|
|
|
|
+ canvasId={`double_${props.data.windows[0].window_range.start_timestamp}`}
|
|
|
|
|
+ />
|
|
|
|
|
+ }
|
|
|
|
|
+ {/* <TargetProgress showLine={props.mode == 'FAST,SLEEP' && props.data.events.length > 2}
|
|
|
|
|
+ color={props.mode == 'FAST,SLEEP' ? getThemeColor('FAST') : getThemeColor(health.mode)}
|
|
|
|
|
+ showRing={props.fast_type != 'LF'}
|
|
|
|
|
+ desc={props.data.window_range.end_timestamp ? formatMilliseconds(props.data.window_range.end_timestamp - props.data.window_range.start_timestamp) : ''}
|
|
|
|
|
+ icon={
|
|
|
|
|
+ props.fast_type == 'LF' ? <IconLongFast color={MainColorType.fast} width={rpxToPx(32)} /> : null
|
|
|
|
|
+ }
|
|
|
|
|
+ canvasId={(props.mode == 'FAST,SLEEP' ? 'history_fast_sleep' + props.index : 'history_' + props.index) + props.type}
|
|
|
|
|
+ startTimestamp={props.data.window_range.start_timestamp}
|
|
|
|
|
+ endTimerstamp={props.data.window_range.end_timestamp}
|
|
|
|
|
+ />
|
|
|
|
|
+ {
|
|
|
|
|
+ props.mode == 'FAST,SLEEP' && props.data.events.length > 2 && <View className="history_duration_bg" style={{ marginTop: 0 }}>
|
|
|
|
|
+ {
|
|
|
|
|
+ props.fast_type != 'LF' && <View className="recent_ring_bg">
|
|
|
|
|
+ {
|
|
|
|
|
+ ring2()
|
|
|
|
|
+ }
|
|
|
|
|
+ </View>
|
|
|
|
|
+ }
|
|
|
|
|
+ {
|
|
|
|
|
+ props.data.window_range.end_timestamp && <Text className="history_item_duration h26">{formatMilliseconds(props.data.events[2].time.timestamp - props.data.events[1].time.timestamp)}</Text>
|
|
|
|
|
+ }
|
|
|
|
|
+ </View>
|
|
|
|
|
+ } */}
|
|
|
|
|
+ {/* {
|
|
|
|
|
+ props.isArchived && <View className="history_archived_row">
|
|
|
|
|
+ <View className="history_archived" onClick={(e) => {
|
|
|
|
|
+ if (process.env.TARO_ENV == 'weapp') {
|
|
|
|
|
+ e.stopPropagation()
|
|
|
|
|
+ }
|
|
|
|
|
+ showActionSheet({
|
|
|
|
|
+ showActionSheetWithOptions: showActionSheetWithOptions,
|
|
|
|
|
+ title: 'Oprate Title',
|
|
|
|
|
+ itemList: ['标记完成', '补记'],
|
|
|
|
|
+ success: (res) => {
|
|
|
|
|
+ // tapActionSheet(res)
|
|
|
|
|
+ switch (res) {
|
|
|
|
|
+ case 1:
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 0:
|
|
|
|
|
+ makeDone(props.data.window_id).then(res => {
|
|
|
|
|
+ global.refreshWindow()
|
|
|
|
|
+ global.refreshHistory()
|
|
|
|
|
+ if (props.refresh)
|
|
|
|
|
+ props.refresh()
|
|
|
|
|
+ })
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }}>
|
|
|
|
|
+ <IconMore width={17} color="#b2b2b2" />
|
|
|
|
|
+ </View>
|
|
|
|
|
+ </View>
|
|
|
|
|
+ } */}
|
|
|
|
|
+ <View style={{ height: rpxToPx(0), flexShrink: 0 }} />
|
|
|
|
|
+ {/* <View style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', height: rpxToPx(60), marginTop: rpxToPx(20) }}>
|
|
|
|
|
+ <View style={{ flex: 1 }} />
|
|
|
|
|
+ <NewButton type={NewButtonType.more}
|
|
|
|
|
+ onClick={tapDel}
|
|
|
|
|
+ />
|
|
|
|
|
+ </View> */}
|
|
|
|
|
+ </View>
|
|
|
|
|
+ {/*
|
|
|
|
|
+ {
|
|
|
|
|
+ !props.hideLine && <View className="border_footer_line" />
|
|
|
|
|
+ } */}
|
|
|
|
|
+
|
|
|
|
|
+ </View>
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function singleItem(type, url, obj, key) {
|
|
|
|
|
+ return <View style={{ display: 'flex', flexDirection: 'row', marginBottom: rpxToPx(12), flex: 1 }} key={key * 1000}>
|
|
|
|
|
+ {
|
|
|
|
|
+ type == 'TEXT' && <View style={{
|
|
|
|
|
+ display: 'flex',
|
|
|
|
|
+ flex: 1,
|
|
|
|
|
+ flexShrink: 0,
|
|
|
|
|
+ flexDirection: 'column',
|
|
|
|
|
+ backgroundColor: '#fafafa',
|
|
|
|
|
+ paddingLeft: rpxToPx(20),
|
|
|
|
|
+ paddingRight: rpxToPx(20),
|
|
|
|
|
+ paddingTop: rpxToPx(12),
|
|
|
|
|
+ paddingBottom: rpxToPx(12)
|
|
|
|
|
+ }}><TimeTitleDesc
|
|
|
|
|
+ className={'line2'}
|
|
|
|
|
+ time=''
|
|
|
|
|
+ title={obj.title}
|
|
|
|
|
+ desc={obj.description}
|
|
|
|
|
+ />
|
|
|
|
|
+ </View>
|
|
|
|
|
+ }
|
|
|
|
|
+ {
|
|
|
|
|
+ type == 'PIC' && <CoverList imgs={[url]} count={1} />
|
|
|
|
|
+ }
|
|
|
|
|
+ {
|
|
|
|
|
+ type == 'PIC_TEXT' && <Image
|
|
|
|
|
+ style={{ width: rpxToPx(178), height: rpxToPx(178), marginRight: rpxToPx(7), flexShrink: 0 }}
|
|
|
|
|
+ src={url}
|
|
|
|
|
+ onClick={(e) => {
|
|
|
|
|
+ if (process.env.TARO_ENV == 'weapp') {
|
|
|
|
|
+ e.stopPropagation()
|
|
|
|
|
+ }
|
|
|
|
|
+ Taro.previewImage({
|
|
|
|
|
+ current: url,
|
|
|
|
|
+ urls: [url]
|
|
|
|
|
+ })
|
|
|
|
|
+ }}
|
|
|
|
|
+ mode="aspectFill" />
|
|
|
|
|
+ }
|
|
|
|
|
+ {
|
|
|
|
|
+ type == 'PIC_TEXT' && <View style={{
|
|
|
|
|
+ display: 'flex',
|
|
|
|
|
+ flex: 1,
|
|
|
|
|
+ flexShrink: 0,
|
|
|
|
|
+ flexDirection: 'column',
|
|
|
|
|
+ backgroundColor: 'transparent',
|
|
|
|
|
+ paddingLeft: rpxToPx(17),
|
|
|
|
|
+ paddingRight: 0,
|
|
|
|
|
+ paddingTop: 0,
|
|
|
|
|
+ paddingBottom: 0
|
|
|
|
|
+ }}>
|
|
|
|
|
+ <TimeTitleDesc
|
|
|
|
|
+ className={'line3'}
|
|
|
|
|
+ time=''
|
|
|
|
|
+ title={obj.title}
|
|
|
|
|
+ desc={obj.description}
|
|
|
|
|
+ />
|
|
|
|
|
+ </View>
|
|
|
|
|
+ }
|
|
|
|
|
+ </View>
|
|
|
|
|
+ }
|
|
|
return <View className="history_item2" onClick={goDetail}>
|
|
return <View className="history_item2" onClick={goDetail}>
|
|
|
<View className="cell_date" >
|
|
<View className="cell_date" >
|
|
|
<View className="h42 bold" style={{ lineHeight: rpxToPx(60) + 'px' }}>{historyDate()}</View>
|
|
<View className="h42 bold" style={{ lineHeight: rpxToPx(60) + 'px' }}>{historyDate()}</View>
|
|
@@ -272,7 +537,7 @@ export default function HistoryItem(props: {
|
|
|
</View>
|
|
</View>
|
|
|
<View className="history_content" style={{ paddingTop: rpxToPx(4) }}>
|
|
<View className="history_content" style={{ paddingTop: rpxToPx(4) }}>
|
|
|
{
|
|
{
|
|
|
- props.data.dataArray.map((content, i) => {
|
|
|
|
|
|
|
+ props.mode != 'EAT' && props.mode != 'ACTIVE' && props.data.dataArray.map((content, i) => {
|
|
|
return <View style={{ display: 'flex', flexDirection: 'row', marginBottom: rpxToPx(12), flex: 1 }} key={i}>
|
|
return <View style={{ display: 'flex', flexDirection: 'row', marginBottom: rpxToPx(12), flex: 1 }} key={i}>
|
|
|
{
|
|
{
|
|
|
content.type == 'TEXT' && <View style={{
|
|
content.type == 'TEXT' && <View style={{
|
|
@@ -334,45 +599,36 @@ export default function HistoryItem(props: {
|
|
|
</View>
|
|
</View>
|
|
|
}
|
|
}
|
|
|
</View>
|
|
</View>
|
|
|
|
|
+
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
- {/* {
|
|
|
|
|
- props.data.events.map((event, i) => {
|
|
|
|
|
- return event.moments && event.moments.map((moment, j) => {
|
|
|
|
|
- return <View style={{ display: 'flex', flexDirection: 'row', marginBottom: rpxToPx(12), flex: 1 }} key={i * 100 + j}>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ (props.mode == 'EAT' || props.mode == 'ACTIVE') && props.data.dataArray.map((content, i) => {
|
|
|
|
|
+ switch (content.type) {
|
|
|
|
|
+ case 'TEXT':
|
|
|
{
|
|
{
|
|
|
- moment.media && moment.media.length > 0 && <Image
|
|
|
|
|
- style={{ width: rpxToPx(178), height: rpxToPx(178), marginRight: rpxToPx(7), flexShrink: 0 }}
|
|
|
|
|
- src={moment.media[0].url}
|
|
|
|
|
- mode="aspectFill" />
|
|
|
|
|
|
|
+ return content.data.map((detail, j) => {
|
|
|
|
|
+ return singleItem('TEXT', '', detail, j*10)
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
|
|
+ break
|
|
|
|
|
+ case 'PIC':
|
|
|
{
|
|
{
|
|
|
- momentItem(moment)
|
|
|
|
|
|
|
+ return content.data.map((detail, j) => {
|
|
|
|
|
+ return singleItem('PIC', detail, '', j*10)
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
- </View>
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ break
|
|
|
|
|
+ case 'PIC_TEXT':
|
|
|
|
|
+ return singleItem('PIC_TEXT', content.data[0].url, content.data[0], i)
|
|
|
|
|
+ break
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
- } */}
|
|
|
|
|
-
|
|
|
|
|
- {/* <View style={{ display: 'flex', flexDirection: 'column', marginBottom: rpxToPx(12), flex: 1, paddingTop: rpxToPx(4) }}>
|
|
|
|
|
- {
|
|
|
|
|
- props.data.events.map((item, index) => {
|
|
|
|
|
- return <TimeTitleDesc
|
|
|
|
|
- timeObj={item.time}
|
|
|
|
|
- time={item.time && dayjs(item.time.timestamp).format('HH:mm')}
|
|
|
|
|
- dayTag={dayTag(index)}
|
|
|
|
|
- title={getTitle(item)}
|
|
|
|
|
- desc={item.moments && item.moments.length > 0 ? item.moments[0].description : ''}
|
|
|
|
|
- />
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- </View> */}
|
|
|
|
|
- {/* {
|
|
|
|
|
- mediaCount() > 0 && <CoverList count={mediaCount()} imgs={imgList()} />
|
|
|
|
|
- } */}
|
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- props.type != 'FAST,SLEEP' && props.mode!='EAT' && props.mode!='ACTIVE' && props.data.windows.map((item, index) => {
|
|
|
|
|
|
|
+ props.type != 'FAST,SLEEP' && props.mode != 'EAT' && props.mode != 'ACTIVE' && props.data.windows.map((item, index) => {
|
|
|
return <TargetProgress key={index} showLine={index < props.data.windows.length - 1}
|
|
return <TargetProgress key={index} showLine={index < props.data.windows.length - 1}
|
|
|
color={getThemeColor(item.window)}
|
|
color={getThemeColor(item.window)}
|
|
|
showRing={props.fast_type != 'LF'}
|
|
showRing={props.fast_type != 'LF'}
|
|
@@ -396,74 +652,8 @@ export default function HistoryItem(props: {
|
|
|
canvasId={`double_${props.data.windows[0].window_range.start_timestamp}`}
|
|
canvasId={`double_${props.data.windows[0].window_range.start_timestamp}`}
|
|
|
/>
|
|
/>
|
|
|
}
|
|
}
|
|
|
- {/* <TargetProgress showLine={props.mode == 'FAST,SLEEP' && props.data.events.length > 2}
|
|
|
|
|
- color={props.mode == 'FAST,SLEEP' ? getThemeColor('FAST') : getThemeColor(health.mode)}
|
|
|
|
|
- showRing={props.fast_type != 'LF'}
|
|
|
|
|
- desc={props.data.window_range.end_timestamp ? formatMilliseconds(props.data.window_range.end_timestamp - props.data.window_range.start_timestamp) : ''}
|
|
|
|
|
- icon={
|
|
|
|
|
- props.fast_type == 'LF' ? <IconLongFast color={MainColorType.fast} width={rpxToPx(32)} /> : null
|
|
|
|
|
- }
|
|
|
|
|
- canvasId={(props.mode == 'FAST,SLEEP' ? 'history_fast_sleep' + props.index : 'history_' + props.index) + props.type}
|
|
|
|
|
- startTimestamp={props.data.window_range.start_timestamp}
|
|
|
|
|
- endTimerstamp={props.data.window_range.end_timestamp}
|
|
|
|
|
- />
|
|
|
|
|
- {
|
|
|
|
|
- props.mode == 'FAST,SLEEP' && props.data.events.length > 2 && <View className="history_duration_bg" style={{ marginTop: 0 }}>
|
|
|
|
|
- {
|
|
|
|
|
- props.fast_type != 'LF' && <View className="recent_ring_bg">
|
|
|
|
|
- {
|
|
|
|
|
- ring2()
|
|
|
|
|
- }
|
|
|
|
|
- </View>
|
|
|
|
|
- }
|
|
|
|
|
- {
|
|
|
|
|
- props.data.window_range.end_timestamp && <Text className="history_item_duration h26">{formatMilliseconds(props.data.events[2].time.timestamp - props.data.events[1].time.timestamp)}</Text>
|
|
|
|
|
- }
|
|
|
|
|
- </View>
|
|
|
|
|
- } */}
|
|
|
|
|
- {/* {
|
|
|
|
|
- props.isArchived && <View className="history_archived_row">
|
|
|
|
|
- <View className="history_archived" onClick={(e) => {
|
|
|
|
|
- if (process.env.TARO_ENV == 'weapp') {
|
|
|
|
|
- e.stopPropagation()
|
|
|
|
|
- }
|
|
|
|
|
- showActionSheet({
|
|
|
|
|
- showActionSheetWithOptions: showActionSheetWithOptions,
|
|
|
|
|
- title: 'Oprate Title',
|
|
|
|
|
- itemList: ['标记完成', '补记'],
|
|
|
|
|
- success: (res) => {
|
|
|
|
|
- // tapActionSheet(res)
|
|
|
|
|
- switch (res) {
|
|
|
|
|
- case 1:
|
|
|
|
|
- break;
|
|
|
|
|
- case 0:
|
|
|
|
|
- makeDone(props.data.window_id).then(res => {
|
|
|
|
|
- global.refreshWindow()
|
|
|
|
|
- global.refreshHistory()
|
|
|
|
|
- if (props.refresh)
|
|
|
|
|
- props.refresh()
|
|
|
|
|
- })
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }}>
|
|
|
|
|
- <IconMore width={17} color="#b2b2b2" />
|
|
|
|
|
- </View>
|
|
|
|
|
- </View>
|
|
|
|
|
- } */}
|
|
|
|
|
<View style={{ height: rpxToPx(0), flexShrink: 0 }} />
|
|
<View style={{ height: rpxToPx(0), flexShrink: 0 }} />
|
|
|
- {/* <View style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', height: rpxToPx(60), marginTop: rpxToPx(20) }}>
|
|
|
|
|
- <View style={{ flex: 1 }} />
|
|
|
|
|
- <NewButton type={NewButtonType.more}
|
|
|
|
|
- onClick={tapDel}
|
|
|
|
|
- />
|
|
|
|
|
- </View> */}
|
|
|
|
|
</View>
|
|
</View>
|
|
|
- {/*
|
|
|
|
|
- {
|
|
|
|
|
- !props.hideLine && <View className="border_footer_line" />
|
|
|
|
|
- } */}
|
|
|
|
|
|
|
|
|
|
</View>
|
|
</View>
|
|
|
}
|
|
}
|