From 636a1fac25765fce14d59797e68a3f64945d35fe Mon Sep 17 00:00:00 2001 From: binbin0314 Date: Fri, 6 Aug 2021 11:42:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8B=B9=E6=9E=9C=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 5b072cc..888672e 100644 --- a/index.html +++ b/index.html @@ -197,9 +197,6 @@ return response.json(); }).catch(function(error){ console.error('Error:', error) - // TODO: 测试数据 - that.setDate() - // TODO: }).then(function(res){ var { success, code, data, msg } = res; if (success && code === 200) { @@ -350,10 +347,10 @@ if(min<10) { min = '0' + min } - var chooseTime = `${year}-${month}-${day} ${hour}:${min}` - this.chooseTimeValue = new Date(chooseTime).getTime() + var chooseTime = `${+year}-${+month}-${+day} ${+hour}:${+min}` + this.chooseTimeValue = new Date(chooseTime.replace(/-/g,'/')).getTime() if(chooseTime){ - await this.choose(new Date(chooseTime).getTime()) + await this.choose(this.chooseTimeValue) // 医生名字 var doctorName = this.dom.querySelector('.doctorName'); await this.addArriveWorker(new Date(chooseTime).getTime(), doctorName.value)