Browse Source

长按显示提示信息

liucf 5 years ago
parent
commit
f5482fda33
2 changed files with 6 additions and 0 deletions
  1. 1 0
      src/components/Symptom.vue
  2. 5 0
      src/less/base.less

+ 1 - 0
src/components/Symptom.vue

@@ -38,6 +38,7 @@
           @touchstart.stop.prevent="touchstart(it)"
           @touchend.stop.prevent="touchend(it)"
         >{{it.description || it.name}}</span>
+        <p class="tip" v-show="chooseSymp.length==0">长按症状按钮可显示症状解释说明</p>
       </div>
       <div
         class="result"

+ 5 - 0
src/less/base.less

@@ -70,6 +70,11 @@
   /* .symp:nth-child(3n+2){
     margin-left: 0;
   } */
+  .tip{
+    color: #AAAAAA;
+    margin-top: .2rem;
+    font-size: .24rem;
+  }
   .over{
     font-size: .24rem !important;
   }