绑定一个点击事件:
点击触发的函数
jumpToReportDetail: function(e) {
if (e.timeStamp-this.data.lastClickTime < 300){
return
}
this.setData({
lastClickTime: e.timeStamp
})
//跳转到报告详情
const tokenInfo = wx.getStorageSync('tokenInfo');
var data = e.currentTarget.dataset;
console.log(data)
var path = " ";
wx.navigateToMiniProgram({
appId: ' ',//要打开的小程序appId
envVersion:' ',//要打开的小程序版本
path: path,// 打开的页面路径
success(res) {
console.log("打开成功");
}
})
},