码迷,mamicode.com
首页 > 微信 > 详细

微信开发自定义菜单数组结构

时间:2015-08-25 18:44:15      阅读:260      评论:0      收藏:0      [点我收藏+]

标签:

备用:

 

       //----------------------------------1------------------------------------

            $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‘]  = ‘http://www.boshenmarketing.cn/‘;

            $menu[‘button‘][‘0‘][‘sub_button‘][‘1‘][‘type‘] = ‘view‘;
            $menu[‘button‘][‘0‘][‘sub_button‘][‘1‘][‘name‘] = ‘微商城‘;
            $menu[‘button‘][‘0‘][‘sub_button‘][‘1‘][‘url‘]  = ‘http://www.boshenmarketing.com/index.php?m=pro&c=index&a=index‘;

            $menu[‘button‘][‘0‘][‘sub_button‘][‘2‘][‘type‘] = ‘view‘;
            $menu[‘button‘][‘0‘][‘sub_button‘][‘2‘][‘name‘] = ‘优品专区‘;
            $menu[‘button‘][‘0‘][‘sub_button‘][‘2‘][‘url‘]  = ‘http://www.boshenmarketing.com/index.php?m=pro&c=index&a=term&id=44‘;


            //----------------------------------2------------------------------------

            $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‘]  = ‘http://www.boshenmarketing.com/index.php?m=article&c=index&a=index‘;

            $menu[‘button‘][‘1‘][‘sub_button‘][‘1‘][‘type‘] = ‘view‘;
            $menu[‘button‘][‘1‘][‘sub_button‘][‘1‘][‘name‘] = ‘分享有礼‘;
            $menu[‘button‘][‘1‘][‘sub_button‘][‘1‘][‘url‘]  = ‘http://www.boshenmarketing.com/index.php?m=article&c=index&a=index‘;

            $menu[‘button‘][‘1‘][‘sub_button‘][‘2‘][‘type‘] = ‘view‘;
            $menu[‘button‘][‘1‘][‘sub_button‘][‘2‘][‘name‘] = ‘在线调研‘;
            $menu[‘button‘][‘1‘][‘sub_button‘][‘2‘][‘url‘]  = ‘http://www.boshenmarketing.com/index.php?m=article&c=index&a=index‘;

            $menu[‘button‘][‘1‘][‘sub_button‘][‘3‘][‘type‘] = ‘view‘;
            $menu[‘button‘][‘1‘][‘sub_button‘][‘3‘][‘name‘] = ‘秒杀专区‘;
            $menu[‘button‘][‘1‘][‘sub_button‘][‘3‘][‘url‘]  = ‘http://www.boshenmarketing.com/index.php?m=article&c=index&a=index‘;


            //------------------------------------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‘]  = ‘http://www.boshenmarketing.cn/admin/index‘;

            $menu[‘button‘][‘2‘][‘sub_button‘][‘1‘][‘type‘] = ‘view‘;
            $menu[‘button‘][‘2‘][‘sub_button‘][‘1‘][‘name‘] = ‘订单查询‘;
            $menu[‘button‘][‘2‘][‘sub_button‘][‘1‘][‘url‘]  = ‘http://www.boshenmarketing.com/‘;

            $menu[‘button‘][‘2‘][‘sub_button‘][‘2‘][‘type‘] = ‘view‘;
            $menu[‘button‘][‘2‘][‘sub_button‘][‘2‘][‘name‘] = ‘购物车‘;
            $menu[‘button‘][‘2‘][‘sub_button‘][‘2‘][‘url‘]  = ‘http://www.boshenmarketing.com/‘;

            $menu[‘button‘][‘2‘][‘sub_button‘][‘3‘][‘type‘] = ‘view‘;
            $menu[‘button‘][‘2‘][‘sub_button‘][‘3‘][‘name‘] = ‘积分规则‘;
            $menu[‘button‘][‘2‘][‘sub_button‘][‘3‘][‘url‘]  = ‘http://www.boshenmarketing.com/‘;

 

微信开发自定义菜单数组结构

标签:

原文地址:http://www.cnblogs.com/chenshuo/p/4758067.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!