|
@@ -443,12 +443,12 @@ |
|
|
// 分割数组排名前三,倒三 |
|
|
// 分割数组排名前三,倒三 |
|
|
getTopThree() { |
|
|
getTopThree() { |
|
|
if (this.weekObj.XJTopList && this.weekObj.XJTopList.length > 0) { |
|
|
if (this.weekObj.XJTopList && this.weekObj.XJTopList.length > 0) { |
|
|
this.carryOutLast = this.weekObj.XJTopList.slice(0, 3).reverse() |
|
|
|
|
|
this.carryOutLast.map((item, index) => { |
|
|
|
|
|
if (item.value == 100) { |
|
|
|
|
|
this.carryOutLast.splice(index, 1) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
let arr = this.weekObj.XJTopList.slice(0, 3).reverse() |
|
|
|
|
|
arr.forEach(item => { |
|
|
|
|
|
if (item.value != 100) { |
|
|
|
|
|
this.carryOutLast.push(item) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
this.carryOutTop = this.weekObj.XJTopList.reverse().slice(0, 3) |
|
|
this.carryOutTop = this.weekObj.XJTopList.reverse().slice(0, 3) |
|
|
console.log(this.weekObj.XJTopList) |
|
|
console.log(this.weekObj.XJTopList) |
|
|
} |
|
|
} |
|
|