修改详情顶部title
This commit is contained in:
@@ -431,6 +431,8 @@ const init = () => {
|
||||
qrcode.value = data["qrcode"]
|
||||
|
||||
handleAllCarouselsData()
|
||||
|
||||
document.title = data?.info?.title || '港校租房-品牌公寓详情'
|
||||
|
||||
nextTick(() => handleNavData())
|
||||
|
||||
|
||||
@@ -614,7 +614,7 @@
|
||||
</div>
|
||||
<div class="houseing-info-box dis-f al-item jus-bet">
|
||||
<div class="dis-f al-item">
|
||||
房源ID :  <span class="houseing-id" @click="clone(housingInfo['data'] &&
|
||||
房源ID : <span class="houseing-id" @click="clone(housingInfo['data'] &&
|
||||
housingInfo['data'].info.id)">{{ housingInfo['data'] &&
|
||||
housingInfo['data'].info.id }}</span>
|
||||
<span class="browse-box">
|
||||
@@ -625,7 +625,7 @@
|
||||
<div class="houseing-info-box-s"></div>
|
||||
<div class="dis-f al-item">
|
||||
<span>
|
||||
收藏 :  <span class="text">
|
||||
收藏 : <span class="text">
|
||||
{{ housingInfo['data'] && housingInfo['data'].info.count_fav }}
|
||||
</span>
|
||||
</span>
|
||||
@@ -633,7 +633,7 @@
|
||||
<div class="houseing-info-box-s"></div>
|
||||
<div class="dis-f al-item">
|
||||
<span>
|
||||
发布 :  <span class="text">
|
||||
发布 : <span class="text">
|
||||
{{ housingInfo['data'] && housingInfo['data'].info.timestamp }}
|
||||
</span>
|
||||
</span>
|
||||
@@ -641,7 +641,7 @@
|
||||
<div class="houseing-info-box-s"></div>
|
||||
<div class="dis-f al-item" style="border-right:0px">
|
||||
<span>
|
||||
更新 :  <span class="text">
|
||||
更新 : <span class="text">
|
||||
{{ housingInfo['data'] && housingInfo['data'].info.updatetime }}
|
||||
</span>
|
||||
</span>
|
||||
@@ -1311,6 +1311,7 @@ let getHousingInfo = () => {
|
||||
}).then(res => {
|
||||
// console.log(res)
|
||||
if (res.code === 200) {
|
||||
const data = res.data;
|
||||
housingInfo['data'] = res.data
|
||||
pageType.value = housingInfo['data']['info'].intermediary === 1 ? 2 : housingInfo['data']['info'].intermediary === 6 ? 3 : 1 //1个人 2中介 3求房源
|
||||
setHousingArr()
|
||||
@@ -1331,6 +1332,9 @@ let getHousingInfo = () => {
|
||||
loadMore.value = false
|
||||
}
|
||||
|
||||
document.title = data?.info?.subject || '港校租房-详情'
|
||||
|
||||
|
||||
} else {
|
||||
ElMessage({
|
||||
message: res.message
|
||||
|
||||
Reference in New Issue
Block a user