浏览代码

编辑器增加隐藏顶部介绍功能

shaogen1995 6 月之前
父节点
当前提交
329a6cb809
共有 5 个文件被更改,包括 27 次插入0 次删除
  1. 6 0
      edit.html
  2. 8 0
      js/edit.js
  3. 2 0
      js/main_2020_edit.js
  4. 3 0
      js/main_2020_show.js
  5. 8 0
      js/manage.js

+ 6 - 0
edit.html

@@ -1521,6 +1521,12 @@
                                     <label for="loadlogo">隐藏公司logo </label>
                                     <label for="loadlogo">隐藏公司logo </label>
                                 </li>
                                 </li>
                                 <li class="editCheckbox">
                                 <li class="editCheckbox">
+                                    <input name="topText"  type="checkbox" value="topText"
+                                        id="topText">
+                                    <label for="topText"></label>
+                                    <label for="topText">隐藏顶部介绍 </label>
+                                </li>
+                                <li class="editCheckbox">
                                     <input name="hotImgScale"  type="checkbox" value="hotImgScale"
                                     <input name="hotImgScale"  type="checkbox" value="hotImgScale"
                                         id="hotImgScale">
                                         id="hotImgScale">
                                     <label for="hotImgScale"></label>
                                     <label for="hotImgScale"></label>

+ 8 - 0
js/edit.js

@@ -333,6 +333,7 @@ EditTools.prototype.initSaveAll = function() {
                 hoticon: JSON.parse($(".hotStyle-item li.active").attr("data-val")),
                 hoticon: JSON.parse($(".hotStyle-item li.active").attr("data-val")),
                 camera_start: $(".screen .shotImg.innerBtn")[0].cameraData,
                 camera_start: $(".screen .shotImg.innerBtn")[0].cameraData,
                 loadlogo: $("#loadlogo").is(':checked'),
                 loadlogo: $("#loadlogo").is(':checked'),
+                topText: $("#topText").is(':checked'),
                 special: $("#g_specialScene").is(':checked'),
                 special: $("#g_specialScene").is(':checked'),
                 vision_version: $("#twoData").is(':checked') ? "1.1.562.17209" : false,
                 vision_version: $("#twoData").is(':checked') ? "1.1.562.17209" : false,
                 roomLabels: that.editLabel.getSavingInfo(),
                 roomLabels: that.editLabel.getSavingInfo(),
@@ -692,6 +693,7 @@ SceneInformation.prototype.init = function(data, data2) {
     
     
     var $options = $('.hotStyle-item li');
     var $options = $('.hotStyle-item li');
     var $loadlogo = $("#loadlogo");
     var $loadlogo = $("#loadlogo");
+    var $topText = $("#topText");
     var $hotImageScale = $("#hotImgScale");
     var $hotImageScale = $("#hotImgScale");
     var $hideFloorMarker = $("#hideFloorMarker");
     var $hideFloorMarker = $("#hideFloorMarker");
     var $hideMouseMarker = $("#hideMouseMarker");
     var $hideMouseMarker = $("#hideMouseMarker");
@@ -792,6 +794,12 @@ SceneInformation.prototype.init = function(data, data2) {
         showLogo();
         showLogo();
     }
     }
 
 
+    // 隐藏顶部介绍
+    if(data.topText){
+        $topText[0].checked = true
+        topTextHide()
+    }
+
     // 热点图片放大
     // 热点图片放大
     if (data.hotImageScale) {
     if (data.hotImageScale) {
         $hotImageScale[0].checked = true
         $hotImageScale[0].checked = true

+ 2 - 0
js/main_2020_edit.js

@@ -14071,6 +14071,8 @@ function o(a, s, l) {
                     //隐藏公司logo
                     //隐藏公司logo
                     window.DATA.loadlogo && showLogo();
                     window.DATA.loadlogo && showLogo();
                     
                     
+                    // 隐藏顶部介绍
+                    window.DATA.topText && topTextHide();
                 
                 
                     r("./lib/three75-shim"),
                     r("./lib/three75-shim"),
                     r("./lib/array-polyfill"),
                     r("./lib/array-polyfill"),

+ 3 - 0
js/main_2020_show.js

@@ -15134,6 +15134,9 @@ window.Modernizr = function(n, e, t) {
                     showLogo();
                     showLogo();
                 }
                 }
 
 
+                // 隐藏顶部介绍
+                    window.DATA.topText && topTextHide();
+
 				e("./lib/three75-shim"),
 				e("./lib/three75-shim"),
 				e("./lib/array-polyfill"),
 				e("./lib/array-polyfill"),
 				e("./lib/performance-polyfill"),
 				e("./lib/performance-polyfill"),

+ 8 - 0
js/manage.js

@@ -1070,6 +1070,14 @@ function showLogo(){
     $("#title-logo").hide();
     $("#title-logo").hide();
     $(".title-container").css("justify-content","center")
     $(".title-container").css("justify-content","center")
 }
 }
+
+// 隐藏顶部介绍
+function topTextHide(){
+    console.log('------------------隐藏顶部');
+    
+    $('.pinTop').hide()
+}
+
 //czj 添加随机的时间
 //czj 添加随机的时间
 function randomTime(){
 function randomTime(){
     return new Date()
     return new Date()