You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
5.6 KiB

8 years ago
  1. <!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/>
  2. <title>注册</title><meta name="keywords" content="关键词"><meta name="description" content="描述"><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
  3. <link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet">
  4. <script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script>
  5. <script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script>
  6. <link href="<?php echo env('APP_URL'); ?>/css/font-awesome.min.css" type="text/css" rel="stylesheet"></head><body>
  7. <div class="classreturn loginsignup">
  8. <div class="ds-in-bl return"><a href="javascript:history.back(-1);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/return.png" alt="返回"></a></div>
  9. <div class="ds-in-bl tit center"><span>注册</span></div>
  10. <div class="ds-in-bl nav_menu"><a href="javascript:void(0);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/class1.png" alt="菜单"></a></div>
  11. </div>
  12. <div class="flool tpnavf cl">
  13. <div class="nav_list">
  14. <ul>
  15. <a href="index.html"><li><img src="<?php echo env('APP_URL'); ?>/images/weixin/home_icon.png"><p>首页</p></li></a>
  16. <a href="/Weixin/index.php?m=Store&amp;a=index"><li><img src="<?php echo env('APP_URL'); ?>/images/weixin/brand_icon.png"><p>分类</p></li></a>
  17. <a href="/Weixin/index.php?m=Cart&amp;a=index"><li><img src="<?php echo env('APP_URL'); ?>/images/weixin/car_icon.png"><p>购物车</p></li></a>
  18. <a href="/Weixin/index.php?m=User&amp;a=index"><li><img src="<?php echo env('APP_URL'); ?>/images/weixin/center_icon.png"><p>个人中心</p></li></a></ul>
  19. <div class="cl"></div>
  20. </div>
  21. </div>
  22. <style>
  23. .account{text-align:center;margin-top:50px;}
  24. .account .icon{color:#FFCC00;font-size:100px;}
  25. .bottoma{display:block;font-size:18px;padding:10px;border-radius:2px;}
  26. .adr_add{margin:0 10px;}
  27. .adr-form-group{margin-top:10px;}
  28. .adr-form-group input[type=text],.adr-form-group input[type=password]{display:block;width:100%;font-size:16px;padding:12px;color:#777;vertical-align:middle;background-color:#fff;background-image:none;border:1px solid #ddd;border-radius:0;box-sizing:border-box;}
  29. .reg a{color:#2393df;}
  30. </style>
  31. <div class="floor account">
  32. <div class="icon"><i class="fa fa-user-circle" aria-hidden="true"></i></div>
  33. <br>
  34. <form id="login" action="" method="post">
  35. <div class="adr_add">
  36. <div class="adr-form-group">
  37. <input type="text" name="user_name" class="" id="user_name" placeholder="请输入用户名">
  38. </div>
  39. <div class="adr-form-group">
  40. <input type="text" name="mobile" class="" id="mobile" placeholder="请输入手机号码">
  41. </div>
  42. <div class="adr-form-group">
  43. <input type="password" name="password" class="" id="password" placeholder="请输入密码">
  44. </div>
  45. <div class="adr-form-group">
  46. <input type="password" name="re_password" class="" id="re_password" placeholder="确认密码">
  47. </div>
  48. </div>
  49. </form>
  50. <a style="margin:10px;background-color:#1aad19;text-align:center;color:white;border:1px solid #179e16;" class="bottoma" href="javascript:submit();">提交</a>
  51. </div>
  52. <div class="box reg">
  53. <a style="float:left;" href="<?php echo route('weixin_login'); ?>">已有账号</a>
  54. </div>
  55. <script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/md5.min.js"></script>
  56. <script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/layer/mobile/layer.js"></script>
  57. <script>
  58. function submit()
  59. {
  60. var user_name = $("#user_name").val();
  61. var mobile = $("#mobile").val();
  62. var password = $("#password").val();
  63. var re_password = $("#re_password").val();
  64. if(user_name == '')
  65. {
  66. //提示
  67. layer.open({
  68. content: '用户名不能为空'
  69. ,skin: 'msg'
  70. ,time: 2 //2秒后自动关闭
  71. });
  72. return false;
  73. }
  74. if(mobile == '')
  75. {
  76. //提示
  77. layer.open({
  78. content: '手机号不能为空'
  79. ,skin: 'msg'
  80. ,time: 2 //2秒后自动关闭
  81. });
  82. return false;
  83. }
  84. if(!validatemobile(mobile))
  85. {
  86. //提示
  87. layer.open({
  88. content: '手机号格式不正确'
  89. ,skin: 'msg'
  90. ,time: 2 //2秒后自动关闭
  91. });
  92. return false;
  93. }
  94. if(password == '')
  95. {
  96. //提示
  97. layer.open({
  98. content: '密码不能为空'
  99. ,skin: 'msg'
  100. ,time: 2 //2秒后自动关闭
  101. });
  102. return false;
  103. }
  104. if(password != re_password)
  105. {
  106. //提示
  107. layer.open({
  108. content: '两次密码不一致'
  109. ,skin: 'msg'
  110. ,time: 2 //2秒后自动关闭
  111. });
  112. return false;
  113. }
  114. $("#login").submit();
  115. /* $.post('<?php echo env('APP_API_URL').'/wx_login'; ?>',{user_name:user_name,password:md5(password)},function(res)
  116. {
  117. if(res.code==0)
  118. {
  119. //提示
  120. layer.open({
  121. content: '登录成功'
  122. ,skin: 'msg'
  123. ,time: 2 //2秒后自动关闭
  124. });
  125. location.href = '<?php if(isset($_SERVER["HTTP_REFERER"])){echo $_SERVER["HTTP_REFERER"];}else{echo route('weixin_user');} ?>';
  126. }
  127. else
  128. {
  129. }
  130. },'json'); */
  131. }
  132. </script>
  133. @include('weixin.common.footer')
  134. </body></html>