|
|
|
|
@ -2603,6 +2603,15 @@ Page({
|
|
|
|
|
data.recordList.forEach((i) => {
|
|
|
|
|
i.minMonthlyPay = i.minMonthlyPay / 100
|
|
|
|
|
i.maxMonthlyPay = i.maxMonthlyPay / 100
|
|
|
|
|
if (i.jobSpecialLabelNames && i.jobSpecialLabelNames.length > 0) {
|
|
|
|
|
i.labelGroup = i.jobSpecialLabelNames.split(', ').filter((itm, inx) => {
|
|
|
|
|
return inx < 6
|
|
|
|
|
}).map(itm => {
|
|
|
|
|
return itm
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
i.labelGroup = [];
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (
|
|
|
|
|
@ -2616,20 +2625,6 @@ Page({
|
|
|
|
|
data.recordList
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
jobListTemp.forEach((item, index) => {
|
|
|
|
|
if (item.jobSpecialLabelNames && item.jobSpecialLabelNames.length > 0) {
|
|
|
|
|
console.log('为什么不会执行',item,index)
|
|
|
|
|
item.labelGroup = item.jobSpecialLabelNames.split(', ').filter((itm, inx) => {
|
|
|
|
|
return inx < 6
|
|
|
|
|
}).map(itm => {
|
|
|
|
|
return itm
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
console.log('为什么会执行',item,index)
|
|
|
|
|
item.labelGroup = [];
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
that.data.recordList = that.data.recordList.concat(jobListTemp);
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
|
@ -2643,19 +2638,7 @@ Page({
|
|
|
|
|
data.recordList
|
|
|
|
|
);
|
|
|
|
|
that.data.recordList = that.data.recordList.concat(jobListTemp);
|
|
|
|
|
that.data.recordList.forEach((item, index) => {
|
|
|
|
|
if (item.jobSpecialLabelNames && item.jobSpecialLabelNames.length > 0) {
|
|
|
|
|
console.log('为什么不会执行',item,index)
|
|
|
|
|
item.labelGroup = item.jobSpecialLabelNames.split(', ').filter((itm, inx) => {
|
|
|
|
|
return inx < 6
|
|
|
|
|
}).map(itm => {
|
|
|
|
|
return itm
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
console.log('为什么会执行',item,index)
|
|
|
|
|
item.labelGroup = [];
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
|
recordList: that.data.recordList,
|
|
|
|
|
hasMoreData: true,
|
|
|
|
|
|