{php $newUI = true;} {template 'common/header'} {if $do == 'display'} {if empty($data) && $_GPC['status'] == 'history'}
没有历史菜单
{else}
{if $_GPC['status'] != 'history'}
{if empty($default_menu)} 添加默认菜单 添加个性化菜单 {else} 添加个性化菜单 {/if}
{/if}
{loop $data $da} {/loop}
标题 类型 匹配规则 创建时间 是否生效 操作
{if empty($da['title'])} {if $da['type'] == 1} 默认菜单 {elseif $da['type'] == 2} 默认菜单(历史记录) {else} 个性化菜单 {/if} {else} {$da['title']} {/if} {if $da['type'] == 1} 默认菜单 {elseif $da['type'] == 2} 默认菜单(历史记录) {else} 个性化菜单 {/if} {if $da['type'] == 3} {if $da['sex'] > 0}性别:{$names['sex'][$da['sex']]}
{/if} {if $da['group_id'] != -1}粉丝分组:{if $da['group_id'] == -1}不限{else}{$groups[$da['group_id']]['name']}{/if}
{/if} {if $da['client_platform_type'] > 0}客户端:{$names['client_platform_type'][$da['client_platform_type']]}
{/if} {if !empty($da['area'])}地区:{$da['area']}{/if} {else} 所有粉丝 {/if}
{if $da['createtime']}{php echo date('Y-m-d H:i', $da['createtime']);}{else}未知{/if} {if $da['status'] == 1} 已在微信端生效 {else} 未在微信端生效 {/if} {if $_GPC['status'] == 'history'} 恢复 {/if} {if $da['type'] == 1} 编辑 {else} 查看 {/if} {if $da['status'] == 0} {if $_GPC['status'] != 'history'} 推送到微信端 {/if} {/if} {if $da['type'] == 3} {if $_GPC['status'] != 'history'} 复制编辑 {/if} {/if} {if $da['type'] != 1} 删除 {/if}
{/if} {/if} {if $do == 'add'}

{{context.group.type == 3 ? "个性化菜单" : "默认菜单"}}

{if $menu['type'] == 1 || (!$id) || !$menu['status']}
{if !$id} 上架 {else} {{context.group.button.length > 0 ? '上架' : '删除默认菜单'}} {/if}
{/if}
{/if} {template 'common/footer'}