|
@@ -1091,6 +1091,18 @@ window.initHot = function (model) {
|
|
|
|
|
|
|
|
|
|
examine(options = {}) {
|
|
examine(options = {}) {
|
|
|
|
+ console.log('打开热点,关闭背景音乐');
|
|
|
|
+
|
|
|
|
+ // 判断当前背景音乐是开的还是关的
|
|
|
|
+ let tempp =document.querySelector('#openMusic')
|
|
|
|
+ if(tempp.style.display==='block') {
|
|
|
|
+ // 背景音乐当前为关闭状态
|
|
|
|
+ window.musicFlagNow = '音乐关'
|
|
|
|
+ } else {
|
|
|
|
+ window.musicFlagNow = '音乐开'
|
|
|
|
+ SoundManager.pause('bgm')
|
|
|
|
+ }
|
|
|
|
+
|
|
var openHot = this.info.link && this.info.actionType.openHot && !options.dontOpen
|
|
var openHot = this.info.link && this.info.actionType.openHot && !options.dontOpen
|
|
var needExamine = options.examine || (!settings.dontExamHot && this.info.actionType.examine)
|
|
var needExamine = options.examine || (!settings.dontExamHot && this.info.actionType.examine)
|
|
if (!openHot && !needExamine) return;
|
|
if (!openHot && !needExamine) return;
|
|
@@ -1601,6 +1613,10 @@ window.initHot = function (model) {
|
|
|
|
|
|
Hot.closePopup = () => {// 关闭热点页面
|
|
Hot.closePopup = () => {// 关闭热点页面
|
|
if (!g_currentHot) return;
|
|
if (!g_currentHot) return;
|
|
|
|
+
|
|
|
|
+ console.log('关闭热点,打开背景音乐');
|
|
|
|
+ if(window.musicFlagNow === '音乐开') SoundManager.play('bgm')
|
|
|
|
+
|
|
g_currentHot = null;
|
|
g_currentHot = null;
|
|
var hotPop = document.getElementById('popup');
|
|
var hotPop = document.getElementById('popup');
|
|
hotPop.style.display = "none";
|
|
hotPop.style.display = "none";
|