app.config.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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/category/index',
  11. 'pages/goods-list/index',
  12. 'pages/goods-detail/index',
  13. 'pages/cart/index',
  14. 'pages/order-list/index',
  15. 'pages/order-detail/index',
  16. 'pages/order-submit/index',
  17. 'pages/payment/index',
  18. 'pages/payment-success/index',
  19. 'pages/address-manage/index',
  20. 'pages/address-edit/index',
  21. 'pages/search/index',
  22. 'pages/search-result/index'
  23. ],
  24. window: {
  25. backgroundTextStyle: 'light',
  26. navigationBarBackgroundColor: '#1890ff',
  27. navigationBarTitleText: '小程序Starter',
  28. navigationBarTextStyle: 'white',
  29. navigationStyle: 'custom'
  30. },
  31. tabBar: {
  32. custom: true,
  33. color: "#000000",
  34. selectedColor: "#000000",
  35. backgroundColor: "#000000",
  36. list: [
  37. {
  38. pagePath: 'pages/index/index',
  39. text: '首页'
  40. },
  41. {
  42. pagePath: 'pages/category/index',
  43. text: '分类'
  44. },
  45. {
  46. pagePath: 'pages/cart/index',
  47. text: '购物车'
  48. },
  49. {
  50. pagePath: 'pages/profile/index',
  51. text: '我的'
  52. }
  53. ]
  54. },
  55. usingComponents: {
  56. 'mp-html': './components/mp-html'
  57. }
  58. })