跳转改为打开新页面

This commit is contained in:
2023-08-03 16:08:58 +08:00
parent 3900d5cc49
commit 56fa9e96d1
6 changed files with 47 additions and 26 deletions

View File

@@ -184,12 +184,15 @@ let watchInfo = () => {
store.state.seachSelect['seachPage'][key] = seachData[key]
}
}
router.push({
path: '/detail',
query: {
id: data.data.uniqid,
}
})
// console.log(document.location.origin)
// return
window.open(`${document.location.origin}/detail?id=${data.data.uniqid}`)
// router.push({
// path: '/detail',
// query: {
// id: data.data.uniqid,
// }
// })
}
onMounted(() => {

View File

@@ -116,13 +116,15 @@ location.data = store.state.indexData.config.location
let router = useRouter()
let watchInfo = () => {
router.push({
path: itemData.type === 'apartment' ? '/apartmentDetail' : '/detail',
query: {
// id: itemData.type=='apartment'?itemData.id:itemData.uniqid,
[itemData.type == 'apartment' ? "uniqid" : "id"]: itemData.type == 'apartment' ? itemData.id : itemData.uniqid
}
})
// console.log(router,window.location.href)
window.open(`${router,window.location.href}${itemData.type === 'apartment' ? 'apartmentDetail' : 'detail'}?${itemData.type == 'apartment' ? "uniqid" : "id"}=${itemData.type == 'apartment' ? itemData.id : itemData.uniqid}`)
// router.push({
// path: itemData.type === 'apartment' ? '/apartmentDetail' : '/detail',
// query: {
// // id: itemData.type=='apartment'?itemData.id:itemData.uniqid,
// [itemData.type == 'apartment' ? "uniqid" : "id"]: itemData.type == 'apartment' ? itemData.id : itemData.uniqid
// }
// })
}
let watchAdv = () => {

View File

@@ -450,7 +450,7 @@ let getLocationData = (data) => {
//更新当前数据数量
let setListCount = (item, num) => {
console.log(item, num)
// console.log(item, num)
// console.log(seachKey.key)
if (item.tabType === "intermediary") {
seachKey.key['intermediary']['count'] = num