/** * 充电页:扫码认证之后-充电开始之前 * @邠心vbe on 2023/03/10 */ import React from 'react'; import { Image, StyleSheet, Text, View } from 'react-native'; import Button from '../../components/Button'; import { ChargeStyle, TypeImage } from '../chargeV2/Charging'; import { PageList } from '../Router'; import app from '../../../app.json'; import TextView from '../../components/TextView'; export default StepStartView = ({ isPrivate, stationInfo={}, onEnterStation, canIntoCharging=false, onIntoCharging }) => ( {app.modules.nationally ? $t('charging.tipsRatesTax2') : $t('charging.tipsRatesTax')} {$t('charging.acChargers')} ({(stationInfo?.acConnector?.available ?? "0") + $t('charging.numberAvailable')}) { stationInfo.acRates?.length > 0 ? stationInfo.acRates.map((item, index) => { return ( {item.type} {$t('charging.labelType')} {item.rates} {$t('charging.labelRate')} {item.power} {$t('charging.labelPower')} { item?.connectorCount?.available > 0 ? {$t('charging.statusAvailable')} : {$t('charging.statusUnavailable')} } {$t('charging.labelStatus')} ); }) : {$t('charging.noRates')} } {$t('charging.dcChargers')} ({(stationInfo?.dcConnector?.available ?? "0") + $t('charging.numberAvailable')}) { stationInfo.dcRates?.length > 0 ? stationInfo.dcRates.map((item, index) => { return ( {item.type} {$t('charging.labelType')} {item.rates} {$t('charging.labelRate')} {item.power} {$t('charging.labelPower')} { item?.connectorCount?.available > 0 ? {$t('charging.statusAvailable')} : {$t('charging.statusUnavailable')} } {$t('charging.labelStatus')} ); }) : {$t('charging.noRates')} } { isPrivate && {$t('charging.ratesPrivateNote')} } {/* */} { canIntoCharging ?