微信菜单php 数组格式

//备用


$menu[‘button‘][‘0‘][‘name‘] = ‘积分‘;

$menu[‘button‘][‘0‘][‘sub_button‘][‘0‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘0‘][‘sub_button‘][‘0‘][‘name‘] = ‘积分商城‘;
$menu[‘button‘][‘0‘][‘sub_button‘][‘0‘][‘url‘] = ‘xxx‘;

$menu[‘button‘][‘0‘][‘sub_button‘][‘1‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘0‘][‘sub_button‘][‘1‘][‘name‘] = ‘微商城‘;
$menu[‘button‘][‘0‘][‘sub_button‘][‘1‘][‘url‘] = ‘xxx‘;

$menu[‘button‘][‘0‘][‘sub_button‘][‘2‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘0‘][‘sub_button‘][‘2‘][‘name‘] = ‘优品专区‘;
$menu[‘button‘][‘0‘][‘sub_button‘][‘2‘][‘url‘] = ‘xxx‘;

$menu[‘button‘][‘1‘][‘name‘] = ‘活动内容‘;

$menu[‘button‘][‘1‘][‘sub_button‘][‘0‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘1‘][‘sub_button‘][‘0‘][‘name‘] = ‘最新活动‘;
$menu[‘button‘][‘1‘][‘sub_button‘][‘0‘][‘url‘] = ‘xxx‘;

$menu[‘button‘][‘1‘][‘sub_button‘][‘1‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘1‘][‘sub_button‘][‘1‘][‘name‘] = ‘分享有礼‘;
$menu[‘button‘][‘1‘][‘sub_button‘][‘1‘][‘url‘] = ‘xx‘;

$menu[‘button‘][‘1‘][‘sub_button‘][‘2‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘1‘][‘sub_button‘][‘2‘][‘name‘] = ‘在线调研‘;
$menu[‘button‘][‘1‘][‘sub_button‘][‘2‘][‘url‘] = ‘xxx‘;

$menu[‘button‘][‘1‘][‘sub_button‘][‘3‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘1‘][‘sub_button‘][‘3‘][‘name‘] = ‘秒杀专区‘;
$menu[‘button‘][‘1‘][‘sub_button‘][‘3‘][‘url‘] = ‘xx‘;


//------------------------------------3-------------------------------------

$menu[‘button‘][‘2‘][‘name‘] = ‘积分管理‘;

$menu[‘button‘][‘2‘][‘sub_button‘][‘0‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘2‘][‘sub_button‘][‘0‘][‘name‘] = ‘积分查询‘;
$menu[‘button‘][‘2‘][‘sub_button‘][‘0‘][‘url‘] = ‘xxx‘;

$menu[‘button‘][‘2‘][‘sub_button‘][‘1‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘2‘][‘sub_button‘][‘1‘][‘name‘] = ‘订单查询‘;
$menu[‘button‘][‘2‘][‘sub_button‘][‘1‘][‘url‘] = ‘xx‘;

$menu[‘button‘][‘2‘][‘sub_button‘][‘2‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘2‘][‘sub_button‘][‘2‘][‘name‘] = ‘购物车‘;
$menu[‘button‘][‘2‘][‘sub_button‘][‘2‘][‘url‘] = ‘xxx‘;

$menu[‘button‘][‘2‘][‘sub_button‘][‘3‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘2‘][‘sub_button‘][‘3‘][‘name‘] = ‘积分规则‘;
$menu[‘button‘][‘2‘][‘sub_button‘][‘3‘][‘url‘] = ‘xxx‘;

微信菜单php 数组格式

上一篇:建站集成软件包 XAMPP搭建后台系统与微信小程序开发


下一篇:微信小程序开发之不能使用eval函数的问题