From 7e14d89d2328eaa122a1095a81f5db4e817d0e1b Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Mon, 17 Feb 2025 14:23:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/recordChoice/index.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pages/recordChoice/index.js b/pages/recordChoice/index.js index e0fa76d..f798871 100644 --- a/pages/recordChoice/index.js +++ b/pages/recordChoice/index.js @@ -99,6 +99,17 @@ Page({ data.recordList.forEach((i) => { i.minMonthlyPay = i.minMonthlyPay / 100 i.maxMonthlyPay = i.maxMonthlyPay / 100 + + console.log('是否执行') + 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 = []; + } }) } console.log('data.recordList',data.recordList) @@ -272,6 +283,7 @@ Page({ disposeJobListData(recordList) { var that = this; recordList.forEach((item) => { + item["workType"] = commonUtil.getWorkTypeById(item.workTypeMulti); if (app.isNotEmptyCheck(item.distance)) { @@ -316,7 +328,6 @@ Page({ item["jobSpecialLabelNameArray"].push(i); } }); - // item["jobSpecialLabelNames"] = ; }); return recordList;