已经基本开发完成,后续会进行代码优化。也想把其中的一部分抽离出来单独封装。
预览网址:http://www.istuadmission.com/Portfolio/index.html
- 在app.json内增加选项:"navigationStyle": "custom",去掉顶部栏navigationBar
- 利用自定义组件实现顶部栏
- 在需要引用顶部栏组件的页面
1、在页面的 json 文件中进行引用声明2、在wxml文件中引用,传入相关参数{ "usingComponents": { "backbar": "/components/backbar/backbar" }, }
<backbar gohref="../timeselect/timeselect" paddingtop="" margintop="" imgcolor="back-grey"></backbar>