Commit 6b03a3b5 by liang ce

修改默认时间

parent 1592fd75
......@@ -55,8 +55,8 @@ create.Page({
var h = date.getHours()
var min = date.getMinutes();
this.setData({
time1: `${y}/${m}/${d} ${min<30 ? h<10?'0'+h:h : (h+1)<10?'0'+(h+1): h+1}:${min<30? '30': '00'}`,
time2: `${y}/${m}/${d} ${(h+1)<10?'0'+(h+1):h+1}:${min<30 ? '00':'30'}`,
time1: `${y}/${m}/${d} ${min<30 ? h<10?'0'+h:h : (h+1)<10?'0'+(h+1): h+1}:${min<30? '30': '00'}:00`,
time2: `${y}/${m}/${d} ${(h+1)<10?'0'+(h+1):h+1}:${min<30 ? '00':'30'}:00`,
week1: w,
week2: w,
type: event.type,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment