pages.config.ts 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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. navigationStyle: 'custom',
  199. },
  200. },
  201. {
  202. path: 'pages/productDetail/checkOut',
  203. type: 'page',
  204. layout: 'default',
  205. needLogin: true,
  206. style: {
  207. navigationBarTitleText: '%checkout.title%',
  208. navigationBarBackgroundColor: '#fff',
  209. },
  210. },
  211. {
  212. path: 'pages/productDetail/productDetail',
  213. type: 'page',
  214. layout: 'default',
  215. style: {
  216. navigationStyle: 'custom',
  217. },
  218. },
  219. {
  220. path: 'pages/referEarn/referEarn',
  221. type: 'page',
  222. layout: 'default',
  223. style: {
  224. navigationStyle: 'custom',
  225. },
  226. },
  227. {
  228. path: 'pages/register/register',
  229. type: 'page',
  230. layout: 'default',
  231. style: {
  232. navigationStyle: 'custom',
  233. },
  234. },
  235. {
  236. path: 'pages/search/search',
  237. type: 'page',
  238. layout: 'default',
  239. style: {
  240. navigationStyle: 'custom',
  241. },
  242. },
  243. {
  244. path: 'pages/topChampions/topChampions',
  245. type: 'page',
  246. layout: 'default',
  247. style: {
  248. navigationStyle: 'custom',
  249. },
  250. },
  251. {
  252. path: 'pages/vipMembership/vipMembership',
  253. type: 'page',
  254. layout: 'default',
  255. needLogin: true,
  256. style: {
  257. navigationBarTitleText: '%vipMembership.title%',
  258. navigationBarBackgroundColor: '#FFFFFF',
  259. },
  260. },
  261. {
  262. path: 'pages/wallet/myWallet',
  263. type: 'page',
  264. layout: 'default',
  265. needLogin: true,
  266. style: {
  267. navigationBarTitleText: '%wallet.myWallet.title%',
  268. navigationBarBackgroundColor: '#fff',
  269. },
  270. },
  271. {
  272. path: 'pages/wallet/recharge',
  273. type: 'page',
  274. layout: 'default',
  275. style: {
  276. 'navigationBarTitleText': '%wallet.recharge.title%',
  277. 'navigationBarBackgroundColor': '#fff',
  278. 'app-plus': {
  279. titleNView: {
  280. buttons: [
  281. {
  282. text: 'Record',
  283. fontSize: '28rpx',
  284. width: '85px',
  285. },
  286. ],
  287. },
  288. },
  289. },
  290. },
  291. {
  292. path: 'pages/wallet/rechargeRecord',
  293. type: 'page',
  294. layout: 'default',
  295. style: {
  296. navigationBarTitleText: '%wallet.rechargeRecord.title%',
  297. navigationBarBackgroundColor: '#fff',
  298. },
  299. },
  300. {
  301. path: 'pages/wallet/withdraw',
  302. type: 'page',
  303. layout: 'default',
  304. style: {
  305. navigationStyle: 'custom',
  306. navigationBarTitleText: '%wallet.withdraw.title%',
  307. },
  308. },
  309. {
  310. path: 'pages/wallet/withdrawRecord',
  311. type: 'page',
  312. layout: 'default',
  313. style: {
  314. navigationBarTitleText: '%wallet.withdrawRecord.title%',
  315. navigationBarBackgroundColor: '#fff',
  316. },
  317. },
  318. {
  319. path: 'pages/webLink/webLink',
  320. type: 'page',
  321. layout: 'default',
  322. style: {
  323. navigationBarTitleText: '',
  324. navigationBarBackgroundColor: '#fff',
  325. },
  326. },
  327. {
  328. path: 'uni_modules/uni-upgrade-center-app/pages/upgrade-popup',
  329. style: {
  330. 'disableScroll': true,
  331. 'app-plus': {
  332. backgroundColorTop: 'transparent',
  333. background: 'transparent',
  334. titleNView: false,
  335. scrollIndicator: false,
  336. popGesture: 'none',
  337. animationType: 'fade-in',
  338. animationDuration: 200,
  339. },
  340. },
  341. },
  342. ],
  343. })