var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
import React, { Component } from 'react';
import Img from '../../ImgLoad/index';
import './style.styl';
var GoodsInfo = /** @class */ (function (_super) {
    __extends(GoodsInfo, _super);
    function GoodsInfo(props) {
        return _super.call(this, props) || this;
    }
    GoodsInfo.prototype.render = function () {
        var goods = this.props.goods;
        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>
                    </div>
                </div>
            </div>);
    };
    return GoodsInfo;
}(Component));
export default GoodsInfo;
