wangzhonglu 9 mesi fa
parent
commit
dea09acf86

+ 0
- 14
src/views/schoolSection/admin/index.vue Vedi File

@@ -1,14 +0,0 @@
1
-<template>
2
-  <div></div>
3
-</template>
4
-
5
-<script>
6
-export default {
7
-  data() {
8
-    return {};
9
-  },
10
-  methods: {}
11
-};
12
-</script>
13
-
14
-<style lang="less" scoped></style>

+ 117
- 4
src/views/schoolSection/index.vue Vedi File

@@ -1,14 +1,127 @@
1 1
 <template>
2
-  <div></div>
2
+  <div class="section_root">
3
+    <div class="section_header">
4
+      <div class="module_list">
5
+        <router-link tag="div" to="/school/home" class="module_item">
6
+          <span>首页</span>
7
+        </router-link>
8
+      </div>
9
+    </div>
10
+    <div class="section_main">
11
+      <router-view></router-view>
12
+    </div>
13
+  </div>
3 14
 </template>
4 15
 
5 16
 <script>
6 17
 export default {
7 18
   data() {
8
-    return {};
19
+    return {
20
+      routeDropdown: true
21
+    };
9 22
   },
10
-  methods: {}
23
+  methods: {
24
+    routeDropdownChange() {
25
+      this.routeDropdown = false;
26
+      setTimeout(() => {
27
+        this.routeDropdown = true;
28
+      }, 500);
29
+    }
30
+  }
11 31
 };
12 32
 </script>
13 33
 
14
-<style lang="less" scoped></style>
34
+<style lang="less" scoped>
35
+.section_root {
36
+  width: 100%;
37
+  height: 100%;
38
+  overflow: auto;
39
+  .section_header {
40
+    display: flex;
41
+    justify-content: flex-start;
42
+    align-items: center;
43
+    margin: 10px 16px;
44
+    padding: 13px 20px;
45
+    border: 1px solid #e9f0f9;
46
+    border-radius: 15px;
47
+    background-color: #fff;
48
+    .module_list {
49
+      display: flex;
50
+      justify-content: flex-start;
51
+      align-items: center;
52
+      .module_item {
53
+        display: flex;
54
+        justify-content: center;
55
+        align-items: center;
56
+        margin-right: 16px;
57
+        padding: 6px 10px;
58
+        font-size: 16px;
59
+        line-height: 20px;
60
+        cursor: pointer;
61
+        &.drop_down {
62
+          position: relative;
63
+          cursor: default;
64
+          .drop_down_list {
65
+            display: none;
66
+            position: absolute;
67
+            top: 32px;
68
+            left: 0;
69
+            padding: 10px 0;
70
+            min-width: 100px;
71
+            color: #253a70;
72
+            font-size: 14px;
73
+            font-weight: normal;
74
+            border-radius: 4px;
75
+            background: #ffffff;
76
+            box-shadow: 0 8px 30px 0 #bcc9e380;
77
+            z-index: 999;
78
+            .drop_down_list_item {
79
+              margin: 0 6px;
80
+              padding: 0 10px;
81
+              white-space: nowrap;
82
+              line-height: 35px;
83
+              border-radius: 8px;
84
+              color: #798cb5;
85
+              cursor: pointer;
86
+              &.router-link-active,
87
+              &:hover {
88
+                color: #339dff;
89
+                background-color: #f3f4fc;
90
+              }
91
+            }
92
+          }
93
+          &:hover {
94
+            .drop_down_list {
95
+              display: block;
96
+            }
97
+          }
98
+        }
99
+        &.router-link-active,
100
+        &.selected {
101
+          background-color: #339dff;
102
+          color: #fff;
103
+          border-radius: 4px;
104
+        }
105
+        &:hover {
106
+          .arrow_dropdown {
107
+            transform: rotate(180deg);
108
+          }
109
+        }
110
+        .arrow_dropdown {
111
+          transition: all 0.2s ease-in-out;
112
+        }
113
+        .module_title {
114
+          margin-right: 4px;
115
+          line-height: 20px;
116
+        }
117
+      }
118
+    }
119
+  }
120
+  .section_main {
121
+    position: relative;
122
+    width: 100%;
123
+    height: calc(100% - 80px);
124
+    overflow: auto;
125
+  }
126
+}
127
+</style>

+ 0
- 14
src/views/schoolSection/regionManage/index.vue Vedi File

@@ -1,14 +0,0 @@
1
-<template>
2
-  <div></div>
3
-</template>
4
-
5
-<script>
6
-export default {
7
-  data() {
8
-    return {};
9
-  },
10
-  methods: {}
11
-};
12
-</script>
13
-
14
-<style lang="less" scoped></style>

Loading…
Annulla
Salva