You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

wxMenu.config.php 2.4 KiB

3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. /**
  3. *
  4. * ============================================================================
  5. * * 版权所有 运游通 * *
  6. * 网站地址: http://www.zhizhuchuxing.com
  7. * ----------------------------------------------------------------------------
  8. * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
  9. * 使用;不允许对程序代码以任何形式任何目的的再发布。
  10. * ============================================================================
  11. * Author By: 倪宗锋
  12. * PhpStorm wxMenu.config.php
  13. * Create By 2017/1/4 16:40 $
  14. */
  15. /**
  16. * Des:登录 设置菜单url
  17. * Name: setMenuUrl
  18. * @param $url
  19. * @return string
  20. * @author 倪宗锋
  21. */
  22. function setMenuUrl($url)
  23. {
  24. $loginUrl = 'http://ks.zhizhuchuxing.com/zzcx/user/login/menu-url?redirect=';
  25. $reUrl = $loginUrl . urlencode($url);
  26. return $reUrl;
  27. }
  28. $menu_array = [
  29. 'button' => [
  30. [
  31. "type" => "view",
  32. "name" => "快速预定",
  33. "url" => setMenuUrl('http://ks.zhizhuchuxing.com/web/zzcx/index.html?version=3.3.3')
  34. ],
  35. [
  36. 'name'=>'用户中心',
  37. 'sub_button' => [
  38. [
  39. "type" => "view",
  40. "name" => "我的行程",
  41. "url" => setMenuUrl('http://ks.zhizhuchuxing.com/web/zzcx/index.html#/main/user/trip_list')
  42. ],
  43. [
  44. "type" => "view",
  45. "name" => "用户中心",
  46. "url" => setMenuUrl('http://ks.zhizhuchuxing.com/web/zzcx/index.html#/main/user/user_center')
  47. ],
  48. [
  49. "type" => "click",
  50. "name" => "联系客服",
  51. "key" => "MSG_LIANXIKEFU"
  52. ]
  53. ]
  54. ],
  55. [
  56. 'name'=>'分销商',
  57. 'sub_button' => [
  58. [
  59. "type" => "view",
  60. "name" => "用户中心",
  61. "url" => setMenuUrl('http://ksfx.zhizhuchuxing.com/web/fx/my_commission.html')
  62. ],
  63. [
  64. "type" => "view",
  65. "name" => "二维码",
  66. "url" => "http://ksfx.zhizhuchuxing.com//web/fx/eticket.html"
  67. ]
  68. ]
  69. ]
  70. ]
  71. ];
  72. return json_encode($menu_array,JSON_UNESCAPED_UNICODE);