中奖记录
This commit is contained in:
@@ -271,10 +271,14 @@ export default {
|
|||||||
res.data.map((item, index) => {
|
res.data.map((item, index) => {
|
||||||
textList[index] = `${this.geTel(res.data[index].phone)}用户获得${res.data[index].prizeName}`
|
textList[index] = `${this.geTel(res.data[index].phone)}用户获得${res.data[index].prizeName}`
|
||||||
})
|
})
|
||||||
var num = Math.floor(textList.length/3)
|
if(textList.length > 10) {
|
||||||
this.luckyList = textList.slice(0, num)
|
var num = Math.floor(textList.length/3)
|
||||||
this.luckyList2 = textList.slice(num, num*2)
|
this.luckyList = textList.slice(0, num)
|
||||||
this.luckyList3 = textList.slice(num*2, num*3)
|
this.luckyList2 = textList.slice(num, num*2)
|
||||||
|
this.luckyList3 = textList.slice(num*2, num*3)
|
||||||
|
}else {
|
||||||
|
this.luckyList = textList
|
||||||
|
}
|
||||||
this.awardedList = textList
|
this.awardedList = textList
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user