app.config.ts 1.3 KB

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