{template 'common/header'}
{if $do == 'finance_info' || $do == 'account_list' || $do == 'display' || $do == 'register_flow' || $do == 'flow_control'} 流量主{/if} {if $do == 'content_provider'}广告主{/if}
{if $do != 'content_provider'}

{if $flow_master_info['status'] == 4 || IMS_FAMILY == 'v'} 流量管理 {elseif $flow_master_info['status'] != 4} 流量管理 {/if} {if !empty($commission_show) || $flow_master_info['status'] == 4} 财务信息 {/if}

{/if} {if $do != 'content_provider'}
免费用户默认开通流量主服务，如果要进行关闭，请升级为授权版或商业版。
免费用户对公众号进行标签设置后，可以对广告进行分成。
{/if} {if $do == 'display'}
申请流量主
流量主: {if empty($flow_master_info['status'])}未申请{else}{$flow_master_info['status_text']}{/if} {if $flow_master_info['status'] == 3 && !empty($flow_master_info['refuse_reason'])} {$flow_master_info['refuse_reason']} {/if} 只需简单申请，即可成为流量主，按月获取广告收入。广告资源优质丰富，数据统计精准透明。
{if is_error($flow_master_info) || (!is_error($flow_master_info) && ($flow_master_info['status'] == 1 || $flow_master_info['status'] == 3))}
申请流量主
{/if}
{/if} {if $do == 'register_flow'}
申请流量主
联系人
请填写联系人
电话
请填写电话
联系地址
请输入联系地址
身份证上传
请上传身份证
{if !empty($flow_master_info['id_card_photo'])}
{/if}
营业执照上传
请上传营业执照
{if !empty($flow_master_info['business_licence_photo'])}
{/if}
{/if} {if $do == 'account_list'}
筛选
搜索
详细数据

{if !empty($commission_show)} {/if}
公众号 | 标签 {if !empty($commission_show)} | 累计金额 {/if} | 状态 | 管理
--- | --- | --- | --- | ---
{loop $list $uni} {loop $uni['details'] $account}
| {$account['name']} 类型:{if $account['level'] == '1'}普通订阅号{elseif $account['level'] == '2'}普通服务号{elseif $account['level'] == '3'}认证订阅号{elseif $account['level'] == '4'}认证服务号/认证媒体/政府订阅号{/if} | {if $uni['flow_setting_enable'] == 2 && !empty($uni['flow_setting'])} {$uni['flow_setting']['ad_tags_str']} {else} 未设置 {/if} {if !empty($commission_show)} | {if !empty($uni['flow_setting']['amount'])} {$uni['flow_setting']['amount']} {else} 0 {/if} 元 {/if} | {if IMS_FAMILY == 'v' || $uni['flow_setting_enable'] == 2} 已开通 {elseif $uni['flow_setting_enable'] == 1} 未开通 {/if} | {if IMS_FAMILY == 'v' ||$uni['flow_setting_enable'] == 2} 设置 {elseif $uni['flow_setting_enable'] == 1} 开通广告联盟 {/if}
{/loop} {/loop}

{$pager}
{/if} {if $do == 'flow_control'}
公众号信息

{if !empty($commission_show)} {/if}
公众号 | 标签 {if !empty($commission_show)} | 累计金额 {/if} | 管理
--- | --- | --- | ---
| {$current_account['name']} 类型:{if $current_account['level'] == '1'}普通订阅号{elseif $current_account['level'] == '2'}普通服务号{elseif $current_account['level'] == '3'}认证订阅号{elseif $current_account['level'] == '4'}认证服务号/认证媒体/政府订阅号{/if} | {if $current_uniaccount['enable'] == 2 && !empty($current_uniaccount['current_tags_str'])}{$current_uniaccount['current_tags_str']}{elseif empty($current_uniaccount)}未设置{/if} {if !empty($commission_show)} | {if !empty($current_uniaccount)}{$current_uniaccount['amount']}{else}0{/if}元 {/if} | {if IMS_FAMILY != 'v'} {if empty($current_uniaccount['enable']) || $current_uniaccount['enable'] == 1} 开通 {elseif $current_uniaccount['enable'] == 2} 停止 设置 {/if} {else} 设置 {/if}

{if IMS_FAMILY != 'v' && $current_uniaccount['enable'] == 2}
应用信息 批量设置
{if !empty($modulelist_available)} {loop $modulelist_available $list}
{$list['title']}
广告类型: {if $list['flow_setting']['enable'] == 2 && !empty($list['flow_setting']['ad_types'])} {loop $list['flow_setting']['ad_types'] $ad_types} {$ad_types} {/loop} {else} 未开通 {/if}
{if $list['flow_setting']['enable'] == 2 && !empty($list['flow_setting']['ad_types'])} 设置 {else} 开通 {/if}
{/loop} {else}
暂无可用应用
{/if}
{/if}

选择 | 标签
--- | ---
{if !empty($tag_list)} {loop $tag_list $tags}
{$tags['title']}
{loop $tags['items'] $key $items}
| {$items}
{/loop} {/loop} {/if}

选择 | 类型
--- | ---

{/if} {if $do == 'finance_info'}
账户流水

时间 | 广告曝光度 | 广告点击量 | 收入金额
--- | --- | --- | ---
{loop $finance_items $item}
{$item['extra_date']} | {$item['view']} | {$item['click']} | {$item['amount']}元
{/loop}

{$pager}
{/if} {if $do == 'content_provider'}
{/if} {template 'common/footer'}