// pages/portal/annunciateList/index.js Component({ options: { addGlobalClass: true }, /** * 组件的属性列表 */ properties: { list: { type: Array } }, /** * 组件的初始数据 */ data: { }, /** * 组件的方法列表 */ methods: { /* 跳转供需详情 */ toDetails(e) { const { index } = e.currentTarget.dataset; const data = this.data.list[index]; wx.navigateTo({ url: '/pages/portal/details?tagentsid=' + data.tagentsid + '&tsupplyanddemandid=' + data.tsupplyanddemandid, }) }, } })