ShopPageEnum.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  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_PAGES = [
  193. 'mobile' => '/pages/mall/mall',
  194. 'pc' => '',
  195. ];
  196. //会员卡兑换
  197. const CARD_EXCHANGE = [
  198. 'mobile' => '/pages/card-exchange/card-exchange',
  199. 'pc' => '',
  200. ];
  201. //红色记忆
  202. const RED_MEMORY = [
  203. 'mobile' => '/bundle_b/pages/red-memory/red-memory',
  204. 'pc' => '',
  205. ];
  206. //交通枢纽
  207. const TRANSPORTATION = [
  208. 'mobile' => '/bundle_b/pages/transportation/transportation',
  209. 'pc' => '',
  210. ];
  211. //集市
  212. const MARKET = [
  213. 'mobile' => '/bundle_b/pages/market/market',
  214. 'pc' => '',
  215. ];
  216. //休闲赶海
  217. const CATCH_SEA = [
  218. 'mobile' => '/bundle_b/pages/catch_sea/catch_sea',
  219. 'pc' => '',
  220. ];
  221. //牡蛎品鲜
  222. const FRESH_OYSTERS = [
  223. 'mobile' => '/bundle_b/pages/fresh_oysters/fresh_oysters',
  224. 'pc' => '',
  225. ];
  226. //自然风光
  227. const NATURAL_SCENERY = [
  228. 'mobile' => '/bundle_b/pages/natural_scenery/natural_scenery',
  229. 'pc' => '',
  230. ];
  231. //酒店
  232. const HOTAL = [
  233. 'mobile' => '/bundle_b/pages/hotel/hotel',
  234. 'pc' => '',
  235. ];
  236. //餐饮
  237. const RESTAURANT = [
  238. 'mobile' => '/bundle_b/pages/restaurant/restaurant',
  239. 'pc' => '',
  240. ];
  241. //我的足迹
  242. const FOOTPRINTS = [
  243. 'mobile' => '/bundle_b/pages/user-footprints/user-footprints',
  244. 'pc' => '',
  245. ];
  246. //商城路径页面
  247. const SHOP_PAGE = [
  248. [
  249. 'index' => 1,
  250. 'name' => '商城首页',
  251. 'path' => self::HOME_PAGE['mobile'],
  252. 'params' => [],
  253. 'type' => 'shop',
  254. 'canTab' => true,
  255. ],
  256. [
  257. 'index' => 2,
  258. 'name' => '商品分类1',
  259. 'path' => self::GOODS_CATEGORY_PAGE['mobile'],
  260. 'params' => [],
  261. 'type' => 'shop',
  262. 'canTab' => false,
  263. ],
  264. [
  265. 'index' => 3,
  266. 'name' => '购物车',
  267. 'path' => self::CART_PAGE['mobile'],
  268. 'params' => [],
  269. 'type' => 'shop',
  270. 'canTab' => true,
  271. ],
  272. [
  273. 'index' => 4,
  274. 'name' => '个人中心',
  275. 'path' => self::MEMBER_CENTRE_PAGE['mobile'],
  276. 'params' => [],
  277. 'type' => 'shop',
  278. 'canTab' => true,
  279. ],
  280. [
  281. 'index' => 5,
  282. 'name' => '商品搜索',
  283. 'path' => self::GOODS_SEARCH_PAGE['mobile'],
  284. 'params' => [],
  285. 'type' => 'shop',
  286. ],
  287. [
  288. 'index' => 6,
  289. 'name' => '我的订单',
  290. 'path' => self::ORDER_LIST_PAGE['mobile'],
  291. 'params' => [],
  292. 'type' => 'shop',
  293. ],
  294. [
  295. 'index' => 7,
  296. 'name' => '收货地址',
  297. 'path' => self::ADDRESS_PAGE['mobile'],
  298. 'params' => [],
  299. 'type' => 'shop',
  300. ],
  301. [
  302. 'index' => 8,
  303. 'name' => '个人设置',
  304. 'path' => self::USER_PROFILE_PAGE['mobile'],
  305. 'params' => [],
  306. 'type' => 'shop',
  307. ],
  308. [
  309. 'index' => 9,
  310. 'name' => '会员中心',
  311. 'path' => self::USER_VIP_PAGE['mobile'],
  312. 'params' => [],
  313. 'type' => 'shop',
  314. ],
  315. [
  316. 'index' => 10,
  317. 'name' => '评价列表',
  318. 'path' => self::GOODS_COMMENT_PAGE['mobile'],
  319. 'params' => [],
  320. 'type' => 'shop',
  321. ],
  322. [
  323. 'index' => 10,
  324. 'name' => '售后列表',
  325. 'path' => self::AFTER_SALE_PAGE['mobile'],
  326. 'params' => [],
  327. 'type' => 'shop',
  328. ],
  329. [
  330. 'index' => 11,
  331. 'name' => '我的优惠券',
  332. 'path' => self::COUPON_PAGE['mobile'],
  333. 'params' => [],
  334. 'type' => 'shop',
  335. ],
  336. [
  337. 'index' => 12,
  338. 'name' => '领券中心',
  339. 'path' => self::COUPON_GET_PAGE['mobile'],
  340. 'params' => [],
  341. 'type' => 'marking',
  342. ],
  343. [
  344. 'index' => 13,
  345. 'name' => '我的钱包',
  346. 'path' => self::USER_WALLET_PAGE['mobile'],
  347. 'params' => [],
  348. 'type' => 'shop',
  349. ],
  350. [
  351. 'index' => 14,
  352. 'name' => '消息中心',
  353. 'path' => self::MESSAGE_CENTER_PAGE['mobile'],
  354. 'params' => [],
  355. 'type' => 'shop',
  356. ],
  357. [
  358. 'index' => 15,
  359. 'name' => '我的收藏',
  360. 'path' => self::GOODS_COLLECTS_PAGE['mobile'],
  361. 'params' => [],
  362. 'type' => 'shop',
  363. ],
  364. [
  365. 'index' => 16,
  366. 'name' => '商城公告',
  367. 'path' => self::STORE_NOTICE_PAGE['mobile'],
  368. 'params' => [],
  369. 'type' => 'shop',
  370. ],
  371. [
  372. 'index' => 17,
  373. 'name' => '分销推广',
  374. 'path' => self::USER_SPREAD_PAGE['mobile'],
  375. 'params' => [],
  376. 'type' => 'shop',
  377. ],
  378. [
  379. 'index' => 18,
  380. 'name' => '在线客服',
  381. 'path' => self::SERVICE_PAGE['mobile'],
  382. 'params' => [],
  383. 'type' => 'shop',
  384. ],
  385. [
  386. 'index' => 19,
  387. 'name' => '核销员',
  388. 'path' => self::VERIFICATION['mobile'],
  389. 'params' => [],
  390. 'type' => 'shop',
  391. ],
  392. [
  393. 'index' => 20,
  394. 'name' => '积分签到',
  395. 'path' => self::USER_SIGN_PAGE['mobile'],
  396. 'params' => [],
  397. 'type' => 'shop',
  398. ],
  399. [
  400. 'index' => 21,
  401. 'name' => '分销海报',
  402. 'path' => self::INVITE_POSTER_PAGE['mobile'],
  403. 'params' => [],
  404. 'type' => 'shop',
  405. ],
  406. [
  407. 'index' => 22,
  408. 'name' => '限时秒杀',
  409. 'path' => self::GOODS_SECKILL_PAGE['mobile'],
  410. 'params' => [],
  411. 'type' => 'marking',
  412. ],
  413. [
  414. 'index' => 23,
  415. 'name' => '超级拼团',
  416. 'path' => self::GOODS_TEAM_PAGE['mobile'],
  417. 'params' => [],
  418. 'type' => 'marking',
  419. ],
  420. [
  421. 'index' => 24,
  422. 'name' => '砍价活动',
  423. 'path' => self::GOODS_BARGAIN_PAGE['mobile'],
  424. 'params' => [],
  425. 'type' => 'marking',
  426. ],
  427. [
  428. 'index' => 25,
  429. 'name' => '砍价记录',
  430. 'path' => self::BARGAIN_CODE_PAGE['mobile'],
  431. 'params' => [],
  432. 'type' => 'marking',
  433. ],
  434. [
  435. 'index' => 26,
  436. 'name' => '拼团记录',
  437. 'path' => self::GOODS_TEAM_HISTORY_PAGE['mobile'],
  438. 'params' => [],
  439. 'type' => 'marking',
  440. ],
  441. [
  442. 'index' => 27,
  443. 'name' => '商城资讯',
  444. 'params' => [],
  445. 'path' => self::ARTICLE_PAGE['mobile'],
  446. 'type' => 'shop',
  447. ],
  448. [
  449. 'index' => 28,
  450. 'name' => '积分商城',
  451. 'params' => [],
  452. 'path' => self::INTEGRAL_MALL['mobile'],
  453. 'type' => 'shop',
  454. ],
  455. [
  456. 'index' => 29,
  457. 'name' => '预售活动',
  458. 'path' => self::PRESELL_ACTIVITY['mobile'],
  459. 'params' => [],
  460. 'type' => 'marking',
  461. ],
  462. [
  463. 'index' => 30,
  464. 'name' => '商城',
  465. 'path' => self::SHOP_PAGES['mobile'],
  466. 'params' => [],
  467. 'type' => 'shop',
  468. ],
  469. [
  470. 'index' => 31,
  471. 'name' => '会员卡兑换',
  472. 'path' => self::CARD_EXCHANGE['mobile'],
  473. 'params' => [],
  474. 'type' => 'shop',
  475. 'canTab' => 'true',
  476. ],
  477. [
  478. 'index' => 32,
  479. 'name' => '红色记忆',
  480. 'path' => self::RED_MEMORY['mobile'],
  481. 'params' => [],
  482. 'type' => 'shop',
  483. ],
  484. [
  485. 'index' => 33,
  486. 'name' => '交通枢纽',
  487. 'path' => self::TRANSPORTATION['mobile'],
  488. 'params' => [],
  489. 'type' => 'shop',
  490. ],
  491. [
  492. 'index' => 34,
  493. 'name' => '集市',
  494. 'path' => self::MARKET['mobile'],
  495. 'params' => [],
  496. 'type' => 'shop',
  497. ],
  498. [
  499. 'index' => 35,
  500. 'name' => '休闲赶海',
  501. 'path' => self::CATCH_SEA['mobile'],
  502. 'params' => [],
  503. 'type' => 'shop',
  504. ],
  505. [
  506. 'index' => 36,
  507. 'name' => '牡蛎品鲜',
  508. 'path' => self::FRESH_OYSTERS['mobile'],
  509. 'params' => [],
  510. 'type' => 'shop',
  511. ],
  512. [
  513. 'index' => 37,
  514. 'name' => '自然风光',
  515. 'path' => self::NATURAL_SCENERY['mobile'],
  516. 'params' => [],
  517. 'type' => 'shop',
  518. ],
  519. [
  520. 'index' => 38,
  521. 'name' => '酒店',
  522. 'path' => self::HOTAL['mobile'],
  523. 'params' => [],
  524. 'type' => 'shop',
  525. ],
  526. [
  527. 'index' => 39,
  528. 'name' => '餐饮',
  529. 'path' => self::RESTAURANT['mobile'],
  530. 'params' => [],
  531. 'type' => 'shop',
  532. ],
  533. [
  534. 'index' => 40,
  535. 'name' => '我的足迹',
  536. 'path' => self::FOOTPRINTS['mobile'],
  537. 'params' => [],
  538. 'type' => 'shop',
  539. ],
  540. ];
  541. //pc端各个页面的路径
  542. const PC_SHOP_PAGE = [
  543. [
  544. 'index' => 1,
  545. 'name' => '商城首页',
  546. 'path' => self::HOME_PAGE['pc'],
  547. 'params' => [],
  548. 'type' => 'shop',
  549. ],
  550. [
  551. 'index' => 1,
  552. 'name' => '商品分类',
  553. 'path' => self::GOODS_CATEGORY_PAGE['pc'],
  554. 'params' => [],
  555. 'type' => 'shop',
  556. ],
  557. [
  558. 'index' => 1,
  559. 'name' => '购物车',
  560. 'path' => self::CART_PAGE['pc'],
  561. 'params' => [],
  562. 'type' => 'shop',
  563. ],
  564. [
  565. 'index' => 1,
  566. 'name' => '商品搜索',
  567. 'path' => self::GOODS_SEARCH_PAGE['pc'],
  568. 'params' => [],
  569. 'type' => 'shop',
  570. ],
  571. [
  572. 'index' => 1,
  573. 'name' => '我的订单',
  574. 'path' => self::ORDER_LIST_PAGE['pc'],
  575. 'params' => [],
  576. 'type' => 'shop',
  577. ],
  578. [
  579. 'index' => 1,
  580. 'name' => '收货地址',
  581. 'path' => self::ADDRESS_PAGE['pc'],
  582. 'params' => [],
  583. 'type' => 'shop',
  584. ],
  585. [
  586. 'index' => 1,
  587. 'name' => '个人设置',
  588. 'path' => self::USER_PROFILE_PAGE['pc'],
  589. 'params' => [],
  590. 'type' => 'shop',
  591. ],
  592. [
  593. 'index' => 1,
  594. 'name' => '评价列表',
  595. 'path' => self::GOODS_COMMENT_PAGE['pc'],
  596. 'params' => [],
  597. 'type' => 'shop',
  598. ],
  599. [
  600. 'index' => 1,
  601. 'name' => '售后列表',
  602. 'path' => self::AFTER_SALE_PAGE['pc'],
  603. 'params' => [],
  604. 'type' => 'shop',
  605. ],
  606. [
  607. 'index' => 1,
  608. 'name' => '我的优惠券',
  609. 'path' => self::COUPON_PAGE['pc'],
  610. 'params' => [],
  611. 'type' => 'shop',
  612. ],
  613. [
  614. 'index' => 1,
  615. 'name' => '我的钱包',
  616. 'path' => self::USER_WALLET_PAGE['pc'],
  617. 'params' => [],
  618. 'type' => 'shop',
  619. ],
  620. [
  621. 'index' => 1,
  622. 'name' => '我的收藏',
  623. 'path' => self::GOODS_COLLECTS_PAGE['pc'],
  624. 'params' => [],
  625. 'type' => 'shop',
  626. ],
  627. [
  628. 'index' => 1,
  629. 'name' => '商城公告',
  630. 'path' => self::STORE_NOTICE_PAGE['pc'],
  631. 'params' => [],
  632. 'type' => 'shop',
  633. ],
  634. [
  635. 'index' => 1,
  636. 'name' => '领券中心',
  637. 'path' => self::COUPON_GET_PAGE['pc'],
  638. 'params' => [],
  639. 'type' => 'marking',
  640. ],
  641. [
  642. 'index' => 1,
  643. 'name' => '限时秒杀',
  644. 'path' => self::GOODS_SECKILL_PAGE['pc'],
  645. 'params' => [],
  646. 'type' => 'marking',
  647. ],
  648. ];
  649. }