index.js 1.28 KB
Newer Older
zhanghaozhe committed
1 2 3
import React, { Component } from "react"
import "./index.scss"
import { CallApp } from "./../../../common"
xuzhenghua committed
4 5 6 7

export default class Poup extends Component {
  render() {
    return (
zhanghaozhe committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
      <div className={"mask_container"}>
        <div className={"content"}>
          <p className={"title"}>温馨提示</p>
          {this.props.type === 1 ? (
            <>
              <p className={"tip"}>
                当前环境暂不支持该课程模式,您可前往七月在线PC端或者APP体验课程。
              </p>
              <CallApp
                className="btn btn-18B4ED"
                text={"前往APP体验课程"}
              ></CallApp>
            </>
          ) : (
            <>
              <p className={"tip"}>
                当前环境暂不支持该课程模式,您可前往七月在线PC端或者APP学习课程。
              </p>
              <CallApp
                className="btn btn-18B4ED"
                text={"前往APP学习课程"}
              ></CallApp>
            </>
          )}
          <img
            onClick={this.props.closePop}
            className={"close_btn"}
            src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/bottom_close.png"
            alt=""
          />
xuzhenghua committed
38 39 40 41 42
        </div>
      </div>
    )
  }
}