uni-app 问题回顾
1.scroll-view 无法横向排列
将scroll-view的子元素的class 设置为
display: inline-block;
2.自定义tabbar
uni-app的tabbar最多支持5个页面,即使是自定义的,需要动态改变的tabbar,加起来也不能超过5个,需要在page.json文件进行设置, 如:
"tabBar": {
"list": [{
"pagePath": "pages/actualQuotation/ActualQuotation",
"text": ""
},{
"pagePath": "pages/offer/Offer",
"text": ""
},{
"pagePath": "pages/buy/Buy",
"text": ""
},{
"pagePath": "pages/finance/FinancePage",
"text": ""
},{
"pagePath": "pages/information/Information",
"text": ""
}]
}
自定义tabbar里最好使用 cover-view 和 cover-image 来创建视图