diff --git a/src/project/activeAnalysis/AppLuckyDraw/AppLuckyDraw.vue b/src/project/activeAnalysis/AppLuckyDraw/AppLuckyDraw.vue index e9241e10..12e1ea48 100644 --- a/src/project/activeAnalysis/AppLuckyDraw/AppLuckyDraw.vue +++ b/src/project/activeAnalysis/AppLuckyDraw/AppLuckyDraw.vue @@ -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 } }