From 7f5c8aafbdc965e9208dc3596c1e1e7b8f660822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=98=E7=AB=8B=E6=A0=87?= <2658037827@qq.com> Date: Thu, 21 Dec 2023 12:23:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6=E5=B7=A5=E4=BD=9C=E6=BB=A1?= =?UTF-8?q?=E6=84=8F=E5=BA=A6=E8=87=AA=E6=9F=A5=E6=9D=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/work/work.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/work/work.js b/pages/work/work.js index 67629e0..43a8565 100644 --- a/pages/work/work.js +++ b/pages/work/work.js @@ -61,7 +61,7 @@ Page({ res.data.list = res.data.list.reverse(); let curMonth = new Date().getMonth() - 0 + 1 let communitySelfInspTop = res.data.list.filter(item => item.monthName-0 === curMonth).length?res.data.list.filter(item => item.monthName-0 === curMonth)[0]:{} - let communitySelfInspList = res.data.list.filter(item => item.monthName-0 !== curMonth) + let communitySelfInspList = res.data.list.filter(item => item.monthName-0 !== curMonth).splice(0,2) this.setData({ communitySelfInspTop,communitySelfInspList,curMonth })