소스 검색

update 1748

tremble 3 년 전
부모
커밋
b34081870c
5개의 변경된 파일5개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 1
      src/components/userInfo.vue
  2. 1 1
      src/framework/Toolbar.vue
  3. 1 1
      src/framework/vr/index.vue
  4. 1 3
      src/utils/request.js
  5. 1 1
      src/views/material/pano/index.vue

+ 1 - 1
src/components/userInfo.vue

@@ -34,7 +34,7 @@ export default {
           logout(() => {
             localStorage.setItem("token", "");
             localStorage.setItem("userInfo", "");
-            window.location.href = "/material.html#/login";
+            window.location.href = this.$cdn ? "/material.html#/login" : '/panorama/material.html#/login' ;
           });
         },
       });

+ 1 - 1
src/framework/Toolbar.vue

@@ -26,7 +26,7 @@
               ></i>
             </div>
 
-            <i v-if="item.musicInfo.music.url" class="iconfont iconmaterial_music"></i>
+            <i v-if="item.musicInfo && item.musicInfo.music.url" class="iconfont iconmaterial_music"></i>
 
             <div class="img">
               <img v-if="item.icon" :src="$cdn+item.icon+`?${Math.random()}`" alt="" />

+ 1 - 1
src/framework/vr/index.vue

@@ -88,7 +88,7 @@ export default {
 
     embedpano({
       // xml: "%HTMLPATH%/static/template/tour.xml",
-      xml: `${this.$cdn}/${config.sceneNum}/vtour/tour.xml`,
+      xml: `${this.$cdn}/pano/${config.sceneNum}/vtour/tour.xml`,
       swf: "%HTMLPATH%/static/template/tour.swf",
       target: "pano",
       html5: "auto",

+ 1 - 3
src/utils/request.js

@@ -57,9 +57,7 @@ export const showLoginTips = () => {
       showLoginTips.__is_show = false;
       window.localStorage.setItem('token', '')
       window.localStorage.setItem('userInfo', '')
-
-
-      location.href='/material.html#/login'
+      location.href = vue.$cdn ? "/material.html#/login" : '/panorama/material.html#/login' ;
     },
   });
 

+ 1 - 1
src/views/material/pano/index.vue

@@ -93,7 +93,7 @@
             v-else-if="sub.type == 'image'"
             @click="previewImage(item)"
           >
-            <img :src=" $cdn + '/' + item.sceneCode + item.icon  + `?${Math.random()}`" alt="" />
+            <img :src=" $cdn + '/pano/' + item.sceneCode + item.icon  + `?${Math.random()}`" alt="" />
           </div>
           <!-- 文字型单元格 -->
           <span v-else>{{ data || "-" }}