Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

users_centre.htm 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta 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. {eyou:static file="users/skin/css/element/index.css" /}
  13. {eyou:static file="users/skin/css/e-user.css" /}
  14. {eyou:include file="users/skin/css/diy_css.htm" /}
  15. {eyou:static file="/public/static/common/js/jquery.min.js"/}
  16. {eyou:static file="/public/plugins/layer-v3.1.0/layer.js"/}
  17. {eyou:static file="/public/static/common/js/tag_global.js"/}
  18. {eyou:static file="/public/static/common/js/mobile_global.js"/}
  19. </head>
  20. <body>
  21. <div class="ey-header-status">
  22. <div class="header-status-l"><a href="javascript:history.go(-1);"><i class="el-icon-arrow-left"></i></a></div>
  23. <div class="header-status-m">个人设置</div>
  24. <div class="header-status-r"></div>
  25. </div>
  26. <div class="blank-big"></div>
  27. <div class="ey-userinfo-box ey-container">
  28. <div class="list_item">
  29. <div class="list_left">头像</div>
  30. <div class="flex-dir-row flex-y-center">
  31. <div class="face">
  32. <div class="el-upload el-upload--text" onclick="$('#uploadHeadPicClick').trigger('click');">
  33. <img id="uploadHeadPicImg" src="{$users.head_pic|get_head_pic=###}"/>
  34. </div>
  35. <input type="file" id="uploadHeadPicClick" data-max_file_size="2" onchange="uploadHeadPicFile(this);" style="display: none;">
  36. </div>
  37. </div>
  38. </div>
  39. <div class="list_item">
  40. <div class="list_left">用户名</div>
  41. <div class="flex-dir-row flex-y-center">{$users.username}</div>
  42. </div>
  43. <div class="list_item">
  44. <div class="list_left">会员等级</div>
  45. <div class="flex-dir-row flex-y-center">
  46. <a href="{eyou:url link='user/Level/level_centre'/}">{$users.level_name}</a>
  47. </div>
  48. <span class="beta_arrow_right"></span>
  49. </div>
  50. <form name='theForm' id="theForm">
  51. <input type="hidden" name="head_pic_edit" id="uploadHeadPicDdit" value="0">
  52. <input type="hidden" name="head_pic" id="uploadHeadPic" value="{$users.head_pic}">
  53. {eyou:empty name="$users.password"}
  54. <div class="list_item">
  55. <div class="list_left">设置密码</div>
  56. <div class="flex-dir-row flex-y-center">
  57. <input type="text" name="password" id="password" class="input-text tar_z" placeholder="微信注册用户,请设置密码">
  58. </div>
  59. </div>
  60. {eyou:else/}
  61. <div class="list_item">
  62. <div class="list_left">修改密码</div>
  63. <div class="flex-dir-row flex-y-center">
  64. <input type="text" name="password_edit" autocomplete="off" placeholder="留空时默认不修改密码" class="input-text">
  65. </div>
  66. </div>
  67. {/eyou:empty}
  68. <div class="list_item">
  69. <div class="list_left">昵称</div>
  70. <div class="flex-dir-row flex-y-center">
  71. <input type="text" name="nickname" value="{$users.nickname}" class="input-text">
  72. </div>
  73. </div>
  74. <!-- 更多资料中的会员属性 -->
  75. {eyou:include file="users/users_centre_field.htm" /}
  76. <div class="h50"></div>
  77. <div class="public-btn"><a href="JavaScript:void(0);" onclick="submitSaveUsers();">保存资料</a></div>
  78. </form>
  79. </div>
  80. {eyou:static file="users/skin/js/users_centre.js"/}
  81. <script type="text/javascript">
  82. // 修改会员属性信息
  83. function submitSaveUsers() {
  84. {$pwdJsCode|default=''}
  85. showLayerLoad();
  86. $.ajax({
  87. url : eyou_basefile + "?m=user&c=Users&a=centre_update&_ajax=1",
  88. data: $('#theForm').serialize(),
  89. type: 'post',
  90. dataType: 'json',
  91. success: function(res) {
  92. layer.closeAll();
  93. if (1 == res.code) {
  94. showLayerMsg(res.msg, 2, function() {
  95. window.location.reload();
  96. });
  97. } else {
  98. showLayerMsg(res.msg);
  99. }
  100. },
  101. error: function(e) {
  102. layer.closeAll();
  103. showLayerAlert(e.responseText);
  104. }
  105. });
  106. };
  107. </script>
  108. </body>
  109. </html>