/** * V4充电页:扫码认证之后-充电开始之前 * @邠心vbe on 2024/05/15 */ import React from 'react'; import { StyleSheet, View } from 'react-native'; import Button from '../../components/Button'; import { ChargeStyle } from '../chargeV2/Charging'; import { PageList } from '../Router'; import TextView from '../../components/TextView'; import utils from '../../utils/utils'; export default ChargingStartView = ({ isPrivate, stationInfo={}, onEnterStation, canIntoCharging=false, onIntoCharging }) => ( {$t('charging.tipsRatesTax2')} {$t('charging.acChargers')} { stationInfo.acRates?.length > 0 ? stationInfo.acRates.map((item, index) => { return ( {item.typePower} {item.rates} {item.connectorCount?.available + "/" + item.connectorCount?.all} ); }) : {$t('charging.noRates')} } {$t('charging.dcChargers')} { stationInfo.dcRates?.length > 0 ? stationInfo.dcRates.map((item, index) => { return ( {item.typePower} {item.rates} {item.connectorCount?.available + "/" + item.connectorCount?.all} ); }) : {$t('charging.noRates')} } { isPrivate && {$t('charging.ratesPrivateNote')} } { utils.isNotEmpty(stationInfo.idleFee) && <> Idle Fee {"Grace Period of " + stationInfo.idleFee.gracePeriod + " Minutes. Rates are " + stationInfo.idleFee.idleFee + " per " + stationInfo.idleFee.everyMinute + ". Idle Fee is capped at " + stationInfo.idleFee.crapFee} } { !!(stationInfo.hasDiscount) && <> {$t('charging.tipsDiscountTitle')} {$t('charging.tipsDiscount')} } {/* */} { canIntoCharging ?