中介详情显示房源
This commit is contained in:
@@ -173,19 +173,13 @@ let watchInfo = () => {
|
||||
path: '/detail',
|
||||
query: {
|
||||
id: data.data.uniqid,
|
||||
type:pageType.value
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
imgRef = getCurrentInstance()
|
||||
let {type}=router.currentRoute.value.query
|
||||
if(type){
|
||||
pageType.value=type
|
||||
}else{
|
||||
pageType.value=data.data.intermediary===1?2:data.data.intermediary===6?3:1
|
||||
}
|
||||
pageType.value=data.data.intermediary===1?2:data.data.intermediary===6?3:1
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
@@ -103,7 +103,7 @@ let storeData = store.state.routeList
|
||||
|
||||
watchEffect(() => {
|
||||
data['data'] = props.data
|
||||
console.log(pageType.value)
|
||||
if(data['data']&&data['data']['info'])pageType.value=data['data']['info'].intermediary===1?2:data['data']['info'].intermediary===6?3:1
|
||||
})
|
||||
|
||||
</script>
|
||||
@@ -221,12 +221,12 @@ img {
|
||||
|
||||
.top-round-s {
|
||||
position: absolute;
|
||||
top: -13px;
|
||||
left: -1px;
|
||||
top: -17px;
|
||||
left: 0px;
|
||||
border-radius: 0 0 16px 0;
|
||||
background: rgba(174, 159, 251, 1);
|
||||
width: 23px;
|
||||
height: 20px;
|
||||
width: 22px;
|
||||
height: 24px;
|
||||
}
|
||||
.intermediary-bg{
|
||||
background: rgba(173,214,247,1) !important;
|
||||
|
||||
@@ -116,13 +116,11 @@ location.data = store.state.indexData.config.location
|
||||
|
||||
let router = useRouter()
|
||||
let watchInfo = () => {
|
||||
console.log(itemData.type)
|
||||
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,
|
||||
type: itemData.intermediary == '1' ? 2 : itemData.intermediary == '6' ? 3 : !itemData.intermediary ? '' : 1
|
||||
[itemData.type == 'apartment' ? "uniqid" : "id"]: itemData.type == 'apartment' ? itemData.id : itemData.uniqid
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -131,6 +129,7 @@ let watchAdv = () => {
|
||||
if (itemData.url) {
|
||||
window.open(itemData.url)
|
||||
} else {
|
||||
if(!itemData.path)return
|
||||
watchInfo()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user