eae93dd4 by 任超

style:头部

1 parent c30a50ba
...@@ -18,7 +18,6 @@ document.writeln(" <link rel=\'stylesheet\' type=\'text/css\' href=\'" + loca ...@@ -18,7 +18,6 @@ document.writeln(" <link rel=\'stylesheet\' type=\'text/css\' href=\'" + loca
18 document.writeln(" <link type=\'text/css\' rel=\'stylesheet\' href=\'" + localhostPaht + "/staticCss/header.css\' />"); 18 document.writeln(" <link type=\'text/css\' rel=\'stylesheet\' href=\'" + localhostPaht + "/staticCss/header.css\' />");
19 document.writeln(" <link type=\'text/css\' rel=\'stylesheet\' href=\'" + localhostPaht + "/staticCss/common.css\' />"); 19 document.writeln(" <link type=\'text/css\' rel=\'stylesheet\' href=\'" + localhostPaht + "/staticCss/common.css\' />");
20 document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticLib/jquery/jquery.min.js\'></script>"); 20 document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticLib/jquery/jquery.min.js\'></script>");
21 document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticJs/login.js\'></script>");
22 document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticJs/common.js\'></script>"); 21 document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticJs/common.js\'></script>");
23 document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticJs/header.js\'></script>"); 22 document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticJs/header.js\'></script>");
24 document.writeln("</head>"); 23 document.writeln("</head>");
...@@ -33,7 +32,7 @@ document.writeln(" <input type=\'text\' name=\'title\' required l ...@@ -33,7 +32,7 @@ document.writeln(" <input type=\'text\' name=\'title\' required l
33 document.writeln(" class=\'layui-input\'>"); 32 document.writeln(" class=\'layui-input\'>");
34 document.writeln(" <img class=\'search_img\' src=\'" + localhostPaht + "/staticImages/search.png\'>"); 33 document.writeln(" <img class=\'search_img\' src=\'" + localhostPaht + "/staticImages/search.png\'>");
35 document.writeln(" </div>"); 34 document.writeln(" </div>");
36 document.writeln(" <ul class='login login-con isLogin'>"); 35 document.writeln(" <ul class='login layui-nav login-con'>");
37 document.writeln(" <span class='loginButton' id='login'>登录</span>"); 36 document.writeln(" <span class='loginButton' id='login'>登录</span>");
38 document.writeln(" <p class='loginButton register' id='register'><a href=\'" + localhostPaht + "/staticViews/register.html\'>注册</a></p>"); 37 document.writeln(" <p class='loginButton register' id='register'><a href=\'" + localhostPaht + "/staticViews/register.html\'>注册</a></p>");
39 document.writeln(" </ul>"); 38 document.writeln(" </ul>");
...@@ -69,4 +68,5 @@ document.writeln(" </div> "); ...@@ -69,4 +68,5 @@ document.writeln(" </div> ");
69 document.writeln(" </div> "); 68 document.writeln(" </div> ");
70 document.writeln("</html>"); 69 document.writeln("</html>");
71 document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticLib/layui/layui.js\'></script>"); 70 document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticLib/layui/layui.js\'></script>");
71 document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticJs/login.js\'></script>");
72 document.writeln("<script src=\'https://at.alicdn.com/t/font_2174584_1j8kvwarwge.js\'></script>"); 72 document.writeln("<script src=\'https://at.alicdn.com/t/font_2174584_1j8kvwarwge.js\'></script>");
......
...@@ -2,11 +2,11 @@ $(function () { ...@@ -2,11 +2,11 @@ $(function () {
2 newsCenterData(); 2 newsCenterData();
3 }) 3 })
4 function newsCenterData() { 4 function newsCenterData() {
5 $('.sysNewsList .newsDetail').mouseover(function () { 5 $(document).on("mouseover", ".sysNewsList .newsDetail", function (e) {
6 $('.sysNewsList .newsDetail').addClass('ellipsis'); 6 $('.sysNewsList .newsDetail').addClass('ellipsis');
7 $(this).removeClass('ellipsis'); 7 $(this).removeClass('ellipsis');
8 }) 8 })
9 $('.sysNewsList .newsDetail').mouseout(function () { 9 $(document).on("mouseout", ".sysNewsList .newsDetail", function (e) {
10 $('.sysNewsList .newsDetail').addClass('ellipsis'); 10 $('.sysNewsList .newsDetail').addClass('ellipsis');
11 }) 11 }
12 } 12 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -94,7 +94,7 @@ function handleLogin(data) { ...@@ -94,7 +94,7 @@ function handleLogin(data) {
94 // 登录成功之前数据操作 94 // 登录成功之前数据操作
95 function beforeLogin() { 95 function beforeLogin() {
96 $('.login-con').empty(); 96 $('.login-con').empty();
97 $('.login-con').append('<span class="loginButton" id="login">登录</span>'+ 97 $('.login-con').append('<span class="loginButton" id="login">登录</span>' +
98 '<p class="loginButton register" id="register"><a href="/staticViews/register.html">注册</a></p>') 98 '<p class="loginButton register" id="register"><a href="/staticViews/register.html">注册</a></p>')
99 } 99 }
100 // 登录成功之后数据操作 100 // 登录成功之后数据操作
...@@ -136,9 +136,9 @@ function appendData() { ...@@ -136,9 +136,9 @@ function appendData() {
136 '</dl>' + 136 '</dl>' +
137 '</li>' 137 '</li>'
138 ) 138 )
139 layui.use(['element'],function(){ 139 layui.use(['element'], function () {
140 layui.element.init();//手动调用初始化方法 140 layui.element.init();//手动调用初始化方法
141 }) 141 })
142 } 142 }
143 143
144 // 点击注册的时候 144 // 点击注册的时候
......