@@ -130,7 +130,7 @@ window.initHot = function(model){
this.sid = info.sid;
- info.styleImg = info.styleImg.map(item=>manage.dealURL(item))
+ info.styleImg = info.styleImg && info.styleImg.map(item=>manage.dealURL(item))
this.preDeal(info, source)// source:来源
@@ -2,7 +2,7 @@ import axios from 'axios'
var isProduction = process.env.NODE_ENV === 'production'
-const serverName = isProduction ? '/' : 'http://192.168.0.135:8013/'
+const serverName = isProduction ? '/' : 'http://192.168.0.106:8004/'
const orginLink = window.location.origin
@@ -191,6 +191,12 @@ export default {
this.showhuizhang = true
}, 3 * 60 * 1000);
+ document.addEventListener("visibilitychange", () =>{
+ if(document.visibilityState == 'hidden'){
+ window.player.director.stopTour()
+ }
+ });
+
}, false);
});