seimin 3 年之前
父节点
当前提交
6cadb998f7
共有 1 个文件被更改,包括 9 次插入6 次删除
  1. 9 6
      src/views/checkNumber.vue

+ 9 - 6
src/views/checkNumber.vue

@@ -36,12 +36,12 @@
36 36
                   <template v-else><div class="searchListItem"><strong>单位:</strong><em>{{item.unit}}</em></div></template>
37 37
                 </div>
38 38
               </li>
39
-              <li class="wushuju" v-show="wushuju1">
39
+              <li class="wushuju" v-show="wushuju1" style="margin-top:0.92rem;border-bottom:none;">
40 40
                 <img src="./../../static/images/wushuju.svg" alt="" />
41 41
                 <div class="noDataFont">暂无数据</div>
42 42
               </li>
43 43
             </ul>
44
-            <ul class="foods-wrapper" :style="{paddingTop:wushuju?'2.4rem':'0'}">
44
+            <ul v-show="!isShow" class="foods-wrapper" :style="{paddingTop:wushuju?'2.4rem':'0'}">
45 45
               <li
46 46
                 v-for="data in items"
47 47
                 class="food-item border-1px"
@@ -354,6 +354,9 @@ export default {
354 354
 };
355 355
 </script>
356 356
 <style lang="stylus" rel="stylesheet/stylus" scoped>
357
+.demo >>> .cube-scroll-wrapper{
358
+  background-color #eee;
359
+}
357 360
 .scroll-list-wrap
358 361
   /* height: 350px */
359 362
   height:100vh
@@ -508,14 +511,14 @@ export default {
508 511
   height: 2.84rem;
509 512
 }
510 513
 .searchList{
511
-  position: absolute;
512
-  top: 0.92rem;
514
+  /* position: absolute; */
515
+  /* margin-top: 0.92rem; */
513 516
   width: 100%;
514
-  height: calc(100vh - 0.92rem);
517
+  /* height: calc(100vh - 0.92rem); */
515 518
   font-size: 0.3rem;
516 519
   background-color: #eee;
517 520
   box-shadow: 0 0.05rem 0.05rem #ccc;
518
-  overflow: hidden;
521
+  /* overflow: scroll; */
519 522
 }
520 523
 .searchList li {
521 524
   padding: 0.2rem;