Commit 12e4e0cd by chenwq

活动状态不同,显示用户数量不同

1 parent 98474bd2
...@@ -105,8 +105,8 @@ Component({ ...@@ -105,8 +105,8 @@ Component({
var list = this.data.orderObj var list = this.data.orderObj
list && list &&
list.activityList?.forEach(item => { list.activityList?.forEach(item => {
// 0-未开始;1-活动中;2-已结束 // 1-未开始;2-活动中;3-已结束
let sliceNum = item.actStatus == 2 ? 3 : 10 let sliceNum = item.activityStatus == 3 ? 3 : 10
item.showStaffList = item.staffList.length > sliceNum ? item.staffList.slice(0, sliceNum) : item.staffList item.showStaffList = item.staffList.length > sliceNum ? item.staffList.slice(0, sliceNum) : item.staffList
item.staffList = item.staffList.length > sliceNum ? item.staffList.slice(sliceNum) : [] 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!