Browse Source

修复精品文物展示问题

shaogen1995 3 years ago
parent
commit
5eb2100339

+ 2 - 2
web/public/static/js/Hot.js

@@ -39,8 +39,8 @@ window.initHot = function (model) {
         var r = link.substring(link.indexOf("html") + 4)
             , o = "en" == manage.number("lang") ? "&lang=" + manage.number("lang") : "";
         -1 == r.indexOf("?") ? src = link + "?time=" + randomTime().getTime() + "&id=" + window.number + o : src = link + "&time=" + randomTime().getTime() + "&id=" + window.number + o
-        return 'http://project.4dage.com:8017' + src  // 线上测试
-        // return src     //打包 
+        // return 'http://project.4dage.com:8017' + src  // 线上测试
+        return src     //打包 
 
     }
     var removeSrcPostMark = function (url) {//去除texture.load时自动加上的'?'

+ 2 - 2
web/public/static/js/manage.js

@@ -1,8 +1,8 @@
   
 var g_ProjectName=window.location.pathname.substring(window.location.pathname.indexOf("/")+1,window.location.pathname.lastIndexOf("/"));
 // var g_Prefix="https://super.4dage.com/";
-var g_Prefix="http://project.4dage.com:8017/";//有自己的大场景编辑后台的 - 线上场景调试
-// var g_Prefix=window.origin+'/';//有自己的大场景编辑后台的 - 打包
+// var g_Prefix="http://project.4dage.com:8017/";//有自己的大场景编辑后台的 - 线上场景调试
+var g_Prefix=window.origin+'/';//有自己的大场景编辑后台的 - 打包
 // var g_Prefix=window.location.href.substring(0,window.location.href.indexOf("/index.html")+1);
 var s = window.location.href.split('/');
     s.pop();

+ 2 - 2
web/src/views/gui/compomemt/antique.vue

@@ -62,10 +62,10 @@
     <!-- 模型和图片 -->
     <div class="model" v-if="modelShow">
       <div class="ifrCon" ref="ifrCon">
-        <img :src="baseURL + txtInfo.thumb" alt="" v-if="formData.type==='img'">
+        <img :src="baseURL + txtInfo.thumb" alt="" v-if="txtInfo.type==='img'">
         <iframe :src="mySrc" frameborder="0" v-else></iframe>
         <!-- 全屏按钮 -->
-        <div class="full" @click="screen" v-if="formData.type==='model'">
+        <div class="full" @click="screen" v-if="txtInfo.type==='model'">
           <img src="@/assets/img/tab3FullX.png" alt="" v-if="fullscreen" />
           <img src="@/assets/img/tab3Full.png" alt="" v-else />
         </div>

+ 2 - 2
webM/public/static/js/manage.js

@@ -1,8 +1,8 @@
   
 var g_ProjectName=window.location.pathname.substring(window.location.pathname.indexOf("/")+1,window.location.pathname.lastIndexOf("/"));
 // var g_Prefix="https://super.4dage.com/";
-var g_Prefix="http://project.4dage.com:8017/";//有自己的大场景编辑后台的 - 线上场景调试
-// var g_Prefix=window.origin+'/';//有自己的大场景编辑后台的 - 打包
+// var g_Prefix="http://project.4dage.com:8017/";//有自己的大场景编辑后台的 - 线上场景调试
+var g_Prefix=window.origin+'/';//有自己的大场景编辑后台的 - 打包
 // var g_Prefix=window.location.href.substring(0,window.location.href.indexOf("/index.html")+1);
 
 var s = window.location.href.split('/');

+ 2 - 2
webM/src/views/gui/component/antique.vue

@@ -56,7 +56,7 @@
         <img
           :src="baseURL + txtInfo.thumb"
           alt=""
-          v-if="formData.type === 'img'"
+          v-if="txtInfo.type === 'img'"
         />
         <iframe :src="mySrc" frameborder="0" v-else></iframe>
         <!-- 全屏按钮 -->
@@ -64,7 +64,7 @@
           class="fullM"
           :class="{ fullX: fullscreen }"
           @click="screen"
-          v-if="formData.type === 'model'"
+          v-if="txtInfo.type === 'model'"
         >
           <img src="@/assets/img/close.png" alt="" v-if="fullscreen" />
           <img src="@/assets/img/tab3Full.png" alt="" v-else />