Commit d719f47e authored by 范雪寒's avatar 范雪寒

feat: 遮罩问题

parent 6ee9981f
......@@ -347,6 +347,16 @@ body {
display: none;
}
.sent-container {
position: absolute;
left: 0px;
top: 0px;
right: 0px;
bottom: 0px;
display: none;
z-index: 1000;
}
.hello-container {
position: absolute;
left: 0px;
......
......@@ -62,6 +62,9 @@
<div class="my-btn sent-btn">
Send
</div>
<div class="sent-container">
<img id="teaimage" src="" alt="" style="object-fit: cover; width: 100%; height: 100%;">
</div>
</div>
<div role="stu" id="stu">
......
......@@ -269,8 +269,10 @@ class PlayView {
}
console.log('this.data.stuImage = ' + this.data.stuImage);
if (this.data.stuImage) {
$("#stuimage").attr("src", this.data.stuImage);
$("#teaimage").attr("src", this.data.stuImage);
}
if (this.data.title) {
......@@ -288,6 +290,8 @@ class PlayView {
//绑定sent事件
bindSentBtn();
$(".sent-container").hide();
}
else {
......@@ -346,6 +350,7 @@ function recoverPage(aspect) {
teaUserAspect = aspect.user_aspect && JSON.parse(aspect.user_aspect);
if (teaUserAspect.isSendQuestion) {
$(".sent-btn").hide();
$(".sent-container").show();
}
}
else {
......@@ -674,6 +679,8 @@ function bindSentBtn() {
$(this).hide();
// teaimage
cw.sendEvent('sendQuestion', teaUserAspect);
});
}
......@@ -681,7 +688,7 @@ function bindSentBtn() {
function initListener() {
cw.onEvent('sendQuestion', (data, next) => {
if (ROLE == "tea") {
$(".sent-container").show();
} else {
stuUserAspect.currentWordIndex = data.currentWordIndex;
......
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