|
@@ -53,9 +53,9 @@ window.initHot = function (model) {
|
|
|
var src = ''
|
|
|
var r = link.substring(link.indexOf('html') + 4),
|
|
|
o = 'en' == manage.number('lang') ? '&lang=' + manage.number('lang') : ''
|
|
|
- ; -1 == r.indexOf('?') ? (src = link + '?time=' + randomTime().getTime() + '&id=' + window.number + o) : (src = link + '&time=' + randomTime().getTime() + '&id=' + window.number + o)
|
|
|
+ ;-1 == r.indexOf('?') ? (src = link + '?time=' + randomTime().getTime() + '&id=' + window.number + o) : (src = link + '&time=' + randomTime().getTime() + '&id=' + window.number + o)
|
|
|
|
|
|
- return src.replace('https://www.4dmodel.com/SuperTwo/hot_online1', 'https://houseoss.4dkankan.com/project/WuhanMuseum/hot')
|
|
|
+ return src.replace('https://www.4dmodel.com/SuperTwo/hot_online1', 'https://houseoss.4dkankan.com/project/BDLG/hot')
|
|
|
// return src.replace('https://www.4dmodel.com/SuperTwo/hot_online1', 'http://localhost:8080')
|
|
|
// return src
|
|
|
}
|
|
@@ -341,7 +341,7 @@ window.initHot = function (model) {
|
|
|
if (media) {
|
|
|
this.changeShineTex(media)
|
|
|
} else {
|
|
|
- this.styleImg = /* this.styleImg || */[]
|
|
|
+ this.styleImg = /* this.styleImg || */ []
|
|
|
if (this.info.styleImg) {
|
|
|
this.styleImg = this.info.styleImg.map(src => {
|
|
|
return { src: /* manage.dealURL( */ src } //如果要dealURL,在predeal里
|
|
@@ -429,7 +429,7 @@ window.initHot = function (model) {
|
|
|
{
|
|
|
let action = CloneObject(settings.hotClickEvent.shine)
|
|
|
if (info.actionType == 'noAction' || info.noAction) {
|
|
|
- ; (action.examine = false), (action.openHot = false)
|
|
|
+ ;(action.examine = false), (action.openHot = false)
|
|
|
} else if (info.actionType == 'dontExam') {
|
|
|
action.examine = false
|
|
|
}
|
|
@@ -1135,29 +1135,29 @@ window.initHot = function (model) {
|
|
|
var popup = document.getElementById('popup')
|
|
|
|
|
|
if (openHot) {
|
|
|
- ; (g_currentHot = this), (popup.style.display = 'block'), popup.classList.add('wait')
|
|
|
+ ;(g_currentHot = this), (popup.style.display = 'block'), popup.classList.add('wait')
|
|
|
var n = document.createElement('iframe')
|
|
|
|
|
|
SoundManager.play('hot')
|
|
|
|
|
|
var src = getLink(this.info.link)
|
|
|
n.src = src
|
|
|
- ; (n.id = 'id1'), (n.allowTransparency = 'true')
|
|
|
+ ;(n.id = 'id1'), (n.allowTransparency = 'true')
|
|
|
var a = document.getElementById('id1')
|
|
|
if (void 0 === a || null == a) {
|
|
|
document.querySelector('.popup-content').appendChild(n)
|
|
|
var s = !1
|
|
|
- ; (window.loaddingSuccess = function () {
|
|
|
- s = !0
|
|
|
- }),
|
|
|
- setTimeout(function e() {
|
|
|
- if (s) {
|
|
|
- var t = document.querySelector('#id1').contentWindow.document
|
|
|
- t.querySelector('video') &&
|
|
|
- (t.querySelector('video').play(), !t.querySelector('video').paused && t.querySelector('.playPause') && t.querySelector('.playPause').classList.add('fa-pause')),
|
|
|
- t.querySelector('audio') && t.querySelector('audio').play()
|
|
|
- } else setTimeout(e, 300)
|
|
|
- }, 800)
|
|
|
+ ;(window.loaddingSuccess = function () {
|
|
|
+ s = !0
|
|
|
+ }),
|
|
|
+ setTimeout(function e() {
|
|
|
+ if (s) {
|
|
|
+ var t = document.querySelector('#id1').contentWindow.document
|
|
|
+ t.querySelector('video') &&
|
|
|
+ (t.querySelector('video').play(), !t.querySelector('video').paused && t.querySelector('.playPause') && t.querySelector('.playPause').classList.add('fa-pause')),
|
|
|
+ t.querySelector('audio') && t.querySelector('audio').play()
|
|
|
+ } else setTimeout(e, 300)
|
|
|
+ }, 800)
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1203,7 +1203,7 @@ window.initHot = function (model) {
|
|
|
var f = new THREE.Matrix4().lookAt(c.position, h, new THREE.Vector3(0, 1, 0))
|
|
|
p.quaternion = new THREE.Quaternion().setFromRotationMatrix(f)
|
|
|
}
|
|
|
- ; (p.callback = done), (p.duration = options.duration || 1500), (p.mode = 'panorama'), (p.aimDuration = options.aimDuration)
|
|
|
+ ;(p.callback = done), (p.duration = options.duration || 1500), (p.mode = 'panorama'), (p.aimDuration = options.aimDuration)
|
|
|
player.flyToNewMode(p)
|
|
|
}
|
|
|
}
|