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.
 
 
 
 

182 lines
8.3 KiB

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>作家资料 - 原创专区 - {$kx.config.sitename}</title>
  6. <link rel="stylesheet" href="{$kx.config.resurl}/template/kxwebno1/author/css/style.css"/>
  7. <link rel="shortcut icon" type="image/ico" href="/favicon.ico"/>
  8. <meta name="author" content="www.ptcms.com">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
  10. <meta name="renderer" content="webkit">
  11. <meta name="viewport" content="width=device-width"/>
  12. <meta name="applicable-device" content="pc">
  13. <meta http-equiv="Cache-Control" content="no-siteapp"/>
  14. <meta http-equiv="Cache-Control" content="no-transform"/>
  15. <link rel="canonical" href="{$kx.config.pcurl}__SELF__"/>
  16. <style>
  17. .container {
  18. padding: 20px;
  19. }
  20. .body ul.label {
  21. height: 54px;
  22. }
  23. .body ul.label li {
  24. float: left;
  25. width: 130px;
  26. height: 50px;
  27. line-height: 50px;
  28. text-align: center;
  29. background: #E5E5E5;
  30. margin-top: 4px;
  31. }
  32. .body ul.label li.active {
  33. background-color: #fff;
  34. color: #323237;
  35. border-top: 4px solid #f55;
  36. margin-top: 0;
  37. }
  38. .body .container li {
  39. height: 655px;
  40. display: none;
  41. }
  42. .body .container li.active {
  43. display: block;
  44. }
  45. </style>
  46. </head>
  47. <body>
  48. {include file="/author/system/header"}
  49. <div class="body">
  50. {include file="/author/system/left"}
  51. <div class="right">
  52. <ul class="label">
  53. <li data-type="base" class="active">基本资料</li>
  54. <li data-type="details">详细资料</li>
  55. </ul>
  56. <ul class="container bg-white h100">
  57. <li class="base active">
  58. <input type="file" id="file_cover" style="display: none" name="file">
  59. <form method="post">
  60. <div class="h100 fl" style="width: 600px;">
  61. <div class="form-item">
  62. <label class="form-label" for="field_name">笔名</label>
  63. <div class="form-input-block">
  64. <input type="text" name="name" id="field_name" value="{$authorinfo.name}">
  65. </div>
  66. </div>
  67. <div class="form-item">
  68. <label class="form-label" for="field_mobile">电话</label>
  69. <div class="form-input-block">
  70. <input type="text" name="mobile" id="field_mobile" value="{$authorinfo.data.mobile}">
  71. </div>
  72. </div>
  73. <div class="form-item">
  74. <label class="form-label" for="field_qq">QQ</label>
  75. <div class="form-input-block">
  76. <input type="text" name="qq" id="field_qq" value="{$authorinfo.data.qq}">
  77. </div>
  78. </div>
  79. <div class="form-item">
  80. <label class="form-label" for="field_email">邮箱</label>
  81. <div class="form-input-block">
  82. <input type="email" name="email" id="field_email" value="{$authorinfo.data.email}">
  83. </div>
  84. </div>
  85. <div class="form-item">
  86. <label class="form-label" for="field_intro">简介</label>
  87. <div class="form-input-block">
  88. <textarea name="intro" id="field_intro" cols="30"
  89. rows="10">{$authorinfo.intro}</textarea>
  90. </div>
  91. <div class="form-tips">50-200字</div>
  92. </div>
  93. <div class="form-item">
  94. <label class="form-label"></label>
  95. <div class="form-input-block">
  96. <button class="bg-red color1 plr40 ptb5">保存</button>
  97. </div>
  98. </div>
  99. </div>
  100. <div style="clear: both"></div>
  101. </form>
  102. </li>
  103. <li class="details">
  104. <form method="post" class="form-details">
  105. <input type="hidden" name="type" value="details">
  106. <input type="hidden" name="password" value="">
  107. <div class="h100 fl" style="width: 600px;">
  108. <div class="form-item">
  109. <label class="form-label" for="field_truename">真实姓名</label>
  110. <div class="form-input-block">
  111. <input type="text" name="truename" id="field_truename"
  112. value="{$authorinfo.data.truename}" disabled>
  113. </div>
  114. </div>
  115. <div class="form-item">
  116. <label class="form-label" for="field_idcard">身份证号</label>
  117. <div class="form-input-block">
  118. <input type="text" name="idcard" id="field_idcard"
  119. value="{if $authorinfo.data.idcard}{=substr($authorinfo.data.idcard,0,4)}**********{=substr($authorinfo.data.idcard,-4)}{/if}"
  120. disabled>
  121. </div>
  122. </div>
  123. <div class="form-item">
  124. <label class="form-label" for="field_alipay">支付宝账户</label>
  125. <div class="form-input-block">
  126. <input type="text" name="alipay" id="field_alipay"
  127. value="{if $authorinfo.data.alipay}{=substr($authorinfo.data.alipay,0,4)}****{=substr($authorinfo.data.alipay,-4)}{/if}">
  128. </div>
  129. <div class="form-tips">用作稿酬输入提现使用</div>
  130. </div>
  131. <div class="form-item">
  132. <label class="form-label" for="field_repeat_alipay">确认支付宝账户</label>
  133. <div class="form-input-block">
  134. <input type="text" id="field_repeat_alipay"
  135. value="{if $authorinfo.data.alipay}{=substr($authorinfo.data.alipay,0,4)}****{=substr($authorinfo.data.alipay,-4)}{/if}">
  136. </div>
  137. <div class="form-tips">用作稿酬输入提现使用</div>
  138. </div>
  139. <div class="form-item">
  140. <label class="form-label"></label>
  141. <div class="form-input-block">
  142. <button type="button" class="bg-red color1 plr40 ptb5 btn-submit">保存</button>
  143. </div>
  144. </div>
  145. </div>
  146. </form>
  147. <div style="clear: both"></div>
  148. </li>
  149. </ul>
  150. </div>
  151. </div>
  152. {include file="/author/system/footer"}
  153. <script>
  154. $('.label li').click(function () {
  155. $(this).addClass('active').siblings().removeClass('active');
  156. $('.container li.' + $(this).data('type')).addClass('active').siblings().removeClass('active');
  157. });
  158. $('.form-details .btn-submit').click(function () {
  159. var othis = $('.form-details');
  160. if (!othis.find('#field_alipay').val()) {
  161. layer.msg('支付宝账户不能为空');
  162. return false;
  163. }
  164. if (othis.find('#field_alipay').val() !== othis.find('#field_repeat_alipay').val()) {
  165. layer.msg('两次支付宝账户输入不一致');
  166. return false;
  167. }
  168. layer.prompt({title: '请输入管理密码,并确认', formType: 1}, function (pass) {
  169. layer.load(1, {shade: [0.1, '#000']});
  170. console.log(othis.find('input[name=password]').val(pass));
  171. othis.find('input[name=password]').val(pass);
  172. othis.submit();
  173. });
  174. });
  175. </script>
  176. </body>
  177. </html>