公寓详情加收藏和附近学校
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="item flexflex" @click="goapArtmentDetails">
|
||||
<div class="collect-box flexcenter" @click.stop="handleCollect1(item)" v-if="false">
|
||||
<div class="collect-box flexcenter" @click.stop="handleCollect1(item.uniqid)">
|
||||
<img v-if="item.iscollect == 0" class="collect-icon" style="width: 30px; height: 30px;" src="@/assets/img/apartmentDetail/collecting-shadows.svg" />
|
||||
<img v-else class="collect-icon" src="@/assets/img/apartmentDetail/collecting-yellow-shadows.svg" />
|
||||
</div>
|
||||
@@ -48,12 +48,16 @@ const props = defineProps({
|
||||
|
||||
const emit = defineEmits(["handlecollect"])
|
||||
|
||||
const goapArtmentDetails = () => redirectToExternalWebsite(`/apartmentDetail?uniqid=${props["item"].uniqid}`)
|
||||
const goapArtmentDetails = () => {
|
||||
let url = `/apartmentDetail?uniqid=${props["item"].uniqid}`
|
||||
if (props.pitchValue['school']) url += `&school=${props.pitchValue['school']}`
|
||||
|
||||
redirectToExternalWebsite(url)
|
||||
}
|
||||
|
||||
// 点击收藏后传过父组件
|
||||
const handleCollect1 = item => {
|
||||
emit("handlecollect", item)
|
||||
}
|
||||
const handleCollect1 = uniqid => emit("handlecollect", uniqid)
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
||||
@@ -128,7 +128,7 @@ const showPop = () => {
|
||||
width: 816px;
|
||||
height: 180px;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 40px;
|
||||
// margin-bottom: 40px;
|
||||
border-radius: 10px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
Reference in New Issue
Block a user