@@ -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()
}
},