Commit 578f5b37 by 高淑倩

add: 跳转type=7

parent 08f208c6
......@@ -89,6 +89,12 @@ Component({
}
} else if(link.type == 6){
wxService.router(`${currentClickType}`)
} else if(link.type == 7){
// 集点详情
let pointPath = currentClickType && currentClickType.split('?')[0]
let pointIdParams = currentClickType && currentClickType.split('?')[1]
let pointId = pointIdParams.split('=')[1]
wxService.router(`${pointPath}`).search({ id: pointId })
}
}
}
......
......@@ -80,6 +80,12 @@ Component({
}
} else if(link.type == 6){
wxService.router(`${currentClickType}`)
} else if(link.type == 7){
// 集点详情
let pointPath = currentClickType && currentClickType.split('?')[0]
let pointIdParams = currentClickType && currentClickType.split('?')[1]
let pointId = pointIdParams.split('=')[1]
wxService.router(`${pointPath}`).search({ id: pointId })
}
}
}
......
......@@ -79,8 +79,6 @@ Component({
} else if (link.type == 4) {
wxService.router(`${currentClickType}`)
} else if (link.type == 5) {
console.log('currentClickType', currentClickType)
if (currentClickType == 1) {
wxService.openCard()
} else if (currentClickType == 2) {
......@@ -100,6 +98,12 @@ Component({
}
} else if(link.type == 6){
wxService.router(`${currentClickType}`)
} else if(link.type == 7){
// 集点详情
let pointPath = currentClickType && currentClickType.split('?')[0]
let pointIdParams = currentClickType && currentClickType.split('?')[1]
let pointId = pointIdParams.split('=')[1]
wxService.router(`${pointPath}`).search({ id: pointId })
}
},
activeTocard(e) {
......
......@@ -72,6 +72,9 @@ HandlerLink.prototype = {
return `/subPackage/page/pages/h5/h5page?url=${enCodeUrl}`
}
return `/${item.link.url}`
} else if(type == 7){
// 集点详情 /pages/pointDetail/pointDetail?id=610415394393559040
return item.link.url
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment