Browse Source

首页加入js跳转

Signed-off-by: anderx <312518615@qq.com>
anderx 5 years ago
parent
commit
9ac0aa81df
1 changed files with 21 additions and 0 deletions
  1. 21 0
      src/main/webapp/WEB-INF/views/portal/index.html

+ 21 - 0
src/main/webapp/WEB-INF/views/portal/index.html

@@ -742,6 +742,27 @@
         });
     </script>
     <!-- 轮播 end -->
+    <script>
+		$(".tp-banner-item").css("cursor","pointer")
+		$(".tp-banner-item").on("click",function() {
+			var item = $(this)
+			var index = item.index()
+			switch (index){
+				case 0:
+					window.location.href = "http://www.kedexinxi.com/portal/aboutKede"
+					break;
+				case 1:
+					window.location.href = "http://www.kedexinxi.com/portal/aboutKede?btn=3"
+					break;
+				case 2:
+					window.location.href = "http://www.kedexinxi.com/portal/aboutKede"
+					break;
+				case 3:
+					window.location.href = "http://www.kedexinxi.com/portal/client"
+					break;
+			}
+		})
+	</script>
     <!-- 滚动监听函数 引入 -->
     <script th:src="${portalHost+'/js/xRoll.js'}"></script>
     <!-- 首页效果 引入 -->