import React, { Component } from 'react'
import Taro from '@tarojs/taro'
import '../../assets/css/reset.less'
import '../../assets/css/iconfont.less'
import './index.less'

export default class WuYeFuWuItem extends Component {

  state = {
    TestImg: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1606120989360&di=8610f1678b51e26de6d4c6af39d1cf63&imgtype=0&src=http%3A%2F%2Fattachments.gfan.com%2Fforum%2F201503%2F19%2F211608ztcq7higicydxhsy.jpg'
  }

  componentWillMount () { }

  componentDidMount () { }

  componentWillUnmount () { }

  componentDidShow () { }

  componentDidHide () { }

  render () {
    const { TestImg } = this.state
    return (
      <view className='WuYeFuWuItem flex-h' onClick={() => { Taro.navigateTo({ url: '/pages/WuYe/FuWuDetail/index' }) }}>
        <view className='Img'>
          <image mode='aspectFill' src={TestImg} className='centerLabel'></image>
        </view>
        <view className='flex-item'>
          <text>业主收楼办理手续</text>
          <text>于2019-12-12 14:20:30发布</text>
        </view>
      </view>
    )
  }
}
