Browse Source

修改服务器地址

shaogen1995 2 years ago
parent
commit
380d034fcb

+ 1 - 1
pc/public/index.html

@@ -33,7 +33,7 @@
     )
   ) {
     if (window.location.href.includes("pc")) {
-      window.location.href = window.location.href.replace("pc", "mobile");
+      window.location.href = window.location.origin + '/mobile/#/Cover';
       setTimeout(() => {
         location.reload(true);
       }, 200);

+ 3 - 0
pc/src/assets/styles/base.css

@@ -80,6 +80,9 @@ textarea {
   width: 100%;
   height: 100%;
 }
+#root #app .ant-image {
+  display: none;
+}
 #root .myscroll::-webkit-scrollbar {
   /*滚动条整体样式*/
   width: 3px;

+ 4 - 0
pc/src/assets/styles/base.less

@@ -98,6 +98,10 @@ textarea {
       width: 100%;
       height: 100%;
     }
+
+    .ant-image {
+      display: none;
+    }
   }
 
   .myscroll::-webkit-scrollbar {

+ 3 - 3
pc/src/pages/A1_Home/index.tsx

@@ -17,12 +17,12 @@ const sceneArr = [
   {
     id: 1,
     name: "精品文物展厅",
-    path: "/gzswc/scene/index.html#/?m=KJ-ztJ9nPQyf64",
+    path: "/scene/index.html#/?m=KJ-ztJ9nPQyf64",
   },
   {
     id: 2,
     name: "书画厅",
-    path: "/gzswc/scene/index.html#/?m=KJ-wlpyvYdFNXN",
+    path: "/scene/index.html#/?m=KJ-wlpyvYdFNXN",
   },
   {
     id: 3,
@@ -32,7 +32,7 @@ const sceneArr = [
   {
     id: 4,
     name: "中国仡佬族民族文化展厅",
-    path: "/gzswc/scene/index.html#/?m=KJ-Rytmid9ku2a",
+    path: "/scene/index.html#/?m=KJ-Rytmid9ku2a",
   },
 ];
 

+ 1 - 1
pc/src/utils/history.ts

@@ -22,4 +22,4 @@ export const urlParameter = (data: string) => {
 export const envUrl =
   process.env.NODE_ENV === "development"
     ? window.location.origin + "/goodsData"
-    : window.location.origin + "/gzswc/pc/goodsData";
+    : window.location.origin + "/pc/goodsData";

+ 1 - 1
scene/public/index.html

@@ -43,7 +43,7 @@
             )
         ) {
             if (window.location.href.includes("scene")) {
-                window.location.href = window.location.href.replace("scene", "sceneM");
+                window.location.href = window.location.href.replace("scene", "mobile/display");
                 setTimeout(() => {
                     location.reload(true);
                 }, 200);

+ 2 - 1
scene/src/views/gui/menu.vue

@@ -464,7 +464,7 @@ export default {
   }
 }
 #volume {
-  margin: 0 16px 0 20px;
+  margin-right: 16px;
 }
 #volume,
 #gui-fullscreen,
@@ -604,6 +604,7 @@ export default {
   }
 }
 .toHomeBox {
+  margin-right: 20px;
   cursor: pointer;
   position: relative;
   width: 44px;