2020-01-01 13:17:19 +08:00
|
|
|
{extend name="public/base" /}
|
|
|
|
|
|
|
|
{block name="body"}
|
|
|
|
|
|
|
|
<div class="layui-fluid">
|
|
|
|
<div class="layui-row layui-col-space15">
|
|
|
|
<div class="layui-col-md12">
|
|
|
|
<div class="layui-card">
|
|
|
|
<div class="layui-card-header">设置我的资料</div>
|
|
|
|
<div class="layui-card-body" pad15>
|
|
|
|
|
|
|
|
<div class="layui-form" lay-filter="">
|
|
|
|
<div class="layui-form-item layui-hide">
|
|
|
|
<input type="text" name="id" class="layui-input" value="{$admin.id}">
|
|
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
|
|
<label class="layui-form-label">我的角色</label>
|
|
|
|
<div class="layui-input-inline">
|
2020-01-14 15:47:11 +08:00
|
|
|
<input type="text" name="auth_group_id" value="{$admin.authGroup.title}" readonly class="layui-input layui-disabled" disabled>
|
2020-01-01 13:17:19 +08:00
|
|
|
</div>
|
|
|
|
<div class="layui-form-mid layui-word-aux">当前角色不可更改为其它角色</div>
|
|
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
|
|
<label class="layui-form-label">用户名</label>
|
|
|
|
<div class="layui-input-inline">
|
2020-01-14 15:47:11 +08:00
|
|
|
<input type="text" name="username" value="{$admin.username}" readonly class="layui-input layui-disabled">
|
2020-01-01 13:17:19 +08:00
|
|
|
</div>
|
|
|
|
<div class="layui-form-mid layui-word-aux">不可修改。一般用于后台登入名</div>
|
|
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
|
|
<label class="layui-form-label">昵称</label>
|
|
|
|
<div class="layui-input-inline">
|
|
|
|
<input type="text" name="nickname" value="{$admin.nickname}" lay-verify="nickname" autocomplete="off" placeholder="请输入昵称" class="layui-input">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
|
|
<label class="layui-form-label">性别</label>
|
|
|
|
<div class="layui-input-block">
|
2020-04-30 18:35:46 +08:00
|
|
|
<input type="radio" name="sex" value="0" {if condition="$admin['sex'] eq 0"} checked {/if} title="男">
|
|
|
|
<input type="radio" name="sex" value="1" {if condition="$admin['sex'] eq 1"} checked {/if} title="女">
|
2020-01-01 13:17:19 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!--div class="layui-form-item">
|
|
|
|
<label class="layui-form-label">头像</label>
|
|
|
|
<div class="layui-input-inline">
|
|
|
|
<input name="avatar" lay-verify="required" id="LAY_avatarSrc" placeholder="图片地址" value="http://cdn.layui.com/avatar/168.jpg" class="layui-input">
|
|
|
|
</div>
|
|
|
|
<div class="layui-input-inline layui-btn-container" style="width: auto;">
|
|
|
|
<button type="button" class="layui-btn layui-btn-primary" id="LAY_avatarUpload">
|
|
|
|
<i class="layui-icon"></i>上传图片
|
|
|
|
</button>
|
|
|
|
<button class="layui-btn layui-btn-primary" layadmin-event="avartatPreview">查看图片</button >
|
|
|
|
</div>
|
|
|
|
</div-->
|
|
|
|
<div class="layui-form-item">
|
|
|
|
<label class="layui-form-label">手机</label>
|
|
|
|
<div class="layui-input-inline">
|
|
|
|
<input type="text" name="mobile" value="{$admin.mobile}" lay-verify="phone" autocomplete="off" class="layui-input">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
|
|
<label class="layui-form-label">邮箱</label>
|
|
|
|
<div class="layui-input-inline">
|
|
|
|
<input type="text" name="email" value="{$admin.email}" lay-verify="email" autocomplete="off" class="layui-input">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="layui-form-item layui-form-text">
|
|
|
|
<label class="layui-form-label">备注</label>
|
|
|
|
<div class="layui-input-block">
|
|
|
|
<textarea name="remarks" placeholder="请输入内容" class="layui-textarea">{$admin.remarks}</textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
|
|
<div class="layui-input-block">
|
2020-04-07 17:11:12 +08:00
|
|
|
{if condition="checkRuleButton('admin/Admin/infoSet')"}
|
2020-01-01 13:17:19 +08:00
|
|
|
<button class="layui-btn" lay-submit lay-filter="setmyinfo">确认修改</button>
|
2020-04-02 23:41:48 +08:00
|
|
|
{else /}
|
2020-04-07 17:11:12 +08:00
|
|
|
<button class="layui-btn layui-btn-disabled">确认修改</button>
|
2020-04-02 23:41:48 +08:00
|
|
|
{/if}
|
|
|
|
<!--button type="reset" class="layui-btn layui-btn-primary">重新填写</button-->
|
2020-01-01 13:17:19 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{/block}
|
|
|
|
{block name="js"}
|
|
|
|
<script>
|
2020-04-28 18:44:40 +08:00
|
|
|
var adminInfoSet ="{:url('Admin/infoSet')}";
|
2020-01-01 13:17:19 +08:00
|
|
|
layui.config({
|
|
|
|
base: '/static/admin/' //静态资源所在路径
|
|
|
|
}).extend({
|
|
|
|
index: 'lib/index' //主入口模块
|
|
|
|
}).use(['index', 'set']);
|
|
|
|
</script>
|
|
|
|
{/block}
|