{"id":906,"date":"2017-03-12T11:59:34","date_gmt":"2017-03-12T03:59:34","guid":{"rendered":"http:\/\/www.qdabc.cn\/?p=906"},"modified":"2017-03-12T11:55:10","modified_gmt":"2017-03-12T03:55:10","slug":"%e6%89%8b%e6%9c%ba%e5%8f%91%e9%80%81%e9%aa%8c%e8%af%81%e7%a0%81","status":"publish","type":"post","link":"http:\/\/www.qdabc.cn\/?p=906","title":{"rendered":"\u624b\u673a\u53d1\u9001\u9a8c\u8bc1\u7801"},"content":{"rendered":"<pre class=\"brush:html;toolbar:false\">&lt;!DOCTYPE html&gt;\r\n&lt;html &gt;\r\n&lt;head&gt;\r\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\" \/&gt;\r\n&lt;title&gt;\u53d1\u9001\u9a8c\u8bc1\u7801\u5012\u8ba1\u65f6\u529f\u80fd&lt;\/title&gt;\r\n&lt;style&gt;\r\n\r\n@charset \"utf-8\";\r\n*{ margin:0; padding:0; list-style:none}\r\nbody{ background:#EBECED; font-family:'\u5fae\u8f6f\u96c5\u9ed1'}\r\n\r\n.form{width: 450px;height: auto; margin:100px auto; overflow:hidden;font-size: 16px;color: #1b1b1b;text-align: left; padding:50px; border:1px solid #ccc; border-radius:10px;}\r\n.form div{padding:5px 0;overflow: hidden;}\r\n.form label{width: 90px;display: block;float: left;}\r\n.form .infos{width:200px;height: 26px;line-height: 26px;border:1px solid #BFBFBF;padding:2px;border-radius:4px;float: left;}\r\n.form .div-phone a.send1{height: 26px;text-decoration:none;line-height: 26px;padding:2px;width: 80px;background: #AA8926;font-family: '\u5b8b\u4f53';color: #fff;font-size: 12px;text-align: center;display: block;float: left;border-radius:2px;margin-left:2px;-webkit-transition:all 0.2s linear;-moz-transition:all 0.2s linear;-ms-transition:all 0.2s linear;-o-transition:all 0.2s linear;transition:all 0.2s linear;}\r\n.form .div-phone a.send1:hover{text-decoration: none;background: #866c1b;-webkit-transition:all 0.2s linear;-moz-transition:all 0.2s linear;-ms-transition:all 0.2s linear;-o-transition:all 0.2s linear;transition:all 0.2s linear;}\r\n.form .div-phone a.send0{height: 26px;text-decoration:none;line-height: 26px;padding:2px;width: 80px;background: #A1A1A1;font-family: '\u5b8b\u4f53';color: #fff;font-size: 12px;text-align: center;display: block;float: left;border-radius:2px;margin-left:2px;}\r\n.form .div-phone a.send0:hover{background: #A1A1A1;font-family: '\u5b8b\u4f53';color: #fff;font-size: 12px;text-decoration: none;}\r\n.form span.error{height: 26px;line-height: 26px;padding:2px;width: 100px;color: red;padding-left:20px;display: block;float: left;margin-left:10px;font-size: 12px;font-family: '\u5b8b\u4f53';background: url(..\/images\/error.png) no-repeat left center;}\r\n.form #phone{width: 116px;}\r\n.form .div-conform{padding-right:153px;}\r\n.form .div-conform a.conform{width: 136px;height: 34px;display: block;text-align: left;overflow: hidden;background: url(..\/images\/btn.jpg) no-repeat;float: right;text-indent: -1000px;}\r\n\r\n\r\n&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;!--\u4ee3\u7801\u90e8\u5206begin--&gt;\r\n&lt;div class=\"form\"&gt;\r\n  &lt;div class=\"div-name\"&gt;\r\n    &lt;label for=\"name\"&gt;\u7528\u6237\u540d&lt;\/label&gt;&lt;input type=\"text\" id=\"name\" class=\"infos\" placeholder=\"\u8bf7\u8f93\u5165\u7528\u6237\u540d\" \/&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"div-phone\"&gt;\r\n    &lt;label for=\"phone\"&gt;\u624b\u673a&lt;\/label&gt;&lt;input type=\"text\" id=\"phone\" class=\"infos\" placeholder=\"\u8bf7\u8f93\u5165\u624b\u673a\" \/&gt;\r\n    &lt;a href=\"javascript:;\" class=\"send1\" onclick=\"sends.send();\"&gt;\u53d1\u9001\u9a8c\u8bc1\u7801&lt;\/a&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"div-ranks\"&gt;\r\n    &lt;label for=\"ranks\"&gt;\u9a8c\u8bc1\u7801&lt;\/label&gt;&lt;input type=\"text\" id=\"ranks\" class=\"infos\" placeholder=\"\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801\"  \/&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div class=\"div-conform\"&gt;\r\n    &lt;a href=\"javascript:;\" class=\"conform\" onclick=\"sends.conform();\"&gt;\u63d0\u4ea4&lt;\/a&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;script src=\"http:\/\/www.lanrenzhijia.com\/ajaxjs\/jquery.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script&gt;\r\nvar sends = {\r\n  checked:1,\r\n  send:function(){\r\n      var numbers = \/^1\\d{10}$\/;\r\n      var val = $('#phone').val().replace(\/\\s+\/g,\"\"); \/\/\u83b7\u53d6\u8f93\u5165\u624b\u673a\u53f7\u7801\r\n      if($('.div-phone').find('span').length == 0 &amp;&amp; $('.div-phone a').attr('class') == 'send1'){\r\n        if(!numbers.test(val) || val.length ==0){\r\n          $('.div-phone').append('&lt;span class=\"error\"&gt;\u624b\u673a\u683c\u5f0f\u9519\u8bef&lt;\/span&gt;');\r\n          return false;\r\n        }\r\n      }\r\n      if(numbers.test(val)){\r\n        var time = 30;\r\n        $('.div-phone span').remove();\r\n        function timeCountDown(){\r\n          if(time==0){\r\n            clearInterval(timer);\r\n            $('.div-phone a').addClass('send1').removeClass('send0').html(\"\u53d1\u9001\u9a8c\u8bc1\u7801\");\r\n            sends.checked = 1;\r\n            return true;\r\n          }\r\n          $('.div-phone a').html(time+\"S\u540e\u518d\u6b21\u53d1\u9001\");\r\n          time--;\r\n          return false;\r\n          sends.checked = 0;\r\n        }\r\n        $('.div-phone a').addClass('send0').removeClass('send1');\r\n        timeCountDown();\r\n        var timer = setInterval(timeCountDown,1000);\r\n      }\r\n  }\r\n}\r\n&lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p class=\"post-copyright\">\u6b22\u8fce\u5206\u4eab\u672c\u6587\uff0c\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u51fa\u5904\uff1a<a href=\"http:\/\/www.qdabc.cn\">\u524d\u7aefABC<\/a> &raquo; <a href=\"http:\/\/www.qdabc.cn\/?p=906\">\u624b\u673a\u53d1\u9001\u9a8c\u8bc1\u7801<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>&lt;!DOCTYPE html&gt; &lt;html &gt; &lt;head&gt; &lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text\/ht [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":72,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[171],"_links":{"self":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts\/906"}],"collection":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=906"}],"version-history":[{"count":1,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts\/906\/revisions"}],"predecessor-version":[{"id":907,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts\/906\/revisions\/907"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/media\/72"}],"wp:attachment":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=906"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}