修改班级动态五分钟心跳更新

master
chen 2022-05-13 17:42:17 +08:00
parent 2da586b25f
commit d3c0b5c916
3 changed files with 30 additions and 15 deletions

View File

@ -5,7 +5,7 @@
<!-- logo -->
<div class="logo-box">
<div class="logo">
<img v-if="logoImg!=''" :src="logoImg" style="object-fit: cover;">
<img v-if="logoImg!=''" :src="logoImg" style="object-fit: cover;flex-shrink: 0;">
<div style="display: flex;flex-direction: column;">
<span style="font-size: 33.8px;">{{className}}</span>
<!-- <span style="font-size: 33.8px;">都江堰市机关幼儿园</span> -->
@ -39,17 +39,17 @@
<!-- 首页 -->
<homepage v-if="activeIndex==0" @numEv="numEv"></homepage>
<homepage v-show="activeIndex==0" @numEv="numEv"></homepage>
<!-- 幼儿园介绍 -->
<kindIntroduction v-if="activeIndex==1"></kindIntroduction>
<kindIntroduction v-show="activeIndex==1"></kindIntroduction>
<!-- 宝宝活动 -->
<babyActivity v-if="activeIndex==2"></babyActivity>
<babyActivity v-show="activeIndex==2"></babyActivity>
<!-- 出勤详情 -->
<attendanceDetail v-if="activeIndex==3" :current="currentIndex"></attendanceDetail>
<attendanceDetail v-show="activeIndex==3" :current="currentIndex"></attendanceDetail>
<!-- 宝宝相册 -->
<babyAlbum v-if="activeIndex==4"></babyAlbum>
<babyAlbum v-show="activeIndex==4"></babyAlbum>
<!-- 疫情管理 -->
<yiqingmanagement v-if="activeIndex==5"></yiqingmanagement>
<yiqingmanagement v-show="activeIndex==5"></yiqingmanagement>
<!-- 底部 -->
@ -428,11 +428,19 @@
},
// (id)
obtainEv() {
let Build = plus.android.importClass("android.os.Build");
let serial = Build.SERIAL;
this.$storage.set('EquipmentID',Build.SERIAL);
// let serial = Build.SERIAL;
// this.$storage.set('EquipmentID','B520P2RXM0');
// this.$storage.set('EquipmentID','ZSX100873');
// this.$storage.set('EquipmentID','YS01M006215190015810005072');
// this.$storage.set('EquipmentID','YS01M006214280022020005887');
// this.$storage.set('EquipmentID','YS01M006214280022500022555');
// this.$storage.set('EquipmentID','YS01M006215190028340008867');
// this.$storage.set('EquipmentID','YS01M006215190024770004633');
// this.$storage.set('EquipmentID','YS01M006215190025640009192');
// this.$storage.set('EquipmentID','YS01M006215190022450002190');
// this.$storage.set('EquipmentID','YS01M006215190026450017563');
let Build = plus.android.importClass("android.os.Build");
this.$storage.set('EquipmentID',Build.SERIAL);
this.classCardId = this.$storage.get('EquipmentID');
this.weatherEv();
this.introduce();

View File

@ -204,7 +204,8 @@
diffHeight:'',
isNotice:false,
classTimer:null,//
videoSrc:''//
videoSrc:'',//
swiperTime:null//
};
},
destroyed() {
@ -214,6 +215,7 @@
clearInterval(this.chuTime);
//
clearInterval(this.classTimer);
clearInterval(this.swiperTime);
},
methods: {
//
@ -541,6 +543,11 @@
//
this.getVideo();
},500)
//
clearInterval(this.swiperTime);
this.swiperTime = setInterval(()=>{
this.getVideo();
},1000*6*5)
setTimeout(()=>{
this.timer = setInterval(()=>{
//

View File

@ -13,13 +13,13 @@
</div>
<div class="introduction-right">
<!-- 园区介绍 -->
<parkIntroduce v-if="navIndex==0"></parkIntroduce>
<parkIntroduce v-show="navIndex==0"></parkIntroduce>
<!-- 教师风采 -->
<teacherStyle v-if="navIndex==1"></teacherStyle>
<teacherStyle v-show="navIndex==1"></teacherStyle>
<!-- 新闻动态 -->
<newsInformation v-if="navIndex==2"></newsInformation>
<newsInformation v-show="navIndex==2"></newsInformation>
<!-- 公告信息 -->
<noticeInfo v-if="navIndex==3"></noticeInfo>
<noticeInfo v-show="navIndex==3"></noticeInfo>
</div>
</div>