import React, { Component } from 'react'
import {
StyleSheet,
View,
Image,
StatusBar,
Dimensions,
PixelRatio,
TouchableOpacity,
Text,
FlatList,
ScrollView,
} from 'react-native'
import { connect } from 'react-redux'
import StatusBacg from '../../static/images/Order-status.png'
import LogPng from '../../static/images/LogPng.png'
import Icon from '../../components/Iconfont/Iconfont'
import { NavigationActions, createAction } from '../../utils'
import { ScaleUtil, ReturnDate } from '../../utils/utils'
import redblue from '../../static/images/ic-redblue.png'
import { ImageBaseUrl } from '../../utils/fetch/Fetchx'
const { width, height } = Dimensions.get('window')
@connect(({ theme }) => ({ ...theme }))
class OrderLog extends Component {
// 头部
header() {
return (
this.props.dispatch(NavigationActions.back())}
>
返回
操作日志
)
}
logInfo(item, index, maxlen) {
return (
{item.orderDescription}
{ReturnDate(item.creationTime)}
)
}
render() {
// const { appTheme } = this.props;
const { logData } = this.props.navigation.state.params
return (
{this.header()}
{logData.map((item, index) => {
if (index != 0) {
return (
)
}
})}
index}
data={logData}
style={{ flex: 1 }}
extraData={this.state}
renderItem={({ item, index }) =>
this.logInfo(item, index, logData.length - 1)
}
/>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
})
export default OrderLog