从vue转战react了,今天介绍下第一次用到taro的一个介绍,

  

  1、首页要利用小程序的分包subPackages进行设置,首次加载不要太多

 1 config: Config = {
 2     pages: [
 3       'pages/home/index',//首页
 4       'pages/mine/index', // 我的页面
 5       'pages/aboutUs/index', // 关于我们
 6       'pages/feedback/index', // 意见反馈
 7     ],
 8     "subPackages": [
 9       {
10         "root": "subPages/",
11         "pages": [
12           "subjectBalance/index", //科目余额表页面
13           "subjectBalance/subjectBaDetail/index", //科目余额表详情页面
14           "assetsLiabilit/index", //资产负债表页面
15           "profitLossRF/index", //损益表
16           "finalTransaction/index", //期末结账页面 
17           "finalTransaction/confirmCheck/index", //期末结账结账、审核、反结账页面 
18         ],
19       },
20       {
21         "root": "childPages/",
22         "pages": [
23           'createAccount/index',//创建帐套
24           'voucherEntry/index',//凭证录入
25           'voucherDetails/index',//凭证详情
26           'selectSubject/index',//tap科目页
27           'voucherLook/index',//凭证列表页
28           'selectSubjectCur/index'//科目搜索页
29         ],
30       }
31     ],
32     window: {
33       backgroundTextStyle: 'light',
34       navigationBarBackgroundColor: '#fff',
35       navigationBarTitleText: '',
36       navigationBarTextStyle: 'black',
37       navigationStyle: 'custom'
38     }
39   }

相关文章:

  • 2021-04-21
  • 2021-12-21
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-23
  • 2021-06-13
猜你喜欢
  • 2021-07-10
  • 2021-07-05
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案