pages.config.ts 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
  2. export default defineUniPages({
  3. globalStyle: {
  4. navigationStyle: 'default',
  5. navigationBarTitleText: '筑巢荟',
  6. navigationBarBackgroundColor: '#f8f8f8',
  7. navigationBarTextStyle: 'black',
  8. backgroundColor: '#FFFFFF',
  9. },
  10. easycom: {
  11. autoscan: true,
  12. custom: {
  13. '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
  14. '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
  15. 'z-paging/components/z-paging$1/z-paging$1.vue',
  16. },
  17. },
  18. tabBar: {
  19. color: '#999999',
  20. selectedColor: '#018d71',
  21. backgroundColor: '#F8F8F8',
  22. borderStyle: 'black',
  23. fontSize: '10px',
  24. iconWidth: '24px',
  25. spacing: '3px',
  26. custom: true,
  27. height: '0px',
  28. list: [
  29. {
  30. pagePath: 'pages/home/index',
  31. },
  32. {
  33. pagePath: 'pages/material/index',
  34. },
  35. // {
  36. // pagePath: 'pages/publish/index',
  37. // },
  38. {
  39. pagePath: 'pages/messages/index',
  40. },
  41. {
  42. pagePath: 'pages/mine/index',
  43. },
  44. ],
  45. },
  46. condition: {
  47. current: -1,
  48. list: [
  49. { name: '设计游学', path: 'pages/index/study-tour/index' },
  50. { name: '登录', path: 'pages-sub/login/index' },
  51. { name: '开发登录', path: 'pages-sub/login/index', query: 'type=test' },
  52. { name: '我的', path: 'pages/mine/index' },
  53. { name: '设计师认证', path: 'pages-sub/mine/authentication/index' },
  54. { name: '设计师认证提交成功', path: 'pages-sub/mine/authentication/submit/success/index' },
  55. { name: '设计师个人主页', path: 'pages-sub/mine/homepage/index' },
  56. {
  57. name: '确认订单',
  58. path: '/pages-sub/home/mall/confirm-order/index',
  59. query:
  60. 'data={"isShoppingCart":1,"userId":287,"list":[{"orderNo":"241030170642FX00009","productId":"67131ee4e4b06312aac7e0e9","productName":null,"points":123,"nums":1,"orderImgUrl":"https://image.zhuchaohui.com/zhucaohui/8e5ed57d8a1c8826c9cadb01d2ee39f584c6af1c0269f82c72d60c5461b5f790.png"},{"orderNo":"241030170642FX00010","productId":"67208f37d5c1cec120ffcaae","productName":null,"points":30,"nums":3,"orderImgUrl":"https://image.zhuchaohui.com/zhucaohui/8a4db4e05845032124460e1eeda0a9f2419dd1014947e3f26652da1fa1cc4b54.jpeg"}],"couponList":[],"totalsPoints":213,"totalsCouponPoints":0,"totalsCurrPoints":0}',
  61. },
  62. { name: '商品兑换成功', path: '/pages-sub/home/mall/purchased/success/index' },
  63. { name: '购物车', path: '/pages-sub/home/mall/shopping-cart/index' },
  64. { name: '支付成功', path: '/pages-sub/mine/scan/pay/success/index' },
  65. ],
  66. },
  67. subPackages: [
  68. {
  69. root: 'pages-sub',
  70. pages: [
  71. {
  72. path: 'home/about/index',
  73. type: 'page',
  74. style: {
  75. navigationStyle: 'custom',
  76. navigationBarTitleText: '1分钟快速了解筑巢荟',
  77. },
  78. },
  79. {
  80. path: 'home/classmates/index',
  81. type: 'page',
  82. style: {
  83. navigationBarTitleText: '同学荟',
  84. navigationBarBackgroundColor: '#fff',
  85. },
  86. },
  87. {
  88. path: 'home/classmates-detail/index',
  89. type: 'page',
  90. style: {
  91. navigationBarTitleText: '详情',
  92. navigationBarBackgroundColor: '#fff',
  93. },
  94. },
  95. {
  96. path: 'home/content/index',
  97. type: 'page',
  98. style: {
  99. navigationBarTitleText: '详情',
  100. navigationBarBackgroundColor: '#fff',
  101. },
  102. },
  103. {
  104. path: 'home/mall/index',
  105. type: 'page',
  106. style: {
  107. navigationBarTitleText: '品质商城',
  108. navigationBarBackgroundColor: '#fff',
  109. },
  110. },
  111. {
  112. path: 'home/moment/index',
  113. type: 'page',
  114. style: {
  115. navigationBarTitleText: '详情',
  116. navigationBarBackgroundColor: '#fff',
  117. navigationStyle: 'custom',
  118. },
  119. },
  120. {
  121. path: 'home/offline-activity/index',
  122. type: 'page',
  123. style: {
  124. navigationBarTitleText: '线下活动',
  125. navigationBarBackgroundColor: '#fff',
  126. },
  127. },
  128. {
  129. path: 'home/schedule/index',
  130. type: 'page',
  131. style: {
  132. navigationStyle: 'custom',
  133. navigationBarTitleText: '游学日程',
  134. },
  135. },
  136. {
  137. path: 'home/spread/index',
  138. type: 'page',
  139. style: {
  140. navigationBarTitleText: '设计传播',
  141. navigationBarBackgroundColor: '#fff',
  142. },
  143. },
  144. {
  145. path: 'home/study-tour/detail',
  146. type: 'page',
  147. style: {
  148. navigationBarTitleText: '游学计划',
  149. navigationBarBackgroundColor: '#fff',
  150. navigationStyle: 'custom',
  151. },
  152. },
  153. {
  154. path: 'home/study-tour/index',
  155. type: 'page',
  156. style: {
  157. navigationBarTitleText: '设计游学',
  158. navigationBarBackgroundColor: '#fff',
  159. },
  160. },
  161. {
  162. path: 'home/study-tour/list',
  163. type: 'page',
  164. style: {
  165. navigationBarTitleText: '游学计划',
  166. navigationBarBackgroundColor: '#fff',
  167. },
  168. },
  169. {
  170. path: 'home/activity/detail/index',
  171. type: 'page',
  172. style: {
  173. navigationStyle: 'custom',
  174. },
  175. },
  176. {
  177. path: 'home/activity/images/index',
  178. type: 'page',
  179. style: {
  180. navigationBarTitleText: '活动图片',
  181. navigationBarBackgroundColor: '#ffffff',
  182. },
  183. },
  184. {
  185. path: 'home/mall/confirm-order/index',
  186. type: 'page',
  187. style: {
  188. navigationBarTitleText: '确认订单',
  189. navigationBarBackgroundColor: '#fff',
  190. },
  191. },
  192. {
  193. path: 'home/mall/detail/index',
  194. type: 'page',
  195. style: {
  196. navigationBarTitleText: '品质商城',
  197. navigationBarBackgroundColor: '#fff',
  198. },
  199. },
  200. {
  201. path: 'home/mall/shopping-cart/index',
  202. type: 'page',
  203. style: {
  204. navigationBarTitleText: '购物车',
  205. navigationBarBackgroundColor: '#fff',
  206. },
  207. },
  208. {
  209. path: 'home/offline-activity/cycling-rankings/index',
  210. type: 'page',
  211. style: {
  212. navigationStyle: 'custom',
  213. },
  214. },
  215. {
  216. path: 'home/offline-activity/list/index',
  217. type: 'page',
  218. style: {
  219. navigationBarTitleText: '线下活动',
  220. navigationBarBackgroundColor: '#fff',
  221. },
  222. },
  223. {
  224. path: 'home/spread/case-shooting/index',
  225. type: 'page',
  226. style: {
  227. navigationBarTitleText: '案例拍摄',
  228. navigationBarBackgroundColor: '#ffffff',
  229. },
  230. },
  231. {
  232. path: 'home/spread/design-awards/index',
  233. type: 'page',
  234. style: {
  235. navigationBarTitleText: '设计奖项',
  236. navigationBarBackgroundColor: '#fff',
  237. },
  238. },
  239. {
  240. path: 'home/spread/product-detail/index',
  241. type: 'page',
  242. style: {
  243. navigationBarTitleText: '',
  244. navigationBarBackgroundColor: '#fff',
  245. },
  246. },
  247. {
  248. path: 'home/spread/wx-agent-operation/index',
  249. type: 'page',
  250. style: {
  251. navigationBarTitleText: '微信代运营',
  252. navigationBarBackgroundColor: '#ffffff',
  253. },
  254. },
  255. {
  256. path: 'home/mall/purchased/success/index',
  257. type: 'page',
  258. style: {
  259. navigationBarTitleText: '',
  260. navigationBarBackgroundColor: '#fff',
  261. },
  262. },
  263. {
  264. path: 'home/spread/case-shooting/photographer/index',
  265. type: 'page',
  266. style: {
  267. navigationBarTitleText: '案例拍摄',
  268. navigationBarBackgroundColor: '#ffffff',
  269. },
  270. },
  271. {
  272. path: 'about/about',
  273. type: 'page',
  274. style: {
  275. navigationBarTitleText: '关于',
  276. },
  277. },
  278. {
  279. path: 'login/index',
  280. type: 'page',
  281. style: {
  282. navigationBarTitleText: '登录',
  283. },
  284. },
  285. {
  286. path: 'common/content-html/index',
  287. type: 'page',
  288. style: {
  289. navigationBarTitleText: '',
  290. navigationBarBackgroundColor: '#fff',
  291. },
  292. },
  293. {
  294. path: 'common/webview/index',
  295. type: 'page',
  296. },
  297. {
  298. path: 'publish/moment/index',
  299. type: 'page',
  300. style: {
  301. navigationBarTitleText: '个人动态',
  302. navigationBarBackgroundColor: '#fff',
  303. },
  304. },
  305. {
  306. path: 'publish/tags/index',
  307. type: 'page',
  308. style: {
  309. navigationBarTitleText: '添加标签',
  310. navigationBarBackgroundColor: '#fff',
  311. },
  312. },
  313. {
  314. path: 'common/status/success/index',
  315. type: 'page',
  316. style: {
  317. navigationBarTitleText: '',
  318. navigationBarBackgroundColor: '#fff',
  319. },
  320. },
  321. {
  322. path: 'mine/agents/index',
  323. type: 'page',
  324. style: {
  325. navigationBarTitleText: '客服',
  326. navigationBarBackgroundColor: '#fff',
  327. },
  328. },
  329. {
  330. path: 'mine/authentication/index',
  331. type: 'page',
  332. style: {
  333. navigationBarTitleText: '设计师认证',
  334. navigationStyle: 'custom',
  335. },
  336. },
  337. {
  338. path: 'mine/convention/index',
  339. type: 'page',
  340. style: {
  341. navigationStyle: 'custom',
  342. },
  343. },
  344. {
  345. path: 'mine/coupons/index',
  346. type: 'page',
  347. style: {
  348. navigationBarTitleText: '优惠券包',
  349. navigationBarBackgroundColor: '#fff',
  350. },
  351. },
  352. {
  353. path: 'mine/homepage/index',
  354. type: 'page',
  355. style: {
  356. navigationStyle: 'custom',
  357. },
  358. },
  359. {
  360. path: 'mine/honors/index',
  361. type: 'page',
  362. style: {
  363. navigationBarTitleText: '我的荣誉',
  364. navigationStyle: 'custom',
  365. },
  366. },
  367. {
  368. path: 'mine/invite/index',
  369. type: 'page',
  370. style: {
  371. navigationBarTitleText: '邀请设计师',
  372. navigationBarBackgroundColor: '#fff',
  373. navigationStyle: 'custom',
  374. },
  375. },
  376. {
  377. path: 'mine/levels/index',
  378. type: 'page',
  379. style: {
  380. navigationStyle: 'custom',
  381. },
  382. },
  383. {
  384. path: 'mine/orders/index',
  385. type: 'page',
  386. style: {
  387. navigationBarTitleText: '我的订单',
  388. navigationBarBackgroundColor: '#fff',
  389. },
  390. },
  391. {
  392. path: 'mine/points/index',
  393. type: 'page',
  394. style: {
  395. navigationStyle: 'custom',
  396. },
  397. },
  398. {
  399. path: 'mine/setting/index',
  400. type: 'page',
  401. style: {
  402. navigationBarTitleText: '个人设置',
  403. },
  404. },
  405. {
  406. path: 'mine/homepage/channels/index',
  407. type: 'page',
  408. style: {
  409. navigationBarTitleText: '关联视频号',
  410. navigationBarBackgroundColor: '#fff',
  411. },
  412. },
  413. {
  414. path: 'mine/homepage/consult/index',
  415. type: 'page',
  416. style: {
  417. navigationStyle: 'custom',
  418. },
  419. },
  420. {
  421. path: 'mine/homepage/edit/index',
  422. type: 'page',
  423. style: {
  424. navigationBarTitleText: '编辑',
  425. navigationBarBackgroundColor: '#fff',
  426. },
  427. },
  428. {
  429. path: 'mine/homepage/qr-code/index',
  430. type: 'page',
  431. style: {
  432. navigationBarTitleText: '个人码',
  433. navigationBarBackgroundColor: '#fff',
  434. },
  435. },
  436. {
  437. path: 'mine/homepage/statistics/index',
  438. type: 'page',
  439. style: {
  440. navigationBarTitleText: '主页数据',
  441. navigationBarBackgroundColor: '#fff',
  442. },
  443. },
  444. {
  445. path: 'mine/honors/detail/collection',
  446. type: 'page',
  447. style: {
  448. navigationBarTitleText: '我的典藏',
  449. navigationStyle: 'custom',
  450. },
  451. },
  452. {
  453. path: 'mine/honors/detail/index',
  454. type: 'page',
  455. style: {
  456. navigationBarTitleText: '我的荣誉',
  457. navigationStyle: 'custom',
  458. },
  459. },
  460. {
  461. path: 'mine/honors/leaderboard/index',
  462. type: 'page',
  463. style: {
  464. navigationBarTitleText: '获取榜单',
  465. navigationStyle: 'custom',
  466. },
  467. },
  468. {
  469. path: 'mine/levels/rules/index',
  470. type: 'page',
  471. style: {
  472. navigationBarTitleText: '等级规则',
  473. navigationBarBackgroundColor: '#fff',
  474. },
  475. },
  476. {
  477. path: 'mine/orders/code/index',
  478. type: 'page',
  479. style: {
  480. navigationBarTitleText: '兑换码',
  481. navigationBarBackgroundColor: '#fff',
  482. },
  483. },
  484. {
  485. path: 'mine/orders/detail/index',
  486. type: 'page',
  487. style: {
  488. navigationBarTitleText: '订单详情',
  489. navigationBarBackgroundColor: '#fff',
  490. },
  491. },
  492. {
  493. path: 'mine/scan/result/index',
  494. type: 'page',
  495. style: {
  496. navigationBarTitleText: '扫码结果',
  497. navigationBarBackgroundColor: '#fff',
  498. },
  499. },
  500. {
  501. path: 'mine/setting/mobile/index',
  502. type: 'page',
  503. style: {
  504. navigationBarTitleText: '手机号',
  505. },
  506. },
  507. {
  508. path: 'mine/authentication/submit/success/index',
  509. type: 'page',
  510. style: {
  511. navigationBarTitleText: '提交成功',
  512. },
  513. },
  514. {
  515. path: 'mine/homepage/consult/success/index',
  516. type: 'page',
  517. style: {
  518. navigationBarTitleText: '提交成功',
  519. },
  520. },
  521. {
  522. path: 'mine/scan/pay/success/index',
  523. type: 'page',
  524. style: {
  525. navigationBarTitleText: '',
  526. navigationBarBackgroundColor: '#fff',
  527. },
  528. },
  529. {
  530. path: 'mine/setting/mobile/modify/index',
  531. type: 'page',
  532. style: {
  533. navigationBarTitleText: '修改手机号',
  534. },
  535. },
  536. ],
  537. },
  538. ],
  539. })