作者 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 - }  
415 - }); 414 + if(res.code == 0){
  415 + $('.tan_text').html(res.msg);
  416 + tankuang();
  417 + $('.yu_tan').attr("data-qr", "2")
  418 + }else{
416 $('.tan_text').html("恭喜您,预约成功"); 419 $('.tan_text').html("恭喜您,预约成功");
417 tankuang(); 420 tankuang();
418 $('.yu_tan').attr("data-qr", "2") 421 $('.yu_tan').attr("data-qr", "2")
  422 + }
  423 + }
  424 + });
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 }