index.js 939 Bytes
Newer Older
FE committed
1 2
import React, { Component } from 'react';
import { browser } from '@/utils';
wangshuo committed
3 4 5 6 7
import './index.scss'

export default class SharePopup extends Component {
  render() {
    return (
FE committed
8 9 10 11 12
      <div className="share__container" onClick={() => {
        if(this.props.isClose) {
          this.props.toClose();
        }
      }}>
FE committed
13
        {
FE committed
14
          browser.isWeixin &&
FE committed
15 16 17 18
          <div className="share__row">
            <img src='https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/throw_icon.png' />
          </div>
        }
wangshuo committed
19
        <div className="share__content">
FE committed
20
          <p className="share__text">分享活动页到朋友圈、qq、微博分别</p>
wangshuo committed
21
          <div className='share__rule'>
FE committed
22
            <img className={'share__add2'} src='https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/add2.png' />
wangshuo committed
23 24 25 26 27 28 29
            <span>(每个平台每天一次)</span>
          </div>
        </div>
      </div>
    )
  }
}