//
钱宇航 干事
// tel:16643416659
function flush_reserve_info() {
$.get('/get_reserve_info', (data, status)=> {
let json = JSON.parse(data)
for(let day=1; day<=7; day++) {
for(let time=1; time<=6; time++) {
let info = json[`${day}-${time}`]
console.log(info)
if(info.name != "") {
$(`#table${day}-${time}`).html(`${info.name} ${info.type}
tel:${info.phone}
`)
} else {
$(`#table${day}-${time}`).html('')
}
}
}
})
}
flush_reserve_info()
const intervalId = setInterval(flush_reserve_info, 1000);