From 31b0fa1c98750315c33196e96f6476bba9be03ca Mon Sep 17 00:00:00 2001 From: binbin0314 Date: Thu, 29 Jul 2021 23:14:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 2944fa5..4fd16a4 100644 --- a/index.html +++ b/index.html @@ -47,7 +47,7 @@ -
+
@@ -182,8 +182,9 @@ userType: 0 } }); - fetch('http://www.tall.wiki/gateway/qcp/v3.0/patient/aidRecord', { + fetch('https://www.tall.wiki/gateway/qcp/v3.0/patient/aidRecord', { method: 'POST', + mode: 'cors', body: params, headers: new Headers({ 'Authorization': 'Bearer ' + that.token ,'Content-Type': 'application/json;charset=utf-8' @@ -192,9 +193,6 @@ return response.json(); }).catch(function(error){ console.error('Error:', error) - // TODO: 测试数据 - that.setDate() - // TODO: }).then(function(res){ const { success, code, data, msg } = res; if (success && code === 200) { @@ -300,11 +298,9 @@ if(min<10) { min = '0' + min } - console.log(`${year}-${month}-${day} ${hour}:${min}`) const chooseTime = `${year}-${month}-${day} ${hour}:${min}` if(chooseTime){ await this.choose(new Date(chooseTime).getTime()) - console.log('new Date(chooseTime).getTime(): ', new Date(chooseTime).getTime()); this.cancelTime() } },