Commit 6c301c8a by xuzhenghua

push

parent 69ac4857
......@@ -72,10 +72,8 @@ class Index extends Component {
const {errno, data} = res.data
if (errno === 0) {
if (data.status == 1) {
// 新用户登录之后判断是否是新用户,是新用户先显示大礼包
this.setState({
isShowUserGift: true
})
// 新用户登录之后判断是否是新用户
Toast.info('新人大礼包已领取成功!', 2)
} else {
// 老用户
this.setState({
......@@ -89,7 +87,6 @@ class Index extends Component {
showUserGiftFun = () => {
let newer_last_time = localStorage.getItem('newer_last_time') // 获取用户关闭大礼包的时间
let now_time = (new Date()).valueOf()
console.log(newer_last_time)
if (!newer_last_time || now_time - newer_last_time > 86400000) {
this.setState({
isShowUserGift: true
......
......@@ -91,10 +91,8 @@ class Detail extends Component {
const {errno, data} = res.data
if (errno === 0) {
if (data.status == 1) {
// 新用户登录之后判断是否是新用户,是新用户先显示大礼包
this.setState({
isShowUserGift: true
})
// 新用户登录之后判断是否是新用户
Toast.info('新人大礼包已领取成功!', 2)
} else {
// 老用户
this.setState({
......@@ -108,7 +106,6 @@ class Detail extends Component {
showUserGiftFun = () => {
let newer_last_time = localStorage.getItem('newer_last_time') // 获取用户关闭大礼包的时间
let now_time = (new Date()).valueOf()
console.log(newer_last_time)
if (!newer_last_time || now_time - newer_last_time > 86400000) {
this.setState({
isShowUserGift: true
......
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