Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
eslotsys-game-nuxt
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
毛线
eslotsys-game-nuxt
Commits
13b9503a
Commit
13b9503a
authored
Jul 01, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完整主流程
登录,退出,设备列表,进入游戏,玩游戏,视频,声音, 声音做成了指定,dom添加v-audio就可以播放声音,audio="ui",可以设置音乐类型 缺自动play
parent
b3bd9f09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
index.vue
components/common/audio/index.vue
+1
-0
No files found.
components/common/audio/index.vue
View file @
13b9503a
...
...
@@ -46,6 +46,7 @@ export default {
init
()
{
console
.
log
(
'初始化音频'
)
this
.
bgAudio
.
src
=
'https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/sound/Innovation.mp3'
// 背景音乐
this
.
bgAudio
.
loop
=
true
this
.
uiClickAudio
.
src
=
'https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/sound/ui_click.mp3'
// 通用ui点击音乐
},
playBgAudio
()
{
...
...
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