odersearch.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>订单查询</title>
  6. <meta charset="utf-8" />
  7. <meta content="no-cache,must-revalidate" http-equiv="Cache-Control" />
  8. <meta content="no-cache" http-equiv="pragma" />
  9. <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=2.0,minimum-scale=1.0,user-scalable=no;" />
  10. <meta name="apple-mobile-web-app-capable" content="yes" />
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  12. <meta name="format-detection" content="telephone=no" />
  13. <script src="/other/odersearch/jquery-1.11.3.min.js"></script>
  14. <link rel="stylesheet" href="/other/odersearch/cx.css">
  15. <script type="text/javascript" src="/other/odersearch/rem.js"></script>
  16. <script>
  17. function sub() {
  18. var phone = $("#phone").val().trim();
  19. if (phone == "") {
  20. alert("请输入收件人手机号");
  21. return false;
  22. } else if (phone.length != 11) {
  23. alert("输入的号码有误");
  24. return false;
  25. }
  26. location.href = "/kzq/GetOrder.php?phone=" + phone;
  27. }
  28. $(document).ready(function() {
  29. $('#phone').keypress(function(e) {
  30. if (e.which == 13) { // 按下回车键
  31. e.preventDefault(); // 阻止默认行为
  32. sub(); // 调用查询函数
  33. }
  34. });
  35. });
  36. </script>
  37. </head>
  38. <body>
  39. <div class="cx_cen">
  40. <div class="cx_1"><img src="/img/top1.png" width="" height="" alt="" /></div>
  41. <div class="cx_2">
  42. <form>
  43. <input class="cx_text" type="text" id="phone" name="phone" placeholder="请输入收货人手机号码">
  44. <a class="cx_btn" href="javascript:sub();">查询</a>
  45. </form>
  46. </div>
  47. <!--<div class="cx_3"><img src="/images/top2.png" width="" height="" alt="" /></div>-->
  48. </div>
  49. </body>
  50. </html>