Browse Source

搜索页面样式调整(未加数据)

yangc 8 years ago
parent
commit
8f2b6c87e1
4 changed files with 3 additions and 19 deletions
  1. 1 1
      components/main/Search.vue
  2. 0 3
      pages/news/_id.vue
  3. 1 14
      pages/news/index.vue
  4. 1 1
      pages/search/_keyword.vue

+ 1 - 1
components/main/Search.vue

@@ -9,7 +9,7 @@
              @keyup.38="onSelectChange(-1)"
              @keyup.13="onSearch()"/>
       <span class="input-group-btn" @click="onSearch()">
-        <nuxt-link :to="'/search/'+keyword" class="btn btn-primary search-btn" >搜&nbsp;索</nuxt-link>
+        <button class="btn btn-primary search-btn" type="button">搜&nbsp;索</button>
       </span>
     </div>
     <ul class="association" v-show="showAssociate"

+ 0 - 3
pages/news/_id.vue

@@ -25,7 +25,4 @@
   }
 </script>
 <style scoped>
-.menu-title{
-  margin-top: 20px;
-}
 </style>

+ 1 - 14
pages/news/index.vue

@@ -7,7 +7,6 @@
 
 <script>
   import { Left, Right } from '~components/news'
-  import 'bootstrap/dist/css/bootstrap.min.css'
   export default {
     layout: 'main',
     data () {
@@ -37,19 +36,7 @@
 </script>
 
 <style scoped>
-  /*.clearfix, .nav-list{
+  body{
     font-size: 14px!important;
   }
-  .footer .item{
-    margin-top: 20px;
-  }
-  .navbar{
-    height: 36px!important;
-    min-height: 36px!important;
-  }*/
-  div{
-    display: block;
-  }
-
-
 </style>

+ 1 - 1
pages/search/_keyword.vue

@@ -12,7 +12,7 @@
     layout: 'main',
     data () {
       return {
-        key: this.$route.params.keyword
+        key: this.$route.query.w
       }
     },
     components: {