微信小程序自定义导航栏
效果:
(1)在app.json中将 navigationStyle 设置为 custom
(2)公共导航组件目录
①index.wxml:
②index.wxss:
③index.json
④index.js
⑤app.js
⑥app.wxss
(3)需要引入导航的页面:
①test.wxml
②test.json
③test.js
效果:
(1)在app.json中将 navigationStyle 设置为 custom
(2)公共导航组件目录
①index.wxml:
②index.wxss:
③index.json
④index.js
⑤app.js
⑥app.wxss
(3)需要引入导航的页面:
①test.wxml
②test.json
③test.js