中奖记录

This commit is contained in:
liuye
2023-02-03 17:05:39 +08:00
parent 35d9b0a3af
commit 85ccaab631

View File

@@ -271,10 +271,14 @@ export default {
res.data.map((item, index) => {
textList[index] = `${this.geTel(res.data[index].phone)}用户获得${res.data[index].prizeName}`
})
var num = Math.floor(textList.length/3)
this.luckyList = textList.slice(0, num)
this.luckyList2 = textList.slice(num, num*2)
this.luckyList3 = textList.slice(num*2, num*3)
if(textList.length > 10) {
var num = Math.floor(textList.length/3)
this.luckyList = textList.slice(0, num)
this.luckyList2 = textList.slice(num, num*2)
this.luckyList3 = textList.slice(num*2, num*3)
}else {
this.luckyList = textList
}
this.awardedList = textList
}
}