1.循环数据
2.绑定要传递的值到跳转上
3.通过绑定链接跳转
4.新页面通过onload(option)在页面加载初期获取数据
<view class="grouping" v-for="(item,index) in items">
<!--传递staionid,和图片进入下一个,先绑定到tap上-->
<view class="groupinglink">
<view class="button" @tap="goimage(item.station_id,item.station_image)">照片</view>
</view>
</view>
//跳转页面
goimage(station_id, station_image) {
uni.navigateTo({
url: `../链接?station_id=${station_id}&station_image=${station_image}`
})
}
跳转下一个页面之后,option里面有我们传过去的值,直接调取就可以用了
//新页面
onload(option){
console.log(option)
}