Commit 1e742192 authored by liujiangnan's avatar liujiangnan

Merge branch 'master' of http://vcs.ireadabc.com/template/JM-07

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