import { ComponentClass } from 'react' import Taro, { Component } from '@tarojs/taro' import { View, Image, Text, Label } from '@tarojs/components' import './index.scss' import SdFormid from '../sdFormid'; interface DataInterface { headimgurl: string nickName: string } type PageOwnProps = { className?: string data: DataInterface hasRedpacket?: boolean money?: any number?: any onImageClick?: any onRedpacketUsersClick?: any } type IProps = PageOwnProps interface Index { props: IProps; } class Index extends Component { static options = { addGlobalClass: true } handleClick = () => { this.props.onRedpacketUsersClick() } render() { const ownerInfo = this.props.data || {} const { hasRedpacket, money, number } = this.props return ( {ownerInfo.nickName} 真实屋主 { hasRedpacket && 已有 领取 元现金红包 } ) } } export default Index as ComponentClass