ShopPageEnum.php 20 KB

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