Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hello_taobao
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
wildfirecode13
hello_taobao
Commits
ccb83048
Commit
ccb83048
authored
Sep 11, 2020
by
汪欢
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab2.dui88.com/wanghongyuan/hello_taobao
parents
96fc7acb
0a98220e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
playBgMusic.js
dist/utils/playBgMusic.js
+3
-1
No files found.
dist/utils/playBgMusic.js
View file @
ccb83048
...
@@ -42,7 +42,7 @@ const playBgMusic = (isOn, src) => {//待测试
...
@@ -42,7 +42,7 @@ const playBgMusic = (isOn, src) => {//待测试
bgs
[
key
]
=
createAudio
({
bgs
[
key
]
=
createAudio
({
src
:
src
,
src
:
src
,
autoplay
:
true
,
autoplay
:
true
,
loop
:
fals
e
/// TODO 暂时无效?2020.08.12 目前有效,但stop后还会跑数据,导致到音频结束到时间又自动播放
loop
:
tru
e
/// TODO 暂时无效?2020.08.12 目前有效,但stop后还会跑数据,导致到音频结束到时间又自动播放
});
});
...
@@ -59,6 +59,8 @@ const playBgMusic = (isOn, src) => {//待测试
...
@@ -59,6 +59,8 @@ const playBgMusic = (isOn, src) => {//待测试
bgs
[
key
].
onEnded
(()
=>
{
bgs
[
key
].
onEnded
(()
=>
{
if
(
bgs
[
key
].
isOn
)
{
// 判断自己记录的开关
if
(
bgs
[
key
].
isOn
)
{
// 判断自己记录的开关
bgs
[
key
].
play
();
bgs
[
key
].
play
();
console
.
log
(
'bgs[key].onEnded'
)
// bgs[key].isOn = true;
// bgs[key].isOn = true;
}
}
});
});
...
...
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