gift_card_go_agent.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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,maximum-scale=1, user-scalable=no">
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <link rel="stylesheet" type="text/css" href="//s.iamberry.com/watero/css/mui.min.css">
  10. <link rel="stylesheet" type="text/css" href="//s.iamberry.com/watero/css/iconfont.css" />
  11. <link rel="stylesheet" type="text/css" href="//s.iamberry.com/watero/css/style.css" />
  12. <style>
  13. .tips {padding-bottom: 65px;}
  14. .gift-card-title {padding:55px 0;background: url(//s.iamberry.com/watero/images/shop/gift-card-tit3-bg.jpg) top center /100% auto no-repeat #71d8ec;}
  15. .my-btn-exchange{border: 1px solid rgba(66,199,244,.5) !important;text-align: center;height: 48px !important;width:90% !important;margin-left:5%;}
  16. #btn_submit{padding:7px 0 !important;background: #e3ecee;border: 0;color: #fff;}
  17. .my-footer{position: fixed;text-align: center;width: 100%;left: 0; bottom: 0;padding: 10px 0;font-size:12px;color:#c5c5c5;}
  18. #btn_submit.my-active{background:#6fd7eb;}
  19. </style>
  20. <script>
  21. // 屏蔽分享
  22. window.hiddenAllWechatMenu = true;
  23. </script>
  24. </head>
  25. <body style="background: #fff;">
  26. <div class="loading-bg">
  27. <div class="mui-loading">
  28. <div class="mui-spinner"></div>
  29. &nbsp;&nbsp;加载中...
  30. </div>
  31. </div>
  32. <div class="mui-content" style="background: #fff;">
  33. <div class="tips">
  34. <ul class="mui-table-view gift-card-title">
  35. <li class="mui-table-view-cell mui-text-left mui-collapse"></li>
  36. </ul>
  37. <div style="margin: 90px 13% 80px 13%;">
  38. <input type="tel" value="" placeholder="请输入暗号" maxlength="6" class="mui-input-clear my-btn-exchange" id="ipt-exchange"/>
  39. <br/><br/>
  40. <button type="button" data-loading-icon="mui-spinner mui-spinner-custom" data-loading-text="提交中" class="mui-btn mui-btn-block mui-btn-outlined" id="btn_submit" disabled="disabled">确认</button>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="my-footer">
  45. 深圳爱贝源科技有限公司<br/>400-8006692
  46. </div>
  47. <script src="//s.iamberry.com/watero/js/mui.min.js"></script>
  48. <script src="//s.iamberry.com/watero/js/jquery-2.1.1.min.js"></script>
  49. <script src="//s.iamberry.com/watero/js/shop/main.js"></script>
  50. <script src="//s.iamberry.com/watero/js/shop/wechat-utils-1.0.js"></script>
  51. <script type="text/javascript">
  52. var code='031552';
  53. mui.ready(function(){
  54. document.querySelector('.loading-bg').style.display='none';
  55. });
  56. mui.os.ios ? listener_ipt() : keyup_fn();
  57. function keyup_fn() {
  58. $('body').on('keyup', '#ipt-exchange', function(e) {
  59. //传参数并加载数据
  60. var str = $.trim($('#ipt-exchange').val());
  61. if(str==code){
  62. $("#btn_submit").addClass("my-active").removeAttr("disabled");
  63. }else{
  64. $("#btn_submit").removeClass("my-active").prop("disabled","disabled");
  65. }
  66. });
  67. }
  68. function listener_ipt() {
  69. document.getElementById('ipt-exchange').onblur = function() {
  70. //传参数并加载数据
  71. var str = $.trim($('#ipt-exchange').val());
  72. if(str==code){
  73. $("#btn_submit").addClass("my-active").removeAttr("disabled");
  74. }else{
  75. $("#btn_submit").removeClass("my-active").prop("disabled","disabled");
  76. }
  77. }
  78. }
  79. mui('body').on('tap','#btn_submit',function() {
  80. if($.trim($('#ipt-exchange').val())==code){
  81. mui.openWindow({url: '/watero/view/gift_card_to_agent.html'})
  82. }
  83. });
  84. </script>
  85. </body>
  86. </html>