Selaa lähdekoodia

feat: 更改导航样式

黎海 2 vuotta sitten
vanhempi
commit
2076269695

+ 5 - 5
src/components/common/layout/layout.vue

@@ -7,18 +7,18 @@
7 7
     </div>
8 8
     <div class="content">
9 9
       <header>
10
-
11 10
         <div class="back-icon"
12 11
              v-if="isback"
13 12
              @click="goBack"><img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/back.png"
14 13
                alt=""></div>
15 14
         <div>
16 15
           <div class="left"
17
-              v-if="menuIndex==0 && $route.path === '/home'">
16
+               v-if="menuIndex==0 && $route.path === '/home'">
18 17
             <div class="address">{{userInfo.store_name}}</div>
19 18
           </div>
20 19
         </div>
21
-        <div class="center" v-if="$route.name">
20
+        <div class="center"
21
+             v-if="$route.name">
22 22
           {{$route.name}}
23 23
         </div>
24 24
         <div class="right">
@@ -73,7 +73,6 @@ export default {
73 73
       api.getUserInfo().then(res => {
74 74
         if (res.code == 200) {
75 75
           this.userInfo = res.data
76
-
77 76
         }
78 77
       })
79 78
     },
@@ -126,7 +125,8 @@ export default {
126 125
 .menu-wrapper {
127 126
   height: 100%;
128 127
   text-align: center;
129
-  overflow: auto;
128
+  overflow-y: auto;
129
+  overflow-x: hidden;
130 130
   background-color: #fa7d22;
131 131
 
132 132
   .el-menu {

+ 1 - 0
src/components/common/layout/leftMenu.vue

@@ -139,6 +139,7 @@ export default {
139 139
   line-height: 46px !important;
140 140
   background: url("https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/home/select_icon.png")
141 141
     no-repeat;
142
+  margin-right: -2px;
142 143
   background-size: 100% 100%;
143 144
   background-color: #fa7d22 !important;
144 145
   color: #fa7d22 !important;