zoukankan      html  css  js  c++  java
  • 微信开发自定义菜单数组结构

    备用:

           //----------------------------------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/';
  • 相关阅读:
    无法添加数据库未能加载文件或程序集“Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0, Culture=neutral,PublicKeyToken=89845dcd8080c
    转载:自己制作Visual Studio项目模板(以原有项目为模版) VS—项目模板丢失的解决方案
    设计一个高效的缓存管理服务 C#
    Visual Studio 30个快捷键2009年05月22日
    Everything 中文绿色版
    Visual studio 打包
    远程桌面连接超出最大连接数的3种解决办法
    [Cache 学习] Cache.Insert 与 Cache.Add 区别
    三层架构之我见 —— 不同于您见过的三层架构。
    基于IIS发布你的WCF Service。
  • 原文地址:https://www.cnblogs.com/chenshuo/p/4758067.html
Copyright © 2011-2022 走看看