cuiwei 1 anno fa
parent
commit
bbd7a6b3db

+ 1 - 1
src/service/api_service.js

@@ -1,6 +1,6 @@
 import { request } from './request'
 
-const baseUri = '/server'
+const baseUri = '/industryParkApi'
 const dit = '/wx/dictController'
 const featuresController = '/wx/serviceFeatures'
 const professionalController = '/wx/parkProfessionalServiceSettings'

+ 1 - 1
src/service/request.js

@@ -57,7 +57,7 @@ export function request(request, isFile) {
             }
         }).catch((err, x) => {
             console.log(request.url + ' fail', err, x)
-            Toast(err)
+            // Toast(err)
             reject(err, x)
         })
     })

+ 2 - 2
src/static/utils/channel.js

@@ -103,13 +103,13 @@ export function upload(param, isDownload, returnId) {
     } // 添加请求头
     const opUrl = isDownload ? 'download' : 'viewImg'
     return new Promise((resolve, reject) => {
-        axios.post('/server/wx/fileController/uploadImage', formParam, config)
+        axios.post('/industryParkApi/wx/fileController/uploadImage', formParam, config)
             .then(response => {
                 console.log('Upload success file:', response.data)
                 const fileJson = {
                     name: param.file.name,
                     size: param.file.size,
-                    url: '/server/FileController/' + opUrl + '/' + response.data.data
+                    url: '/industryParkApi/FileController/' + opUrl + '/' + response.data.data
                 }
                 if (returnId) {
                     resolve(response.data.data)

+ 3 - 3
src/static/utils/common.js

@@ -272,9 +272,9 @@ export default {
     },
 
     replaceWxDownload: function(urlPath) {
-        if (urlPath != null) {
-            urlPath = urlPath.replace('/server/FileController/download/', '/smartParkH5Server/wx/fileController/downloadOtherFile/')
-        }
+        // if (urlPath != null) {
+        //     urlPath = urlPath.replace('/server/FileController/download/', '/smartParkH5Server/wx/fileController/downloadOtherFile/')
+        // }
         return urlPath
     }
 

+ 2 - 1
src/views/common/home.vue

@@ -677,7 +677,8 @@ export default {
             console.log(this.action)
         },
         goBack() {
-            window.location.href = 'https://smartpark.idea-sf.com/smartParkH5'
+            // window.location.href = 'https://smartpark.idea-sf.com/smartParkH5';
+           location.reload()
         },
         jumb(index, ac) {
             switch (index) {

+ 1 - 1
src/views/company/index.vue

@@ -30,7 +30,7 @@
                     <li v-for="(item,index) in zsList" :key="index" @click="detail(item)">
                         <div class="wrap-device-detail">
                             <div class="c-logo">
-                                <img :src="'https://smartpark.idea-sf.com'+item.img" alt="">
+                                <img :src="item.img" alt="">
                             </div>
                             <div class="c-content">
                                 <h3>{{item.name}}</h3>

+ 1 - 1
src/views/services/activities/index.vue

@@ -41,7 +41,7 @@
             <div class="wrap-device-detail">
               <div class="c-logo">
                 <!--                                <img :src="require('../../../assets/images/'+item.img)" alt="">-->
-                <img :src="'https://smartpark.idea-sf.com'+item.img" alt="">
+                <img :src="item.img" alt="">
               </div>
               <div class="wrap-content">
                 <div class="c-content">

+ 2 - 1
src/views/services/educate/detail1.vue

@@ -163,7 +163,8 @@ export default {
 
                   const videoAnnex = this.$common.castEval(_this.trainDetail.videoAnnex)
                   if (_this.isiOS) {
-                    _this.trainDetail.videoAnnexUrl = videoAnnex[0].url.replace('/server/FileController', '/smartParkH5Server/wx/fileController')
+                    // _this.trainDetail.videoAnnexUrl = videoAnnex[0].url.replace('/server/FileController', '/smartParkH5Server/wx/fileController')
+                    _this.trainDetail.videoAnnexUrl = videoAnnex[0].url.replace('/industryParkApi/FileController', '/industryParkApi/wx/fileController')
                   }else {
                     _this.trainDetail.videoAnnexUrl = videoAnnex[0].url
                   }

+ 1 - 1
src/views/services/educate/index.vue

@@ -40,7 +40,7 @@
           <li v-for="(item,index) in zsList" :key="index" @click="detail(item.id)">
             <div class="wrap-device-detail">
               <div class="c-logo">
-                <img :src="'https://smartpark.idea-sf.com'+item.img" alt="">
+                <img :src="item.img" alt="">
               </div>
               <div class="wrap-content">
                 <div class="c-content">

+ 4 - 4
vue.config.js

@@ -1,6 +1,6 @@
 module.exports = {
     // publicPath: './', // 默认'/',部署应用包时的基本 URL
-    publicPath: '/smartPark/',
+    publicPath: '/sunanWebsite/',
     outputDir: 'dist', // 'dist', 生产环境构建文件的目录
     lintOnSave: false,
     devServer: {
@@ -11,14 +11,14 @@ module.exports = {
         hotOnly: false,
         //proxy:'http://120.27.2.251:8084'
         proxy: {
-            '/server': {
-                target: 'http://134.175.95.41:9001/',
+            '/industryParkApi': {
+                target: 'https://www.idea-sf.com/industryParkApi/',
                 // target: 'http://localhost:9001/',
                 // target: 'http://134.175.95.41:9001/',
                 ws: true,
                 changeOrigin: true,
                 pathRewrite: {
-                    '^/server': '' // 请求的时候使用这个server就可以
+                    '^/industryParkApi': '' // 请求的时候使用这个server就可以
                 }
             }
         },