import Taro from '@tarojs/taro'
import { useEffect } from 'react'
import { getAccount } from '@/services/shopBoss'
import formatTimes from '@/utils/formatTime'

import './style.less'


export default (props) => {

  const { item } = props


  return (
    <view className='spreadCard'>
      <view className='spreadDate'>日期：<text>{formatTimes(item.createDate, "yyyy/MM/dd")}</text></view>
      <view className='card'>
        <view className='spreadTime'>时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间：<text>{formatTimes(item.createDate, "yyyy/MM/dd hh:ss")}</text></view>
        <view className='spreadMoney'>收入金额：<text>{item.amount / 100}</text>元</view>
      </view>
    </view>
  )
}
