小程序页面传值,点击不同的页面反馈不一样对应页面
<swiper indicator-dots='true' autoplay='true' interval='5000' duration='1000' catchtap='onSwiperTap'>
<swiper-item ><image src='/image/new-pic1.jpg' data-newsid='0' ></image></swiper-item>
<swiper-item><image src='/image/new-pic2.jpg' data-newsid='1' ></image></swiper-item>
<swiper-item><image src='/image/new-pic3.jpg' data-newsid='2' ></image></swiper-item>
<swiper-item><image src='/image/swiper1.jpg' data-newsid='3' ></image></swiper-item>
</swiper>
2.准备接收传值的页面
url: 'news-detail/news-detail?id='+newsId,获取到传值,在url里面进行传入参数实现页面跳转