backend.php 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <?php
  2. return [
  3. // ----------------------- 参数配置 ----------------------- //
  4. 'config' => [
  5. // 菜单配置
  6. 'menu' => [
  7. 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
  8. 'icon' => 'fa fa-shopping-bag',
  9. 'sort' => 200, // 自定义排序
  10. 'pattern' => [], // 可见开发模式 b2c、b2b2c、saas 不填默认全部可见, 可设置为 blank 为全部不可见
  11. ],
  12. // 子模块配置
  13. 'modules' => [
  14. // 公共
  15. 'common' => [
  16. 'class' => 'addons\TinyShop\merchant\modules\common\Module',
  17. ],
  18. // 订单
  19. 'order' => [
  20. 'class' => 'addons\TinyShop\merchant\modules\order\Module',
  21. ],
  22. // 商品
  23. 'product' => [
  24. 'class' => 'addons\TinyShop\merchant\modules\product\Module',
  25. ],
  26. // 营销
  27. 'marketing' => [
  28. 'class' => 'addons\TinyShop\merchant\modules\marketing\Module',
  29. ],
  30. // 统计
  31. 'statistics' => [
  32. 'class' => 'addons\TinyShop\merchant\modules\statistics\Module',
  33. ],
  34. ],
  35. ],
  36. // ----------------------- 菜单配置 ----------------------- //
  37. 'menu' => [
  38. [
  39. 'title' => '运营中心',
  40. 'name' => 'statistics/index/index',
  41. 'icon' => 'fa fa-desktop'
  42. ],
  43. [
  44. 'title' => '商品管理',
  45. 'name' => 'product/product/index',
  46. 'icon' => 'fa fa-shopping-basket'
  47. ],
  48. [
  49. 'title' => '商品配置',
  50. 'name' => 'productConfig',
  51. 'icon' => 'fa fa-marker',
  52. 'pattern' => ['b2c', 'b2b2c'],
  53. 'child' => [
  54. [
  55. 'title' => '商品分类',
  56. 'name' => 'product/cate/index',
  57. ],
  58. [
  59. 'title' => '商品规格',
  60. 'name' => 'common/spec/index',
  61. 'pattern' => ['b2c']
  62. ],
  63. [
  64. 'title' => '商品参数',
  65. 'name' => 'common/attribute/index',
  66. 'pattern' => ['b2c']
  67. ],
  68. [
  69. 'title' => '商品标签',
  70. 'name' => 'product/tag/index',
  71. 'icon' => 'fa fa-tags',
  72. 'pattern' => ['b2c']
  73. ],
  74. [
  75. 'title' => '商品品牌',
  76. 'name' => 'product/brand/index',
  77. 'icon' => 'fa fa-tags'
  78. ],
  79. [
  80. 'title' => '商品服务',
  81. 'name' => 'common/product-service/index',
  82. ],
  83. [
  84. 'title' => '售后保障',
  85. 'name' => 'common/product-after-sale-explain/index',
  86. ],
  87. [
  88. 'title' => '供货商',
  89. 'name' => 'common/supplier/index',
  90. 'pattern' => ['b2c']
  91. ],
  92. ]
  93. ],
  94. [
  95. 'title' => '订单管理',
  96. 'name' => 'order',
  97. 'icon' => 'fa fa-sticky-note',
  98. 'child' => [
  99. [
  100. 'title' => '商城订单',
  101. 'name' => 'order/order/index',
  102. ],
  103. [
  104. 'title' => '充值订单',
  105. 'name' => 'order/recharge/index',
  106. 'pattern' => ['b2c', 'b2b2c'],
  107. ],
  108. [
  109. 'title' => '订单评价',
  110. 'name' => 'order/evaluate/index',
  111. 'pattern' => ['b2c', 'b2b2c'],
  112. ],
  113. [
  114. 'title' => '售后维权',
  115. 'name' => 'order/after-sale/index',
  116. 'pattern' => ['b2c', 'b2b2c'],
  117. ],
  118. [
  119. 'title' => '发票管理',
  120. 'name' => 'order/invoice/index',
  121. 'pattern' => ['b2c']
  122. ],
  123. ]
  124. ],
  125. [
  126. 'title' => '营销管理',
  127. 'name' => 'marketing',
  128. 'icon' => 'fa fa-gift',
  129. 'pattern' => ['b2c', 'b2b2c'],
  130. 'child' => [
  131. [
  132. 'title' => '优惠券',
  133. 'name' => 'marketing/coupon-type/index',
  134. 'pattern' => ['b2c', 'b2b2c']
  135. ],
  136. [
  137. 'title' => '积分抵现',
  138. 'name' => 'marketing/point-config/index',
  139. 'pattern' => ['b2c', 'b2b2c']
  140. ],
  141. [
  142. 'title' => '满额包邮',
  143. 'name' => 'marketing/full-mail/index',
  144. 'pattern' => ['b2c']
  145. ],
  146. [
  147. 'title' => '商品海报',
  148. 'name' => 'marketing/product-poster/index',
  149. ],
  150. ]
  151. ],
  152. [
  153. 'title' => '会员营销',
  154. 'name' => 'memberMarketing',
  155. 'icon' => 'fa fa-reply-all',
  156. 'pattern' => ['b2c', 'b2b2c'],
  157. 'child' => [
  158. [
  159. 'title' => '充值礼包',
  160. 'name' => 'marketing/recharge-config/index',
  161. ],
  162. ]
  163. ],
  164. [
  165. 'title' => '物流配送',
  166. 'name' => 'common/express-company/index',
  167. 'icon' => 'fa fa-shipping-fast',
  168. 'pattern' => ['b2c']
  169. ],
  170. [
  171. 'title' => '基础运营',
  172. 'name' => 'commonOperating',
  173. 'icon' => 'fa fa-share-alt',
  174. 'pattern' => ['b2c', 'b2b2c'],
  175. 'child' => [
  176. [
  177. 'title' => '公告管理',
  178. 'name' => 'common/notify-announce/index',
  179. ],
  180. [
  181. 'title' => '广告管理',
  182. 'name' => 'common/adv/index',
  183. ],
  184. [
  185. 'title' => '热门搜索',
  186. 'name' => 'common/hot-search/index',
  187. ],
  188. [
  189. 'title' => '意见反馈',
  190. 'name' => 'common/opinion/index',
  191. ],
  192. [
  193. 'title' => '协议配置',
  194. 'name' => 'common/protocol/index',
  195. ],
  196. [
  197. 'title' => '站点帮助',
  198. 'name' => 'common/helper/index',
  199. ],
  200. [
  201. 'title' => '站点维护',
  202. 'name' => 'common/maintenance/index',
  203. ],
  204. [
  205. 'title' => '版权信息',
  206. 'name' => 'common/copyright/index',
  207. ],
  208. ]
  209. ],
  210. [
  211. 'title' => '数据统计',
  212. 'name' => 'statistics',
  213. 'icon' => 'fa fa-chart-bar',
  214. 'child' => [
  215. [
  216. 'title' => '销售分析',
  217. 'name' => 'statistics/general/index',
  218. ],
  219. [
  220. 'title' => '商品分析',
  221. 'name' => 'statistics/product-analyze/index',
  222. ],
  223. [
  224. 'title' => '热卖商品',
  225. 'name' => 'statistics/product-hot/index',
  226. ],
  227. [
  228. 'title' => '交易分析',
  229. 'name' => 'statistics/transaction-analyze/index',
  230. ],
  231. [
  232. 'title' => '用户分析',
  233. 'name' => 'statistics/member/index',
  234. ],
  235. [
  236. 'title' => '搜索分析',
  237. 'name' => 'statistics/search/index',
  238. ],
  239. [
  240. 'title' => '优惠券分析',
  241. 'name' => 'statistics/coupon/index',
  242. ],
  243. ]
  244. ],
  245. [
  246. 'title' => '基础设置',
  247. 'name' => 'setting/display',
  248. 'icon' => 'fa fa-cogs'
  249. ],
  250. ],
  251. // ----------------------- 权限配置 ----------------------- //
  252. 'authItem' => [
  253. [
  254. 'title' => '所有权限',
  255. 'name' => '*',
  256. ],
  257. ],
  258. ];
粤ICP备19079148号