3 Commits 88ea522f2e ... b103929924

Author SHA1 Message Date
  napier b103929924 Merge branch 'master' of http://cn-cd-ali-1.natfrp.cloud:10295/iTopmap/vue-cdutDigitalMap 3 years ago
  napier 7fdd739bfc 更新了axios 与 文化地图的url 3 years ago
  napier ea1b11590d card背景图更换为github源 3 years ago
3 changed files with 11 additions and 5 deletions
  1. 5 3
      src/components/card.vue
  2. 2 1
      src/components/map.vue
  3. 4 1
      static/js/axios-config.js

+ 5 - 3
src/components/card.vue

@@ -55,7 +55,7 @@ export default {
     // 图片链接
     // 图片链接
     img: {
     img: {
       type: String,
       type: String,
-      default: 'https://i.loli.net/2021/09/26/SAI1gWCvB8DMsTi.png'
+      default: this.image
     }
     }
   },
   },
   name: 'phoneCard',
   name: 'phoneCard',
@@ -63,7 +63,9 @@ export default {
     return {
     return {
       button: '',
       button: '',
       flag: '',
       flag: '',
-      imgArr: ['https://i.loli.net/2021/09/26/SAI1gWCvB8DMsTi.png'],
+      // imgArr: ['https://i.loli.net/2021/09/26/SAI1gWCvB8DMsTi.png'],
+      image: 'https://cdn.jsdelivr.net/gh/Napier7/Picgo/data/card-img.png',
+      imgArr: ['https://cdn.jsdelivr.net/gh/Napier7/Picgo/data/card-img.png'],
       showMore: false,
       showMore: false,
       screenSize: window.screen.width
       screenSize: window.screen.width
     }
     }
@@ -173,7 +175,7 @@ export default {
       if (val !== null && val !== '') {
       if (val !== null && val !== '') {
         this.imgArr = [val]
         this.imgArr = [val]
       } else {
       } else {
-        this.imgArr = ['https://i.loli.net/2021/09/26/SAI1gWCvB8DMsTi.png']
+        this.imgArr = [this.image]
       }
       }
     }
     }
   },
   },

+ 2 - 1
src/components/map.vue

@@ -264,7 +264,8 @@ export default {
             class: 'basemap',
             class: 'basemap',
             title: 'cdut',
             title: 'cdut',
             source: new TileSource({
             source: new TileSource({
-              url: 'http://cn-cd-ali-1.natfrp.cloud:10265/geoserver/CDUT/wms',
+              // url: 'http://cn-cd-ali-1.natfrp.cloud:10265/geoserver/CDUT/wms',
+              url: 'http://113.125.147.162:8081/geoserver/CDUT/wms',
               crossOrigin: 'anonymous',
               crossOrigin: 'anonymous',
               params: {
               params: {
                 LAYERS: 'cdut_920',
                 LAYERS: 'cdut_920',

+ 4 - 1
static/js/axios-config.js

@@ -9,7 +9,10 @@ export default {
   install (Vue) {
   install (Vue) {
     // 请求前缀
     // 请求前缀
     // Vue.prototype.$axios.defaults.baseURL = 'http://127.0.0.1:300'
     // Vue.prototype.$axios.defaults.baseURL = 'http://127.0.0.1:300'
-    Vue.prototype.$axios.defaults.baseURL = 'http://42.193.189.65:300'
+    // Vue.prototype.$axios.defaults.baseURL = 'http://42.193.189.65:300'
+    // test
+    Vue.prototype.$axios.defaults.baseURL = 'http://203.189.213.228:300'
+
     // 设置超时时间
     // 设置超时时间
     Vue.prototype.$axios.defaults.timeout = 10000
     Vue.prototype.$axios.defaults.timeout = 10000
     // 请求封装
     // 请求封装