index.js 939 Bytes
Newer Older
xuzhenghua committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
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>
    )
  }
}