ConfigController.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: durong
  5. * Date: 2019/5/9
  6. * Time: 17:20
  7. */
  8. namespace App\Http\Controllers;
  9. class ConfigController extends Controller
  10. {
  11. /**
  12. * Create a new controller instance.
  13. *
  14. * @return void
  15. */
  16. public function __construct()
  17. {
  18. //
  19. }
  20. public function index()
  21. {
  22. return [
  23. //是否开启
  24. 'is_open' => [
  25. '1' => '打开',
  26. '0' => '关闭',
  27. ],
  28. 'status' => [
  29. '1' => '启用',
  30. '0' => '禁用',
  31. ],
  32. //配送方式
  33. 'express_type' => [
  34. '1' => '自提',
  35. '2' => '快递',
  36. '0' => '全部',
  37. ],
  38. //储存方式
  39. 'store_ids' => [
  40. '1' => '冷冻',
  41. '2' => '冷藏',
  42. '0' => '常温',
  43. ],
  44. //对应模板
  45. 'apply_type' => [
  46. '1' => '菜市场',
  47. '0' => '团购',
  48. ],
  49. //版块类型:
  50. 'area_type' => [
  51. '1' => '专题广告',
  52. '2' => '商品楼层',
  53. '3' => '分类专题(菜市场)',
  54. '0' => 'banner',
  55. ],
  56. //商品展示方式
  57. 'show_type' => [
  58. '1' => '通栏大图',
  59. '2' => '左右滑动',
  60. '0' => '左图右字',
  61. ],
  62. //接货方式:
  63. 'receive_type' => [
  64. '1' => '手动确认接货',
  65. '0' => '信任交付',
  66. ],
  67. //城市级别
  68. 'level' => [
  69. '1' => '省份province',
  70. '2' => '市city',
  71. '3' => '区县district',
  72. '4' => '街道street',
  73. ],
  74. //链接方式
  75. 'link_type' => [
  76. '1' => '专题',
  77. '0' => '仅展示',
  78. '2' => '链接',
  79. ],
  80. //社区-banner类型
  81. 'type' => [
  82. '1' => '内容',
  83. '0' => '纯展示',
  84. '2' => '用户',
  85. '3' => '活动',
  86. '4' => '话题'
  87. ],
  88. //使用后台
  89. 'use_background' =>[
  90. '1' => '社区后台',
  91. '0' => 'CMS'
  92. ],
  93. //通知群体
  94. 'notice_groups' =>[
  95. '1' => '原始用户',
  96. '0' => '全部',
  97. '2' => '正式用户',
  98. ],
  99. //消息类型
  100. 'message_type' =>[
  101. 'star' => '星球活动消息',
  102. 'system' => '系统通知消息'
  103. ],
  104. //展示类型
  105. 'message_show_type' =>[
  106. 'only_show' => '纯展示',
  107. 'user' => '用户',
  108. 'post' => '内容',
  109. 'activity' => '活动',
  110. 'topic' => '话题',
  111. ],
  112. //消息状态
  113. 'message_status' =>[
  114. '1' => '发送中',
  115. '0' => '未发送',
  116. '2' => '已发送未隐藏',
  117. '3' => '已发送并隐藏',
  118. ],
  119. ];
  120. }
  121. }