1.轮播图
![76c0e67a8e8b2f39506d36d3a42c7f84.png](https://i-blog.csdnimg.cn/blog_migrate/cb9b8d354b1b045680937dbaa4e61bdb.jpeg)
![84307160b2ed090576932e9303876e43.png](https://i-blog.csdnimg.cn/blog_migrate/df4752cb52d3cb499639629abea42b75.jpeg)
2.首页列表页面跳转
页面跳转 <navigator url='xxx/xxx?id=123'></navigator>
页面跳转 小程序api跳转页面 wx.naxxx
给当前的元素添加事件 在事件里面跳转页面
组件data-属性 传递数值 事件的参数传递 把数据传递给事件---事件传url地址
页面之期间的值传递:
1.url地址传递参数 组件navigator
2.在跳转到的页面的js文件里面 onload函数接受参数options
![63429315467a9ba006d86fab4807d41f.png](https://i-blog.csdnimg.cn/blog_migrate/1c5f8fca125653c1f9c5e0bc39219ce4.jpeg)
index.js代码:
页面跳转 <navigator url='xxx/xxx?id=123'></navigator>
页面跳转 小程序api跳转页面 wx.naxxx
给当前的元素添加事件 在事件里面跳转页面
组件data-属性 传递数值 事件的参数传递 把数据传递给事件---事件传url地址
页面之期间的值传递:
1.url地址传递参数 组件navigator
2.在跳转到的页面的js文件里面 onload函数接受参数options
index.js代码: