作者 lianghiu

BUG修改

@@ -411,11 +411,17 @@ @@ -411,11 +411,17 @@
411 }, 411 },
412 success: function (res) { 412 success: function (res) {
413 console.log(res); 413 console.log(res);
  414 + if(res.code == 0){
  415 + $('.tan_text').html(res.msg);
  416 + tankuang();
  417 + $('.yu_tan').attr("data-qr", "2")
  418 + }else{
  419 + $('.tan_text').html("恭喜您,预约成功");
  420 + tankuang();
  421 + $('.yu_tan').attr("data-qr", "2")
  422 + }
414 } 423 }
415 }); 424 });
416 - $('.tan_text').html("恭喜您,预约成功");  
417 - tankuang();  
418 - $('.yu_tan').attr("data-qr", "2")  
419 } else if (data_qr == 2) { 425 } else if (data_qr == 2) {
420 window.location.href = "/user/profile/percenter"; 426 window.location.href = "/user/profile/percenter";
421 } 427 }