From 53142c4b550c71ca8183cb1fafec120c578985fe Mon Sep 17 00:00:00 2001 From: hdm Date: Wed, 28 Sep 2022 15:17:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E8=AE=A1=E5=88=92=E6=97=A5?= =?UTF-8?q?=E5=8E=86=E7=95=8C=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/oa/controller/Plan.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/oa/controller/Plan.php b/app/oa/controller/Plan.php index f30f265..f0d97d3 100644 --- a/app/oa/controller/Plan.php +++ b/app/oa/controller/Plan.php @@ -85,10 +85,11 @@ class Plan extends BaseController ->field('id,title,type,remind_type,start_time,end_time') ->select()->toArray(); $events = []; - $color_array=['#393D49','#FF5722','#FFB800','#1E9FFF','#12bb37','#696969']; + $bg_array=['#ECECEC','#FFD3D3','#F6F6C7','#D7EBFF','#CCEBCC','#E9E9CB']; + $border_array=['#CCCCCC','#FF9999','#E8E89B','#99CCFF','#99CC99','#CCCC99']; foreach ($schedule as $k => $v) { - $v['backgroundColor'] = $color_array[$v['type']]; - $v['borderColor'] = $color_array[$v['type']]; + $v['backgroundColor'] = $bg_array[$v['type']]; + $v['borderColor'] = $border_array[$v['type']]; $v['title'] = $v['title']; $v['start'] = date('Y-m-d H:i', $v['start_time']); $v['end'] = date('Y-m-d H:i', $v['end_time']);