import React, { Component } from 'react';
import { browser } from '@/utils';
import './index.scss'

export default class SharePopup extends Component {
  render() {
    return (
      <div className="share__container" onClick={() => {
        if(this.props.isClose) {
          this.props.toClose();
        }
      }}>
        {
          browser.isWeixin &&
          <div className="share__row">
            <img src='https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/throw_icon.png' />
          </div>
        }
        <div className="share__content">
          <p className="share__text">分享活动页到朋友圈、qq、微博分别</p>
          <div className='share__rule'>
            <img className={'share__add2'} src='https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/add2.png' />
            <span>（每个平台每天一次）</span>
          </div>
        </div>
      </div>
    )
  }
}
