Files
YwxAppThink/addon/blog/view/member/index/index.html
T

24 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{layout name="layout" /}
<div class="layui-card">
<div class="layui-card-header">会员中心概览</div>
<div class="layui-card-body">
<p>当前会员:<strong>{$user.nickname|default='会员'}</strong>
(账号:{$user.account|default='-'}UID{$user.uid|default='0'}</p>
<p>这是插件 <code>blog</code> 的会员中心入口页,对应文件:
<code>addon/blog/controller/member/Index.php</code></p>
<a href="{:url('blog/member.index/profile')}" class="layui-btn layui-btn-normal">查看个人资料</a>
</div>
</div>
<div class="layui-card">
<div class="layui-card-header">本页链路说明</div>
<div class="layui-card-body">
<ol>
<li>路由:<code>addon/blog/route/app.php</code> 的 member 分组映射 <code>/blog/member/</code><code>member.Index/index</code></li>
<li>鉴权:member 分组挂 <code>MemberAuth</code> 中间件,容器 auth 为 <code>\ywxapp\library\User</code> 并强制登录</li>
<li>基类:<code>Index extends \ywxapp\controller\AddonMember</code>,视图目录指向 <code>view/member/</code></li>
<li>模板:本页通过 <code>{layout name="layout" /}</code> 复用会员中心外壳 <code>view/layout.html</code></li>
</ol>
</div>
</div>