525340db9e2910b77cb4ffdc2f85879c.php 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:108:"/usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/index/view/user/login.html";i:1662198762;s:102:"/usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/application/index/view/layout/default.html";i:1578532270;}*/ ?>
  2. <!doctype html>
  3. <html class="no-js">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="description" content="">
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  9. <meta name="keywords" content="">
  10. <title>商城</title>
  11. <!-- Set render engine for 360 browser -->
  12. <meta name="renderer" content="webkit">
  13. <link rel="stylesheet" href="/assets/shop/css/normalize.css" />
  14. <link rel="stylesheet" href="/assets/shop/css/amazeui.css">
  15. <link rel="stylesheet" href="/assets/shop/css/app.css">
  16. <link rel="stylesheet" href="/assets/shop/css/login.css">
  17. <style>
  18. body {
  19. background: url(<?php echo config('site')['loginBg']; ?>);
  20. background-size: cover;
  21. }
  22. .name{
  23. font-size: 2rem;
  24. color: #fff;
  25. font-weight: bold;
  26. }
  27. </style>
  28. </head>
  29. <body data-html="login">
  30. <!-- form -->
  31. <div class="pos_re am-padding-top-lg" >
  32. <div class="am-text-center am-padding-top-sm am-padding-bottom-sm">
  33. <img src="<?php echo config('site')['web_site_logo']; ?>"style="width: 100px;border-radius: 100%;">
  34. <p class="name"><?php echo config('site')['name']; ?></p>
  35. </div>
  36. <div class="form-box am-margin-left am-margin-right am-radius" style="margin-top:2rem;background:ffffff69; border-radius: 10px;">
  37. <form class="am-form am-padding-left am-padding-right" id="form1" style="padding-top:4rem;padding-bottom: 2rem;">
  38. <?php echo token(); ?>
  39. <div class="am-form-group am-form-icon am-margin-bottom-lg">
  40. <img class="icons" src="/assets/shop/img/login_user.png" >
  41. <input type="text" class="am-form-field am-input-lg" placeholder="请输入手机号" value="" name="account">
  42. </div>
  43. <div class="am-form-group am-form-icon">
  44. <img class="icons" src="/assets/shop/img/login_pwd.png" >
  45. <input type="password" class="am-form-field" placeholder="请输入登录密码" value="" name="password">
  46. </div>
  47. <div class="am-form-group am-form-icon">
  48. <img class="icons" src="/assets/shop/img/login_verify.png" >
  49. <input type="text" class="am-form-field am-input-lg" placeholder="请输入商家编号" value="" name="studio">
  50. </div>
  51. <div class="am-form-group am-form-icon am-margin-top-lg am-margin-bottom-lg">
  52. <button type="button" class="am-btn am-btn-danger am-round am-btn-block " id="submit">登录</button>
  53. </div>
  54. <div class="am-g">
  55. <a href="findpwd.html" class="am-u-sm-6" style="color: #fff;">忘记密码</a>
  56. <a href="<?php echo config('site')['appdowm']; ?>" style="color: #fff;" class="am-u-sm-6 am-text-right">下载App</a>
  57. </div>
  58. </form>
  59. </div>
  60. </div>
  61. <script src="/assets/shop/js/jquery.min.js"></script>
  62. <script src="/assets/shop/js/amazeui.js"></script>
  63. <script src="/assets/libs/layer/layer.js"></script>
  64. <script>
  65. $('#submit').click(function(){
  66. var formData = new FormData($('#form1')[0]);
  67. $.ajax({
  68. type: "POST",
  69. url: "<?php echo url('user/login'); ?>",
  70. data: formData,
  71. contentType: false,
  72. processData: false,
  73. success: function(data) {
  74. console.log(data);
  75. layer.msg(data.msg,{time:1000},function(){
  76. if(data.code >0 )
  77. {
  78. location='/shop/index/index';
  79. }else{
  80. location=location;
  81. }
  82. });
  83. },
  84. error: function(XMLHttpRequest, textStatus, errorThrown) {
  85. layer.msg("<?php echo __('网络错误,请稍后重试'); ?>");
  86. }
  87. });
  88. });
  89. </script>
  90. </body>
  91. </html>