wxjb.htm 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="user-scalable=no" />
  6. <title>微信解绑</title>
  7. <script src="views/haifm/js/jquery-2.1.1.min.js"></script>
  8. <style type="text/css">
  9. *{
  10. padding: 0;
  11. margin: 0;
  12. }
  13. body,html{
  14. background: #fff;
  15. overflow: hidden;
  16. }
  17. img{
  18. width: 3.24rem;
  19. height: 3.24rem;
  20. margin-top:1.12rem ;
  21. margin-bottom: 0.5rem;
  22. }
  23. h2{
  24. width: 100%;
  25. height: 1rem;
  26. line-height: 1rem;
  27. font-size: 0.5rem;
  28. text-align: center;
  29. }
  30. button{
  31. width: 90%;
  32. height: 0.8rem;
  33. margin-left: 5%;
  34. margin-top: 5%;
  35. border: none;
  36. border-radius: 0.2rem;
  37. font-size: 0.5rem;
  38. font-weight: bold;
  39. outline: none;
  40. }
  41. .green{
  42. margin-top: 0.5rem;
  43. background-color: #1aad17;
  44. color: #fff;
  45. }
  46. .black{
  47. margin-top: 0.3rem;
  48. background-color: #f8f8f8;
  49. border: 1px solid #ccc;
  50. color: #000;
  51. }
  52. </style>
  53. <script type="text/javascript">
  54. function wxjb() {
  55. jQuery.getJSON("haifmWxjb.htm", {"openId" : $("#openId").val()}, function(data) {
  56. alert("解绑成功!");
  57. window.location.href="mdllogin.htm?openId=" + $("#openId").val();
  58. });
  59. }
  60. function qx() {
  61. window.location.href="about:blank";
  62. window.close();
  63. }
  64. </script>
  65. </head>
  66. <body>
  67. <input type="hidden" id="openId" value="$!openId">
  68. <div style="text-align:center"><img src="views/haifm/images/warning.jpg" /></div>
  69. <h2>你确认要解绑当前</h2>
  70. <h2>口袋牧场登录信息吗?</h2>
  71. <button class="green" onclick="javascript:wxjb();">确定</button>
  72. </body>
  73. <script type="text/javascript">
  74. (function (doc,win) {
  75. var docEl = doc.documentElement;
  76. //判断窗口有没有orientationchange这个方法,有就赋值给一个变量,没有就返回resize方法。
  77. var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
  78. var recalc = function () {
  79. var clientWidth = docEl.clientWidth;
  80. if (!clientWidth) return;
  81. if(clientWidth>=744){
  82. docEl.style.fontSize = '100px';
  83. }else{
  84. docEl.style.fontSize = 100 * (clientWidth / 744) + 'px';
  85. }
  86. };
  87. if (!doc.addEventListener) return;
  88. win.addEventListener(resizeEvt, recalc, false);
  89. doc.addEventListener('DOMContentLoaded', recalc, false);
  90. })(document, window);
  91. </script>
  92. </html>