|
@@ -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'
|