index.js 1.59 KB
Newer Older
zhanghaozhe committed
1 2
import React, { Component } from "react"
import "./index.scss"
zhanghaozhe committed
3 4 5

export default class Experience extends Component {
  render() {
zhanghaozhe committed
6
    const { isOnline, tryLearn } = this.props
zhanghaozhe committed
7
    return (
zhanghaozhe committed
8 9
      <div className={"experience_container"}>
        <p className={"title"}> /  /  / </p>
zhanghaozhe committed
10

zhanghaozhe committed
11 12 13 14
        {isOnline ? (
          <>
            <div className={"experience"}>
              <img
15
                src="https://cdn.julyedu.com/h5_python_class/L%402x.png"
zhanghaozhe committed
16 17 18 19 20
                alt=""
              />
              <div>
                <p>特价试学99 体验前3个课时</p>
                <p>开启颠覆你想象的学习</p>
zhanghaozhe committed
21
              </div>
zhanghaozhe committed
22
              <img
23
                src="https://cdn.julyedu.com/h5_python_class/r%402x.png"
zhanghaozhe committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
                alt=""
              />
            </div>
            <div
              className={"btn"}
              onClick={() => {
                tryLearn(1)
              }}
            >
              立即体验
            </div>
          </>
        ) : (
          <>
            <div className={"experience"}>
              <img
40
                src="https://cdn.julyedu.com/h5_python_class/L%402x.png"
zhanghaozhe committed
41 42 43 44 45
                alt=""
              />
              <div>
                <p>上架后可免费试学</p>
                <p>体验颠覆你想象的学习</p>
zhanghaozhe committed
46
              </div>
zhanghaozhe committed
47
              <img
48
                src="https://cdn.julyedu.com/h5_python_class/r%402x.png"
zhanghaozhe committed
49 50 51 52 53 54
                alt=""
              />
            </div>
            <div className={"btn btn--online"}>即将上架敬请期待</div>
          </>
        )}
zhanghaozhe committed
55 56 57 58
      </div>
    )
  }
}