| 
					
				 | 
			
			
				@@ -31,10 +31,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <ul class="nav" id="side-menu"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <li class="nav-header"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     <div class="dropdown profile-element" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                         style="text-align: center;font-size: 18px;font-weight: 600;color: white;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        中网管理后台 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                         style="text-align: center;font-size: 18px;font-weight: 600;color: white;">{{user.roleType == 1 ? '中网管理后台':''}}{{user.roleType == 2 ? store.storeName:''}}{{user.roleType == 3 ? user.merchName:''}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    <div class="logo-element">ZW 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <div class="logo-element">{{user.username}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </li> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <menu-item :item="item" v-for="item in menuList"></menu-item> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -258,6 +257,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script src="statics/plugins/slimscroll/jquery.slimscroll.min.js"></script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script src="js/common.js"></script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        vm.getUser(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //生成菜单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     var menuItem = Vue.extend({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         name: 'menu-item', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -285,7 +287,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             password: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             newPassword: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             menuList: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            user: {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            user: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            store: {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             getMenuList: function (event) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -296,6 +299,16 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             getUser: function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $.getJSON("sys/user/info?_" + $.now(), function (r) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     vm.user = r.user; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    console.log(r.user.merchSn); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    console.log(r.user.merchName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if(r.user.storeId){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        vm.getStore(r.user.storeId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            getStore: function (id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $.get("store/info/" + id, function (r) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    vm.store = r.store; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             updatePassword: function () { 
			 |