Browse Source

调整界面

asd123a20 3 years ago
parent
commit
007683a960

+ 3 - 3
src/components/heads/index.vue

@@ -3,10 +3,10 @@
     <div class="top">
         <img src="../../assets/logo.png" alt="logo" class="logo">
         <div class="search">
-            <div class="inputbox">
+            <!-- <div class="inputbox">
                 <input placeholder="搜索" class="input1" type="text">
                 <button class="btn1">搜索</button>
-            </div>
+            </div> -->
             <h3 class="el-icon-phone"> 0431-84637225</h3>
         </div>
     </div>
@@ -64,7 +64,7 @@ export default {
                 }
             }
             h3 {
-                margin-left: 3%;
+                margin-left: 40%;
             }
         }
     }

+ 8 - 4
src/components/heads/menus.vue

@@ -24,22 +24,26 @@ export default {
     ...mapActions(['getmenu']),
     btn (e) {
       this.itemId = e.code
-      if (e.code === '0') {
+      // eslint-disable-next-line eqeqeq
+      if (e.code == '0') {
         this.$router.push('/www/')
         return
       }
-      if (e.type === 1) {
+      // eslint-disable-next-line eqeqeq
+      if (e.type == '1') {
         window.open(e.uri)
         return
       }
-      if (e.type === 0) {
+      // eslint-disable-next-line eqeqeq
+      if (e.type == '0') {
         this.$router.push(
           { path: `/www/list/${e.code}` },
           onComplete => {},
           onAbort => {}
         )
       }
-      if (e.type === 2) {
+      // eslint-disable-next-line eqeqeq
+      if (e.type == '2') {
         const routeData = this.$router.resolve({
           path: `/www/page/${e.code}`
         })

+ 3 - 3
src/components/sidebar/title.vue

@@ -37,7 +37,7 @@ export default {
   color: #a40000;
   display: flex;
   .txtbox {
-    width: 28%;
+    width: 30%;
     display: flex;
     .tb {
       height: 30px;
@@ -51,10 +51,10 @@ export default {
     }
   }
   .txtbox2 {
-    width: 17%;
+    width: 20%;
   }
   .xian {
-    width: 75%;
+    width: 70%;
     height: 3px;
     background: #a40000;
     margin: 0 10px;

+ 2 - 2
src/store/content.js

@@ -1,7 +1,7 @@
 import axios from 'axios'
 const api = {
   query: '/api/content/query',
-  details: '/api/content/details'
+  details: '/api/content/details/'
 }
 const state = {
   items: [],
@@ -24,7 +24,7 @@ const actions = {
     return res
   },
   async getdetails ({ commit }, { id } = {}) {
-    const res = await axios.get(api.details, { params: { id } })
+    const res = await axios.get(`${api.details}${id}`)
     if (res.data.errcode === 0) commit('details', res.data)
     return res
   }

+ 1 - 1
vue.config.js

@@ -1,5 +1,5 @@
 
-const baseUrl = '/'
+const baseUrl = '/www'
 
 module.exports = {
   publicPath: baseUrl,