修改详情页面的转发按钮显示问题

This commit is contained in:
A1300399510
2023-07-28 17:07:02 +08:00
parent 88caf34863
commit c8109d854b
3 changed files with 26 additions and 8 deletions

View File

@@ -32,7 +32,7 @@
<script setup> <script setup>
import { ref, getCurrentInstance, defineProps } from 'vue' import { ref, getCurrentInstance, defineProps } from 'vue'
import { ElMessage, valueEquals } from 'element-plus' import { ElMessage } from 'element-plus'
let show = ref(false) let show = ref(false)
let text = ref("") let text = ref("")
@@ -63,6 +63,7 @@ const submit = () => {
} else ElMessage.error(res.message) } else ElMessage.error(res.message)
}) })
} }
const toConsumableArray = (arr) => { const toConsumableArray = (arr) => {
if (Array.isArray(arr)) { if (Array.isArray(arr)) {
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {

View File

@@ -1265,6 +1265,23 @@ const publicJump = path => router.push(path)
font-size: 14px; font-size: 14px;
margin-bottom: 20px; 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 { .details-header {
height: 82px; height: 82px;
padding: 0 30px; padding: 0 30px;

View File

@@ -5,7 +5,7 @@
<div class="body-maxWidth mg-t-35"> <div class="body-maxWidth mg-t-35">
<breadcrumb :data="housingInfo['data']" :operation='setOperation'></breadcrumb> <breadcrumb :data="housingInfo['data']" :operation='setOperation'></breadcrumb>
<el-affix :offset="0" @change="changeTitleType" z-index="700"> <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="top-bar dis-f al-item jus-bet">
<div class="dis-f al-item"> <div class="dis-f al-item">
<img src="../assets/img/detail/authenticationHousing.png" class="authentication-housing" <img src="../assets/img/detail/authenticationHousing.png" class="authentication-housing"
@@ -1256,23 +1256,23 @@ let setOperation = () => {
//获取联系方式 //获取联系方式
let concatData = reactive({}) let concatData = reactive({})
let getConcatData = () => { let getConcatData = () => {
if (concatData['data']) return if (concatData['data']) {
showConcat.value = true
return
}
api.contactData({ api.contactData({
token: housingInfo['data'].token token: housingInfo['data'].token
}).then(res => { }).then(res => {
console.log(res)
if (res.code === 200) { if (res.code === 200) {
showConcat.value = true showConcat.value = true
concatData['data'] = res.data concatData['data'] = res.data
let dataCount = 0 let dataCount = 0
Object.keys(concatData['data']).map(res => { 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)) { if ((concatData['data'][res] && res != 'wechatdata') || (res === 'wechatdata' && concatData['data'][res].aid != 0)) {
dataCount++ dataCount++
} }
}) })
concatData['data']['count'] = dataCount concatData['data']['count'] = dataCount
console.log(concatData)
} }
}) })
} }