跳转改为打开新页面
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
@@ -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 = () => {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user