1
0
tangning 1 dienu atpakaļ
vecāks
revīzija
2ccf0082c1
1 mainītis faili ar 39 papildinājumiem un 2 dzēšanām
  1. 39 2
      src/view/material/sceneImg.vue

+ 39 - 2
src/view/material/sceneImg.vue

@@ -234,12 +234,13 @@
                   :icon="Download"
                   >下载</el-button
                 >
-                <!-- <el-button
+                <el-button
                   class="newbut"
+                  style="display: none;"
                   :icon="Edit"
                   @click="handleAIdrawCasePhotos"
                   >AI制卷</el-button
-                > -->
+                >
               </div>
               <div
                 class="itemList"
@@ -1146,6 +1147,7 @@ async function handledrawCasePhotos(val) {
 }
 function frameLoad(sdk) {
   // 这里可以获取到mesh方法
+      console.log("返回数据",sdk)
   sdk.Scene.whenLoaded(()=>{
       console.log("返回数据",sdk.Camera.getPose())
   })
@@ -1157,6 +1159,7 @@ function handleAIdrawCasePhotos() {
   if (iframe && iframe.classList.contains("show") == false) {
       iframe.classList.add("show");
       iframe.onload = () => {
+      console.log(iframe.contentWindow, 'contentWindow');
         frameLoad(iframe.contentWindow.__sdk);
       };
       iframe.src = "http://192.168.0.125:1804/mix3d/model.html?m=SG-hx-ICEhhEnyQp2";
@@ -1486,6 +1489,40 @@ const handleOpen = (val) => {
     top: -9px;
   }
 }
+
+      #iframe-hiddens,
+      #iframe-outside {
+        display: none;
+        position: absolute;
+        z-index: -999;
+        width: 600px;
+        height: 500px;
+        pointer-events: none;
+      }
+      #iframe-hiddens.show {
+        display: block;
+        visibility: hidden;
+        right: 0;
+        bottom: 0;
+      }
+      #iframe-hiddens.visible {
+        pointer-events: all;
+        display: block;
+        visibility: visible;
+        z-index: 999;
+      }
+      #iframe-outside.show {
+        display: block;
+        left: -9999px;
+      }
+      #iframe-outside.visible {
+        pointer-events: all;
+        display: block;
+        left: auto;
+        right: 0;
+        bottom: 0;
+        z-index: 999;
+      }
 </style>