No Description

no_open_city.html 2.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>公积金查询</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  7. <link rel="stylesheet" href="./css/reset.css?v=11">
  8. <link rel="stylesheet" type="text/css" href="css/no_open_city.css?v=3"/>
  9. <script src="./js/jquery.min.js"></script>
  10. <script type="text/javascript" src="kuxuan/api-url.js?v=1"></script>
  11. <div style="display: none;">
  12. <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1274146775'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s13.cnzz.com/z_stat.php%3Fid%3D1274146775' type='text/javascript'%3E%3C/script%3E"));</script>
  13. </div>
  14. <script src="./js/common.js?vv=10"></script>
  15. <style type="text/css">
  16. </style>
  17. </head>
  18. <body>
  19. <nav>
  20. <i id='back' onclick="goBack()"></i>
  21. <p></p>
  22. <span onclick="changeCity()">切换城市</span>
  23. </nav>
  24. <img class="bg_no_open" src="img/no_open_city.png" />
  25. <p class="no_open_title">您选择的城市暂未开通查询服务</p>
  26. <p class="no_open_con">想要第一时间查询?</p>
  27. <div class="button" onclick="gokown()">设置提醒</div>
  28. <div class="alert-info" style="display: none;">
  29. <!-- tip提示,3s后消失 -->
  30. <p></p>
  31. </div>
  32. </body>
  33. </html>
  34. <script src="./js/auto_size.js?vv=10"></script>
  35. <script type="text/javascript">
  36. var qs = parseQueryString(window.location.href);
  37. $().ready(function() {
  38. if (qs.name) {
  39. $("nav p").html(qs.name)
  40. }
  41. })
  42. function gokown () {
  43. $.ajax({
  44. type: "POST",
  45. url:'/api/statistics/noCity',
  46. headers:{
  47. token : qs.token
  48. },
  49. data:{
  50. 'region_code' : qs.code
  51. },
  52. success: function(data) {
  53. if(data.errno == 0 && data.rst){
  54. showMsg(data.rst.msg)
  55. setTimeout(function() {
  56. window.location.href = '/gongjijin/fund_h5/no_open_city02.html'+ '?name=' + qs.name + '&code=' + qs.code + '&token=' + qs.token;
  57. }, 1500);
  58. }
  59. },
  60. error: function(err) {
  61. return showMsg('获取城市信息失败:' + JSON.parse(err.responseText).error);
  62. }
  63. });
  64. }
  65. function goBack () {
  66. window.history.go(-1);
  67. }
  68. function changeCity() {
  69. window.location.href = '/gongjijin/fund_h5/choose_city.html'+ '?name=' + qs.name + '&code=' + qs.code + '&token=' + qs.token;
  70. }
  71. function showMsg(msg) {
  72. var msgBox = $('.alert-info');
  73. msgBox.children('p').text(msg);
  74. msgBox.show();
  75. setTimeout(function() {
  76. msgBox.hide();
  77. }, 1500);
  78. }
  79. </script>