xzw 5 years ago
parent
commit
9f94d00d95
5 changed files with 177 additions and 122 deletions
  1. 8 16
      css/lzb.css
  2. 16 12
      edit.html
  3. 55 34
      js/edit.js
  4. 50 27
      js/main_2020_edit.js
  5. 48 33
      js/main_2020_show.js

+ 8 - 16
css/lzb.css

@@ -393,22 +393,14 @@ ul.MenuOptions li.chosen {
 }
 
 /*fyz, 修改添加导览样式*/
-
-.addTour {
-    position: fixed;
-    height: 3.2vw;
-    width: inherit;
-    z-index: 1;
-    background-color: rgba(38, 39, 41, 1);
-}
-
+ 
 .remark {
     display: block;
     text-align: left;
     color: #ababab;
     line-height: 1.5 !important;
     letter-spacing: 0.1px;
-    text-align: justify;
+    /* text-align: justify; */
 }
 
 .toolRight .addSpot .buttons, .toolRight .addTour .buttons {
@@ -477,9 +469,7 @@ ul.MenuOptions li.chosen {
     padding-top: 1.4vw !important;
 }
 
-.tourSelectWarp {
-    padding-top: 3.4vw !important;
-}
+ 
 
 #tourSwitchTitle {
     margin: 0;
@@ -520,6 +510,7 @@ ul.MenuOptions li.chosen {
     padding: 0 !important;
     background-color: #616161 !important;
     margin-right: 15px;
+    top:-2px;
 }
 
 .mui-switch:before {
@@ -921,7 +912,7 @@ ul.MenuOptions li.chosen {
 #webgl .overlayGui.snapshotGui {
     display: none;
     width: calc(84% - 36px);
-    height: calc(100% - 140px);
+    height: calc(100% - 180px);
     border: 1px dotted rgba(255, 255, 255, 0.8);
     left: calc(8% + 18px);
     top: 86px;
@@ -975,13 +966,13 @@ ul.MenuOptions li.chosen {
     border-radius: 5px;
     cursor: pointer;
     line-height: 105px;
+    background-size: 100%;
 }
 
 .toolRight .screen .shotImg.blank {
     background-image: url("../images/myModel.jpg");
     opacity: 0.8;
-    cursor: default;
-    background-size: 100%;
+    cursor: default; 
 }
 
 .toolRight .hotpoint .spotList>ul>li,  .overlayList li {
@@ -1238,6 +1229,7 @@ ul.MenuOptions li.chosen {
     transform: rotateZ(45deg);
     background: #c77a7a;
     border-radius: 50%;
+    z-index:1000;
 }
 
 .edit-fun-images a.result>img {

+ 16 - 12
edit.html

@@ -1062,10 +1062,10 @@
                 <div class="screen content hide">
                     <ul>
                         <li>
-                            <!-- <div class="itemTitle">
+                            <div class="itemTitle">
                                 <span>当前初始视角</span>
                             </div>
-                            <div class="shotImg innerBtn blank"></div> -->
+                            <div class="shotImg innerBtn blank"></div>
                             <label class="remark">初始视角是进入场景后飞向的第一个画面。</label>
                         </li>
                     </ul>
@@ -1161,13 +1161,7 @@
                                         value="hideMouseMarker" id="hideMouseMarker">
                                     <label for="hideMouseMarker"></label>
                                     <label for="hideMouseMarker">隐藏鼠标标记 </label>
-                                </li>
-                                <li>
-                                    <input name="hideMouseMarker" class="editCheckbox" type="checkbox"
-                                        value="hideMouseMarker" id="hideMouseMarker">
-                                    <label for="hideMouseMarker"></label>
-                                    <label for="hideMouseMarker">显示场景热点列表 </label>
-                                </li>
+                                </li> 
                                 <li>
                                     <input name="g_specialScene" class="editCheckbox" type="checkbox"
                                         value="g_specialScene" id="g_specialScene">
@@ -1181,6 +1175,12 @@
                                     <label for="twoData">启动二代数据 <i class="colorRed">-请慎重选择</i> </label>
                                 </li>
                             </ul>
+                            <ul>
+                                <li>
+                                    <label class="remark">注: <br>特殊大场景:一般不勾选,是对某些需要特殊处理的场景设置的。如果勾选了还需要将处理的内容写进SpecialScene.js,否则没有作用。
+                                    <br><br>启动二代数据:和tile贴图有关。</label>
+                                </li>
+                            </ul>     
                         </li>
                     </ul>
                 </div>
@@ -1211,7 +1211,7 @@
                         <div id="tourEdit" class="secondary  editDetail  atRight">
                             <div class="itemTitle head">
                                 <span>导览编辑</span>
-                                <a class="close"></a>
+                                <!-- <a class="close"></a> -->
                             </div>
                             <div class="content">
                                 <ul>
@@ -1259,7 +1259,7 @@
                             </div>
                             <div class="buttons tail">
                                 <button id="tourSubmit" class="submit innerBtn">完成</button>
-                                <button class="cancel innerBtn">取消</button>
+                                <!-- <button class="cancel innerBtn">取消</button> -->
                             </div>
 
                         </div>
@@ -1302,7 +1302,11 @@
                 </div>
                 <div class="wallDesign content hide"></div>
                 <div class="panoVisible content hide">
-                    <ul class="view-setting"><li ><div class="itemTitle"><span>漫游可行</span></div><div  class="remark">通过设置漫游可行,进一步优化在漫游时出现的体验;例如,您在漫游时,出现穿透房间的情况。</div><div  class="remark" style="margin-top: 10px;">通过点选各个漫游点的连线即可设置漫游点的可行性。</div></li></ul>
+                    <ul class="view-setting"><li ><div class="itemTitle"><span>漫游可行</span></div>
+                        <div  class="remark">通过设置漫游可行,进一步优化在漫游时出现的体验;例如,您在漫游时,出现穿透房间的情况。</div>  
+                        <div  class="remark">点击“保存当前设置”后展示页面立即生效。</div>
+                        </li>
+                    </ul>
                 </div>
                 <div class="overlay content hide">
                     <ul>

+ 55 - 34
js/edit.js

@@ -2,10 +2,8 @@ var ceshi = '';
 // var ceshi = 'http://192.168.0.135:8105';
  var ceshi = 'http://47.107.252.54:8105';
 
-  
-//var token = "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsInJvbGUiOm51bGwsIm1hbmFnZXIiOm51bGwsImlkIjoxLCJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNTk2NTA0NDIyLCJpYXQiOjE1OTY0MTgwMjIsImp0aSI6IjRlNmZmZDgxLTUxMTUtNDZjNS1iNjlhLTY0ZDM2YzJmOGQ4ZiJ9.ou57-8znUElcMvT2e-XfJt9Vw4_BUfA3bHW37xjeQvc"//window.localStorage.dcj_token                                    
- 
-var token = window.localStorage.dcj_token
+var token = "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsInJvbGUiOm51bGwsIm1hbmFnZXIiOm51bGwsImlkIjoxLCJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNTk2NzAxNjAyLCJpYXQiOjE1OTY2MTUyMDIsImp0aSI6Ijk0YjA5YTg1LWViY2ItNDE1Yy04OGVmLWU0MDM1M2UzYmIxYyJ9.Uzi95n0kYXp7bdpY77MdLtTpPL_Fq-jn0tE7gjg6AzA"
+//var token = window.localStorage.dcj_token
  
 
 function reData(data,type) {
@@ -171,12 +169,14 @@ EditTools.prototype.saveAll = function () {
     var info = {
       name: $('#pjtName').val(),
       summary: $('#info-summary').val(),
+      weixinDesc:$('#weixin-summary').val(),
       backgroundMusic: $('#query-bgm').attr('href'),
       hoticon: JSON.parse($(".hotStyle-item li.active").attr("data-val")),
       camera_start: $('#camera-start')[0].data,
       loadlogo: $("#loadlogo").is(':checked'),
       special: $("#g_specialScene").is(':checked'),
       vision_version: $("#twoData").is(':checked') ? "1.1.562.17209" : false,
+      
       /************************************** 方奕卓 场景可配置项 ******************************************/
       hotImageScale: $("#hotImgScale").is(':checked'),  // 热点图片可放大
       hideFloorMarker: $("#hideFloorMarker").is(':checked'),  // 地面标记
@@ -188,7 +188,7 @@ EditTools.prototype.saveAll = function () {
       hotIconScale: $('#hotIconScale input').val(),      // 热点缩放
       supportsVR: $('#VRSwitch input').is(':checked'),   // 开启VR功能
     }
-
+ 
 
 
     var overlayInfo = []
@@ -199,7 +199,7 @@ EditTools.prototype.saveAll = function () {
 
 
 
-    info.weixinDesc = $('#weixin-summary').val();
+    
     $.ajax({
       method: 'POST',
       headers:{
@@ -256,7 +256,9 @@ SceneInformation.prototype.init = function (data, data2) {
   $(".model-title2").text(data.model.name);
   $('#pjtName').val(data.model.name);
   $('#info-summary').val(data.model.summary);
-  if (data2) $('#weixin-summary').val(data2.weixinDesc);
+  //if (data2) $('#weixin-summary').val(data2.weixinDesc);
+    $('#weixin-summary').val(data.weixinDesc);
+
 
   for (var i = 0; i < $options.length; i++) {
     if ($options.eq(i).attr('data-val') === JSON.stringify(data.hoticon)) {
@@ -264,21 +266,30 @@ SceneInformation.prototype.init = function (data, data2) {
     }
   }
 
-  $('#camera-start')[0].data = data.model.camera_start;
-
+  $('#camera-start')[0].data = data.camera_start;
+    $(".shotImg.innerBtn").on("click",()=>{
+        var EntryInfo = $('#camera-start')[0].data
+        if(EntryInfo){
+            var to = player.model.panos.get(EntryInfo.pano.uuid);
+            var q = new THREE.Quaternion().fromArray(EntryInfo.camera.quaternion);
+            var lookAtPoint = new THREE.Vector3(0, 0, -1).applyQuaternion(q).add(to.position);
+            player.flyToPano({ pano: to, lookAtPoint: lookAtPoint })
+        }
+    })
+    
   /*************方奕卓 其他项的初始化操作 ************/
   initColorElem(data);
   addListener();  // 给其他元素绑定事件
   if (data.momentTour === 'black') {
     momentTour.prop('checked', true);
   }
-  if (data.showHotListSta === 'true') {
+  if (data.showHotListSta && data.showHotListSta != "false") {
     hotListSwitch.prop('checked', true);
   }
-  if (data.hotIconScale && parseFloat(data.hotIconScale) < 1.5 && parseFloat(data.hotIconScale) > 0.3) {
+  if (data.hotIconScale && parseFloat(data.hotIconScale) <= 1.5 && parseFloat(data.hotIconScale) >= 0.3) {
     hotIconScale.val(parseFloat(data.hotIconScale));
   }
-  if (data.supportsVR === 'true') {
+  if (data.supportsVR) {
     VRSwitch.prop('checked', true);
   }
   /************************************************/
@@ -290,17 +301,17 @@ SceneInformation.prototype.init = function (data, data2) {
   }
 
   // 热点图片放大
-  if (data.hotImageScale === 'true') {
+  if (data.hotImageScale && data.hotImageScale != "false") {
     $hotImageScale[0].checked = true
   }
 
   // 隐藏地面标记
-  if (data.hideFloorMarker === 'true') {
+  if (data.hideFloorMarker && data.hideFloorMarker != "false") {
     $hideFloorMarker[0].checked = true
   }
 
-  // 隐藏鼠标标记
-  if (data.hideMouseMarker === 'true') {
+  // 隐藏鼠标标记 
+  if (data.hideMouseMarker && data.hideMouseMarker != "false") {
     $hideMouseMarker[0].checked = true
   }
 
@@ -370,29 +381,39 @@ function getSeft(seft) {
     
     // 这部分内容需要配合main_2018.js中来进行修改
     var snap = JSON.parse("{" + seft.getSnapAngleInfo() + "}")
-    this.data.camera.position = snap.metadata.camera_position;   
-    this.data.camera.quaternion = snap.metadata.camera_quaternion;   // 相机朝向
-    this.data.pano.uuid = snap.metadata.scan_id;   // 起始点位的id
+    this.data = {
+        camera :{
+            position : snap.metadata.camera_position,
+            quaternion : snap.metadata.camera_quaternion   // 相机朝向
+        },
+        pano:{
+            uuid : snap.metadata.scan_id   // 起始点位的id 
+        } 
+    } 
 
     var ev = document.createEvent("MouseEvent");//点击截取视图
     g_snapShotWidth = 240;
     g_snapShotHeight = 118;
     window.screenSta = 'startScreen';
     ev.initMouseEvent("snapshotBegin", true, true, document.defaultView, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
-    ev.__callback = function (imgData, info) {
-      initialPicture(imgData, info)
-    }.bind(this);
+    
+     
+    ev.__callback = (imgData, info)=>{
+        uploadImg(imgData, (rs)=>{
+          if (rs.code === 0) {
+            $(".shotImg.innerBtn").css("background-image", "url(" + rs.data + ")")
+            this.data.thumbImg = rs.data;  
+          }
+        })
+        
+    }
+    
     window.dispatchEvent(ev);
   });
-  //上传图片
-  function initialPicture(imgData) {
-    console.log(imgData);
-    uploadImg(imgData, function (rs) {
-      if (rs.code === 0) {
-        $(".shotImg.innerBtn").css("background-image", "url(" + rs.data + ")")
-      }
-    })
-  }
+   
+  
+  
+
 }
 
 
@@ -1207,7 +1228,7 @@ EditGuide.prototype.saveGuide = function () {
   if (tourAudio[0].files.length > 0 && this.targetTourPoint[0].musicSta) {  // 已添加导览音乐
     new Promise(function (resolve, reject) {
       uploadMiuse(tourAudio[0].files[0], function (res) {
-        resolve(res.content);
+        resolve(res.data);
       })
     }).then(function (src) {
       var audio = new Audio();
@@ -1362,8 +1383,8 @@ EditGuide.prototype.uploadGuide = function (urlData, guide, renew, target) {
         delete that.tourAudio[oldId];  // 删除导览音频中的旧导览id
         target.closest('li')[0].data = args;  // 更新数据
         target.closest('li').find('#tourBg')[0].style.backgroundImage = 'url(' + args.thumbnail_signed_src + ')';
-        target.text(args.name);  // 更新导览列表中的导览名称
-        $('#tourEdit').find('#tourNameInput').val(args.name);   // 修改输入框内容
+        args.name = $('#tourEdit').find('#tourNameInput').val()//target.text(args.name);  // 更新导览列表中的导览名称  //不改名字
+        //$('#tourEdit').find('#tourNameInput').val(args.name);   // 修改输入框内容
       } else {
         var index = $(".tourList ul li").length + 1;
         var $li = $(editGuide.dom(index, args.name, args.thumbnail_signed_src));

+ 50 - 27
js/main_2020_edit.js

@@ -4559,8 +4559,9 @@ function o(a, s, l) {
                 if (void 0 !== g_data2.tourAudio && null !== g_data2.tourAudio) {
                     var r = g_data2.tourAudio[this.model.heroLocations[this.destinationItem].sid];
                     if (r && 0 < r.music.length) {
-                        var o = g_Prefix + r.music;
-                        g_tourAudio.src = o,
+                         
+                        var o = r.music.includes(g_Prefix.slice(-10)) ? r.music :  g_Prefix + r.music;
+                        g_tourAudio.src = o;
                         g_tourAudio.load(),
                         g_tourAudio.crossOrigin = "anonymous",
                         g_tourAudio.oncanplaythrough = function() {
@@ -6306,7 +6307,7 @@ function o(a, s, l) {
                 $(this).removeClass("open").children("img").attr("src", "images/auto-suspend.png")),
                 l()
             }),
-            "true" === window.MP_PREFETCHED_MODELDATA.showHotListSta && ($("#hotList").css("display", ""),
+            window.MP_PREFETCHED_MODELDATA.showHotListSta && ($("#hotList").css("display", ""),
             $("#hotList").on("click", function(e) {
                 y(e);
                 var t = $("#hotListWrap")[0];
@@ -6853,16 +6854,20 @@ function o(a, s, l) {
                 }
                 var s = $.Deferred()
                   , l = s.resolve.bind(s);
-                return ye = !0,
-                _(e),
+                  
+                  
+                ye = !0,
+                _(e);
                 e.data.player_options && function(e) {
                     Ce.tourControls.visible = true//e.tour_buttons && S.valueFromHash("gt", 1),
                     Ce.coBrand.visible = e.presented_by && 1 !== M.specialEdition && M.brand && !S.valueFromHash("mls", !1),
                     Ce.highlight.visible = /* e.highlight_reel && */ 1 !== M.specialEdition && M.showHighlights
                 }(e.data.player_options),
-                1 === M.specialEdition && $("body").addClass("specialEdition"),
-                se.localizeGUI(),
-                function(i) {
+                1 === M.specialEdition && $("body").addClass("specialEdition");
+                se.localizeGUI();
+                
+                
+                !function(i) {
                     function e(e, t) {
                         return !!i.player_options[e] && i[t || e]
                     }
@@ -6895,18 +6900,18 @@ function o(a, s, l) {
                         url: e("external_url"),
                         socialSharing: i.enable_social_sharing && i.is_public
                     })
-                }(e.data),
-                r || $(".quick").addClass("hidden"),
-                e.data.image && !r && function(e) {
-                    $("<img/>").attr("src", e).on("load", function() {
-                        $("#gui-thumb").css("backgroundImage", "url(" + e + ")").fadeIn(500),
-                        $(this).remove()
-                    })
-                }(e.data.image),
+                }(e.data);
+                
+                
+                
+                r || $(".quick").addClass("hidden");
+                
+                
+                
                 n ? (R.impression(),
                 a()) : (o.setWaitingStartTime(),
-                N.show(r, a)),
-                s
+                N.show(r, a)) 
+                return  s
             }
             ,
             Le.exports.endLoading = function(e, t, i) {
@@ -13754,8 +13759,8 @@ function o(a, s, l) {
                         e.preventDefault()
                     }
                     window.MP_PREFETCHED_MODELDATA.hoticon && (g_HotImage = {
-                        point: "https://super.4dage.com/images/4dagePoint2.png",//window.MP_PREFETCHED_MODELDATA.hoticon.default,
-                        point2: "https://super.4dage.com/images/4dagePoint.png"//window.MP_PREFETCHED_MODELDATA.hoticon.higt
+                        point: window.MP_PREFETCHED_MODELDATA.hoticon.default || "https://super.4dage.com/images/4dagePoint2.png", 
+                        point2: window.MP_PREFETCHED_MODELDATA.hoticon.higt || "https://super.4dage.com/images/4dagePoint.png" 
                     });
                     
                   
@@ -13908,7 +13913,22 @@ function o(a, s, l) {
                         }).then(function() {
                             return g.loadPanos()
                         }).then(function() {
-                            s = U.getStartCameraOptions(g, g.panos),
+                            s = U.getStartCameraOptions(g, g.panos);
+                            //初始画面
+                            window.MP_PREFETCHED_MODELDATA.camera_start && window.MP_PREFETCHED_MODELDATA.camera_start.thumbImg  && function(e) {
+                                $("<img/>").attr("src", e).on("load", function() {
+                                    $("#gui-thumb").css("backgroundImage", "url(" + e + ")").fadeIn(500),
+                                    $(this).remove()
+                                    $(".shotImg.innerBtn").removeClass('blank').css("background-image", "url(" + e + ")")
+                                })
+                                
+                            }(window.MP_PREFETCHED_MODELDATA.camera_start.thumbImg);
+                
+                            
+                            
+                            
+                            
+                            
                             d = function(e) {
                                 var t = new E.PerspectiveCamera;
                                 t.layers.enable(te.PANOMARKERS),
@@ -16956,9 +16976,12 @@ function o(a, s, l) {
             t.prototype.loadLabels = function() {
                 this.labels = new b(this);
                 var e = $.Deferred();
-                if (window.MP_PREFETCHED_MODELDATA.model.player_options.labels && (this.showingLabels = !0),
-                !this.showingLabels)
+                /* if (window.MP_PREFETCHED_MODELDATA.model.player_options.labels && (this.showingLabels = !0),
+                !this.showingLabels) */
                     return e.resolve();
+                    
+                    
+                    
                 var t = g_Prefix + "data/" + this.sid + "/labels.json";
                 return this.labels.load(t, !this.isPublic).done(e.resolve.bind(e)).fail(function() {
                     R.warn("Getting labels failed, not displaying labels."),
@@ -17646,7 +17669,7 @@ function o(a, s, l) {
                 this.skyboxMesh.updateMatrix(),
                 this.skyboxMesh.updateMatrixWorld(),
                 this.marker = null,
-                this.showFloorMarker = this.showFloorMarker = void 0 === window.MP_PREFETCHED_MODELDATA.hideFloorMarker || "false" === window.MP_PREFETCHED_MODELDATA.hideFloorMarker,
+                this.showFloorMarker = this.showFloorMarker =  !window.MP_PREFETCHED_MODELDATA.hideFloorMarker,
                 this.isAligned() && (this.marker = new s.Mesh(_,new s.MeshBasicMaterial({
                     map: b,
                     side: s.DoubleSide,
@@ -18239,7 +18262,7 @@ function o(a, s, l) {
             t.map.value = d,
             t.opacity.value = 0,
             t.color.value.set(o.reticuleColor),
-            t.showMouseMarker = void 0 === window.MP_PREFETCHED_MODELDATA.hideMouseMarker || "false" === window.MP_PREFETCHED_MODELDATA.hideMouseMarker,
+            t.showMouseMarker = !window.MP_PREFETCHED_MODELDATA.hideMouseMarker;
             r.Mesh.call(this, new r.PlaneBufferGeometry(.4,.4,1,1), new r.RawShaderMaterial({
                 side: r.DoubleSide,
                 depthWrite: !1,
@@ -28132,8 +28155,8 @@ function o(a, s, l) {
                             }
                             return i
                         }(e, t);
-                    else if (e.data.camera_start) {
-                        var n = e.data.camera_start;
+                    else if (window.MP_PREFETCHED_MODELDATA.camera_start) {
+                        var n = window.MP_PREFETCHED_MODELDATA.camera_start;
                         try {
                             0 < Object.keys(n).length && !a.isEmptyQuaternion(n.camera.quaternion) && (i.mode = l.convertWorkshopModeInt(n.mode),
                             i.position = (new c.Vector3).fromArray(n.camera.position),   

+ 48 - 33
js/main_2020_show.js

@@ -4690,7 +4690,7 @@ window.Modernizr = function(n, e, t) {
                     
                     if(tM && tM.music.length > 0){
                         
-                        var s =  g_Prefix+tM.music;
+                        var s =  tM.music.includes(g_Prefix.slice(-10)) ? tM.music :  g_Prefix + tM.music;
                   
                          
                         g_tourAudio.src = s;     
@@ -6320,7 +6320,13 @@ window.Modernizr = function(n, e, t) {
                     }()),
                     Ae.on(ye.CLOSED, le.reset)
                 }
-                if (Q.vr.enabled && e.supportsVR && !K.valueFromHash("mls", 0))
+                if (Q.vr.enabled && e.supportsVR && !K.valueFromHash("mls", 0)){
+                    
+                     /*********************** 方奕卓 VR功能事件监听 ********************/
+                    
+                    K.isMobile() && $('#vr').css('display', '');    // 显示vr功能按钮
+                    
+                    
                     switch (Q.vr.option) {
                     case Pe.CONTEXTUAL:
                         i();
@@ -6330,6 +6336,7 @@ window.Modernizr = function(n, e, t) {
                         break;
                     case Pe.NONE:
                     }
+                }
             }
             function A(e, t) {
                 $("#play").find("a").on("mousedown touchstart", function(e) {
@@ -6409,12 +6416,7 @@ window.Modernizr = function(n, e, t) {
             function I(e) {
                 return e.describe().inTransition
             }
-            function E(e) {
-                $("<img/>").attr("src", e).on("load", function() {
-                    $("#gui-thumb").css("backgroundImage", "url(" + e + ")").fadeIn(500),
-                    $(this).remove()
-                })
-            }
+            
             function b(e, t, i) {
                 Fe = e.heroLocations.length;
                 var n = '<li class="thumbImg" data-index=""><img src=""></li>'
@@ -6587,7 +6589,9 @@ window.Modernizr = function(n, e, t) {
                 Re.localizeGUI(),
                 T(e.data),
                 r || $(".quick").addClass("hidden"),
-                e.data.image && !r && E(e.data.image),
+                //e.data.image && !r && E(e.data.image),
+                
+                
                 n ? (J.impression(),
                 a()) : (o.setWaitingStartTime(),
                 oe.show(r, a)),
@@ -7251,10 +7255,7 @@ window.Modernizr = function(n, e, t) {
             
             /*****************************************************************/
 
-            /*********************** 方奕卓 VR功能事件监听 ********************/
-            if(window.MP_PREFETCHED_MODELDATA.supportsVR === 'true'){
-                $('#vr').css('display', '');    // 显示vr功能按钮
-            }
+            
 
             $("#more-menu-button").on("click", function(e) {
                 l(e);
@@ -14231,6 +14232,20 @@ window.Modernizr = function(n, e, t) {
 				window.MP_PREFETCHED_MODELDATA = data; 
 				progressUpdate(0.7);
 				StartLoad(); //xzw  someData.js是我整合的 原本在html里 但这样每个场景的html都不一样了
+                if(data.weixinDesc){
+                    g_weixinObj.desc =  data.weixinDesc;
+                }
+                window.wx && manage.weixinShare();  
+                //初始画面
+                data.camera_start && data.camera_start.thumbImg && E(data.camera_start.thumbImg)
+                function E(e) {
+                    $("<img/>").attr("src", e).on("load", function() {
+                        $("#gui-thumb").css("backgroundImage", "url(" + e + ")").fadeIn(500),
+                        $(this).remove()
+                    })
+                }
+
+                
             })
 			
 			function StartLoad(){//当加载完data后
@@ -14592,13 +14607,10 @@ window.Modernizr = function(n, e, t) {
                 
                 //czj 判断someData 有没有hoticon字段 修改热点的样式
                 if (window.MP_PREFETCHED_MODELDATA.hoticon){
-                    /* g_HotImage = {
-                        "point": window.MP_PREFETCHED_MODELDATA.hoticon.default,
-                        "point2": window.MP_PREFETCHED_MODELDATA.hoticon.higt
-                    } */
+                    
                     g_HotImage = {
-                        point: "https://super.4dage.com/images/4dagePoint2.png",//window.MP_PREFETCHED_MODELDATA.hoticon.default,
-                        point2: "https://super.4dage.com/images/4dagePoint.png"//window.MP_PREFETCHED_MODELDATA.hoticon.higt
+                        point: "https://super.4dage.com/images/4dagePoint2.png"||window.MP_PREFETCHED_MODELDATA.hoticon.default,
+                        point2: "https://super.4dage.com/images/4dagePoint.png"||window.MP_PREFETCHED_MODELDATA.hoticon.higt
                     } ;
                 }
                 //czj 判断someData 有没有backgroundMusic 添加音乐
@@ -17210,6 +17222,12 @@ window.Modernizr = function(n, e, t) {
 				
 				
 				this.hots = {};
+                
+                
+               
+                
+                
+                
             }
             function r() {
                 try {
@@ -17469,17 +17487,11 @@ window.Modernizr = function(n, e, t) {
                     }.bind(this)).fail(function(){
                         console.log('Data.js is empty');
                         dataJsPromise.resolve();
-                    })
-
-                    if(t.weixinDesc){
-                        g_weixinObj.desc =  t.weixinDesc;
-                    }
-                    
-                    window.wx && manage.weixinShare();
+                    }) 
                     e.resolve();
                 }.bind(this)).fail(function() {
                     console.log('没有热点');
-                    window.wx && manage.weixinShare();
+                    
                     e.resolve()
                 }),
                 e
@@ -17706,9 +17718,12 @@ window.Modernizr = function(n, e, t) {
                 this.labels = new x(this);
                 var e = $.Deferred();
                 //加载俯视图的标签  注释这个备注就会加载
-                window.MP_PREFETCHED_MODELDATA.model.player_options.labels ? this.showingLabels = true : '';
-                if (!this.showingLabels)
+                /* window.MP_PREFETCHED_MODELDATA.model.player_options.labels ? this.showingLabels = true : '';
+                if (!this.showingLabels) */
                     return e.resolve();
+                    
+                    
+                    
                // var t = this.options.urlBase + "/api/v1/jsonstore/model/labels/" + this.sid;
                 var t = g_Prefix + "data/" + this.sid + "/labels.json";
                 console.log(t);
@@ -18417,7 +18432,7 @@ window.Modernizr = function(n, e, t) {
                 this.skyboxMesh.updateMatrix(),
                 this.skyboxMesh.updateMatrixWorld(),
                 this.marker = null,
-                this.showFloorMarker = (typeof window.MP_PREFETCHED_MODELDATA.hideFloorMarker === 'undefined')?true: (window.MP_PREFETCHED_MODELDATA.hideFloorMarker === 'false')?true:false;
+                this.showFloorMarker = !window.MP_PREFETCHED_MODELDATA.hideFloorMarker;
                 this.isAligned() && (this.marker = new r.Mesh(b,new r.MeshBasicMaterial({
                     map: w,
                     side: r.DoubleSide,
@@ -19051,7 +19066,7 @@ window.Modernizr = function(n, e, t) {
             t.map.value = d,
             t.opacity.value = 0,
             t.color.value.set(o.reticuleColor),
-            t.showMouseMarker =(typeof window.MP_PREFETCHED_MODELDATA.hideMouseMarker === 'undefined')?true: (window.MP_PREFETCHED_MODELDATA.hideMouseMarker === 'false')?true:false;
+            t.showMouseMarker = !window.MP_PREFETCHED_MODELDATA.hideMouseMarker;
             r.Mesh.call(this, new r.PlaneBufferGeometry(.4,.4,1,1), new r.RawShaderMaterial({
                 side: r.DoubleSide,
                 depthWrite: !1,
@@ -29237,8 +29252,8 @@ window.Modernizr = function(n, e, t) {
                     return i;
                 if (e.heroImage)
                     i = o(e, t);
-                else if (e.data.camera_start) {
-                    var n = e.data.camera_start;
+                else if (window.MP_PREFETCHED_MODELDATA.camera_start) {
+                    var n = window.MP_PREFETCHED_MODELDATA.camera_start;
                     try {
                         Object.keys(n).length > 0 && !l.isEmptyQuaternion(n.camera.quaternion) && (i.mode = h.convertWorkshopModeInt(n.mode),
                         i.position = n.camera.position,