'use strict';

import React, { Component } from 'react';
import resList from '../../resconfig/resList';

import './comsuccessp.less';

class Comsuccessp extends Component {
  constructor(props) {
    super(props);
    this.state = this.state || { resList: resList };
  }
  render() {
    const { onClose, submitEnergy } = this.props;
    return (
      <div className="successp">
        <img className="exchangeSuccess"></img>
        <img className="bjm" src={this.state.resList['2c5e0e5e-d794-4d5f-bef3-a71fef771087'].url} />
        <label className="exchangeEnergy">已获得{submitEnergy}能量</label>
        <label className="exchangeTips">继续完成任务获得更多能量哦</label>
        <img className="okbtn" onClick={onClose} src={this.state.resList['7a6bb7d9-cf6a-41c8-92fd-f53af4588cf7'].url} />
        <label className="close" onClick={onClose}></label>
      </div>
    );
  }
}
export default Comsuccessp;
