There is no response when clicking the login button
小朋友
小朋友 2018-01-23 14:15:09
0
4
1659

$.post('/admins.php/admins/Account/dologin',{'username':username,'pwd':pwd},function (res) {
if(res.code>0) {
reloadImag();
layer.alert(res.msg,{icon:2});
}else{
layer.msg(res.msg);
setTimeout(function (){window.location.href = '/admins.php/admins/Home/index'},1000);
}
},'json');
}

snipaste_20180123_141248.jpgNothing happens when you click to log in, but there will be a prompt if the password and user name are entered incorrectly. I have turned off the password and username verification on the front-end page. I just can’t find any reason

小朋友
小朋友

reply all(2)
phpcn_u104436

<script  type="text/javascript" >

layui.use(['layer'], function(){

  $ = layui.jquery;

  layer = layui.layer;


});


电动小老虎

F12 or var_dump($_POST) to see if there is any data. . .

  • reply Uncaught ReferenceError: dologin is not defined at HTMLButtonElement.onclick (login:35) this appears
    phpcn_u104436 author 2018-02-01 17:35:25
  • reply Request URL:http://go.com/admins.php/admins/account/dologin Request Method:POST Status Code:500 Internal Server Error Remote Address:127.0.0.1:80 Response Headers view source Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Connection:close Content-Type:text/html; charset=utf-8 Date:Fri, 02 Feb 2018 12:16:43 GMT Expires:Thu, 19 Nov 1981 08:52:00 GMT Pragma:no-cache Server:Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9 Transfer-Encoding:chunked X-Powered-By:PHP/5.6.27 Request Headers view source Accept:application/json, text/javascript, */*; q=0.01 Accept-Encoding:gzip, deflate Accept-Language:zh-CN,zh;q=0.8 Cache-Control:no-cache Connection:keep-alive Content-Length:41 Content-Type:application/x-www-form-urlencoded; charset=UTF-8 Cookie:__guid=133755288.3681798394953548000.1517556859370.2234; PHPSESSID=ducoaq0dbr3lqeaua6d7a97i30; monitor_count=103 Host:go.com Origin:http://go.com Pragma:no-cache Referer:http://go.com/admins.php/admins/account/login? User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 X-Requested-With:XMLHttpRequest Form Data view source view URL encoded username:admin pwd:396542 verifycode:5466
    phpcn_u104436 author 2018-02-02 20:17:29
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template