|
@@ -384,6 +384,12 @@ function myReceivedState() {
|
|
|
// 我的红包已经过期了 and 大红包可以领取
|
|
|
if (data.detail.myReceived.taskFinishStatus == 2 && !data.detail.receiveTimeExpired) {
|
|
|
data.status = 'not-open'
|
|
|
+
|
|
|
+ // 任务已经被领完了
|
|
|
+ if (data.detail.totalCount == data.detail.receiveCount) {
|
|
|
+ data.status = 'close'
|
|
|
+ data.close_title = 'Better luck next time!'
|
|
|
+ }
|
|
|
}
|
|
|
// 我领取未完成 and 大红包可以领取
|
|
|
if (data.detail.myReceived.taskFinishStatus == 0 && !data.detail.receiveTimeExpired) {
|
|
@@ -400,11 +406,7 @@ function myReceivedState() {
|
|
|
data.close_title = `This Giveaways`
|
|
|
data.close_text = `expired on ${moment(data.detail.endTimestamp).format('MM-DD')}`
|
|
|
}
|
|
|
- // 任务已经被领完了
|
|
|
- if (data.detail.totalCount == data.detail.receiveCount) {
|
|
|
- data.status = 'close'
|
|
|
- data.close_title = 'Better luck next time!'
|
|
|
- }
|
|
|
+
|
|
|
// 我领取成功了
|
|
|
if (data.detail.myReceived.taskFinishStatus == 1) {
|
|
|
data.status = 'success'
|
|
@@ -589,21 +591,21 @@ function handleFinishRedPacket() {
|
|
|
if (_data[i].finished) {
|
|
|
data.done.follow = true
|
|
|
} else {
|
|
|
- alert('关注未完成')
|
|
|
+ alert('Please complete the task: follow')
|
|
|
}
|
|
|
break
|
|
|
case '2':
|
|
|
if (_data[i].finished) {
|
|
|
data.done.like = true
|
|
|
} else {
|
|
|
- alert('like未完成')
|
|
|
+ alert('Please complete the task: like tweet')
|
|
|
}
|
|
|
break
|
|
|
case '3':
|
|
|
if (_data[i].finished) {
|
|
|
data.done.retweet = true
|
|
|
} else {
|
|
|
- alert('转推未完成')
|
|
|
+ alert('Please complete the task: Retweet')
|
|
|
}
|
|
|
break
|
|
|
}
|
|
@@ -614,8 +616,11 @@ function handleFinishRedPacket() {
|
|
|
data.error_txt = `oops, new accounts cannot participate in this event,`
|
|
|
data.status = 'error'
|
|
|
break
|
|
|
+ case "-106":
|
|
|
+ alert('Clicking too often, wait a moment and click again')
|
|
|
+ break
|
|
|
default:
|
|
|
- alert(res.msg)
|
|
|
+ console(res)
|
|
|
}
|
|
|
})
|
|
|
}
|