|
@@ -53,14 +53,18 @@ 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/HainanMuseum/hot'
|
|
|
)
|
|
|
+ // return src.replace(
|
|
|
+ // 'https://www.4dmodel.com/SuperTwo/hot_online1',
|
|
|
+ // 'http://localhost:8080'
|
|
|
+ // )
|
|
|
// return src
|
|
|
}
|
|
|
var removeSrcPostMark = function (url) {
|
|
@@ -363,7 +367,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里
|
|
@@ -451,7 +455,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
|
|
|
}
|
|
@@ -690,9 +694,9 @@ window.initHot = function (model) {
|
|
|
visibility != void 0
|
|
|
? visibility
|
|
|
: !this.info.visiblePanos ||
|
|
|
- (type == 'every'
|
|
|
- ? panos.every(pano => this.info.visiblePanos.includes(pano.id))
|
|
|
- : panos.some(pano => this.info.visiblePanos.includes(pano.id))) //type为every时,需要panos中每个都可见才显示
|
|
|
+ (type == 'every'
|
|
|
+ ? panos.every(pano => this.info.visiblePanos.includes(pano.id))
|
|
|
+ : panos.some(pano => this.info.visiblePanos.includes(pano.id))) //type为every时,需要panos中每个都可见才显示
|
|
|
|
|
|
convertTool.updateVisible(this, 'visi', visible)
|
|
|
|
|
@@ -1194,32 +1198,32 @@ 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)
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1265,7 +1269,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.callback = done),
|
|
|
(p.duration = options.duration || 1500),
|
|
|
(p.mode = 'panorama'),
|
|
|
(p.aimDuration = options.aimDuration)
|