Browse Source

chore

(cherry picked from commit bb584ab379e1e4b9b1b54f4b75e74c1d8aedc37a)
任一存 2 years ago
parent
commit
e070e550a6
5 changed files with 13 additions and 10 deletions
  1. 2 1
      .env
  2. 4 1
      README.md
  3. 2 2
      public/static/js/Hot.js
  4. 0 6
      src/api.js
  5. 5 0
      src/main.js

+ 2 - 1
.env

@@ -1,2 +1,3 @@
 VUE_APP_STATIC_DIR=static
-VUE_APP_API_URL_PREFIX=https://haidebao.4dage.com
+VUE_APP_API_URL_PREFIX=https://haidebao.4dage.com
+VUE_APP_PC_URL=https://haidebao.4dage.com/web/index.html?m=1019

+ 4 - 1
README.md

@@ -1,2 +1,5 @@
 # 测试环境部署地址
-阿里云-4dkk-culture/华南1(深圳)/wenlange/display/
+自己的服务器(221.4.210.172:2222)/Default/阿里云/项目节点/项目测试/阿里云-四维时代-项目测试服务器-8.135.106.227/home/data/scene_haidebao_data/webM
+
+# 访问地址
+https://haidebao.4dage.com/webM/index.html?m=1019

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

@@ -37,8 +37,8 @@ window.initHot = function (model) {
   var getCommonHotspotUrl = function (link) {
     var querySectionInLink = link.split('?')[1]
     var langParam = "en" == manage.number("lang") ? "&lang=" + manage.number("lang") : ""
-    return `http://192.168.20.16:8081/#/${browser.isMobile() ? 'mobile' : 'web'}/?${querySectionInLink}&time=${randomTime().getTime()}&id=${window.number}${langParam}`
-    // return `/XuzhouHanStoneReliefArtMuseum/hotspot/index.html#/${browser.isMobile() ? 'mobile' : 'web'}/?${querySectionInLink}&time=${randomTime().getTime()}&id=${window.number}${langParam}`
+    // return `http://192.168.20.16:8081/#/${browser.isMobile() ? 'mobile' : 'web'}/?${querySectionInLink}&time=${randomTime().getTime()}&id=${window.number}${langParam}`
+    return `/webMHot/index.html#/${browser.isMobile() ? 'mobile' : 'web'}/?${querySectionInLink}&time=${randomTime().getTime()}&id=${window.number}${langParam}`
   }
   var removeSrcPostMark = function (url) {//去除texture.load时自动加上的'?'
     var index = url.indexOf('?')

+ 0 - 6
src/api.js

@@ -25,10 +25,4 @@ export default {
       url: `${process.env.VUE_APP_API_URL_PREFIX}/api/show/visit/hot`
     })
   },
-  async getDeviceList() {
-    return await axios({
-      method: 'get',
-      url: `${process.env.VUE_APP_API_URL_PREFIX}/api/show/product/getTree`
-    })
-  },
 }

+ 5 - 0
src/main.js

@@ -7,9 +7,14 @@ import router from './router'
 import 'viewerjs/dist/viewer.css'
 import Viewer from 'v-viewer'
 import clickOutside from "@/directives/v-click-outside.js"
+import browser from '@/utils/browser'
 
 import "@/assets/style/my-reset.css"
 
+if (browser.mobile) {
+  location.replace(process.env.VUE_APP_PC_URL)
+}
+
 Vue.use(Viewer, {
   defaultOptions: {
     navbar: false,