Переглянути джерело

更新unity模型,这回切换很快了

任一存 2 роки тому
батько
коміт
3c25df848c

BIN
public/unity/Build/SHIndustryMuseum_2.3.data.unityweb


BIN
public/unity/Build/SHIndustryMuseum_2.3.framework.js.unityweb


BIN
public/unity/Build/SHIndustryMuseum_2.3.wasm.unityweb


+ 8 - 8
src/utils.js

@@ -98,9 +98,9 @@ export default {
     }
   },
   loadUnitySceneGeneral() {
-    const loadingInstance = ElLoading.service({
-      background: 'black',
-    })
+    // const loadingInstance = ElLoading.service({
+    //   background: 'black',
+    // })
 
     window.gUnityInst && window.gUnityInst.SendMessage('SceneManager', 'LoadPage1')
     window.onSceneLoaded = () => {
@@ -108,14 +108,14 @@ export default {
     }
     window.onRequestApiSuccess = () => { // unity模型里拿到了后端数据
       window.gMitt.emit('RequestApiSuccess-general', {})
-      loadingInstance.close()
+      // loadingInstance.close()
 
     }	//场景加载完毕回调
   },
   loadUnitySceneMetaverse() {
-    const loadingInstance = ElLoading.service({
-      background: 'black',
-    })
+    // const loadingInstance = ElLoading.service({
+    //   background: 'black',
+    // })
 
     window.gUnityInst && window.gUnityInst.SendMessage('SceneManager', 'LoadPage4')
     window.onSceneLoaded = () => {
@@ -123,7 +123,7 @@ export default {
     }
     window.onRequestApiSuccess = () => { // unity模型里拿到了后端数据
       window.gMitt.emit('RequestApiSuccess-metaverse', {})
-      loadingInstance.close()
+      // loadingInstance.close()
     }
   },
 }

+ 1 - 1
src/views/General.vue

@@ -80,7 +80,7 @@
         draggable="false"
       >
       <img
-        v-show="activeCorpInfo.thumb"
+        v-if="activeCorpInfo.thumb"
         class="banner"
         :src="`${prefix}/${activeCorpInfo.thumb}`"
         alt=""

+ 1 - 1
src/views/TreasureDetail.vue

@@ -132,7 +132,7 @@
         >
       </button>
       <button
-        v-if="canRecord"
+        v-if="canRecord && activeTabIndx === 0"
         @click="$router.push({name: 'RecordView', query: {
           url: encodeURI(`${prefix}/web-model/index.html#/relic-detail?model-path=${encodeURIComponent(modelUrlList[activeSwiperItemIndex].filePath)}`)
         }})"