Commit bf816cb2 by xuzhenghua

bug

parent 97b712fd
......@@ -78,24 +78,14 @@ class FormalDraw extends Component {
draw = id => {
var _czc = _czc || []
_czc.push(["_trackEvent", '点击抽奖', 'm端双十一正式活动-点击抽奖'])
<<<<<<< HEAD
let {surplus, is_prize, hot_value} = this.state.userValue
if(hot_value<50){
Toast.info('你的福气值未达到参与抽奖所需福气值分数,快去积攒福气值吧', 2, null, false)
return
}
if(is_prize == 1){
} else if(is_prize == 1){
Toast.info('你已参与当前时段抽奖', 2, null, false)
return
}
if(surplus<1){
} else if(surplus<1){
Toast.info('你的抽奖次数已用光,快去积攒福气值可获得更多抽奖机会', 2, null, false)
=======
let {surplus, is_prize} = this.state.userValue
if (is_prize || this.popupInstance || surplus <= 0) {
>>>>>>> bda3e512eab055c3737e2b8e95c5dcc7a5e45d53
return
}
} else {
http.post(`${API.home}/sys/activity/prize`, {
id
}).then(res => {
......@@ -130,6 +120,7 @@ class FormalDraw extends Component {
}
})
}
}
lotteryFunc = (status, id) => {
const {hasError} = this.props.user
......
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