15724580513 4 years ago
parent
commit
9f304025f5

+ 2 - 2
assets/scss/cus-client/cus-client-common.scss

@@ -148,7 +148,7 @@ h1,h2,h3,h4,h5,h6,p{font-weight:normal;margin: 0;}
     display: flex;
 
     //头部图标
-    a{width: 160px;height: 80px;display: inline-block;background-image: url("~static/images/client/component/nav-logo.svg");background-repeat: no-repeat;background-position: center;}
+    a>i{width: 160px;height: 70px;display: inline-block;background-image: url("~static/images/client/component/nav-logo.svg");background-repeat: no-repeat;background-position: center;}
   }
 
   //头部右侧区域
@@ -264,4 +264,4 @@ h1,h2,h3,h4,h5,h6,p{font-weight:normal;margin: 0;}
       h1,h2,h3,h4,h5,h6,p{margin-bottom: 10px;}
     }
   }
-}
+}

+ 2 - 1
components/footer.vue

@@ -42,7 +42,8 @@
          <div class="link-box">
            <h4>友情链接</h4>
            <div class="link-a-box">
-             <a v-for="(item,index) in requestData" :key="index" @click="goToPage(item)">{{item.name}}</a>
+             <!--<a v-for="(item,index) in requestData" :key="index" @click="goToPage(item)">{{item.name}}</a>-->
+             <a :href="item.url" v-for="(item,index) in requestData" :key="index">{{item.name}}</a>
              <!--     <a>物流软件</a>
                   <a>免费erp管理系统</a>
                   <a>物流软件</a>

+ 8 - 5
components/header.vue

@@ -2,25 +2,28 @@
   <nav class="client-head">
     <div class="client-container head-layout">
       <div class="head-left">
-        <a></a>
+        <a>
+          <i></i>
+        </a>
         <el-menu
           :default-active="activeIndex"
           class="el-menu-demo"
           mode="horizontal"
-          :router="true"
+          :router="false"
         >
           <template v-for="(item,index) in headerArr">
             <el-submenu :index="`${item.keyPath}`" v-if="item.children && item.children.length > 0"
                         popper-class="mta-menu-two">
               <template slot="title">{{item.content}}</template>
               <el-menu-item :index="`${child.keyPath}`" v-for="child of item.children"
-                            :key="child.keyPath">{{child.content}}
+                            :key="child.keyPath">
+                <a :href="`https://www.mtavip.com${child.keyPath}`">{{child.content}}</a>
               </el-menu-item>
             </el-submenu>
 
-
             <el-menu-item :index="`${item.keyPath}`" v-else>
-              {{item.content}}
+
+              <a :href="`https://www.mtavip.com${item.keyPath}`">{{item.content}}</a>
             </el-menu-item>
           </template>
         </el-menu>

+ 0 - 56
layouts/default.vue

@@ -12,59 +12,3 @@
     },
   }
 </script>
-<style>
-html {
-  font-family:
-    'Source Sans Pro',
-    -apple-system,
-    BlinkMacSystemFont,
-    'Segoe UI',
-    Roboto,
-    'Helvetica Neue',
-    Arial,
-    sans-serif;
-  font-size: 16px;
-  word-spacing: 1px;
-  -ms-text-size-adjust: 100%;
-  -webkit-text-size-adjust: 100%;
-  -moz-osx-font-smoothing: grayscale;
-  -webkit-font-smoothing: antialiased;
-  box-sizing: border-box;
-}
-
-*,
-*::before,
-*::after {
-  box-sizing: border-box;
-  margin: 0;
-}
-
-.button--green {
-  display: inline-block;
-  border-radius: 4px;
-  border: 1px solid #3b8070;
-  color: #3b8070;
-  text-decoration: none;
-  padding: 10px 30px;
-}
-
-.button--green:hover {
-  color: #fff;
-  background-color: #3b8070;
-}
-
-.button--grey {
-  display: inline-block;
-  border-radius: 4px;
-  border: 1px solid #35495e;
-  color: #35495e;
-  text-decoration: none;
-  padding: 10px 30px;
-  margin-left: 15px;
-}
-
-.button--grey:hover {
-  color: #fff;
-  background-color: #35495e;
-}
-</style>

+ 0 - 1
layouts/templateA.vue

@@ -30,7 +30,6 @@
       getLinksData(){
         this.$axios.post('/home/links/list').then(res=>{
             this.linksData = res.data.data.data
-          console.log(this.linksData);
         })
       },
     },

+ 5 - 2
nuxt.config.js

@@ -29,7 +29,7 @@ export default {
   */
   css:          [
     'element-ui/lib/theme-chalk/index.css',
-    { src: '~assets/scss/main.scss', lang: 'scss' },
+    '@/assets/scss/main.scss'
   ],
   /*
   ** Plugins to load before mounting the App
@@ -57,8 +57,11 @@ export default {
   */
   build:        {
     transpile: [/^element-ui/],
+    // 异步加载样式 默认false
+    extractCSS: true
   },
   axios:        {
-    baseURL: 'http://192.168.0.179:8100', // Used as fallback if no runtime config is provided
+    // baseURL: 'http://192.168.0.179:8100',
+    baseURL: 'http://182.92.186.22:83/api', // Used as fallback if no runtime config is provided
   },
 };

+ 1 - 2
package-lock.json

@@ -10944,8 +10944,7 @@
         "safe-buffer": {
           "version": "5.1.2",
           "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
-          "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
-          "optional": true
+          "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
         },
         "string_decoder": {
           "version": "1.1.1",

+ 3 - 3
plugins/axios.http.js

@@ -13,8 +13,8 @@ export default function ({ $axios, redirect }) {
   })
 
   $axios.onError((error) => {
-    if (error.response.status === 500) {
-      redirect('/sorry')
-    }
+    // if (error.response.status === 500) {
+    //   redirect('/sorry')
+    // }
   })
 }