From e4f14ce28cd828e80b3bf02ab790f2f9f8359f21 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期二, 28 四月 2020 11:54:35 +0800
Subject: [PATCH] Merge branch 'master' of ssh://193.112.35.168:29418/flqAdmin

---
 js/xadmin.js |   25 +++++++++++++++++--------
 1 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/js/xadmin.js b/js/xadmin.js
index c01409d..9a14cc7 100644
--- a/js/xadmin.js
+++ b/js/xadmin.js
@@ -29,9 +29,12 @@
 		// 				$('.left-nav #nav li').eq(cate_list[i]).click();
 		// 			}
 		// 		}
-		
-		
-		this.add_tabs([{title:'缁熻',url:'right.html'}]);
+
+
+		this.add_tabs([{
+			title: '缁熻',
+			url: 'right.html'
+		}]);
 	};
 
 	//娣诲姞澶氫釜
@@ -246,11 +249,12 @@
 		element.on('tab(xbs_tab)', function() {
 			for (var i = 0; i < $('.x-iframe').length; i++) {
 				var id = this.getAttribute('lay-id');
-				if ($('.x-iframe').eq(i).attr('tab-id') == id) {
+				if ($('.x-iframe').eq(i).attr('tab-id') == id) { //閫夋嫨浜嗗綋鍓嶉〉闈�
 					var src = $('.x-iframe').eq(i).attr("src");
 					if (src == null || src == '' || src.length == 0) {
 						$('.x-iframe').eq(i).attr("src", $('.x-iframe').eq(i).attr("src-data"));
 					}
+					//TODO 璁剧疆宸︿晶鑿滃崟閫夋嫨
 				}
 			};
 		});
@@ -271,6 +275,7 @@
 					key: 'f3',
 					value: null
 				})
+
 			}
 
 			if ($(this).parent().parent().parent().attr('id') == 'nav') {
@@ -289,6 +294,7 @@
 					key: 'f3',
 					value: $('.left-nav #nav li').index($(this))
 				})
+
 			}
 
 
@@ -310,20 +316,23 @@
 
 			$('.left-nav').find('a').removeClass('active');
 			$(this).children('a').addClass('active');
-			if ($(this).children('.sub-menu').length) {
+			if ($(this).children('.sub-menu').length) { //涓�绾�
 				if ($(this).hasClass('open')) {
-					$(this).removeClass('open');
+					$(this).children('.sub-menu').stop(true, true).slideUp(); //闅愯棌琚�夊厓绱�
 					$(this).find('.nav_right').html('&#xe697;');
-					$(this).children('.sub-menu').stop(true, true).slideUp();
+					$(this).removeClass('open');
+					return;
 					$(this).siblings().children('.sub-menu').slideUp();
 				} else {
 					$(this).addClass('open');
 					$(this).children('a').find('.nav_right').html('&#xe6a6;');
 					$(this).children('.sub-menu').stop(true, true).slideDown();
-					$(this).siblings().children('.sub-menu').stop(true, true).slideUp();
+					// $(this).siblings().children('.sub-menu').stop(true, true).slideUp();
 					$(this).siblings().find('.nav_right').html('&#xe697;');
 					$(this).siblings().removeClass('open');
 				}
+			} else { //瀛愮骇
+				$(this).parent().parent().siblings().children('.sub-menu').stop(true, true).slideUp();
 			}
 			event.stopPropagation();
 		})

--
Gitblit v1.8.0