Browse Source

修改苹果手机时间显示问题

11-plugin-be-present
aBin 4 years ago
parent
commit
636a1fac25
  1. 9
      index.html

9
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)

Loading…
Cancel
Save