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
4ea699c8
Commit
4ea699c8
authored
Dec 16, 2020
by
刘阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 图片引用
parent
6e4df758
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
15 deletions
+34
-15
index.js
src/assets/images/index.js
+9
-9
index.vue
src/views/home/index.vue
+3
-3
index.vue
src/views/paint-screen/index.vue
+22
-3
No files found.
src/assets/images/index.js
View file @
4ea699c8
import
videoPlay
from
'./video_play.png'
import
videoPlay
from
'./video_play.png'
import
videoBg
from
'./video_bg.png'
import
videoBg
from
'./video_bg.png'
import
nocontent
from
'./nocontent.png'
import
nocontent
from
'./nocontent.png'
import
one
from
'./1.
PNG
'
import
one
from
'./1.
png
'
import
two
from
'./2.
PNG
'
import
two
from
'./2.
png
'
import
thr
from
'./3.
PNG
'
import
thr
from
'./3.
png
'
import
four
from
'./4.
PNG
'
import
four
from
'./4.
png
'
import
five
from
'./5.
PNG
'
import
five
from
'./5.
png
'
import
six
from
'./6.
PNG
'
import
six
from
'./6.
png
'
import
siven
from
'./7.
PNG
'
import
siven
from
'./7.
png
'
import
eight
from
'./8.
PNG
'
import
eight
from
'./8.
png
'
import
nine
from
'./9.
PNG
'
import
nine
from
'./9.
png
'
export
{
export
{
videoPlay
,
videoPlay
,
...
...
src/views/home/index.vue
View file @
4ea699c8
...
@@ -75,9 +75,9 @@ export default {
...
@@ -75,9 +75,9 @@ export default {
userId
=
`
${
new
Date
().
getTime
()}
`
userId
=
`
${
new
Date
().
getTime
()}
`
}
}
const
routeName
=
joinObj
.
path
const
routeName
=
joinObj
.
path
socket
.
connect
(
userId
,
()
=>
{
//
socket.connect(userId, () => {
this
.
$router
.
push
({
name
:
routeName
,
query
:
{
userId
,
roomId
:
this
.
roomId
}})
this
.
$router
.
push
({
name
:
routeName
,
query
:
{
userId
,
roomId
:
this
.
roomId
}})
})
//
})
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/views/paint-screen/index.vue
View file @
4ea699c8
...
@@ -44,7 +44,17 @@
...
@@ -44,7 +44,17 @@
<
script
>
<
script
>
import
{
GeekDrawBoard
}
from
'@geek/geekui'
import
{
GeekDrawBoard
}
from
'@geek/geekui'
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
videoBg
,
bg
}
from
'@/assets/images/index'
import
{
videoBg
,
one
,
two
,
thr
,
four
,
five
,
six
,
siven
,
eight
,
nine
}
from
'@/assets/images/index'
import
HWRTC
from
'@/utils/hwrtc'
import
HWRTC
from
'@/utils/hwrtc'
import
socket
from
'@/utils/socket'
import
socket
from
'@/utils/socket'
...
@@ -64,7 +74,15 @@ const streamTypes = [
...
@@ -64,7 +74,15 @@ const streamTypes = [
]
]
const
imgs
=
[
const
imgs
=
[
bg
,
videoBg
one
,
two
,
thr
,
four
,
five
,
six
,
siven
,
eight
,
nine
]
]
Vue
.
use
(
GeekDrawBoard
)
Vue
.
use
(
GeekDrawBoard
)
...
@@ -188,7 +206,8 @@ export default {
...
@@ -188,7 +206,8 @@ export default {
transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
}
}
.bg
{
.bg
{
height
:
100vh
;
width
:
100vw
;
height
:
100vh
;
width
:
100vw
;
}
}
.draw-board
{
.draw-board
{
position
:
absolute
;
position
:
absolute
;
...
...
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