Browse Source

标题、UI等

zhouna 5 years ago
parent
commit
5fcd7ce845
3 changed files with 20 additions and 7 deletions
  1. 4 1
      src/components/MainPage.vue
  2. 7 4
      src/components/Search.vue
  3. 9 2
      src/router/index.js

+ 4 - 1
src/components/MainPage.vue

@@ -421,10 +421,13 @@ export default {
 }
 }
 .progress-bar {
 .progress-bar {
   height: .8rem;
   height: .8rem;
-  line-height: .8rem;
+  line-height: 0.44rem;
   background: #fff;
   background: #fff;
   color: #aaa;
   color: #aaa;
   margin-bottom:.4rem;
   margin-bottom:.4rem;
+.title{
+  height: 100%;
+}
   span{
   span{
     display: inline-block;
     display: inline-block;
     font-size: .26rem;
     font-size: .26rem;

+ 7 - 4
src/components/Search.vue

@@ -18,10 +18,10 @@
           <span @click="search">取消</span>
           <span @click="search">取消</span>
         </div>
         </div>
         <div class="searchList">
         <div class="searchList">
-          <p
+          <!--<p
             class="waring"
             class="waring"
             v-if="!searchVal&&!hasMore&&searchLis.length==0"
             v-if="!searchVal&&!hasMore&&searchLis.length==0"
-          >请输入搜索内容</p>
+          >请输入搜索内容</p>-->
           <p
           <p
             class="waring"
             class="waring"
             v-if="hasMore&&searchVal"
             v-if="hasMore&&searchVal"
@@ -190,8 +190,11 @@ export default {
   width: 100%;
   width: 100%;
   background-color: #fff;
   background-color: #fff;
   .waring {
   .waring {
-    padding-left: 0.5rem;
-    margin-top: 0.2rem;
+    width: 100%;
+    text-align: center;
+    margin-top: 1.6rem;
+    font-size: .26rem;
+    color: #aaa;
   }
   }
   ul {
   ul {
     padding: 0.2rem 0.2rem 0;
     padding: 0.2rem 0.2rem 0;

+ 9 - 2
src/router/index.js

@@ -16,6 +16,9 @@ const router = new Router({
     {
     {
       path:'/',
       path:'/',
       name:'Login',
       name:'Login',
+      meta:{
+        title:'智能预问诊'
+      },
       component:Login
       component:Login
     },
     },
     {
     {
@@ -28,8 +31,12 @@ const router = new Router({
     },
     },
     {
     {
       path:'/tab',
       path:'/tab',
+      name:'MainPage',
+      meta:{
+        title:'智能预问诊'
+      },
       component:MainPage,
       component:MainPage,
-      children:[
+      /*children:[
         {
         {
           path:'/',
           path:'/',
           name:'symptom',
           name:'symptom',
@@ -47,7 +54,7 @@ const router = new Router({
           name:'add',
           name:'add',
           component:AddContent
           component:AddContent
         }
         }
-      ]
+      ]*/
     },
     },
     {
     {
       path:'/department',
       path:'/department',