ShopPageEnum.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  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 SHOP_PAGE = [
  203. [
  204. 'index' => 1,
  205. 'name' => '商城首页',
  206. 'path' => self::HOME_PAGE['mobile'],
  207. 'params' => [],
  208. 'type' => 'shop',
  209. 'canTab' => true,
  210. ],
  211. [
  212. 'index' => 2,
  213. 'name' => '商品分类',
  214. 'path' => self::GOODS_CATEGORY_PAGE['mobile'],
  215. 'params' => [],
  216. 'type' => 'shop',
  217. 'canTab' => true,
  218. ],
  219. [
  220. 'index' => 3,
  221. 'name' => '购物车',
  222. 'path' => self::CART_PAGE['mobile'],
  223. 'params' => [],
  224. 'type' => 'shop',
  225. 'canTab' => true,
  226. ],
  227. [
  228. 'index' => 4,
  229. 'name' => '个人中心',
  230. 'path' => self::MEMBER_CENTRE_PAGE['mobile'],
  231. 'params' => [],
  232. 'type' => 'shop',
  233. 'canTab' => true,
  234. ],
  235. [
  236. 'index' => 5,
  237. 'name' => '商品搜索',
  238. 'path' => self::GOODS_SEARCH_PAGE['mobile'],
  239. 'params' => [],
  240. 'type' => 'shop',
  241. ],
  242. [
  243. 'index' => 6,
  244. 'name' => '我的订单',
  245. 'path' => self::ORDER_LIST_PAGE['mobile'],
  246. 'params' => [],
  247. 'type' => 'shop',
  248. ],
  249. [
  250. 'index' => 7,
  251. 'name' => '收货地址',
  252. 'path' => self::ADDRESS_PAGE['mobile'],
  253. 'params' => [],
  254. 'type' => 'shop',
  255. ],
  256. [
  257. 'index' => 8,
  258. 'name' => '个人设置',
  259. 'path' => self::USER_PROFILE_PAGE['mobile'],
  260. 'params' => [],
  261. 'type' => 'shop',
  262. ],
  263. [
  264. 'index' => 9,
  265. 'name' => '会员中心',
  266. 'path' => self::USER_VIP_PAGE['mobile'],
  267. 'params' => [],
  268. 'type' => 'shop',
  269. ],
  270. [
  271. 'index' => 10,
  272. 'name' => '评价列表',
  273. 'path' => self::GOODS_COMMENT_PAGE['mobile'],
  274. 'params' => [],
  275. 'type' => 'shop',
  276. ],
  277. [
  278. 'index' => 10,
  279. 'name' => '售后列表',
  280. 'path' => self::AFTER_SALE_PAGE['mobile'],
  281. 'params' => [],
  282. 'type' => 'shop',
  283. ],
  284. [
  285. 'index' => 11,
  286. 'name' => '我的优惠券',
  287. 'path' => self::COUPON_PAGE['mobile'],
  288. 'params' => [],
  289. 'type' => 'shop',
  290. ],
  291. [
  292. 'index' => 12,
  293. 'name' => '领券中心',
  294. 'path' => self::COUPON_GET_PAGE['mobile'],
  295. 'params' => [],
  296. 'type' => 'marking',
  297. ],
  298. [
  299. 'index' => 13,
  300. 'name' => '我的钱包',
  301. 'path' => self::USER_WALLET_PAGE['mobile'],
  302. 'params' => [],
  303. 'type' => 'shop',
  304. ],
  305. [
  306. 'index' => 14,
  307. 'name' => '消息中心',
  308. 'path' => self::MESSAGE_CENTER_PAGE['mobile'],
  309. 'params' => [],
  310. 'type' => 'shop',
  311. ],
  312. [
  313. 'index' => 15,
  314. 'name' => '我的收藏',
  315. 'path' => self::GOODS_COLLECTS_PAGE['mobile'],
  316. 'params' => [],
  317. 'type' => 'shop',
  318. ],
  319. [
  320. 'index' => 16,
  321. 'name' => '商城公告',
  322. 'path' => self::STORE_NOTICE_PAGE['mobile'],
  323. 'params' => [],
  324. 'type' => 'shop',
  325. ],
  326. [
  327. 'index' => 17,
  328. 'name' => '分销推广',
  329. 'path' => self::USER_SPREAD_PAGE['mobile'],
  330. 'params' => [],
  331. 'type' => 'shop',
  332. ],
  333. [
  334. 'index' => 18,
  335. 'name' => '在线客服',
  336. 'path' => self::SERVICE_PAGE['mobile'],
  337. 'params' => [],
  338. 'type' => 'shop',
  339. ],
  340. [
  341. 'index' => 19,
  342. 'name' => '核销员',
  343. 'path' => self::VERIFICATION['mobile'],
  344. 'params' => [],
  345. 'type' => 'shop',
  346. ],
  347. [
  348. 'index' => 20,
  349. 'name' => '积分签到',
  350. 'path' => self::USER_SIGN_PAGE['mobile'],
  351. 'params' => [],
  352. 'type' => 'shop',
  353. ],
  354. [
  355. 'index' => 21,
  356. 'name' => '分销海报',
  357. 'path' => self::INVITE_POSTER_PAGE['mobile'],
  358. 'params' => [],
  359. 'type' => 'shop',
  360. ],
  361. [
  362. 'index' => 22,
  363. 'name' => '限时秒杀',
  364. 'path' => self::GOODS_SECKILL_PAGE['mobile'],
  365. 'params' => [],
  366. 'type' => 'marking',
  367. ],
  368. [
  369. 'index' => 23,
  370. 'name' => '超级拼团',
  371. 'path' => self::GOODS_TEAM_PAGE['mobile'],
  372. 'params' => [],
  373. 'type' => 'marking',
  374. ],
  375. [
  376. 'index' => 24,
  377. 'name' => '砍价活动',
  378. 'path' => self::GOODS_BARGAIN_PAGE['mobile'],
  379. 'params' => [],
  380. 'type' => 'marking',
  381. ],
  382. [
  383. 'index' => 25,
  384. 'name' => '砍价记录',
  385. 'path' => self::BARGAIN_CODE_PAGE['mobile'],
  386. 'params' => [],
  387. 'type' => 'marking',
  388. ],
  389. [
  390. 'index' => 26,
  391. 'name' => '拼团记录',
  392. 'path' => self::GOODS_TEAM_HISTORY_PAGE['mobile'],
  393. 'params' => [],
  394. 'type' => 'marking',
  395. ],
  396. [
  397. 'index' => 27,
  398. 'name' => '商城资讯',
  399. 'params' => [],
  400. 'path' => self::ARTICLE_PAGE['mobile'],
  401. 'type' => 'shop',
  402. ],
  403. [
  404. 'index' => 28,
  405. 'name' => '积分商城',
  406. 'params' => [],
  407. 'path' => self::INTEGRAL_MALL['mobile'],
  408. 'type' => 'shop',
  409. ],
  410. [
  411. 'index' => 29,
  412. 'name' => '预售活动',
  413. 'path' => self::PRESELL_ACTIVITY['mobile'],
  414. 'params' => [],
  415. 'type' => 'marking',
  416. ],
  417. [
  418. 'index' => 30,
  419. 'name' => '商城',
  420. 'path' => self::SHOP_PAGES['mobile'],
  421. 'params' => [],
  422. 'type' => 'shop',
  423. ],
  424. [
  425. 'index' => 31,
  426. 'name' => '会员卡兑换',
  427. 'path' => self::CARD_EXCHANGE['mobile'],
  428. 'params' => [],
  429. 'type' => 'shop',
  430. ],
  431. ];
  432. //pc端各个页面的路径
  433. const PC_SHOP_PAGE = [
  434. [
  435. 'index' => 1,
  436. 'name' => '商城首页',
  437. 'path' => self::HOME_PAGE['pc'],
  438. 'params' => [],
  439. 'type' => 'shop',
  440. ],
  441. [
  442. 'index' => 1,
  443. 'name' => '商品分类',
  444. 'path' => self::GOODS_CATEGORY_PAGE['pc'],
  445. 'params' => [],
  446. 'type' => 'shop',
  447. ],
  448. [
  449. 'index' => 1,
  450. 'name' => '购物车',
  451. 'path' => self::CART_PAGE['pc'],
  452. 'params' => [],
  453. 'type' => 'shop',
  454. ],
  455. [
  456. 'index' => 1,
  457. 'name' => '商品搜索',
  458. 'path' => self::GOODS_SEARCH_PAGE['pc'],
  459. 'params' => [],
  460. 'type' => 'shop',
  461. ],
  462. [
  463. 'index' => 1,
  464. 'name' => '我的订单',
  465. 'path' => self::ORDER_LIST_PAGE['pc'],
  466. 'params' => [],
  467. 'type' => 'shop',
  468. ],
  469. [
  470. 'index' => 1,
  471. 'name' => '收货地址',
  472. 'path' => self::ADDRESS_PAGE['pc'],
  473. 'params' => [],
  474. 'type' => 'shop',
  475. ],
  476. [
  477. 'index' => 1,
  478. 'name' => '个人设置',
  479. 'path' => self::USER_PROFILE_PAGE['pc'],
  480. 'params' => [],
  481. 'type' => 'shop',
  482. ],
  483. [
  484. 'index' => 1,
  485. 'name' => '评价列表',
  486. 'path' => self::GOODS_COMMENT_PAGE['pc'],
  487. 'params' => [],
  488. 'type' => 'shop',
  489. ],
  490. [
  491. 'index' => 1,
  492. 'name' => '售后列表',
  493. 'path' => self::AFTER_SALE_PAGE['pc'],
  494. 'params' => [],
  495. 'type' => 'shop',
  496. ],
  497. [
  498. 'index' => 1,
  499. 'name' => '我的优惠券',
  500. 'path' => self::COUPON_PAGE['pc'],
  501. 'params' => [],
  502. 'type' => 'shop',
  503. ],
  504. [
  505. 'index' => 1,
  506. 'name' => '我的钱包',
  507. 'path' => self::USER_WALLET_PAGE['pc'],
  508. 'params' => [],
  509. 'type' => 'shop',
  510. ],
  511. [
  512. 'index' => 1,
  513. 'name' => '我的收藏',
  514. 'path' => self::GOODS_COLLECTS_PAGE['pc'],
  515. 'params' => [],
  516. 'type' => 'shop',
  517. ],
  518. [
  519. 'index' => 1,
  520. 'name' => '商城公告',
  521. 'path' => self::STORE_NOTICE_PAGE['pc'],
  522. 'params' => [],
  523. 'type' => 'shop',
  524. ],
  525. [
  526. 'index' => 1,
  527. 'name' => '领券中心',
  528. 'path' => self::COUPON_GET_PAGE['pc'],
  529. 'params' => [],
  530. 'type' => 'marking',
  531. ],
  532. [
  533. 'index' => 1,
  534. 'name' => '限时秒杀',
  535. 'path' => self::GOODS_SECKILL_PAGE['pc'],
  536. 'params' => [],
  537. 'type' => 'marking',
  538. ],
  539. ];
  540. }