import React, { Component } from 'react' import { StyleSheet, ScrollView, View, Text, StatusBar, TouchableOpacity, PixelRatio, FlatList, } from 'react-native' import { connect } from 'react-redux' import Icon from '../../../components/Iconfont/Iconfont' import { NavigationActions, createAction } from '../../../utils' @connect(({ theme, mine }) => ({ ...theme, ...mine })) class BasicInfo extends Component { constructor(props) { super(props) this.state = {} // console.disableYellowBox = true; } // 头部 header() { return ( this.props.dispatch(NavigationActions.back())} > 返回 基础信息 ) } viewList(header, content) { return ( {header} {content} ) } basicList(item) { return ( {/* 客户编号 */} {this.viewList('客户编码', item.code)} {/* 客户名称 */} {this.viewList('客户名称', item.name)} {/* 客户分类 */} {this.viewList('客户分类', item.customerCategoryName)} {/* 渠道类型 */} {this.viewList('渠道类型', item.channelTypeName)} {/* 法人代表 */} {this.viewList('法人代表', item.legalPerson)} {/* 税务登记 */} {this.viewList('税务登记', item.taxRegNo)} {/* 客户地区 */} {this.viewList( '客户地区', (item.countryName || '') + (item.provinceName || '') + (item.cityName || '') + (item.countyName || '') + (item.townName || '') + (item.detailAddr || '') )} ) } render() { const { appTheme, BasicInfo, BankInfo } = this.props return ( {this.header()} {this.basicList(BasicInfo, BankInfo)} item.id} data={BankInfo} renderItem={({ item }) => ( {/* 开户银行 */} {this.viewList('开 户 行', item.depositBankName)} {/* 银行账户 */} {this.viewList('银行账户', item.accountNumber)} {/* 户名 */} {this.viewList('户 名', item.accountName)} )} /> ) } } const styles = StyleSheet.create({ container: { flex: 1, }, }) export default BasicInfo