您好,登錄后才能下訂單哦!
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>登入</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="fly,layui,前端社區"> <meta name="description" content="Fly社區是模塊化前端UI框架Layui的官網社區,致力于為web開發提供強勁動力"> <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css"> <link rel="stylesheet" href="__PUBLIC__/res/css/global.css"> </head> <body> <include file="Common/head" /> <div class="main layui-clear"> <div class="fly-panel fly-panel-user" pad20> <div class="layui-tab layui-tab-brief"> <ul class="layui-tab-title"> <li class="layui-this">登入</li> <li><a href="reg.html">注冊</a></li> </ul> <div class="layui-form layui-tab-content" id="LAY_ucm" > <div class="layui-tab-item layui-show"> <div class="layui-form layui-form-pane"> <form method="post" action="{:U('Login/check_login')}"> <div class="layui-form-item"> <label for="L_phone" class="layui-form-label">手機號</label> <div class="layui-input-inline"> <input type="text" id="L_phone" name="phone" required lay-verify="phone" autocomplete="off" class="layui-input"> </div> </div> <div class="layui-form-item"> <label for="L_vercode" class="layui-form-label">圖片驗證碼</label> <div class="layui-input-inline"> <input type="text" id="L_vercode" name="vercode" required lay-verify="required" placeholder="請輸入圖片的驗證碼" autocomplete="off" class="layui-input"> </div> <div class="layui-form-mid" > <span ><img src="{:U('Common/yzm')}" onclick="this.src='{:U(\'Common/yzm\')}'" alt=""></span> </div> </div> <div class="layui-form-item"> <button type="button" class="layui-btn" id="send_phone" ><span id="send_str">發送手機驗證碼</span> <span id="p_djs">(<span id="djs">0</span>)</span></button> </span></div> <div class="layui-form-item"> <label for="L_pass" class="layui-form-label">手機驗證碼</label> <div class="layui-input-inline"> <input type="password" id="L_pass" name="pass" required lay-verify="required" autocomplete="off" class="layui-input"> </div> </div> <div class="layui-form-item"> <button class="layui-btn" lay-filter="*" lay-submit>立即登錄</button> <!--<span >--> <!--<a href="forget.html">忘記密碼?</a>--> </span> </div> <!--<div class="layui-form-item fly-form-app">--> <!--<span>或者使用社交賬號登入</span>--> <!--<a ></a>--> <!--<a ></a>--> <!--</div>--> </form> </div> </div> </div> </div> </div> </div> <include file="Common/foot" /> <script> $ = layui.$; $("#p_djs").hide(); $('#send_phone').on('click', function(){ $("#send_str").text("已發送手機驗證碼"); var phone = $('#L_phone').val(); var yzm = $('#L_vercode').val(); if(phone == ''){ layer.msg('手機號不能為空!',{icon:2}); return false; } if(yzm == ''){ layer.msg('圖形驗證碼不能為空!',{icon:2}); return false; } if($('#djs').text()!=0){ layer.msg('手機驗證碼已發送!',{icon:2}); return false; } $("#djs").text(60); $("#p_djs").show(); $.post("{:U('Common/checkverify')}",{code:yzm},function(data){ if(data==200){ $("#p_djs").show(); var setTime; var time=parseInt($("#djs").text()); setTime=setInterval(function(){ if(time<=0){ $("#send_str").text("重新發送手機驗證碼"); $("#djs").text(0); $("#p_djs").hide(); clearInterval(setTime); return; } time--; $("#djs").text(time); },1000); }else{ layer.msg('圖形驗證碼不正確!',{icon:2}); $("#p_djs").hide(); $("#djs").text(0); $("#send_str").text("重新發送手機驗證碼"); } }); }); </script> </body> </html>
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。