中奖记录
This commit is contained in:
@@ -271,10 +271,14 @@ export default {
|
||||
res.data.map((item, index) => {
|
||||
textList[index] = `${this.geTel(res.data[index].phone)}用户获得${res.data[index].prizeName}`
|
||||
})
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user