获取设备型号

This commit is contained in:
shijingjing
2022-08-02 16:51:06 +08:00
parent 0c3d8d1d09
commit 4a22893b44
2 changed files with 6 additions and 5 deletions

View File

@@ -198,6 +198,11 @@ export default {
}, },
// 提醒发送 // 提醒发送
remindSend() { remindSend() {
wx.getSystemInfo({
success (res) {
console.log(res.model)
}
})
this.firstClickTime = new Date(this.detail.remindTime.replace(/-/g, "/")).getTime() || new Date(this.detail.remindTime).getTime() || 0 ; this.firstClickTime = new Date(this.detail.remindTime.replace(/-/g, "/")).getTime() || new Date(this.detail.remindTime).getTime() || 0 ;
this.currentClickTime = +new Date(); this.currentClickTime = +new Date();
let time = this.currentClickTime - this.firstClickTime; let time = this.currentClickTime - this.firstClickTime;

View File

@@ -94,9 +94,7 @@ export default {
this.calendarList = res.data; this.calendarList = res.data;
let arr = Object.keys(res.data).map(key => (res.data[key])) let arr = Object.keys(res.data).map(key => (res.data[key]))
this.list = arr[this.day - 1]?.taskList this.list = arr[this.day - 1]?.taskList
console.log(this.list,'this.list');
let calList = arr.filter(item=> (item.taskList && item.taskList.length > 0)) let calList = arr.filter(item=> (item.taskList && item.taskList.length > 0))
console.log(calList,'calList');
this.selected = calList.map(item=> { this.selected = calList.map(item=> {
if(item.day>=1 && item.day<=9) { if(item.day>=1 && item.day<=9) {
if(this.month>=1 && this.month <=9) { if(this.month>=1 && this.month <=9) {
@@ -120,7 +118,6 @@ export default {
} }
} }
}) })
console.log(this.selected, 'this.selected');
} }
}); });
}, },
@@ -128,7 +125,6 @@ export default {
onShow() { onShow() {
document.title = '宣发日历' document.title = '宣发日历'
}, },
} }
</script> </script>
@@ -163,7 +159,7 @@ export default {
} }
::v-deep .calendarInfo .calendar { ::v-deep .calendarInfo .calendar {
height: 750px; height: 750px !important;
} }
.calendar { .calendar {