pages.config.ts 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
  2. export default defineUniPages({
  3. globalStyle: {
  4. 'navigationStyle': 'default',
  5. 'navigationBarTitleText': 'BandhuBuy',
  6. 'navigationBarBackgroundColor': '#f8f8f8',
  7. 'navigationBarTextStyle': 'black',
  8. 'backgroundColor': '#FFFFFF',
  9. 'app-plus': {
  10. scrollIndicator: 'none',
  11. },
  12. },
  13. easycom: {
  14. autoscan: true,
  15. custom: {
  16. '^fg-(.*)': '@/components/fg-$1/fg-$1.vue',
  17. '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
  18. '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)': 'z-paging/components/z-paging$1/z-paging$1.vue',
  19. },
  20. },
  21. /**
  22. * 2025-06-25 v3.3.0版(重新梳理tabbar配置)
  23. *
  24. * 1)原生tabbar,不需要关心 `layouts/fg-tabbar` 文件夹里面的内容。(这是默认配置)
  25. * 2)自定义tabbar(带缓存),保留下面的配置和修改 `/layouts/fg-tabbar/tabbarList.ts` 对应的代码。
  26. * 3)自定义tabbar(不带缓存),删除下面的配置和修改 `/layouts/fg-tabbar/tabbarList.ts` 对应的代码。
  27. * 4)无tabbar,直接删除下面的tabBar配置即可。
  28. *
  29. * 温馨提示:本文件的任何代码更改了之后,都需要重新运行,否则 pages.json 还是旧的,导致不是预期效果。
  30. */
  31. tabBar: {
  32. color: '#999999',
  33. selectedColor: '#e61b28',
  34. backgroundColor: '#ffffff',
  35. borderStyle: '#c1c1c1',
  36. height: '50px',
  37. fontSize: '10px',
  38. iconWidth: '24px',
  39. spacing: '3px',
  40. list: [
  41. {
  42. iconPath: 'static/tabbar/home.png',
  43. selectedIconPath: 'static/tabbar/homeHL.png',
  44. pagePath: 'pages/index/index',
  45. },
  46. {
  47. iconPath: 'static/tabbar/income.png',
  48. selectedIconPath: 'static/tabbar/incomeHL.png',
  49. pagePath: 'pages/income/income',
  50. },
  51. {
  52. iconPath: 'static/tabbar/mine.png',
  53. selectedIconPath: 'static/tabbar/mineHL.png',
  54. pagePath: 'pages/mine/mine',
  55. },
  56. ],
  57. },
  58. pages: [
  59. {
  60. path: 'pages/index/index',
  61. type: 'home',
  62. layout: 'tabbar',
  63. style: {
  64. navigationStyle: 'custom',
  65. },
  66. },
  67. {
  68. path: 'pages/bestSellers/bestSellers',
  69. type: 'page',
  70. layout: 'default',
  71. style: {
  72. navigationStyle: 'custom',
  73. },
  74. },
  75. {
  76. path: 'pages/forgotPassword/forgotPassword',
  77. type: 'page',
  78. layout: 'default',
  79. style: {
  80. navigationStyle: 'custom',
  81. },
  82. },
  83. {
  84. path: 'pages/income/income',
  85. type: 'page',
  86. layout: 'tabbar',
  87. needLogin: true,
  88. style: {
  89. navigationBarTitleText: '%income.title%',
  90. navigationBarBackgroundColor: '#fff',
  91. },
  92. },
  93. {
  94. path: 'pages/login/login',
  95. type: 'page',
  96. layout: 'default',
  97. style: {
  98. navigationStyle: 'custom',
  99. },
  100. },
  101. {
  102. path: 'pages/mine/addressBook',
  103. type: 'page',
  104. layout: 'default',
  105. style: {
  106. navigationBarTitleText: '%addressBook.title%',
  107. navigationBarBackgroundColor: '#fff',
  108. },
  109. },
  110. {
  111. path: 'pages/mine/addressBookOperate',
  112. type: 'page',
  113. layout: 'default',
  114. style: {
  115. navigationBarTitleText: '%addressBook.title%',
  116. navigationBarBackgroundColor: '#fff',
  117. },
  118. },
  119. {
  120. path: 'pages/mine/mine',
  121. type: 'page',
  122. layout: 'tabbar',
  123. needLogin: true,
  124. style: {
  125. navigationStyle: 'custom',
  126. },
  127. },
  128. {
  129. path: 'pages/mine/myFavorite',
  130. type: 'page',
  131. layout: 'default',
  132. style: {
  133. navigationBarTitleText: '%mine.pages.myFavorite.title%',
  134. navigationBarBackgroundColor: '#fff',
  135. },
  136. },
  137. {
  138. path: 'pages/mine/myProfile',
  139. type: 'page',
  140. layout: 'default',
  141. style: {
  142. navigationBarTitleText: '%myProfile.title%',
  143. navigationBarBackgroundColor: '#fff',
  144. },
  145. },
  146. {
  147. path: 'pages/mine/setting',
  148. type: 'page',
  149. layout: 'default',
  150. style: {
  151. navigationBarTitleText: '%setting.title%',
  152. navigationBarBackgroundColor: '#fff',
  153. },
  154. },
  155. {
  156. path: 'pages/mine/share',
  157. type: 'page',
  158. layout: 'default',
  159. style: {
  160. navigationStyle: 'custom',
  161. navigationBarTitleText: '%mine.pages.share.title%',
  162. },
  163. },
  164. {
  165. path: 'pages/missionCenter/missionCenter',
  166. type: 'page',
  167. layout: 'default',
  168. needLogin: true,
  169. style: {
  170. navigationBarTitleText: '%missionCenter.title%',
  171. navigationBarBackgroundColor: '#fff',
  172. },
  173. },
  174. {
  175. path: 'pages/myOrders/myOrders',
  176. type: 'page',
  177. layout: 'default',
  178. style: {
  179. navigationBarTitleText: '%myOrders.title%',
  180. navigationBarBackgroundColor: '#fff',
  181. },
  182. },
  183. {
  184. path: 'pages/myOrders/orderDetail',
  185. type: 'page',
  186. layout: 'default',
  187. style: {
  188. navigationBarTitleText: '%orderDetail.title%',
  189. navigationBarBackgroundColor: '#fff',
  190. },
  191. },
  192. {
  193. path: 'pages/notifications/notifications',
  194. type: 'page',
  195. layout: 'default',
  196. needLogin: true,
  197. style: {
  198. navigationBarTitleText: '%notifications.title%',
  199. navigationBarBackgroundColor: '#fff',
  200. },
  201. },
  202. {
  203. path: 'pages/productDetail/checkOut',
  204. type: 'page',
  205. layout: 'default',
  206. needLogin: true,
  207. style: {
  208. navigationBarTitleText: '%checkout.title%',
  209. navigationBarBackgroundColor: '#fff',
  210. },
  211. },
  212. {
  213. path: 'pages/productDetail/productDetail',
  214. type: 'page',
  215. layout: 'default',
  216. style: {
  217. navigationStyle: 'custom',
  218. },
  219. },
  220. {
  221. path: 'pages/referEarn/referEarn',
  222. type: 'page',
  223. layout: 'default',
  224. style: {
  225. navigationStyle: 'custom',
  226. },
  227. },
  228. {
  229. path: 'pages/register/register',
  230. type: 'page',
  231. layout: 'default',
  232. style: {
  233. navigationStyle: 'custom',
  234. },
  235. },
  236. {
  237. path: 'pages/search/search',
  238. type: 'page',
  239. layout: 'default',
  240. style: {
  241. navigationStyle: 'custom',
  242. },
  243. },
  244. {
  245. path: 'pages/topChampions/topChampions',
  246. type: 'page',
  247. layout: 'default',
  248. style: {
  249. navigationStyle: 'custom',
  250. },
  251. },
  252. {
  253. path: 'pages/vipMembership/vipMembership',
  254. type: 'page',
  255. layout: 'default',
  256. needLogin: true,
  257. style: {
  258. navigationBarTitleText: '%vipMembership.title%',
  259. navigationBarBackgroundColor: '#FFFFFF',
  260. },
  261. },
  262. {
  263. path: 'pages/wallet/myWallet',
  264. type: 'page',
  265. layout: 'default',
  266. needLogin: true,
  267. style: {
  268. navigationBarTitleText: '%wallet.myWallet.title%',
  269. navigationBarBackgroundColor: '#fff',
  270. },
  271. },
  272. {
  273. path: 'pages/wallet/recharge',
  274. type: 'page',
  275. layout: 'default',
  276. style: {
  277. 'navigationBarTitleText': '%wallet.recharge.title%',
  278. 'navigationBarBackgroundColor': '#fff',
  279. 'app-plus': {
  280. titleNView: {
  281. buttons: [
  282. {
  283. text: 'Record',
  284. fontSize: '28rpx',
  285. width: '85px',
  286. },
  287. ],
  288. },
  289. },
  290. },
  291. },
  292. {
  293. path: 'pages/wallet/rechargeRecord',
  294. type: 'page',
  295. layout: 'default',
  296. style: {
  297. navigationBarTitleText: '%wallet.rechargeRecord.title%',
  298. navigationBarBackgroundColor: '#fff',
  299. },
  300. },
  301. {
  302. path: 'pages/wallet/withdraw',
  303. type: 'page',
  304. layout: 'default',
  305. style: {
  306. navigationStyle: 'custom',
  307. navigationBarTitleText: '%wallet.withdraw.title%',
  308. },
  309. },
  310. {
  311. path: 'pages/wallet/withdrawRecord',
  312. type: 'page',
  313. layout: 'default',
  314. style: {
  315. navigationBarTitleText: '%wallet.withdrawRecord.title%',
  316. navigationBarBackgroundColor: '#fff',
  317. },
  318. },
  319. {
  320. path: 'pages/webLink/webLink',
  321. type: 'page',
  322. layout: 'default',
  323. needLogin: true,
  324. style: {
  325. navigationBarTitleText: '',
  326. navigationBarBackgroundColor: '#fff',
  327. },
  328. },
  329. {
  330. path: 'uni_modules/uni-upgrade-center-app/pages/upgrade-popup',
  331. style: {
  332. 'disableScroll': true,
  333. 'app-plus': {
  334. backgroundColorTop: 'transparent',
  335. background: 'transparent',
  336. titleNView: false,
  337. scrollIndicator: false,
  338. popGesture: 'none',
  339. animationType: 'fade-in',
  340. animationDuration: 200,
  341. },
  342. },
  343. },
  344. ],
  345. })