Blame view

src/views/mainContainer.vue 1.82 KB
52c50939   liuqimichale   init
1
2
3
4
  <template>
    <div class="maincontainer">
      <ul class="containerwrap clearfix">
        <li>
841f35d2   liuqimichale   filter
5
          <pdasection class="sectionsmall"></pdasection>
667dd190   liuqimichale   地磁
6
          <dicisection class="sectionsmall margin12-0"></dicisection>
e00e4982   liuqimichale   道闸 诱导屏
7
          <youdaopingsection class="sectionsmall"></youdaopingsection>
52c50939   liuqimichale   init
8
9
10
11
12
13
        </li>
        <li class="margin0-12">
          <div class="heightper-top"></div>
          <div class="heightper-bottom"></div>
        </li>
        <li>
841f35d2   liuqimichale   filter
14
15
16
          <div class="sectionsmall"></div>
          <div class="sectionsmall margin12-0"></div>
          <div class="sectionsmall"></div>
52c50939   liuqimichale   init
17
18
        </li>
      </ul>
7e22e0a3   liuqimichale   loading
19
      <loadinggif :showLoading="showLoaddingGif"></loadinggif>
52c50939   liuqimichale   init
20
21
22
23
    </div>
  </template>
  
  <script>
7e22e0a3   liuqimichale   loading
24
  import loadinggif from '../components/loading'
eb6d1150   liuqimichale   title 总计 简单封装
25
  import pdasection from '../views/pdasection'
667dd190   liuqimichale   地磁
26
  import dicisection from '../views/dicisection'
e00e4982   liuqimichale   道闸 诱导屏
27
  import youdaopingsection from '../views/youdaopingsection'
52c50939   liuqimichale   init
28
  export default {
7e22e0a3   liuqimichale   loading
29
    name: 'mainContainer',
eb6d1150   liuqimichale   title 总计 简单封装
30
31
    components: {
      loadinggif,
667dd190   liuqimichale   地磁
32
      pdasection,
e00e4982   liuqimichale   道闸 诱导屏
33
34
      dicisection,
      youdaopingsection
eb6d1150   liuqimichale   title 总计 简单封装
35
    },
7e22e0a3   liuqimichale   loading
36
37
38
39
40
    data() {
      return {
        showLoaddingGif: false
      }
    }
52c50939   liuqimichale   init
41
42
43
44
45
46
  }
  </script>
  
  <style scoped>
    .maincontainer {
      padding: 12px 12px;
667dd190   liuqimichale   地磁
47
      height:calc(100% - 77px);
52c50939   liuqimichale   init
48
    }
7e22e0a3   liuqimichale   loading
49
50
  
    .containerwrap {
52c50939   liuqimichale   init
51
52
53
54
55
56
57
58
59
60
61
62
63
      display: flex;
      height: 100%;
    }
  
    .containerwrap > li {
      height: 100%;
      display: flex;
      flex-direction: column;
    }
  
    .containerwrap > li:nth-of-type(1) {
      flex: 1;
    }
7e22e0a3   liuqimichale   loading
64
  
841f35d2   liuqimichale   filter
65
    .sectionsmall {
52c50939   liuqimichale   init
66
      flex: 1;
eb6d1150   liuqimichale   title 总计 简单封装
67
68
      display: flex;
      flex-direction: column;
841f35d2   liuqimichale   filter
69
70
      background: url("../assets/img/sectionsmall.png") no-repeat;
      background-size: 100% 100%;
52c50939   liuqimichale   init
71
72
73
74
75
    }
  
    .containerwrap > li:nth-of-type(2) {
      flex: 2;
    }
7e22e0a3   liuqimichale   loading
76
77
  
    .heightper-top {
52c50939   liuqimichale   init
78
79
80
      background: #f00;
      flex: 1;
    }
7e22e0a3   liuqimichale   loading
81
82
83
  
    .heightper-bottom {
      height: calc((100% - 24px) / 3);
52c50939   liuqimichale   init
84
85
86
87
88
89
90
91
92
      background: #f00;
      margin-top: 12px;
    }
  
    .containerwrap > li:nth-of-type(3) {
      flex: 1;
    }
  
  </style>