Commit 26c0e747 authored by limingzhe's avatar limingzhe

update

parent 5ba9c7e6
......@@ -503,6 +503,11 @@ export class PlayComponent implements OnInit, OnDestroy {
console.log('aspect: ', aspect);
if (aspect.startFlag) {
this.isGaming = true;
if (this.teachFlag) {
this.teacherPage.visible = true;
this.fillTeacherPageData();
}
}
}
break;
......@@ -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;
// 这里存放的是数据
scoreDataArr;
......@@ -965,7 +997,7 @@ export class PlayComponent implements OnInit, OnDestroy {
that.isGaming = true;
this.showAudio();
that.showAudio();
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