app.config.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. export default defineAppConfig({
  2. pages: [
  3. 'pages/index/index',
  4. 'pages/explore/index',
  5. 'pages/profile/index',
  6. 'pages/login/index',
  7. 'pages/login/wechat-login',
  8. 'pages/register/index',
  9. // 电商相关页面
  10. 'pages/goods-list/index',
  11. 'pages/goods-detail/index',
  12. 'pages/cart/index',
  13. 'pages/order-list/index',
  14. 'pages/order-detail/index',
  15. 'pages/order-submit/index',
  16. 'pages/address-manage/index',
  17. 'pages/address-edit/index'
  18. ],
  19. window: {
  20. backgroundTextStyle: 'light',
  21. navigationBarBackgroundColor: '#1890ff',
  22. navigationBarTitleText: '小程序Starter',
  23. navigationBarTextStyle: 'white',
  24. navigationStyle: 'custom'
  25. },
  26. tabBar: {
  27. custom: true,
  28. color: "#000000",
  29. selectedColor: "#000000",
  30. backgroundColor: "#000000",
  31. list: [
  32. {
  33. pagePath: 'pages/index/index',
  34. text: '首页'
  35. },
  36. {
  37. pagePath: 'pages/goods-list/index',
  38. text: '商品'
  39. },
  40. {
  41. pagePath: 'pages/cart/index',
  42. text: '购物车'
  43. },
  44. {
  45. pagePath: 'pages/profile/index',
  46. text: '我的'
  47. }
  48. ]
  49. },
  50. usingComponents: {}
  51. })