Geen omschrijving
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.

users_gift_shiwu.htm 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>会员中心 - 输入收货人信息 -{eyou:global name='web_name' /}</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
  9. <link href="{eyou:global name='web_cmspath'/}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
  10. {eyou:static file="users/skin/css/basic.css" /}
  11. {eyou:static file="users/skin/css/eyoucms.css" /}
  12. <!-- 新样式 2020-11-25 -->
  13. {eyou:static file="users/skin/css/element/index.css" /}
  14. {eyou:static file="users/skin/css/e-user.css" /}
  15. {eyou:include file="users/skin/css/diy_css.htm" /}
  16. {eyou:static file="/public/static/common/js/jquery.min.js"/}
  17. {eyou:static file="users/skin/js/global.js"/}
  18. {eyou:static file="/public/plugins/layer-v3.1.0/layer.js"/}
  19. {eyou:static file="/public/static/common/js/mobile_global.js"/}
  20. <style type="text/css">
  21. .input-boxs{
  22. display: flex;margin-top: 10px; justify-content: space-between;
  23. }
  24. .input-boxs-con{
  25. width: 100%;display:flex;height: 40px;line-height: 40px;
  26. }
  27. </style>
  28. </head>
  29. <body style="margin:0 ">
  30. <!--手机绑定弹出框2-->
  31. <div style="padding:0 20px;">
  32. <div class="login-popup">
  33. <form id="form1" name='form1' method='POST' action='' >
  34. <input type="hidden" name="gift_id" value="{$post.gift_id}">
  35. <div class="input-boxs">
  36. <div class="input-boxs-con">
  37. <span style="width: 40px;color: #929292;">姓名</span>
  38. <input class="el-input__inner" required type="text" id="name" name="name" value="{$field.name}">
  39. </div>
  40. </div>
  41. <div class="input-boxs">
  42. <div class="input-boxs-con">
  43. <span style="width: 40px;color: #929292;">电话</span>
  44. <input class="el-input__inner" required type="text" id="mobile" name="mobile" value="{$field.mobile}">
  45. </div>
  46. </div>
  47. <div class="input-boxs">
  48. <div class="input-boxs-con">
  49. <span style="width: 40px;color: #929292;">地址</span>
  50. <input class="el-input__inner" required type="text" id="address" name="address" value="{$field.address}">
  51. </div>
  52. </div>
  53. <div style="text-align: center;margin-top: 25px;">
  54. <button type="button" id="btnSignCheck" class="el-button el-button--primary" style="width: 100px;"><span>确&nbsp;定</span></button>
  55. </div>
  56. </form>
  57. </div>
  58. </div>
  59. <!--手机绑定弹出框2 end-->
  60. <script type="text/javascript">
  61. $(function(){
  62. $('#btnSignCheck').click(function(){
  63. if ($.trim($('#name').val()) == '') {
  64. $('#name').focus();
  65. layer.msg('请输入收货人姓名!', {icon: 2, time: 2000});
  66. return false;
  67. }
  68. if ($.trim($('#mobile').val()) == '') {
  69. $('#mobile').focus();
  70. layer.msg('请输入收货人手机号!', {icon: 2, time: 2000});
  71. return false;
  72. }
  73. if ($.trim($('#address').val()) == '') {
  74. $('#address').focus();
  75. layer.msg('请输入收货人详细地址!', {icon: 2, time: 2000});
  76. return false;
  77. }
  78. $.ajax({
  79. url: "{:url('user/Memgift/users_gift_shiwu')}",
  80. type: 'POST',
  81. dataType: 'JSON',
  82. data: $('#form1').serialize(),
  83. success: function(res){
  84. if (1 == res.code) {
  85. var _parent = parent;
  86. _parent.layer.closeAll();
  87. _parent.layer.msg(res.msg, {icon: 1, time: 1500}, function(){
  88. _parent.window.location.reload();
  89. });
  90. } else {
  91. layer.msg(res.msg, {icon: 2, time: 2000});
  92. }
  93. },
  94. error: function(e){
  95. layer.closeAll();
  96. layer.alert('网络失败,请刷新页面后重试', {icon: 5, title:false});
  97. }
  98. })
  99. });
  100. })
  101. </script>
  102. </body>
  103. </html>