Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JM-07
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
JM-07
Commits
d719f47e
Commit
d719f47e
authored
Aug 23, 2021
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 遮罩问题
parent
6ee9981f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
index.css
play/index.css
+10
-0
index.html
play/index.html
+3
-0
index.js
play/index.js
+8
-1
No files found.
play/index.css
View file @
d719f47e
...
...
@@ -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
;
...
...
play/index.html
View file @
d719f47e
...
...
@@ -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"
>
...
...
play/index.js
View file @
d719f47e
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment