Browse Source

接口修改

twt 1 year ago
parent
commit
b3ef916437
4 changed files with 11 additions and 7 deletions
  1. 1 1
      config/index.js
  2. 1 1
      src/main.js
  3. 6 4
      src/page/index.vue
  4. 3 1
      src/utils/request.js

+ 1 - 1
config/index.js

@@ -13,7 +13,7 @@ module.exports = {
     proxyTable: {},
 
     // Various Dev Server settings
-    host: '192.168.2.165', // can be overwritten by process.env.HOST http://localhost/
+    host: '192.168.0.215', // can be overwritten by process.env.HOST http://localhost/
     port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
     autoOpenBrowser: false,
     errorOverlay: true,

+ 1 - 1
src/main.js

@@ -23,7 +23,7 @@ Vue.use(Viewer, {
 })
 import { getHashQuery } from './utils'
 //console.log(encodeURIComponent(getHashQuery('url')))
-
+console.log(getHashQuery('url'))
 store.commit('mutationstoken', getHashQuery('token'))
 store.commit('mutationsurl', getHashQuery('url'))
 store.commit('mutationsuid', getHashQuery('uid'))

+ 6 - 4
src/page/index.vue

@@ -196,7 +196,7 @@
            </div>
              <img class="childrenImg" @click="seeBigImg(image_info[imgIndex].pic_url)"
              :src="image_info[imgIndex].pic_url" alt="" v-if="image_info.length>0&&image_info[imgIndex].pic_url">
-           
+
 
             <img src="../assets/noImg.png" alt="" v-else class="childrenImg">
          </div>
@@ -778,6 +778,7 @@ export default {
       this.param=item.param;
       this.token=item.token;
       this.ckIndex1=index;
+      this.ckIndex2=-1
        this.navchildrenName=item.caption
       if(item.next_restrain==1){
         this.getYsone()
@@ -795,11 +796,12 @@ export default {
         this.getYsDlist()
       }else{
         this.getPartsPc();
-        this.groupShow=false;
+        this.firstShow=false;
+       /* this.groupShow=false; */
         this.carConfig=false;
-        this.restrainShow3=false;
+        /* this.restrainShow3=false;
         this.restrainShow2=false;
-        this.restrainShow1=false;
+        this.restrainShow1=false; */
         this.childrenShow=true;
          setTimeout(() => {
           this.childrenHeight = this.$refs.childrenMainLeft.offsetHeight // 高

+ 3 - 1
src/utils/request.js

@@ -9,7 +9,9 @@ console.log(store.state.token)
 //var url='http://'+getHashQuery('url')+'/'
 
 if(store.state.url){
-  var url='http://'+store.state.url+'/'
+  //var url='http://'+store.state.url+'/'
+  var url=store.state.url;
+  console.log('url=='+url)
 }else{
   var url='http://api.dms.66km.com.cn/'
 }