|
@@ -18574,6 +18574,12 @@ window.Modernizr = function(n, e, t) {
|
|
|
console.error("data2 is null")
|
|
|
}else{
|
|
|
g_data2 = hotMatcher(t);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
this.hotsCount = 0;
|
|
|
/* for(var i in t.hots){
|
|
|
this.hotsCount ++;
|
|
@@ -18584,25 +18590,36 @@ window.Modernizr = function(n, e, t) {
|
|
|
window.hotData = t.hots
|
|
|
t.hots && this.createHotItem(t.hots, this.hots); */
|
|
|
|
|
|
-
|
|
|
+ var changeURL = function(url){
|
|
|
+ var a = url.split('/data/')[1];
|
|
|
+ return 'https://ossxiaoan.4dage.com/cms_army_macao_data/' + a
|
|
|
+ }
|
|
|
|
|
|
//因为热点保存后在hots里的顺序会被修改,所以使用order来记录顺序,这里要重排序:
|
|
|
window.hotData = {}
|
|
|
if(t.hots){
|
|
|
var sids = Object.keys(t.hots).sort((a,b)=>{return t.hots[a].order - t.hots[b].order});
|
|
|
|
|
|
- sids.forEach((sid)=>{
|
|
|
- this.hotsCount++,
|
|
|
- this.hots[sid] = new Hot(sid,t.hots[sid] ,this);
|
|
|
- t.hots[sid].infoAttribute || (t.hots[sid].infoAttribute = {})
|
|
|
- this.hots[sid].initStyleImg(t.hots[sid].infoAttribute);
|
|
|
- window.hotData[sid] = t.hots[sid];
|
|
|
+ sids.forEach((sid)=>{
|
|
|
+ this.hotsCount++
|
|
|
+ var data = t.hots[sid]
|
|
|
+ this.hots[sid] = new Hot(sid, data ,this);
|
|
|
+ data.infoAttribute || (data.infoAttribute = {})
|
|
|
+
|
|
|
+ data.infoAttribute.images = data.infoAttribute.images.map(e=>changeURL(e))
|
|
|
+ data.infoAttribute.styleImg = data.infoAttribute.styleImg.map(e=>changeURL(e))
|
|
|
+ data.infoAttribute.video = data.infoAttribute.video.map(e=> {return {url:changeURL(e.url)}})
|
|
|
+
|
|
|
+ this.hots[sid].initStyleImg(data.infoAttribute);
|
|
|
+ window.hotData[sid] = data;
|
|
|
})
|
|
|
}
|
|
|
this.createHotItem(window.hotData, this.hots);
|
|
|
|
|
|
|
|
|
-
|
|
|
+ g_data2.overlays.forEach(e=>{
|
|
|
+ e.file = changeURL(e.file)
|
|
|
+ })
|
|
|
|
|
|
|
|
|
|