import React, { Component } from 'react';
import Img from '../../ImgLoad/index';

import './style.styl';
class GoodsInfo extends Component<any> {
    constructor(props: any) {
        super(props);
    }

    render() {
        const { goods } = this.props;

        return (
            <div className="goodhead">
                <div className="goodhead-head">
                    <div>
                        <Img src={goods.productImage} />
                        <div className="goodhead-cover" />
                    </div>
                    <div className="text">
                        <div className="goodhead-head-title">
                            {goods.productName}
                        </div>
                        <div className="goodhead-head-text">
                            {goods.productDesc}
                        </div>
                        <div className="goodhead-head-name">
                            <div>
                                <span>￥</span>
                                <span className="main">{goods.salePrice}</span>
                            </div>
                            {/* <div className="del">
                                <del>{goods.price}.00</del>
                            </div> */}
                        </div>
                    </div>
                </div>
            </div>
        );
    }
}

export default GoodsInfo;
