修改详情页面的转发按钮显示问题
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, getCurrentInstance, defineProps } from 'vue'
|
||||
import { ElMessage, valueEquals } from 'element-plus'
|
||||
import { ElMessage } from 'element-plus'
|
||||
|
||||
let show = ref(false)
|
||||
let text = ref("")
|
||||
@@ -63,6 +63,7 @@ const submit = () => {
|
||||
} else ElMessage.error(res.message)
|
||||
})
|
||||
}
|
||||
|
||||
const toConsumableArray = (arr) => {
|
||||
if (Array.isArray(arr)) {
|
||||
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
|
||||
|
||||
@@ -143,12 +143,12 @@
|
||||
src="@/assets/img/publicImage/gray-arrow.svg" alt="">
|
||||
</div>
|
||||
<div class="media-list flexacenter no-scrollbar" :class="`element${index}`">
|
||||
<div class="media-item flexcenter" v-for="(it,i) in item['videos']"
|
||||
<div class="media-item flexcenter" v-for="(it, i) in item['videos']"
|
||||
@click="cloaseImageShow([...item['videos'], ...item['images']], i)">
|
||||
<img class="media-img" v-lazy="it['thumbnail']">
|
||||
<img class="media-icon" src="@/assets/img/apartmentDetail/media-icon.svg" />
|
||||
</div>
|
||||
<div class="media-item flexcenter" v-for="(it,i) in item['images']"
|
||||
<div class="media-item flexcenter" v-for="(it, i) in item['images']"
|
||||
@click="cloaseImageShow([...item['videos'], ...item['images']], i)">
|
||||
<img class="media-img" v-lazy="it['thumbnail']">
|
||||
</div>
|
||||
@@ -1265,6 +1265,23 @@ const publicJump = path => router.push(path)
|
||||
font-size: 14px;
|
||||
margin-bottom: 20px;
|
||||
|
||||
&.location .details-header .icon {
|
||||
width: 20px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
&.apartment-facilities .details-header .icon,
|
||||
&.special-offer .details-header .icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
&.company .details-header .icon ,
|
||||
&.life .details-header .icon {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
.details-header {
|
||||
height: 82px;
|
||||
padding: 0 30px;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="body-maxWidth mg-t-35">
|
||||
<breadcrumb :data="housingInfo['data']" :operation='setOperation'></breadcrumb>
|
||||
<el-affix :offset="0" @change="changeTitleType" z-index="700">
|
||||
<div class="top-bar-box dis-f jus-x" v-show="titleType">
|
||||
<div class="top-bar-box dis-f jus-x" v-if="titleType">
|
||||
<div class="top-bar dis-f al-item jus-bet">
|
||||
<div class="dis-f al-item">
|
||||
<img src="../assets/img/detail/authenticationHousing.png" class="authentication-housing"
|
||||
@@ -1256,23 +1256,23 @@ let setOperation = () => {
|
||||
//获取联系方式
|
||||
let concatData = reactive({})
|
||||
let getConcatData = () => {
|
||||
if (concatData['data']) return
|
||||
if (concatData['data']) {
|
||||
showConcat.value = true
|
||||
return
|
||||
}
|
||||
api.contactData({
|
||||
token: housingInfo['data'].token
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
if (res.code === 200) {
|
||||
showConcat.value = true
|
||||
concatData['data'] = res.data
|
||||
let dataCount = 0
|
||||
Object.keys(concatData['data']).map(res => {
|
||||
console.log(res === 'wechatdata' && concatData['data'][res].aid != 0)
|
||||
if ((concatData['data'][res] && res != 'wechatdata') || (res === 'wechatdata' && concatData['data'][res].aid != 0)) {
|
||||
dataCount++
|
||||
}
|
||||
})
|
||||
concatData['data']['count'] = dataCount
|
||||
console.log(concatData)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user