소스 검색

commit in 4.1

小太阳 6 년 전
부모
커밋
9725390fdb
4개의 변경된 파일76개의 추가작업 그리고 21개의 파일을 삭제
  1. 22 18
      js/main_2018.js
  2. 49 0
      js/manage.js
  3. 4 2
      js/myShow.js
  4. 1 1
      js/加密/main_2018.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 22 - 18
js/main_2018.js


+ 49 - 0
js/manage.js

@@ -254,4 +254,53 @@ function showLogo(){
     $("#title-logo").hide();
     $(".title-container").css("justify-content","center")
 }
+//czj 添加随机的时间
+function randomTime(){
+    return new Date()
+};
+function matcher(data){
+    if(!data || !g_version ) return data;
+    delete data.model.vision_version;
+    var _data = {
+        files: {
+            "templates": ["images/images{{number}}/{{filename}}"]
+        },
+        model :{
+            sid :window.number,
+            camera_start:{
+                camera: {
+                    zoom: "-1",
+                    quaternion: [
+                        JSON.parse(data.model.images[0].metadata).camera_quaternion.z,
+                        JSON.parse(data.model.images[0].metadata).camera_quaternion.w,
+                        JSON.parse(data.model.images[0].metadata).camera_quaternion.x,
+                        JSON.parse(data.model.images[0].metadata).camera_quaternion.y
+                    ]
+                },
+                pano: { uuid: JSON.parse(data.model.images[0].metadata).scan_id },
+                mode: "0"
+            }
+        },
+        sid: window.number,
+        hoticon: {
+            default: "https://super.4dage.com/images/4dagePoint2.png",
+            higt: "https://super.4dage.com/images/4dagePoint.png"
+        },
+        special: "false",
+        weixinDesc: ""
+    };
+    $.extend(true,data,_data)
+    return data;
+}
+
+function hotMatcher(data){
+    if(!data || !g_version) return data;
+    data.tourAudio = data.audio;
+    return data;
+}
+
+//兼容一代的場景
+//請求地址統一管理
+var g_version = manage.number("version");
+g_version === "one" ? g_Prefix = g_onePregix : '';
 

+ 4 - 2
js/myShow.js

@@ -1,6 +1,8 @@
 var g_ProjectName=window.location.pathname.substring(window.location.pathname.indexOf("/")+1,window.location.pathname.lastIndexOf("/"));
-//var g_Prefix="https://super.4dage.com/";
-var g_Prefix=window.location.href.substring(0,window.location.href.indexOf("/index.html")+1);
+var g_Prefix="https://super.4dage.com/";
+var g_onePregix  = 'https://bigscene.4dage.com/';
+//var g_Prefix=window.location.href.substring(0,window.location.href.indexOf("/index.html")+1);
+var g_location = window.location.origin;
 var s = window.location.href.split('/');
 s.pop();
 //var g_Prefix = s.join('/');

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
js/加密/main_2018.js