Commit e4a4ec99 by zhoule

下掉(注释)首页弹窗-还原代码(本地环境有问题无法编译)

parent aa58db5b
...@@ -3,41 +3,44 @@ import "./index.scss" ...@@ -3,41 +3,44 @@ import "./index.scss"
import { http } from "src/utils" import { http } from "src/utils"
class UserGift extends Component { class UserGift extends Component {
// state = { state = {
// user_gift: "", user_gift: "",
// } }
// componentDidMount() {
// http.get(`${API["base-api"]}/m/home/popup`).then((res) => { componentDidMount() {
// const { errno, data } = res.data http.get(`${API["base-api"]}/m/home/popup`).then((res) => {
// if (errno === 200) { const { errno, data } = res.data
// this.setState({ if (errno === 200) {
// user_gift: data.new_user_gift.prize_img, this.setState({
// }) user_gift: data.new_user_gift.prize_img,
// } })
// }) }
// } })
// get_newerModal = () => { }
// this.props.get_newerModal()
// } get_newerModal = () => {
// close = () => { this.props.get_newerModal()
// this.props.close() }
// } close = () => {
// render() { this.props.close()
// const { user_gift } = this.state }
// return (
// <div className={"user-gift-popup"}> render() {
// <div className={"user-gift-bgimg"}> const { user_gift } = this.state
// <img onClick={this.get_newerModal} src={user_gift} alt="" /> return (
// <img <div className={"user-gift-popup"}>
// className={"close_gift_box"} <div className={"user-gift-bgimg"}>
// src="https://cdn.julyedu.com/tinypng-common/close_icon.png" <img onClick={this.get_newerModal} src={user_gift} alt="" />
// onClick={this.close} <img
// alt="" className={"close_gift_box"}
// /> src="https://cdn.julyedu.com/tinypng-common/close_icon.png"
// </div> onClick={this.close}
// </div> alt=""
// ) />
// } </div>
</div>
)
}
} }
export default UserGift export default UserGift
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment