From 221c14d5d3ca32f8bb2f0149ada0185544fd01b5 Mon Sep 17 00:00:00 2001
From: 10295 <1029559041@qq.com>
Date: Sun, 13 May 2018 16:47:26 +0800
Subject: [PATCH] =?UTF-8?q?bootstrap=E8=8F=9C=E5=8D=95=E6=A0=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/src/main/webapp/WEB-INF/jsp/index.jsp | 21 ++++++++++++---------
web/src/main/webapp/WEB-INF/jsp/menu.jsp | 17 +++++++++++++----
web/src/main/webapp/WEB-INF/jsp/test.jsp | 12 ++++++------
web/src/main/webapp/WEB-INF/jsp/test2.jsp | 23 ++++++++++++++++++++++-
4 files changed, 53 insertions(+), 20 deletions(-)
diff --git a/web/src/main/webapp/WEB-INF/jsp/index.jsp b/web/src/main/webapp/WEB-INF/jsp/index.jsp
index 6affd78..b5ab4e5 100644
--- a/web/src/main/webapp/WEB-INF/jsp/index.jsp
+++ b/web/src/main/webapp/WEB-INF/jsp/index.jsp
@@ -29,12 +29,15 @@
$("#tabs").on('click', 'button', function () {
$(this).addClass('active');
+ $($(this).attr('href')).addClass('active show');
+ $($(this).attr('href')).siblings().removeClass('active show')
$(this).siblings().removeClass('active');
});
$("#tabs").on('click', 'i', function () {
$(this).parent().remove();
+ $($(this).parent().attr('href')).remove();
});
});
@@ -50,7 +53,7 @@
Close
-
+
@@ -63,19 +66,19 @@
diff --git a/web/src/main/webapp/WEB-INF/jsp/menu.jsp b/web/src/main/webapp/WEB-INF/jsp/menu.jsp
index ffc9ab9..9a55c77 100644
--- a/web/src/main/webapp/WEB-INF/jsp/menu.jsp
+++ b/web/src/main/webapp/WEB-INF/jsp/menu.jsp
@@ -54,13 +54,22 @@
$(menuId).click(function () {
btnId='#btn'+$(this).data('id');
if ($(btnId).length == 0) {
- $("#tabs").append('