Skip to content

模块菜单 moduleMenu

用法

用于禅道模块菜单的渲染。

php
moduleMenu
(
    set::productID(1),
    set::activeKey('4'),
    set::closeLink('/index.php?m=project&f=browse'),
);
html
<div class="module-menu rounded shadow-sm">
    <header>
        <span class="module-title">售后服务</span>
        <a href="/index.php?m=project&amp;f=browse">
            <i class="icon icon-close" style="color: #313C52;"></i>
        </a>
    </header>
    <main>
        <div data-zin-id="zin138">
            <menu class="menu menu-nested" zinid="zin138" closelink="/index.php?m=project&amp;f=browse">
                <li class="action-menu-item menu-item"><a class="" type="item"><span class="text">首页</span></a></li>
                <li class="action-menu-item menu-item"><a class="" type="item"><span class="text">新闻中心</span></a></li>
                <li class="action-menu-item menu-item"><a class="" type="item"><span class="text">成果展示</span></a></li>
                <li class="action-menu-item menu-item active"><a class="" type="item"><span class="text">售后服务</span></a></li>
                <li class="action-menu-item menu-item"><a class="" type="item"><span class="text">诚聘英才</span></a></li>
                <li class="action-menu-item menu-item"><a class="" type="item"><span class="text">合作洽谈</span></a></li>
                <li class="action-menu-item menu-item"><a class="" type="item"><span class="text">关于我们</span></a></li>
            </menu>
        </div>
    </main>
    <div class="setting-btns">
        <a class="btn" style="background: #EEF5FF; border: none;">模块设置</a>
        <a class="btn white">显示设置</a>
    </div>
</div>

属性

属性名类型默认值说明
productIDnumber-产品 ID
activeKeystring|number-菜单激活项 key
closeLinkstring-点击关闭按钮时跳转的链接

https://zentao.net