Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gk-online-teacher
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
huanglu
gk-online-teacher
Commits
0d3d02e4
Commit
0d3d02e4
authored
Dec 24, 2020
by
甘瑞文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整百分比
parent
3e7d1838
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
18 deletions
+39
-18
index.html
public/index.html
+1
-1
index.vue
src/views/answer-screen/cmps/drawing-board/index.vue
+12
-6
index.vue
src/views/answer-screen/cmps/locker/index.vue
+1
-0
index.vue
src/views/answer-screen/cmps/quick-response/index.vue
+4
-3
index.vue
src/views/answer-screen/index.vue
+21
-8
No files found.
public/index.html
View file @
0d3d02e4
...
...
@@ -15,7 +15,7 @@
<link
href=
"<%= htmlWebpackPlugin.options.cdn.css[i] %>"
rel=
"stylesheet"
>
<
%
}
%
>
</head>
<body>
<body
style=
"background: #303133"
>
<noscript>
<strong>
We're sorry but
<
%=
htmlWebpackPlugin
.
options
.
title
%
>
doesn't work properly without JavaScript enabled.
Please enable it to continue.
</strong>
...
...
src/views/answer-screen/cmps/drawing-board/index.vue
View file @
0d3d02e4
...
...
@@ -67,9 +67,10 @@ export default {
paintTypes
,
submitting
:
false
,
backgroundStyle
:
{
background
:
`#FFF url(
${
this
.
img
}
) no-repeat`
,
backgroundSize
:
'contain'
,
backgroundPosition
:
'center'
// background: `#FFF url(${this.img}) no-repeat`,
// backgroundSize: 'contain',
// backgroundPositionX: 'center',
// backgroundPositionY: 'top'
}
};
},
...
...
@@ -166,9 +167,14 @@ export default {
}
}
.draw-board
{
height
:
100vh
;
width
:
100vw
;
background
:
#f5f5f5
;
width
:
100%
;
/* background: #f5f5f5; */
position
:
absolute
;
top
:
0
;
bottom
:
0
;
// height: 100vh;
// width: 100vw;
// background: #f5f5f5;
}
.ans-commit
{
font-size
:
40px
;
...
...
src/views/answer-screen/cmps/locker/index.vue
View file @
0d3d02e4
...
...
@@ -33,6 +33,7 @@ export default {
align-items
:
center
;
width
:
100%
;
height
:
100%
;
color
:
beige
;
p
{
font-size
:
150px
;
}
...
...
src/views/answer-screen/cmps/quick-response/index.vue
View file @
0d3d02e4
...
...
@@ -3,9 +3,10 @@
<h1
v-if=
"step === 'counting'"
>
{{
countingText
}}
</h1>
<el-button
v-if=
"step === 'racing'"
type=
"primary
"
:type=
"submitting ? 'default' : 'primary'
"
@
click=
"handleSubmit"
:class=
"submitting ? 'race' : 'race active'"
:disabled=
"submitting"
>
<i
class=
"el-icon-thumb"
></i>
</el-button>
...
...
@@ -61,8 +62,8 @@ export default {
}
},
(
data
)
=>
{
this
.
submitting
=
fals
e
this
.
step
=
'submitted'
this
.
submitting
=
tru
e
//
this.step = 'submitted'
console
.
log
(
'回执'
,
data
);
});
},
...
...
src/views/answer-screen/index.vue
View file @
0d3d02e4
<
template
>
<div
class=
"board-container"
>
<div
class=
"board-container"
:style=
"styles"
>
<quick-response
:eventId=
"eventId"
:img=
"img"
v-if=
"this.currentComponment === 'quick-response'"
/>
<locker
:eventId=
"eventId"
v-if=
"this.currentComponment === 'locker'"
/>
<select-question
:eventId=
"eventId"
:img=
"img"
v-if=
"this.currentComponment === 'select-question'"
/>
...
...
@@ -25,7 +25,18 @@ export default {
DrawingBoard
},
data
()
{
let
width
=
window
.
screen
.
availWidth
;
console
.
log
();
let
height
=
width
*
9
/
16
;
if
(
height
>
window
.
screen
.
availHeight
){
height
=
window
.
screen
.
availHeight
;
width
=
height
*
16
/
9
;
}
return
{
styles
:
{
width
:
width
+
'px'
,
height
:
height
+
'px'
},
currentComponment
:
'locker'
,
eventId
:
'0'
,
img
:
''
...
...
@@ -57,19 +68,21 @@ export default {
},
onMsg
(
msg
)
{
console
.
log
(
'home onmsg: '
,
msg
);
if
(
!
msg
||
!
msg
.
from
||
msg
.
from
.
indexOf
(
'teacher'
)
<
0
||
!
msg
.
payload
)
{
return
}
if
(
!
msg
.
payload
.
eventId
||
!
msg
.
payload
.
type
||
msg
.
payload
.
type
<
0
)
{
if
(
!
msg
||
!
msg
.
from
||
msg
.
from
.
indexOf
(
'teacher'
)
<
0
)
{
return
}
if
(
msg
.
type
===
'
finish
'
)
{
if
(
msg
.
type
===
'
question-exit
'
)
{
this
.
currentComponment
=
'locker'
return
}
if
(
msg
.
type
!==
'question'
)
{
return
}
if
(
!
msg
.
payload
||
!
msg
.
payload
.
eventId
||
!
msg
.
payload
.
type
||
msg
.
payload
.
type
<
0
)
{
return
}
this
.
eventId
=
msg
.
payload
.
eventId
;
this
.
currentComponment
=
'locker'
;
this
.
img
=
''
...
...
@@ -105,8 +118,8 @@ export default {
.board-container
{
position
:
absolute
;
left
:
0
;
right
:
0
;
//
right: 0;
top
:
0
;
bottom
:
0
;
//
bottom: 0;
}
</
style
>
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