|
@@ -193,7 +193,7 @@
|
|
|
clearInterval(this.timerAutoAddAppHeartRate);
|
|
clearInterval(this.timerAutoAddAppHeartRate);
|
|
|
this.timerAutoAddAppHeartRate = setInterval(() => {
|
|
this.timerAutoAddAppHeartRate = setInterval(() => {
|
|
|
// 上课中,且已连接心率带
|
|
// 上课中,且已连接心率带
|
|
|
- if (this.InClass == 1 && this.watchState) {
|
|
|
|
|
|
|
+ if (this.InClass == 1 && this.watchState && this.runMode != 'mock') {
|
|
|
// 上课就自动上报
|
|
// 上课就自动上报
|
|
|
this.AutoAddAppHeartRate();
|
|
this.AutoAddAppHeartRate();
|
|
|
} else {
|
|
} else {
|
|
@@ -201,16 +201,16 @@
|
|
|
console.log('下课中,不汇报');
|
|
console.log('下课中,不汇报');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // if (this.runMode == 'mock') {
|
|
|
|
|
- // this.InClass = 1;
|
|
|
|
|
- // this.duId = 775;
|
|
|
|
|
- // this.sn = '22735';
|
|
|
|
|
- // this.HrId = 87;
|
|
|
|
|
- // this.AutoAddAppHeartRate();
|
|
|
|
|
- // } else {
|
|
|
|
|
- // // 不上课就不报
|
|
|
|
|
- // console.log('下课中,不汇报test');
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ if (this.runMode == 'mock') {
|
|
|
|
|
+ this.InClass = 1;
|
|
|
|
|
+ this.duId = 775;
|
|
|
|
|
+ this.sn = '22735';
|
|
|
|
|
+ this.HrId = 87;
|
|
|
|
|
+ this.AutoAddAppHeartRate();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ // 不上课就不报
|
|
|
|
|
+ console.log('下课中,不汇报test');
|
|
|
|
|
+ }
|
|
|
}, this.isAddHeartTime);
|
|
}, this.isAddHeartTime);
|
|
|
},
|
|
},
|
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|