From 66bc0038039bb398af96a8114fd7a2d1135489e3 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Sat, 9 Jul 2022 21:05:07 +0800 Subject: [PATCH] opt some --- page/index.css | 3 ++- plugin/local/team/plan.css | 4 ++-- plugin/local/team/plan.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/page/index.css b/page/index.css index f7dfbfc8..5841243a 100644 --- a/page/index.css +++ b/page/index.css @@ -82,7 +82,8 @@ fieldset.input.date div.output td.next { color:gray; } fieldset.input.date div.output td { padding:2px 11px; } fieldset.input.date table { text-align:center; width:280px; } -body>div.float { background-color:#0e3369b3; padding:5px; } +/* body>div.float { background-color:#0e3369b3; padding:5px; } */ +body>div.toast { background-color:#0e3369b3; } body>div.toast div.title { color:#cae850; word-break:break-all; float:left; } body>div.toast div.duration { color:gray; float:right; } body>div.toast div.content { text-align:center; color:yellow; } diff --git a/plugin/local/team/plan.css b/plugin/local/team/plan.css index 448722d0..1052e7a0 100644 --- a/plugin/local/team/plan.css +++ b/plugin/local/team/plan.css @@ -3,5 +3,5 @@ fieldset.plan>div.output td.over { border:solid 2px red; } fieldset.plan>div.output td div.date { color:gray; } fieldset.plan>div.output div.prepare { background-color:blue; color:white; } fieldset.plan>div.output div.process { background-color:green; color:white; } -fieldset.plan>div.output div.cancel { background-color:yellow; color:white; } -fieldset.plan>div.output div.finish { background-color:red; color:white; } +fieldset.plan>div.output div.cancel { background-color:red; color:white; } +fieldset.plan>div.output div.finish { background-color:gray; color:white; } diff --git a/plugin/local/team/plan.js b/plugin/local/team/plan.js index 3346b5ac..874ede33 100644 --- a/plugin/local/team/plan.js +++ b/plugin/local/team/plan.js @@ -167,7 +167,7 @@ Volcanos(chat.ONACTION, {help: "组件交互", list: [ _trans: {"task": "任务", "hour": "时间", "month": "月份"}, insertTask: function(event, can, time) { var msg = can.sup.request(event, {begin_time: time}) can.user.input(event, can, can.Conf([ctx.FEATURE, mdb.INSERT]), function(args) { - can.runAction(event, mdb.INSERT, ["begin_time", time].concat(args)) + can.runAction(event, mdb.INSERT, ["zone", args[1], "begin_time", time].concat(args)) }) }, modifyTask: function(event, can, task, key, value) {