let firstDate = localStorage.getItem('firstDate')// 获取当前时间(年月日)
let now =newDate().toLocaleDateString()// 转换成时间戳
let time = Date.parse(newDate(now))if(localStorage.getItem('firstDate')){if(time > firstDate){
localStorage.setItem('firstDate', JSON.stringify(time))}}else{this.open();
localStorage.setItem('firstDate', JSON.stringify(time))}