Countdown
data class Countdown(val mode: CardModule.CountdownMode, val startTime: Long? = null, val endTime: Long) : CardModule(source)
倒计时模块
作用说明: 展示倒计时。
规则:
e.g.
{
"type": "countdown",
"endTime" : 1608819168000, //到期的毫秒时间戳
"startTime" : 1608819168000, //起始的毫秒时间戳,仅当mode为second才有这个字段
"mode" : "day,hour,second", //倒计时样式, 按天显示,按小时显示或者按秒显示
}
Content copied to clipboard