Commit 209b9b69 by dazhou

新人福利弹框上架

parent cf725939
...@@ -16,7 +16,7 @@ import TeacherList from "./tercher" ...@@ -16,7 +16,7 @@ import TeacherList from "./tercher"
import Teaching from "./teaching" import Teaching from "./teaching"
//tan框 //tan框
// import { UserGift } from "src/common" import { UserGift } from "src/common"
// const animateTypes = Swiper.animateTypes // const animateTypes = Swiper.animateTypes
...@@ -65,7 +65,7 @@ class Index extends Component { ...@@ -65,7 +65,7 @@ class Index extends Component {
} }
componentWillMount() { componentWillMount() {
// this.showUserGiftFun() this.showUserGiftFun()
} }
userStatus = () => { userStatus = () => {
...@@ -77,7 +77,7 @@ class Index extends Component { ...@@ -77,7 +77,7 @@ class Index extends Component {
this.setState({ this.setState({
isShowUserGift: false, isShowUserGift: false,
}) })
// Toast.info("新人大礼包已领取成功!", 2) Toast.info("新人大礼包已领取成功!", 2)
} else { } else {
this.setState({ this.setState({
isShowUserGift: false, isShowUserGift: false,
...@@ -87,31 +87,31 @@ class Index extends Component { ...@@ -87,31 +87,31 @@ class Index extends Component {
}) })
} }
// showUserGiftFun = () => { showUserGiftFun = () => {
// let newer_last_time = localStorage.getItem("newer_last_time") // 获取用户关闭大礼包的时间 let newer_last_time = localStorage.getItem("newer_last_time") // 获取用户关闭大礼包的时间
// let now_time = new Date().valueOf() let now_time = new Date().valueOf()
// if (!newer_last_time || now_time - newer_last_time > 86400000) { if (!newer_last_time || now_time - newer_last_time > 86400000) {
// this.setState({ this.setState({
// isShowUserGift: true, isShowUserGift: true,
// }) })
// } else { } else {
// this.setState({ this.setState({
// isShowUserGift: false, isShowUserGift: false,
// }) })
// } }
// } }
// close = () => { close = () => {
// this.setState({ this.setState({
// isShowUserGift: false, isShowUserGift: false,
// }) })
// let now_time = new Date().valueOf() // 获取当前时间 let now_time = new Date().valueOf() // 获取当前时间
// localStorage.setItem("newer_last_time", now_time) // 存储关闭时间 localStorage.setItem("newer_last_time", now_time) // 存储关闭时间
// } }
// get_newerModal = () => { get_newerModal = () => {
// this.close() this.close()
// this.props.history.push("/passport/login") this.props.history.push("/passport/login")
// } }
// 首页课程 // 首页课程
getIndexData = () => { getIndexData = () => {
...@@ -257,9 +257,9 @@ class Index extends Component { ...@@ -257,9 +257,9 @@ class Index extends Component {
/> />
)} )}
{/* {this.state.isShowUserGift && ( {this.state.isShowUserGift && (
<UserGift close={this.close} get_newerModal={this.get_newerModal} /> <UserGift close={this.close} get_newerModal={this.get_newerModal} />
)} */} )}
</div> </div>
) )
} }
......
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