Explorar o código

(本地化加上)的修改

shaogen1995 %!s(int64=2) %!d(string=hai) anos
pai
achega
24619c958c
Modificáronse 2 ficheiros con 15 adicións e 19 borrados
  1. 12 17
      SWKK/src/utils/api.js
  2. 3 2
      vue/src/views/Goods/components/Three.vue

+ 12 - 17
SWKK/src/utils/api.js

@@ -1,23 +1,18 @@
-
 export const baseURL = 'http://project.4dage.com:8036' //线上地址
 //export const baseURL ='http://192.168.20.55:8036' //本地地址
 //export const baseURL ='' //甲方有服务器的打包地址
 export const addNumAPI = (type) => {
   fetch(`${baseURL}/api/visit/saveType`, {
-    method: "post",
-    body: JSON.stringify({
-      moduleType: "web",
-      type,
-    }),
-    headers: {
-      appId:
-        "E9A27605CEB3FFAF48F4D7B86858A03D9868419F60B5A45027FB6E6867F4EDA9",
-      "Content-Type": "application/json",
-    },
-  })
+      method: "post",
+      body: JSON.stringify({
+        moduleType: "web",
+        type,
+      }),
+      headers: {
+        appId: "E9A27605CEB3FFAF48F4D7B86858A03D9868419F60B5A45027FB6E6867F4EDA9",
+        "Content-Type": "application/json",
+      },
+    })
     .then((res) => res.text()) //请求得到的数据转换为text
-    .then((res) => {
-    });
-}
-
-
+    .then((res) => {});
+}

+ 3 - 2
vue/src/views/Goods/components/Three.vue

@@ -74,8 +74,9 @@
         </div>
       </div>
       <div class="modelBox" v-if="modelBoxShow">
+        <!-- :src="`https://4dscene.4dage.com/culturalrelics/YHTLSJNG/Model2.html?m=${info.bs}`" -->
         <iframe
-          :src="`https://4dscene.4dage.com/culturalrelics/YHTLSJNG/Model2.html?m=${info.bs}`"
+          :src="`/YHTLSJNG/Model2.html?m=${info.bs}`"
           frameborder="0"
         ></iframe>
         <div class="txtInfo">
@@ -174,7 +175,7 @@ export default {
     },
     data() {
       this.elDom = document.querySelector(".main");
-      this.elDom.scrollLeft = 0
+      this.elDom.scrollLeft = 0;
       this.getData();
     },
   },