Commit 822884b2 by libai

测试

parent 12d24f34
...@@ -165,7 +165,6 @@ ...@@ -165,7 +165,6 @@
$(".code-btn").on("click", function () { $(".code-btn").on("click", function () {
if ($(".login-phone-ipt").val().length > 10) { if ($(".login-phone-ipt").val().length > 10) {
$(".yanzheng-shadow").fadeIn(350)
$.ajax({ $.ajax({
url:'http://openapi.lvdou66.com/captcha/slide/webget.html', url:'http://openapi.lvdou66.com/captcha/slide/webget.html',
data:{ data:{
...@@ -174,6 +173,11 @@ ...@@ -174,6 +173,11 @@
type:"post", type:"post",
success:function(msg){ success:function(msg){
var data = JSON.parse(msg) var data = JSON.parse(msg)
if(data.code!=1){
layer.msg(data.msg);
return
}
$(".yanzheng-shadow").fadeIn(350)
$(".nimo .nimo-bg").attr("src",""+data.background+"") $(".nimo .nimo-bg").attr("src",""+data.background+"")
$(".nimo .nimo-cover").attr("src",""+data.cover+"") $(".nimo .nimo-cover").attr("src",""+data.cover+"")
var myTop=Math.floor((data.y/66.66)*100)/100 var myTop=Math.floor((data.y/66.66)*100)/100
......
...@@ -165,7 +165,6 @@ ...@@ -165,7 +165,6 @@
$(".code-btn").on("click", function () { $(".code-btn").on("click", function () {
if ($(".login-phone-ipt").val().length > 10) { if ($(".login-phone-ipt").val().length > 10) {
$(".yanzheng-shadow").fadeIn(350)
$.ajax({ $.ajax({
url:'http://openapi.lvdou66.com/captcha/slide/webget.html', url:'http://openapi.lvdou66.com/captcha/slide/webget.html',
data:{ data:{
...@@ -174,6 +173,11 @@ ...@@ -174,6 +173,11 @@
type:"post", type:"post",
success:function(msg){ success:function(msg){
var data = JSON.parse(msg) var data = JSON.parse(msg)
if(data.code!=1){
layer.msg(data.msg);
return
}
$(".yanzheng-shadow").fadeIn(350)
$(".nimo .nimo-bg").attr("src",""+data.background+"") $(".nimo .nimo-bg").attr("src",""+data.background+"")
$(".nimo .nimo-cover").attr("src",""+data.cover+"") $(".nimo .nimo-cover").attr("src",""+data.cover+"")
var myTop=Math.floor((data.y/66.66)*100)/100 var myTop=Math.floor((data.y/66.66)*100)/100
......
...@@ -165,7 +165,6 @@ ...@@ -165,7 +165,6 @@
$(".code-btn").on("click", function () { $(".code-btn").on("click", function () {
if ($(".login-phone-ipt").val().length > 10) { if ($(".login-phone-ipt").val().length > 10) {
$(".yanzheng-shadow").fadeIn(350)
$.ajax({ $.ajax({
url:'http://openapi.lvdou66.com/captcha/slide/webget.html', url:'http://openapi.lvdou66.com/captcha/slide/webget.html',
data:{ data:{
...@@ -174,6 +173,11 @@ ...@@ -174,6 +173,11 @@
type:"post", type:"post",
success:function(msg){ success:function(msg){
var data = JSON.parse(msg) var data = JSON.parse(msg)
if(data.code!=1){
layer.msg(data.msg);
return
}
$(".yanzheng-shadow").fadeIn(350)
$(".nimo .nimo-bg").attr("src",""+data.background+"") $(".nimo .nimo-bg").attr("src",""+data.background+"")
$(".nimo .nimo-cover").attr("src",""+data.cover+"") $(".nimo .nimo-cover").attr("src",""+data.cover+"")
var myTop=Math.floor((data.y/66.66)*100)/100 var myTop=Math.floor((data.y/66.66)*100)/100
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment