
打开文件
application\member\controller\User.php
替换第53行
['text', 'username', '帐号',$this->webdb['edit_username_money']?'':'请不要随意修改'],
打开文件
\template\member_style\default\member\common\pc_form.htm
在下边这段代码后
<!-- 参数 field="pic,tit" 代表过滤哪些字段不显示出来 里边支持TP标签 -->
{qb:form field="" f_array="$f_array"}
<tr id="form_group_{$rs.name}">
<td class="tdL">{$rs.title}: </td>
<td class="tdR {if in_array($rs['type'],['text','password','number','select'])}layui-input-inline{else /}layui-input-block{/if}">
<div>{$rs.value}</div>
{notempty name="$rs.about"}<div>{$rs.about}</div>{/notempty}
</td>
</tr>
{/qb:form}增加代码
<script type="text/javascript">
document.getElementById("atc_username").readOnly=true;
</script>我设置的效果是账号不可编辑