<?php
/**
 * 客户定制的菜单，如果有定制的菜单，放在这里，会替换掉标准菜单。
 * 可以调用customize判断是否某家定制。
 * 
 */
if (customize('nnqqbaby')) {
	$customize['menu1529995000'] = [
		'menu_name'=>'花费录入',
		'menu_code'=>'menu1529995000',
		'menu_url'=>'#',
		'menu_icon'=>'fa-money',
		'status'=>'1',
		'children'=>// 南宁qqbaby定制
		[
			[
				'menu_name'=>'渠道花费',
				'menu_code'=>'menu1512650793',
				'menu_url'=>'/crm/Setting/channelNnqq',
				'menu_icon'=>'',
				'status'=>'1',
				'customize'=>'nnqqbaby',
				'children'=>
				[
				]
			],
			[
				'menu_name'=>'花费返点',
				'menu_code'=>'menu1513343947',
				'menu_url'=>'/crm/Setting/qdReturn',
				'menu_icon'=>'',
				'status'=>'1',
				'customize'=>'nnqqbaby',
				'children'=>
				[
				]
			],
			[
				'menu_name'=>'其它花费',
				'menu_code'=>'menu1524225422',
				'menu_url'=>'/crm/Setting/anotherCost',
				'menu_icon'=>'',
				'status'=>'1',
				'customize'=>'nnqqbaby',
				'children'=>
				[
				]
			],
			[
				'menu_name'=>'渠道充值',
				'menu_code'=>'menu1619506707',
				'menu_url'=>'/crm/Setting/channelRecharge',
				'menu_icon'=>'',
				'status'=>'1',
				'customize'=>'nnqqbaby',
				'children'=>
				[
				]
			],
		]
	];
}

$customize['menu1512736477'] = [
		'menu_name'=>'统计分析',
		'menu_code'=>'menu1512736477',
		'menu_url'=>'/crm/setting/statistics_list',
		'menu_icon'=>'fa-bar-chart',
		'status'=>'1',
		'children'=>
		[
			[
				'menu_name'=>'本店报表设置',
				'menu_code'=>'menu1523775076',
				'menu_url'=>'',
				'menu_icon'=>'',
				'status'=>'0',
				'children'=>
				[
				]
			],
		]
];
//统计分析 提取所有报表
$report = db('crm_s_report_form')->where("status",2)->order("sort asc")->select();
foreach ($report as $key => $value) {
	$customize['menu1512736477']['children'][$value['code']]['menu_name'] = $value['report_name'];
	$customize['menu1512736477']['children'][$value['code']]['menu_code'] = $value['code'];
	$customize['menu1512736477']['children'][$value['code']]['menu_url'] = $value['report_url'];
	$customize['menu1512736477']['children'][$value['code']]['menu_icon'] = '';
	$customize['menu1512736477']['children'][$value['code']]['status'] = 0;
	$customize['menu1512736477']['children'][$value['code']]['sort'] = $value['sort'];
	$customize['menu1512736477']['children'][$value['code']]['report_type_name'] = $value['report_type_name'];
	$customize['menu1512736477']['children'][$value['code']]['children'] = [];
}
/*
if(customize('babypastel')){
	$customize['menu1512736714'] = [
		'menu_name'=>'首 页',
		'menu_code'=>'menu1512736714',
		'menu_url'=>'/oa/Customer/index',
		'menu_icon'=>'fa-home',
		'status'=>'1',
		'children'=>
		[
		]
	];
}
*/
return $customize;
