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 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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/eyoucms.css"/}
  11. {eyou:static file="users/skin/css/element/index.css"/}
  12. {eyou:static file="users/skin/css/e-user.css"/}
  13. {eyou:include file="users/skin/css/diy_css.htm"/}
  14. {eyou:static file="/public/static/common/js/jquery.min.js"/}
  15. {eyou:static file="/public/plugins/layer-v3.1.0/layer.js"/}
  16. {eyou:static file="/public/static/common/js/tag_global.js"/}
  17. </head>
  18. <body >
  19. {eyou:include file="users/users_header.htm" /}
  20. <div class="breadcrumbs"></div>
  21. <div class="ey-body-bg">
  22. <div class="ey-body pd0">
  23. <div class="ey-container w1226">
  24. {eyou:include file="users/users_left.htm" /}
  25. <div class="ey-con fr" >
  26. <div class="el-main user-info-con main-bg">
  27. <div class="user-info-box">
  28. <div class="user-info-title"><h1>个人信息</h1></div>
  29. <div class="user-info">
  30. <div class="info">
  31. <div class="item-from-row user-info-pic">
  32. <div class="from-row-l">头像:</div>
  33. <div class="from-row-r ">
  34. <div class="el-upload el-upload--text face" onclick="$('#uploadHeadPicClick').trigger('click');">
  35. <img id="uploadHeadPicImg" class="img-fluid rounded-circle" src="{$users.head_pic|get_head_pic=###}"/>
  36. <span title="编辑头像" class="el-icon-edit-outline"></span>
  37. </div>
  38. <input type="file" id="uploadHeadPicClick" onchange="uploadHeadPicFile(this);" style="display: none;">
  39. </div>
  40. </div>
  41. <div class="item-from-row">
  42. <div class="from-row-l">用户名:</div>
  43. <div class="from-row-r">{$users.username}</div>
  44. </div>
  45. <form name='theForm' id="theForm">
  46. <input type="hidden" name="head_pic_edit" id="uploadHeadPicDdit" value="0">
  47. <input type="hidden" name="head_pic" id="uploadHeadPic" value="{$users.head_pic}">
  48. <div class="item-from-row">
  49. <div class="from-row-l">修改密码:</div>
  50. <div class="from-row-r">
  51. <input type="text" name="password_edit" id="password_edit" autocomplete="off" class="el-input__inner w310" placeholder="留空时默认不修改密码">
  52. </div>
  53. </div>
  54. <div class="item-from-row">
  55. <div class="from-row-l">昵称:</div>
  56. <div class="from-row-r">
  57. <input type="text" name="nickname" value="{$users.nickname}" autocomplete="off" class="el-input__inner w310">
  58. </div>
  59. </div>
  60. <div class="item-from-row">
  61. <div class="from-row-l">会员等级:</div>
  62. <div class="from-row-r">
  63. <span class="err">
  64. <a href="{eyou:url link='user/Level/level_centre'/}">{$users.level_name}</a>
  65. </span>
  66. </div>
  67. </div>
  68. <!-- 更多资料中的会员属性 -->
  69. {eyou:include file="users/users_centre_field.htm" /}
  70. {eyou:volist name=":users_log_off();" id='field'}
  71. <div class="item-from-row">
  72. <div class="from-row-l">
  73. 账号注销:
  74. </div>
  75. <div class="from-row-r">
  76. <span class="err"><a href="JavaScript:void(0);" {$field.func}>{$field.text}</a></span>
  77. </div>
  78. </div>
  79. {$field.hidden}
  80. {/eyou:volist}
  81. <div class="item-from-row">
  82. <div class="from-row-l">&nbsp;</div>
  83. <div class="from-row-r">
  84. <input type="button" onclick="submitSaveUsers();" class="user-info-button" value="保存资料"/>
  85. </div>
  86. </div>
  87. </form>
  88. </div>
  89. </div>
  90. {notempty name="$thirdparty"}
  91. <div class="user-info mt30" style=" border-top: 1px solid #efefef; ">
  92. <div class="face fl">
  93. </div>
  94. <div class="info fr">
  95. <div class="item-from-row">
  96. <div class="from-row-l">
  97. 社交帐号绑定:
  98. </div>
  99. <div class="from-row-r">
  100. {notempty name="$thirdparty.is_qq"}
  101. <div class="row relate-box">
  102. <div class="relate-img fl">
  103. <img src="{eyou:static file='users/skin/images/login_qq.png' /}">
  104. <p>QQ</p>
  105. </div>
  106. <div class="relate-txt fl">
  107. {eyou:notempty name="$thirdparty['qq']"}
  108. {$thirdparty['qq']['nickname']}
  109. {else /}
  110. 未绑定
  111. {/eyou:notempty}
  112. </div>
  113. <div class="relate-bt fl">
  114. {eyou:if condition="!empty($thirdparty['qq']) && $users.users_id == $thirdparty['qq']['users_id']"}
  115. <a class="no" href="javascript:void(0);" onclick="un_qq_code();">
  116. <div class="hover-box">
  117. <span class="before-hover">已绑定</span>
  118. <span class="after-hover">解除绑定</span>
  119. </div>
  120. </a>
  121. {else /}
  122. <a class="ok" href="javascript:void(0);" onclick="bind_qq_code();">绑定</a>
  123. {/eyou:if}
  124. </div>
  125. </div>
  126. <script type="text/javascript">
  127. var un_qq_code_url = "{eyou:url link='plugins/QqLogin/bindauth'/}";
  128. var bind_qq_code_url = "{:url('plugins/QqLogin/login', ['bangding'=>1])}";
  129. </script>
  130. {eyou:static file="/public/static/common/js/qq_bind.js"/}
  131. {/notempty}
  132. {notempty name="$thirdparty.is_wx"}
  133. <div class="row relate-box">
  134. <div class="relate-img fl">
  135. <img src="{eyou:static file='users/skin/images/login_wx.png' /}">
  136. <p>微信</p>
  137. </div>
  138. <div class="relate-txt fl">
  139. {eyou:notempty name="$thirdparty['wx']"}
  140. {$thirdparty['wx']['nickname']}
  141. {else /}
  142. 未绑定
  143. {/eyou:notempty}
  144. </div>
  145. <div class="relate-bt fl">
  146. {eyou:if condition="!empty($thirdparty['wx']) && $users.users_id == $thirdparty['wx']['users_id']"}
  147. <a class="no" href="javascript:void(0);" onclick="un_wx_code();">
  148. <div class="hover-box">
  149. <span class="before-hover">已绑定</span>
  150. <span class="after-hover">解除绑定</span>
  151. </div>
  152. </a>
  153. {else /}
  154. <a class="ok" href="javascript:void(0);" onclick="bind_wx_code();">绑定</a>
  155. {/eyou:if}
  156. </div>
  157. </div>
  158. <script type="text/javascript">
  159. var un_wx_code_url = "{eyou:url link='plugins/WxLogin/bindauth'/}";
  160. var bind_wx_code_url = "{:url('plugins/WxLogin/login', ['fmdo'=>'bangding','bangding'=>1])}";
  161. </script>
  162. {eyou:static file="/public/static/common/js/wx_bind.js"/}
  163. {/notempty}
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. {/notempty}
  169. </div>
  170. </div>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. {eyou:static file="users/skin/js/users_centre.js"/}
  176. <script type="text/javascript">
  177. // 修改会员属性信息
  178. function submitSaveUsers() {
  179. {$pwdJsCode|default=''}
  180. layer_loading('正在处理');
  181. $.ajax({
  182. url : eyou_basefile + "?m=user&c=Users&a=centre_update&_ajax=1",
  183. data: $('#theForm').serialize(),
  184. type: 'post',
  185. dataType: 'json',
  186. success: function(res) {
  187. layer.closeAll();
  188. if (1 == res.code) {
  189. showSuccessMsg(res.msg, function() {
  190. window.location.reload();
  191. });
  192. } else {
  193. showErrorAlert(res.msg);
  194. }
  195. },
  196. error: function(e) {
  197. layer.closeAll();
  198. showErrorAlert(e.responseText);
  199. }
  200. });
  201. }
  202. </script>
  203. {eyou:include file="users/users_footer.htm" /}