base.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?php
  2. $config['base'] = array
  3. (
  4. 'name' => 'yuandaibao',
  5. 'version' => '1.0.0 Beta',
  6. # 语言包
  7. //'lang_set' => array('zh-cn' => '简体中文', 'en' => '英文'),
  8. # 小程序用的是啥 developer开发版 trial体验版 formal正式版
  9. 'wechat_applet' => 'trial',
  10. # 几个角色定义
  11. 'role' => array
  12. (
  13. 1 => '经销商',
  14. 2 => '仓配商',
  15. 3 => '供应商',
  16. ),
  17. 'role_key' => array
  18. (
  19. 1 => array('seller', 'shop'),
  20. 2 => array('servicer', 'store'),
  21. 3 => array('supplier', 'channel'),
  22. ),
  23. # 出库入库单状态
  24. 'status' => array
  25. (
  26. 1 => array('name' => '待审核', 'style' => 'font-weight:bold;color:#436EEE'),
  27. 2 => array('name' => '已审核', 'style' => 'font-weight:bold;color:#003366'),
  28. 3 => array('name' => '已驳回', 'style' => 'font-weight:bold;color:#993333'),
  29. ),
  30. # 订单状态
  31. 'order_status' => array
  32. (
  33. 1 => array('name' => '待支付', 'style' => 'font-weight:bold;color:#F8046E'),
  34. 2 => array('name' => '待审核', 'style' => 'font-weight:bold;color:#436EEE'),
  35. 3 => array('name' => '待处理', 'style' => 'font-weight:bold;color:#003366'),
  36. 4 => array('name' => '处理中', 'style' => 'font-weight:bold;color:#66ffff'),
  37. 5 => array('name' => '待确认', 'style' => 'font-weight:bold;color:#6600ff'),
  38. 6 => array('name' => '已完成', 'style' => 'font-weight:bold;color:#0978F8'),
  39. 7 => array('name' => '已完成(有退款)', 'style' => 'font-weight:bold;color:#0978F8'),
  40. 8 => array('name' => '已取消', 'style' => 'font-weight:bold;color:#993333'),
  41. 9 => array('name' => '已退款', 'style' => 'font-weight:bold;color:#993333'),
  42. 10 => array('name' => '已过期', 'style' => 'font-weight:bold;color:#993333'),
  43. ),
  44. # 商品状态
  45. 'goods_status' => array
  46. (
  47. 1 => array('name' => '待审核', 'style' => 'font-weight:bold;color:#436EEE'),
  48. 2 => array('name' => '已审核', 'style' => 'font-weight:bold;color:#003366'),
  49. 3 => array('name' => '已驳回', 'style' => 'font-weight:bold;color:#993333'),
  50. ),
  51. # 退货状态
  52. 'refund_status' => array
  53. (
  54. 1 => array('name' => '未申请', 'style' => 'font-weight:bold;color:#362d2d'),
  55. 2 => array('name' => '申请中', 'style' => 'font-weight:bold;color:#993333'),
  56. 3 => array('name' => '退货中', 'style' => 'font-weight:bold;color:#66ffff'),
  57. 4 => array('name' => '已退货', 'style' => 'font-weight:bold;color:#003366'),
  58. 5 => array('name' => '退款中', 'style' => 'font-weight:bold;color:#6600ff'),
  59. 6 => array('name' => '已退款', 'style' => 'font-weight:bold;color:#003366'),
  60. ),
  61. # 审核状态
  62. 'audit' => array
  63. (
  64. 2 => '审核通过',
  65. 3 => '审核未通过',
  66. ),
  67. 'audit_status' => array
  68. (
  69. 1 => '审核通过',
  70. 2 => '审核未通过',
  71. ),
  72. # 更新地址后调用的接口
  73. 'address' => 'order/lib/log.add',
  74. # 加密key
  75. 'encode_key' => 'dreamland1985',
  76. # 积分配置
  77. 'score' => array
  78. (
  79. # 实时增加积分开启,关闭则需要把lib/core.cron放到计划任务中
  80. 'sync' => true,
  81. ),
  82. # 启用全站图片压缩
  83. //'pic' => 'yun_t1',
  84. # 队列
  85. 'queue' => array
  86. (
  87. 'method' => 'redis',
  88. 'host' => 'server-redis',
  89. 'port' => '6379',
  90. 'password' => 'dm_redis_123',
  91. ),
  92. );
  93. # 前台通用配置
  94. $config['template'] = array
  95. (
  96. # 静态页面目录
  97. //'assets' => array('pc', 'mobile'),
  98. 'assets' => 'pc',
  99. # 模板编译器目录
  100. 'template' => 'pc',
  101. # 模板html文件的所在目录,默认为html
  102. 'path' => 'html',
  103. 'replace' => array
  104. (
  105. 'css' => '../css/',
  106. 'js' => '../js/',
  107. 'images' => '../images/',
  108. 'img' => '../img/',
  109. 'script' => '../script/',
  110. 'static' => '../static/',
  111. ),
  112. # 编译器与模板对应关系目录,定义之后,代表可以完全不改动前端的代码,可以为空,为空则一一对应,参考manage
  113. 'relation' => array
  114. (
  115. # 首页启动屏幕
  116. 'home' => 'home',
  117. ),
  118. );
  119. return $config;