Commit 956b351a by chenwq

排名

1 parent c0f9020f
......@@ -78,7 +78,8 @@ Component({
dealStaffList() {
var list = this.data.orderObj
list && list.activityList.forEach(item => {
let sliceNum = item.actStatus == 1 ? 10 : 3
// 0-未开始;1-活动中;2-已结束
let sliceNum = item.actStatus == 2 ? 3 : 10
item.showStaffList = item.staffList.length > sliceNum ? item.staffList.slice(0, sliceNum) : item.staffList
item.staffList = item.staffList.length > sliceNum ? item.staffList.slice(sliceNum) : []
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!