暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

users_gift_shiwu.htm 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. <style type="text/css">
  20. .input-boxs{
  21. display: flex;margin-top: 10px; justify-content: space-between;
  22. }
  23. .input-boxs-con{
  24. width: 100%;display:flex;height: 40px;line-height: 40px;
  25. }
  26. </style>
  27. </head>
  28. <body style="margin:0 ">
  29. <!--手机绑定弹出框2-->
  30. <div style="padding:0 20px;">
  31. <div class="login-popup">
  32. <form id="form1" name='form1' method='POST' action='' >
  33. <input type="hidden" name="gift_id" value="{$post.gift_id}">
  34. <div class="input-boxs">
  35. <div class="input-boxs-con">
  36. <span style="width: 40px;color: #929292;">姓名</span>
  37. <input class="el-input__inner" required type="text" id="name" name="name" value="{$field.name}">
  38. </div>
  39. </div>
  40. <div class="input-boxs">
  41. <div class="input-boxs-con">
  42. <span style="width: 40px;color: #929292;">电话</span>
  43. <input class="el-input__inner" required type="text" id="mobile" name="mobile" value="{$field.mobile}">
  44. </div>
  45. </div>
  46. <div class="input-boxs">
  47. <div class="input-boxs-con">
  48. <span style="width: 40px;color: #929292;">地址</span>
  49. <input class="el-input__inner" required type="text" id="address" name="address" value="{$field.address}">
  50. </div>
  51. </div>
  52. <div style="text-align: center;margin-top: 25px;">
  53. <button type="button" id="btnSignCheck" class="el-button el-button--primary" style="width: 100px;"><span>确&nbsp;定</span></button>
  54. </div>
  55. </form>
  56. </div>
  57. </div>
  58. <!--手机绑定弹出框2 end-->
  59. <script type="text/javascript">
  60. $(function(){
  61. $('#btnSignCheck').click(function(){
  62. if ($.trim($('#name').val()) == '') {
  63. $('#name').focus();
  64. layer.msg('请输入收货人姓名!', {icon: 2, time: 2000});
  65. return false;
  66. }
  67. if ($.trim($('#mobile').val()) == '') {
  68. $('#mobile').focus();
  69. layer.msg('请输入收货人手机号!', {icon: 2, time: 2000});
  70. return false;
  71. }
  72. if ($.trim($('#address').val()) == '') {
  73. $('#address').focus();
  74. layer.msg('请输入收货人详细地址!', {icon: 2, time: 2000});
  75. return false;
  76. }
  77. $.ajax({
  78. url: "{:url('user/Memgift/users_gift_shiwu')}",
  79. type: 'POST',
  80. dataType: 'JSON',
  81. data: $('#form1').serialize(),
  82. success: function(res){
  83. if (1 == res.code) {
  84. var _parent = parent;
  85. _parent.layer.closeAll();
  86. _parent.layer.msg(res.msg, {icon: 1, time: 1500}, function(){
  87. _parent.window.location.reload();
  88. });
  89. } else {
  90. layer.msg(res.msg, {icon: 2, time: 2000});
  91. }
  92. },
  93. error: function(e){
  94. layer.closeAll();
  95. layer.alert('网络失败,请刷新页面后重试', {icon: 5, title:false});
  96. }
  97. })
  98. });
  99. })
  100. </script>
  101. </body>
  102. </html>