第一步
<view v-for="(item,index) in tableData" @click="getDetail(item.id)" class=" box">
<view class="u-line-1 u-m-b-24 u-font-30 color-3">{{item.title}}!</view>
<view class="u-flex u-row-left u-m-b-12">
第二步
methods: {
getDetail(record) {
uni.navigateTo({
url:'../notice_notice_detail/notice_notice_detail?id='+record,
})
}
}
第三步
onLoad(record){
console.log(record)
this.$u.api.getPartyDetail(record).then(res => {
if(res.data.code=200){
this.TableData=res.data.data
console.log(this.TableData)
}
})
},