Commit 26c0e747 authored by limingzhe's avatar limingzhe

update

parent 5ba9c7e6
...@@ -503,6 +503,11 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -503,6 +503,11 @@ export class PlayComponent implements OnInit, OnDestroy {
console.log('aspect: ', aspect); console.log('aspect: ', aspect);
if (aspect.startFlag) { if (aspect.startFlag) {
this.isGaming = true; this.isGaming = true;
if (this.teachFlag) {
this.teacherPage.visible = true;
this.fillTeacherPageData();
}
} }
} }
break; break;
...@@ -512,6 +517,33 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -512,6 +517,33 @@ export class PlayComponent implements OnInit, OnDestroy {
} }
fillTeacherPageData() {
const allUser = this.serverAllUser;
if (allUser) {
console.log('allUser 2 : ', allUser);
for (let i = 0; i < allUser.length; i++) {
const userData = allUser[i];
if (userData.user.classRole == 'stu') {
if (userData.aspect) {
const aspect = JSON.parse(userData.aspect);
console.log('aspect: ', aspect);
this.addTeacherPageData(aspect);
}
break;
}
}
}
}
teacherPageArr; teacherPageArr;
// 这里存放的是数据 // 这里存放的是数据
scoreDataArr; scoreDataArr;
...@@ -965,7 +997,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -965,7 +997,7 @@ export class PlayComponent implements OnInit, OnDestroy {
that.isGaming = true; that.isGaming = true;
this.showAudio(); that.showAudio();
next(); next();
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment