mirror of https://gitee.com/stylefeng/guns
更新验证码url
parent
433a438171
commit
a480802679
|
@ -238,7 +238,7 @@
|
||||||
|
|
||||||
// 获取验证码
|
// 获取验证码
|
||||||
function getKaptcha(){
|
function getKaptcha(){
|
||||||
var request = new HttpRequest(Feng.ctxPath + '/kaptcha'+ '?t=' + (new Date).getTime(), 'get');
|
var request = new HttpRequest(Feng.ctxPath + '/captcha'+ '?t=' + (new Date).getTime(), 'get');
|
||||||
var result = request.start();
|
var result = request.start();
|
||||||
$("#verKey").val(result.data.verKey)
|
$("#verKey").val(result.data.verKey)
|
||||||
$('img.login-captcha').attr('src', result.data.verImage);
|
$('img.login-captcha').attr('src', result.data.verImage);
|
||||||
|
|
|
@ -299,7 +299,6 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
/* 获取验证码 */
|
/* 获取验证码 */
|
||||||
//var captchaUrl = Feng.ctxPath + '/kaptcha';
|
|
||||||
$('#btnGetCode').click(function () {
|
$('#btnGetCode').click(function () {
|
||||||
var $btn = $(this);
|
var $btn = $(this);
|
||||||
var $inputPhone = $('input[name="phone"]');
|
var $inputPhone = $('input[name="phone"]');
|
||||||
|
@ -363,9 +362,10 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
// 获取验证码
|
// 获取验证码
|
||||||
function getKaptcha() {
|
function getKaptcha() {
|
||||||
var request = new HttpRequest(Feng.ctxPath + '/kaptcha'+ '?t=' + (new Date).getTime(), 'get');
|
var request = new HttpRequest(Feng.ctxPath + '/captcha' + '?t=' + (new Date).getTime(), 'get');
|
||||||
var result = request.start();
|
var result = request.start();
|
||||||
$("#verKey").val(result.data.verKey)
|
$("#verKey").val(result.data.verKey)
|
||||||
$('.layer-get-code>.lay-code-group>img').attr('src', result.data.verImage);
|
$('.layer-get-code>.lay-code-group>img').attr('src', result.data.verImage);
|
||||||
|
|
Loading…
Reference in New Issue