pages.config.js 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
  2. import { appName, primaryColor } from './src/settings/index.mjs'
  3. export default defineUniPages({
  4. easycom: {
  5. autoscan: true,
  6. custom: {
  7. "^wd-(.*)": "wot-design-uni/components/wd-$1/wd-$1.vue",
  8. "^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)": "z-paging/components/z-paging$1/z-paging$1.vue"
  9. }
  10. },
  11. pages: [
  12. {
  13. path: "pages/Tabbar/Home/index",
  14. aliasPath: "/index",
  15. name: "index",
  16. style: {
  17. navigationStyle: "custom",
  18. navigationBarTitleText: "主页"
  19. },
  20. type: "home"
  21. },
  22. {
  23. path: "pages/Tabbar/My/index",
  24. aliasPath: "/My",
  25. name: "My",
  26. style: {
  27. navigationStyle: "custom",
  28. navigationBarTitleText: "我的"
  29. },
  30. type: "My"
  31. },
  32. {
  33. path: "pages/login/index",
  34. aliasPath: "/login",
  35. name: "login",
  36. style: {
  37. navigationStyle: "custom",
  38. navigationBarTitleText: "登录"
  39. }
  40. },
  41. {
  42. path: "pages/register/index",
  43. aliasPath: "/register",
  44. name: "register",
  45. style: {
  46. navigationStyle: "custom",
  47. navigationBarTitleText: "注册"
  48. }
  49. },
  50. {
  51. path: "pages/index/example/index",
  52. aliasPath: "/example",
  53. name: "example",
  54. style: {
  55. navigationStyle: "custom",
  56. navigationBarTitleText: "-----------示例-----------"
  57. }
  58. },
  59. {
  60. path: "pages/index/user/index",
  61. aliasPath: "/user",
  62. name: "user",
  63. style: {
  64. navigationStyle: "custom",
  65. navigationBarTitleText: "-----------我的-----------"
  66. }
  67. }
  68. ],
  69. subPackages: [
  70. {
  71. root: "pages/common",
  72. pages: [
  73. {
  74. path: "web-view/index",
  75. aliasPath: "/web-view",
  76. name: "web-view",
  77. style: {
  78. navigationBarTitleText: "web-view",
  79. transparentTitle: "-----------auto-----------"
  80. }
  81. },
  82. {
  83. path: "rich-view/index",
  84. aliasPath: "/rich-view",
  85. name: "rich-view",
  86. style: {
  87. navigationBarTitleText: "-----------rich-view-----------"
  88. }
  89. }
  90. ]
  91. },
  92. {
  93. root: "pages/tips",
  94. pages: [
  95. {
  96. path: "middleware/index",
  97. aliasPath: "/tips-middleware",
  98. name: "tips-middleware",
  99. meta: {
  100. middleware: [
  101. "test"
  102. ]
  103. },
  104. style: {
  105. navigationBarTitleText: "-----------中间件-----------"
  106. }
  107. }
  108. ]
  109. },
  110. {
  111. root: "pages/template",
  112. pages: [
  113. {
  114. path: "paging/index",
  115. aliasPath: "/template-paging",
  116. name: "template-paging",
  117. style: {
  118. navigationBarTitleText: "-----------通用列表-----------"
  119. }
  120. }
  121. ]
  122. },
  123. {
  124. root: "pages/personal",
  125. pages: [
  126. {
  127. path: "index",
  128. aliasPath: "/personal",
  129. name: "personal",
  130. style: {
  131. navigationBarTitleText: "-----------个人资料-----------",
  132. transparentTitle: "auto"
  133. }
  134. }
  135. ]
  136. },
  137. {
  138. root: "pages/contact",
  139. pages: [
  140. {
  141. path: "index",
  142. aliasPath: "/contact",
  143. name: "contact",
  144. style: {
  145. navigationBarTitleText: "-----------联系我们-----------",
  146. transparentTitle: "auto"
  147. }
  148. }
  149. ]
  150. },
  151. {
  152. root: "pages/preference",
  153. pages: [
  154. {
  155. path: "index",
  156. aliasPath: "/preference",
  157. name: "preference",
  158. style: {
  159. navigationBarTitleText: "-----------偏好设置-----------"
  160. }
  161. }
  162. ]
  163. },
  164. {
  165. root: "pages/feedback",
  166. pages: [
  167. {
  168. path: "index",
  169. aliasPath: "/feedback",
  170. name: "feedback",
  171. style: {
  172. navigationBarTitleText: "-----------意见反馈-----------",
  173. transparentTitle: "auto"
  174. }
  175. }
  176. ]
  177. },
  178. {
  179. root: "pages/WorkModule/my",
  180. pages: [
  181. {
  182. path: "safety/index",
  183. aliasPath: "/safety",
  184. name: "safety",
  185. style: {
  186. navigationBarTitleText: "安全",
  187. transparentTitle: "auto",
  188. "app-plus": {
  189. "titleNView": false
  190. }
  191. }
  192. }
  193. ]
  194. },
  195. {
  196. root: "pages/WorkModule/my",
  197. pages: [
  198. {
  199. path: "userInfo/index",
  200. aliasPath: "/userInfo",
  201. name: "userInfo",
  202. style: {
  203. navigationBarTitleText: "用户信息",
  204. transparentTitle: "auto",
  205. "app-plus": {
  206. "titleNView": false
  207. }
  208. }
  209. }
  210. ]
  211. },
  212. {
  213. root: "pages/WorkModule/my",
  214. pages: [
  215. {
  216. path: "topUp/index",
  217. aliasPath: "/topUp",
  218. name: "topUp",
  219. style: {
  220. navigationBarTitleText: "充值",
  221. transparentTitle: "auto",
  222. "app-plus": {
  223. "titleNView": false
  224. }
  225. }
  226. }
  227. ]
  228. },
  229. {
  230. root: "pages/WorkModule/my",
  231. pages: [
  232. {
  233. path: "rechargeRecord/index",
  234. aliasPath: "/rechargeRecord",
  235. name: "rechargeRecord",
  236. style: {
  237. navigationBarTitleText: "充值记录",
  238. transparentTitle: "auto",
  239. "app-plus": {
  240. "titleNView": false
  241. }
  242. }
  243. }
  244. ]
  245. },
  246. {
  247. root: "pages/WorkModule/my",
  248. pages: [
  249. {
  250. path: "withdraw/index",
  251. aliasPath: "/withdraw",
  252. name: "withdraw",
  253. style: {
  254. navigationBarTitleText: "提现",
  255. transparentTitle: "auto",
  256. "app-plus": {
  257. "titleNView": false
  258. }
  259. }
  260. }
  261. ]
  262. },
  263. {
  264. root: "pages/WorkModule/my",
  265. pages: [
  266. {
  267. path: "withdrawalHistory/index",
  268. aliasPath: "/withdrawalHistory",
  269. name: "withdrawalHistory",
  270. style: {
  271. navigationBarTitleText: "提现记录",
  272. transparentTitle: "auto",
  273. "app-plus": {
  274. "titleNView": false
  275. }
  276. }
  277. }
  278. ]
  279. },
  280. {
  281. root: "pages/WorkModule/my",
  282. pages: [
  283. {
  284. path: "changePassword/index",
  285. aliasPath: "/changePassword",
  286. name: "changePassword",
  287. style: {
  288. navigationBarTitleText: "修改密码",
  289. transparentTitle: "auto",
  290. "app-plus": {
  291. "titleNView": false
  292. }
  293. }
  294. }
  295. ]
  296. },
  297. {
  298. root: "pages/Tabbar/Entertainment",
  299. pages: [
  300. {
  301. path: "view/history/index",
  302. aliasPath: "/history",
  303. name: "history",
  304. style: {
  305. navigationBarTitleText: "往期历史",
  306. transparentTitle: "auto",
  307. "app-plus": {
  308. "titleNView": false
  309. }
  310. }
  311. }
  312. ]
  313. }
  314. ],
  315. tabBar: {
  316. color: "#999999",
  317. selectedColor: "#f8b932",
  318. backgroundColor: "#FFFFFF",
  319. iconWidth: "20px",
  320. list: [
  321. {
  322. iconPath: "static/images/tabbar/g1.png",
  323. selectedIconPath: "static/images/tabbar/g.png",
  324. pagePath: "pages/Tabbar/Home/index",
  325. text: "首页"
  326. },
  327. {
  328. iconPath: "static/images/tabbar/a.png",
  329. selectedIconPath: "static/images/tabbar/a1.png",
  330. pagePath: "pages/index/example/index",
  331. text: "滚球"
  332. },
  333. {
  334. iconPath: "static/images/tabbar/b.png",
  335. selectedIconPath: "static/images/tabbar/b1.png",
  336. pagePath: "pages/index/user/index",
  337. text: "体育博彩"
  338. },
  339. {
  340. iconPath: "static/images/tabbar/d.png",
  341. selectedIconPath: "static/images/tabbar/d1.png",
  342. pagePath: "pages/Tabbar/BettingHistory/index",
  343. text: "投注历史"
  344. },
  345. {
  346. iconPath: "static/images/tabbar/h1.png",
  347. selectedIconPath: "static/images/tabbar/h.png",
  348. pagePath: "pages/Tabbar/My/index",
  349. text: "我的"
  350. }
  351. ]
  352. },
  353. globalStyle: {
  354. navigationBarTitleText: "MelBet",
  355. navigationBarBackgroundColor: "#FFFFFF",
  356. navigationBarTextStyle: "black",
  357. backgroundColor: "#F8F8F8"
  358. }
  359. })