Commit 9a08576a by crushh

update: 游戏音乐

parent 78af4138
......@@ -436,6 +436,12 @@ export default {
});
});
}
},
destroyed() {
if (this.isPlay) {
this.isPlay = false;
music.pause();
}
}
};
</script>
......
......@@ -39,7 +39,7 @@
<ruleConfig ref="ruleConfig" :gameStatus="gameStatus" :templateId="templateId" :gameTime="gameTime" :shareImgData="shareImgData" :echoData="ruleForm" v-show="active == 2" @nextStep="nextStep" @prevStep="step => active--" @submit="submitForm" :btnLoading="btnLoading" @change="handleRuleConfigChange" />
</div>
</div>
<info :data="echoData" :invalidCard="invalidCard" v-if="isInfo" ref="info" />
<info :data="echoData" :invalidCard="invalidCard" v-if="isInfo" />
</div>
<links :show.sync="linkShow" :obj="linksObj" gameTypeName="幸运盲盒" :isNew="true" :showFooter="true" :showClose="false">
<el-button @click="editRenew">重新编辑</el-button>
......@@ -241,9 +241,6 @@ export default {
},
goBack() {
this.$router.go(-1);
if (this.isInfo) {
this.$refs.info.stopMusic();
}
},
handleMenuSelect(index) {
this.menuActive = index;
......
......@@ -298,6 +298,9 @@ export default {
music.src = this.form.gameExt.backMusicUrl.materialValue;
this.isPlay ? music.play() : music.pause();
}
},
destroyed() {
this.stopMusic();
}
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment