Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NEWYEARPARTY
Project
Project
Details
Activity
Releases
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
华国豪
NEWYEARPARTY
Commits
93d23869
Commit
93d23869
authored
Jan 09, 2020
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
fc030615
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
App.vue
src/App.vue
+13
-14
No files found.
src/App.vue
View file @
93d23869
...
...
@@ -13,7 +13,7 @@
</vue-baberrage>
<div
style=
"position: absolute;left: 0;top: 0;padding: 2%;background-color: red;z-index: 10086;"
@
click=
"sendMsg()"
>
sendMsg
</div>
<!-- style="position: absolute; top: 20%;z-index: 20199" -->
<audio
style=
"position: absolute; top: -20%;z-index: -1"
ref=
"homeAudio"
:loop=
"AudioPlayType ? true : false"
:src=
"url"
controls
></audio>
<audio
style=
"position: absolute; top: -20%;z-index: -1"
ref=
"homeAudio"
:loop=
"AudioPlayType ? true : false"
:src=
"url"
controls
></audio>
</div>
</
template
>
...
...
@@ -98,6 +98,18 @@ export default {
// $this.barrageList.push(barrageObj)
// }, 5000)
//this.sendMsg();
this
.
$PROXY
.
on
(
"barrage"
,
data
=>
{
let
barrage
=
data
let
barrageObj
=
{
id
:
++
this
.
currentId
,
avatar
:
barrage
.
p
,
msg
:
barrage
.
m
,
name
:
barrage
.
n
,
time
:
15
,
type
:
MESSAGE_TYPE
.
NORMAL
}
this
.
barrageList
.
push
(
barrageObj
)
})
},
methods
:
{
setAudioType
:
function
(
type
)
{
...
...
@@ -144,19 +156,6 @@ export default {
},
getMsg
()
{
var
$this
=
this
;
console
.
log
(
this
.
$PROXY
)
this
.
$PROXY
.
on
(
"barrage"
,
data
=>
{
let
barrage
=
data
let
barrageObj
=
{
id
:
++
this
.
currentId
,
avatar
:
barrage
.
p
,
msg
:
barrage
.
m
,
name
:
barrage
.
n
,
time
:
15
,
type
:
MESSAGE_TYPE
.
NORMAL
}
this
.
barrageList
.
push
(
barrageObj
)
})
}
}
...
...
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