master
sunke 5 years ago
parent a29365fed8
commit 8694412609

@ -106,7 +106,9 @@ class IndexController extends HomeController
}
}
public function doPhoneLogin($mobile = null, $verify = null) {
public function doPhoneLogin() {
$mobile = $_POST['login_phone'];
$verify = $_POST['code'];
if (!$this->checksafecode($mobile, $verify)) {
$this->error('验证码错误');
}

@ -603,10 +603,11 @@ class SafeController extends BaseController{
}
}
public function addLoginMobile($mobile = null, $verify = null) {
public function addLoginMobile() {
if (IS_POST) {
/* 检测验证码 TODO: */
$mobile = $_POST['login_phone'];
$verify = $_POST['code'];
if (!$this->checksafecode($mobile, $verify)) {
$this->error('验证码错误');
}

@ -25,7 +25,7 @@
<span class="input-group-addon"><i class="input_icon input_icon_barcode"></i></span>
<input class="form-control" name="code" id="code" placeholder="短信验证码" autocomplete="off" maxlength="6">
</div>
<div class="f-wsn"><input type="submit" id="sendtelCode" class="btn btn_primary" value="发送验证码" style="width:130px;margin-left:20px" title="" target-form="paw_info"> </div>
<div class="f-wsn"><input id="sendtelCode" class="btn btn_primary" value="发送验证码" style="width:130px;margin-left:20px" title="" target-form="paw_info"> </div>
<div class="input-status"></div>
</div>
<div class="form-group ff clearfix">

@ -57,9 +57,9 @@
</tr>
<tr>
<td class="l"><span style="color:red">*</span>短信验证码</td>
<td class="r"><input type="password" class="input txt" name="code" id="code" style="width:230px" placeholder="请输入短信验证码">
<td class="r"><input type="text" class="input txt" name="code" id="code" style="width:230px" placeholder="请输入短信验证码">
<span id="confirm_password_tip"></span>
<input type="submit" id="sendtelCode" class="tj btn ajax-post" value="发送验证码" style="width:130px;margin-left:20px" title="" target-form="paw_info">
<input id="sendtelCode" class="tj btn ajax-post" value="发送验证码" style="width:130px;margin-left:20px" title="" target-form="paw_info">
</td>
</tr>
@ -216,7 +216,6 @@
</script>
<script>
$('#sendtelCode').on('click',function() {
alert('vdvd')
if ($(this).hasClass('g-btntn')) {
return false;
}

Loading…
Cancel
Save