ShopPageEnum.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | likeshop100%开源免费商用商城系统
  4. // +----------------------------------------------------------------------
  5. // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
  6. // | 开源版本可自由商用,可去除界面版权logo
  7. // | 商业版本务必购买商业授权,以免引起法律纠纷
  8. // | 禁止对系统程序代码以任何目的,任何形式的再发布
  9. // | gitee下载:https://gitee.com/likeshop_gitee
  10. // | github下载:https://github.com/likeshop-github
  11. // | 访问官网:https://www.likeshop.cn
  12. // | 访问社区:https://home.likeshop.cn
  13. // | 访问手册:http://doc.likeshop.cn
  14. // | 微信公众号:likeshop技术社区
  15. // | likeshop团队 版权所有 拥有最终解释权
  16. // +----------------------------------------------------------------------
  17. // | author: likeshopTeam
  18. // +----------------------------------------------------------------------
  19. namespace app\common\enum;
  20. /**
  21. * 商城页面枚举
  22. * Class ShopPageEnum
  23. * @package app\common\enum
  24. */
  25. class ShopPageEnum{
  26. //各个页面预览路径
  27. //首页
  28. const HOME_PAGE = [
  29. 'mobile' => '/pages/index/index',
  30. 'pc' => '/',
  31. ];
  32. //商品分类
  33. const GOODS_CATEGORY_PAGE = [
  34. 'mobile' => '/pages/category/category',
  35. 'pc' => '/category',
  36. ];
  37. //购物车路径
  38. const CART_PAGE = [
  39. 'mobile' => '/pages/shop_cart/shop_cart',
  40. 'pc' => '/shop_cart',
  41. ];
  42. //个人中心路径
  43. const MEMBER_CENTRE_PAGE = [
  44. 'mobile' => '/pages/user/user',
  45. 'pc' => '/pc/user/profile',
  46. ];
  47. //商品详情页路径
  48. const GOODS_DETAIL = [
  49. 'mobile' => '/pages/goods_detail/goods_detail',
  50. 'pc' => '',
  51. ];
  52. //微页面路径
  53. const MICRO_PAGE = [
  54. 'mobile' => '/pages/page/page',
  55. 'pc' => '',
  56. ];
  57. //商品搜索
  58. const GOODS_SEARCH_PAGE = [
  59. 'mobile' => '/pages/goods_search/goods_search',
  60. 'pc' => '/goods_list',
  61. ];
  62. //订单列表
  63. const ORDER_LIST_PAGE = [
  64. 'mobile' => '/bundle/pages/user_order/user_order',
  65. 'pc' => '/user/order',
  66. ];
  67. //收货地址
  68. const ADDRESS_PAGE = [
  69. 'mobile' => '/pages/address/address',
  70. 'pc' => '/user/address',
  71. ];
  72. //用户设置
  73. const USER_PROFILE_PAGE = [
  74. 'mobile' => '/bundle/pages/user_profile/user_profile',
  75. 'pc' => '/user/profile',
  76. ];
  77. //用户中心
  78. const USER_VIP_PAGE = [
  79. 'mobile' => '/bundle/pages/user_vip/user_vip',
  80. 'pc' => '',
  81. ];
  82. //商品评价
  83. const GOODS_COMMENT_PAGE = [
  84. 'mobile' => '/bundle/pages/goods_comment/goods_comment',
  85. 'pc' => '/user/evaluation',
  86. ];
  87. //售后
  88. const AFTER_SALE_PAGE = [
  89. 'mobile' => '/bundle/pages/after_sale/after_sale',
  90. 'pc' => '/user/after_sales',
  91. ];
  92. //优惠券
  93. const COUPON_PAGE = [
  94. 'mobile' => '/bundle/pages/coupon/coupon',
  95. 'pc' => '/user/coupons',
  96. ];
  97. //领券中心
  98. const COUPON_GET_PAGE = [
  99. 'mobile' => '/bundle/pages/coupon_get/coupon_get',
  100. 'pc' => '/get_coupons',
  101. ];
  102. //用户钱包
  103. const USER_WALLET_PAGE = [
  104. 'mobile' => '/bundle/pages/user_wallet/user_wallet',
  105. 'pc' => '/user/user_wallet',
  106. ];
  107. //信息中心
  108. const MESSAGE_CENTER_PAGE = [
  109. 'mobile' => '/bundle/pages/message_center/message_center',
  110. 'pc' => '',
  111. ];
  112. //我的收藏
  113. const GOODS_COLLECTS_PAGE = [
  114. 'mobile' => '/bundle/pages/goods_collects/goods_collects',
  115. 'pc' => '/user/collection',
  116. ];
  117. //商城公告
  118. const STORE_NOTICE_PAGE = [
  119. 'mobile' => '/bundle/pages/store_notice/store_notice',
  120. 'pc' => '/news_list',
  121. ];
  122. //分销推广
  123. const USER_SPREAD_PAGE = [
  124. 'mobile' => '/bundle/pages/user_spread/user_spread',
  125. 'pc' => '',
  126. ];
  127. //在线客服
  128. const SERVICE_PAGE = [
  129. 'mobile' => '/bundle/pages/artificial_service/artificial_service',
  130. 'pc' => '',
  131. ];
  132. //核销员
  133. const VERIFICATION = [
  134. 'mobile' => '/bundle/pages/verification_list/verification_list',
  135. 'pc' => '',
  136. ];
  137. const INITIATE = [
  138. 'mobile' => '/bundle/pages/bargain_progress/bargain_progress',
  139. 'pc' => '',
  140. ];
  141. //会员签到
  142. const USER_SIGN_PAGE = [
  143. 'mobile' => '/bundle/pages/user_sign/user_sign',
  144. 'pc' => '',
  145. ];
  146. //邀请海报
  147. const INVITE_POSTER_PAGE = [
  148. 'mobile' => '/bundle/pages/invite_poster/invite_poster',
  149. 'pc' => '',
  150. ];
  151. //拼团
  152. const GOODS_TEAM_PAGE = [
  153. 'mobile' => '/bundle/pages/goods_team/goods_team',
  154. 'pc' => '',
  155. ];
  156. //秒杀
  157. const GOODS_SECKILL_PAGE = [
  158. 'mobile' => '/bundle/pages/goods_seckill/goods_seckill',
  159. 'pc' => '/seckill',
  160. ];
  161. //砍价
  162. const GOODS_BARGAIN_PAGE = [
  163. 'mobile' => '/bundle/pages/goods_bargain/goods_bargain',
  164. 'pc' => '',
  165. ];
  166. //砍价记录
  167. const BARGAIN_CODE_PAGE = [
  168. 'mobile' => '/bundle/pages/bargain_code/bargain_code',
  169. 'pc' => '',
  170. ];
  171. //拼团记录
  172. const GOODS_TEAM_HISTORY_PAGE = [
  173. 'mobile' => '/bundle/pages/goods_team_history/goods_team_history',
  174. 'pc' => '',
  175. ];
  176. // 预售活动
  177. const PRESELL_ACTIVITY = [
  178. 'mobile' => '/bundle/pages/goods_presell/goods_presell',
  179. 'pc' => '',
  180. ];
  181. //商城资讯
  182. const ARTICLE_PAGE = [
  183. 'mobile' => '/bundle/pages/article_lists/article_lists',
  184. 'pc' => '',
  185. ];
  186. //积分商城
  187. const INTEGRAL_MALL = [
  188. 'mobile' => '/bundle/pages/integral_mall/integral_mall',
  189. 'pc' => '',
  190. ];
  191. //商城路径页面
  192. const SHOP_PAGE = [
  193. [
  194. 'index' => 1,
  195. 'name' => '商城首页',
  196. 'path' => self::HOME_PAGE['mobile'],
  197. 'params' => [],
  198. 'type' => 'shop',
  199. 'canTab' => true,
  200. ],
  201. [
  202. 'index' => 2,
  203. 'name' => '商品分类',
  204. 'path' => self::GOODS_CATEGORY_PAGE['mobile'],
  205. 'params' => [],
  206. 'type' => 'shop',
  207. 'canTab' => true,
  208. ],
  209. [
  210. 'index' => 3,
  211. 'name' => '购物车',
  212. 'path' => self::CART_PAGE['mobile'],
  213. 'params' => [],
  214. 'type' => 'shop',
  215. 'canTab' => true,
  216. ],
  217. [
  218. 'index' => 4,
  219. 'name' => '个人中心',
  220. 'path' => self::MEMBER_CENTRE_PAGE['mobile'],
  221. 'params' => [],
  222. 'type' => 'shop',
  223. 'canTab' => true,
  224. ],
  225. [
  226. 'index' => 5,
  227. 'name' => '商品搜索',
  228. 'path' => self::GOODS_SEARCH_PAGE['mobile'],
  229. 'params' => [],
  230. 'type' => 'shop',
  231. ],
  232. [
  233. 'index' => 6,
  234. 'name' => '我的订单',
  235. 'path' => self::ORDER_LIST_PAGE['mobile'],
  236. 'params' => [],
  237. 'type' => 'shop',
  238. ],
  239. [
  240. 'index' => 7,
  241. 'name' => '收货地址',
  242. 'path' => self::ADDRESS_PAGE['mobile'],
  243. 'params' => [],
  244. 'type' => 'shop',
  245. ],
  246. [
  247. 'index' => 8,
  248. 'name' => '个人设置',
  249. 'path' => self::USER_PROFILE_PAGE['mobile'],
  250. 'params' => [],
  251. 'type' => 'shop',
  252. ],
  253. [
  254. 'index' => 9,
  255. 'name' => '会员中心',
  256. 'path' => self::USER_VIP_PAGE['mobile'],
  257. 'params' => [],
  258. 'type' => 'shop',
  259. ],
  260. [
  261. 'index' => 10,
  262. 'name' => '评价列表',
  263. 'path' => self::GOODS_COMMENT_PAGE['mobile'],
  264. 'params' => [],
  265. 'type' => 'shop',
  266. ],
  267. [
  268. 'index' => 10,
  269. 'name' => '售后列表',
  270. 'path' => self::AFTER_SALE_PAGE['mobile'],
  271. 'params' => [],
  272. 'type' => 'shop',
  273. ],
  274. [
  275. 'index' => 11,
  276. 'name' => '我的优惠券',
  277. 'path' => self::COUPON_PAGE['mobile'],
  278. 'params' => [],
  279. 'type' => 'shop',
  280. ],
  281. [
  282. 'index' => 12,
  283. 'name' => '领券中心',
  284. 'path' => self::COUPON_GET_PAGE['mobile'],
  285. 'params' => [],
  286. 'type' => 'marking',
  287. ],
  288. [
  289. 'index' => 13,
  290. 'name' => '我的钱包',
  291. 'path' => self::USER_WALLET_PAGE['mobile'],
  292. 'params' => [],
  293. 'type' => 'shop',
  294. ],
  295. [
  296. 'index' => 14,
  297. 'name' => '消息中心',
  298. 'path' => self::MESSAGE_CENTER_PAGE['mobile'],
  299. 'params' => [],
  300. 'type' => 'shop',
  301. ],
  302. [
  303. 'index' => 15,
  304. 'name' => '我的收藏',
  305. 'path' => self::GOODS_COLLECTS_PAGE['mobile'],
  306. 'params' => [],
  307. 'type' => 'shop',
  308. ],
  309. [
  310. 'index' => 16,
  311. 'name' => '商城公告',
  312. 'path' => self::STORE_NOTICE_PAGE['mobile'],
  313. 'params' => [],
  314. 'type' => 'shop',
  315. ],
  316. [
  317. 'index' => 17,
  318. 'name' => '分销推广',
  319. 'path' => self::USER_SPREAD_PAGE['mobile'],
  320. 'params' => [],
  321. 'type' => 'shop',
  322. ],
  323. [
  324. 'index' => 18,
  325. 'name' => '在线客服',
  326. 'path' => self::SERVICE_PAGE['mobile'],
  327. 'params' => [],
  328. 'type' => 'shop',
  329. ],
  330. [
  331. 'index' => 19,
  332. 'name' => '核销员',
  333. 'path' => self::VERIFICATION['mobile'],
  334. 'params' => [],
  335. 'type' => 'shop',
  336. ],
  337. [
  338. 'index' => 20,
  339. 'name' => '积分签到',
  340. 'path' => self::USER_SIGN_PAGE['mobile'],
  341. 'params' => [],
  342. 'type' => 'shop',
  343. ],
  344. [
  345. 'index' => 21,
  346. 'name' => '分销海报',
  347. 'path' => self::INVITE_POSTER_PAGE['mobile'],
  348. 'params' => [],
  349. 'type' => 'shop',
  350. ],
  351. [
  352. 'index' => 22,
  353. 'name' => '限时秒杀',
  354. 'path' => self::GOODS_SECKILL_PAGE['mobile'],
  355. 'params' => [],
  356. 'type' => 'marking',
  357. ],
  358. [
  359. 'index' => 23,
  360. 'name' => '超级拼团',
  361. 'path' => self::GOODS_TEAM_PAGE['mobile'],
  362. 'params' => [],
  363. 'type' => 'marking',
  364. ],
  365. [
  366. 'index' => 24,
  367. 'name' => '砍价活动',
  368. 'path' => self::GOODS_BARGAIN_PAGE['mobile'],
  369. 'params' => [],
  370. 'type' => 'marking',
  371. ],
  372. [
  373. 'index' => 25,
  374. 'name' => '砍价记录',
  375. 'path' => self::BARGAIN_CODE_PAGE['mobile'],
  376. 'params' => [],
  377. 'type' => 'marking',
  378. ],
  379. [
  380. 'index' => 26,
  381. 'name' => '拼团记录',
  382. 'path' => self::GOODS_TEAM_HISTORY_PAGE['mobile'],
  383. 'params' => [],
  384. 'type' => 'marking',
  385. ],
  386. [
  387. 'index' => 27,
  388. 'name' => '商城资讯',
  389. 'params' => [],
  390. 'path' => self::ARTICLE_PAGE['mobile'],
  391. 'type' => 'shop',
  392. ],
  393. [
  394. 'index' => 28,
  395. 'name' => '积分商城',
  396. 'params' => [],
  397. 'path' => self::INTEGRAL_MALL['mobile'],
  398. 'type' => 'shop',
  399. ],
  400. [
  401. 'index' => 29,
  402. 'name' => '预售活动',
  403. 'path' => self::PRESELL_ACTIVITY['mobile'],
  404. 'params' => [],
  405. 'type' => 'marking',
  406. ],
  407. ];
  408. //pc端各个页面的路径
  409. const PC_SHOP_PAGE = [
  410. [
  411. 'index' => 1,
  412. 'name' => '商城首页',
  413. 'path' => self::HOME_PAGE['pc'],
  414. 'params' => [],
  415. 'type' => 'shop',
  416. ],
  417. [
  418. 'index' => 1,
  419. 'name' => '商品分类',
  420. 'path' => self::GOODS_CATEGORY_PAGE['pc'],
  421. 'params' => [],
  422. 'type' => 'shop',
  423. ],
  424. [
  425. 'index' => 1,
  426. 'name' => '购物车',
  427. 'path' => self::CART_PAGE['pc'],
  428. 'params' => [],
  429. 'type' => 'shop',
  430. ],
  431. [
  432. 'index' => 1,
  433. 'name' => '商品搜索',
  434. 'path' => self::GOODS_SEARCH_PAGE['pc'],
  435. 'params' => [],
  436. 'type' => 'shop',
  437. ],
  438. [
  439. 'index' => 1,
  440. 'name' => '我的订单',
  441. 'path' => self::ORDER_LIST_PAGE['pc'],
  442. 'params' => [],
  443. 'type' => 'shop',
  444. ],
  445. [
  446. 'index' => 1,
  447. 'name' => '收货地址',
  448. 'path' => self::ADDRESS_PAGE['pc'],
  449. 'params' => [],
  450. 'type' => 'shop',
  451. ],
  452. [
  453. 'index' => 1,
  454. 'name' => '个人设置',
  455. 'path' => self::USER_PROFILE_PAGE['pc'],
  456. 'params' => [],
  457. 'type' => 'shop',
  458. ],
  459. [
  460. 'index' => 1,
  461. 'name' => '评价列表',
  462. 'path' => self::GOODS_COMMENT_PAGE['pc'],
  463. 'params' => [],
  464. 'type' => 'shop',
  465. ],
  466. [
  467. 'index' => 1,
  468. 'name' => '售后列表',
  469. 'path' => self::AFTER_SALE_PAGE['pc'],
  470. 'params' => [],
  471. 'type' => 'shop',
  472. ],
  473. [
  474. 'index' => 1,
  475. 'name' => '我的优惠券',
  476. 'path' => self::COUPON_PAGE['pc'],
  477. 'params' => [],
  478. 'type' => 'shop',
  479. ],
  480. [
  481. 'index' => 1,
  482. 'name' => '我的钱包',
  483. 'path' => self::USER_WALLET_PAGE['pc'],
  484. 'params' => [],
  485. 'type' => 'shop',
  486. ],
  487. [
  488. 'index' => 1,
  489. 'name' => '我的收藏',
  490. 'path' => self::GOODS_COLLECTS_PAGE['pc'],
  491. 'params' => [],
  492. 'type' => 'shop',
  493. ],
  494. [
  495. 'index' => 1,
  496. 'name' => '商城公告',
  497. 'path' => self::STORE_NOTICE_PAGE['pc'],
  498. 'params' => [],
  499. 'type' => 'shop',
  500. ],
  501. [
  502. 'index' => 1,
  503. 'name' => '领券中心',
  504. 'path' => self::COUPON_GET_PAGE['pc'],
  505. 'params' => [],
  506. 'type' => 'marking',
  507. ],
  508. [
  509. 'index' => 1,
  510. 'name' => '限时秒杀',
  511. 'path' => self::GOODS_SECKILL_PAGE['pc'],
  512. 'params' => [],
  513. 'type' => 'marking',
  514. ],
  515. ];
  516. }