修改title和ico
This commit is contained in:
@@ -653,7 +653,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- 提交失败 -->
|
||||
<fail-pop :close="failPopState = false"></fail-pop>
|
||||
<fail-pop @close="failPopState = false" :failPopState="failPopState"></fail-pop>
|
||||
<!-- 了解更多弹窗 -->
|
||||
<about-pop :popState="aboutPopState" :intermediary="intermediary" @close="handleAboutPopState"></about-pop>
|
||||
<!-- 页面底部 -->
|
||||
@@ -669,9 +669,27 @@ import how from '@/components/edit/how-pop.vue'
|
||||
import failPop from '@/components/edit/fail-pop.vue'
|
||||
import headerNav from '@/components/public/head.vue'
|
||||
import userBox from '@/components/edit/user-box.vue'
|
||||
import { setSeoTitle } from '@/utils/util.js'
|
||||
|
||||
export default {
|
||||
name: 'ZufangEdit',
|
||||
metaInfo() {
|
||||
return {
|
||||
title: 'My Page Title',
|
||||
meta: [
|
||||
{
|
||||
name: 'description',
|
||||
content: 'This is a description of my page'
|
||||
}
|
||||
],
|
||||
link: [
|
||||
{
|
||||
rel: 'canonical',
|
||||
href: 'https://example.com/my-page'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
value: '',
|
||||
@@ -771,17 +789,19 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
// 判断 求房源的 同住人性别要求应不应该显示
|
||||
judgeGenderCohabitantsShow() {
|
||||
return function (field) {
|
||||
let type = this.info['type']
|
||||
let intermediary = this.intermediary
|
||||
if (intermediary != 6 || field != 'gender') return true
|
||||
if (type >>> 0 == 1 && field == 'gender') return true
|
||||
return false
|
||||
}
|
||||
// // 判断 求房源的 同住人性别要求应不应该显示
|
||||
// judgeGenderCohabitantsShow() {
|
||||
// /
|
||||
// / return function (field) {
|
||||
// console.log("info", this, this.info);
|
||||
// // let type = this.info['type']
|
||||
// // let intermediary = this.intermediary
|
||||
// // if (intermediary != 6 || field != 'gender') return true
|
||||
// // if (type >>> 0 == 1 && field == 'gender') return true
|
||||
// return false
|
||||
// }
|
||||
// },
|
||||
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
// 访问URL中的查询参数
|
||||
@@ -790,7 +810,7 @@ export default {
|
||||
this.uniqid = urlParams.get('uniqid');
|
||||
this.token = urlParams.get('token');
|
||||
this.intermediary = urlParams.get('intermediary') || 3; // 默认写房东吧
|
||||
this.verified = urlParams.get('verified') || 0;
|
||||
// this.verified = urlParams.get('verified') || 0;
|
||||
|
||||
this.init();
|
||||
},
|
||||
@@ -804,7 +824,6 @@ export default {
|
||||
userBox,
|
||||
},
|
||||
methods: {
|
||||
|
||||
updateMap(evtModel) {
|
||||
console.log("evtModel", evtModel);
|
||||
},
|
||||
@@ -912,7 +931,6 @@ export default {
|
||||
this.locationData = locationData
|
||||
this.fieldinfoBasic = fieldinfo.basic
|
||||
this.fieldinfoAddress = fieldinfo.address
|
||||
this.fieldinfoIdentity = fieldinfo.identity
|
||||
this.fieldinfoIntroduce = fieldinfo.introduce
|
||||
this.fieldinfoUpload = fieldinfo.upload
|
||||
this.fieldinfoContact = fieldinfo.contact
|
||||
@@ -928,6 +946,8 @@ export default {
|
||||
})
|
||||
|
||||
this.info = info
|
||||
this.verified = data.verified
|
||||
this.fieldinfoIdentity = fieldinfo.identity
|
||||
this.intermediary = intermediary
|
||||
this.status = data.status
|
||||
this.token = data.token
|
||||
@@ -940,6 +960,16 @@ export default {
|
||||
this.offshelftime = data.offshelftime
|
||||
this.updatetime = data.updatetime
|
||||
|
||||
|
||||
let title = ""
|
||||
if (data['type'] == 'edit') title += '编辑'
|
||||
else title += '发布'
|
||||
if (intermediary == 6) title += '求房源'
|
||||
else if (intermediary == 1) title += '中介房源'
|
||||
else title += '个人房源'
|
||||
setSeoTitle(title)
|
||||
|
||||
console.log();
|
||||
}).finally(() => {
|
||||
this.loading.close()
|
||||
})
|
||||
@@ -1183,21 +1213,20 @@ export default {
|
||||
info,
|
||||
status,
|
||||
}).then(res => {
|
||||
let data = res.data || []
|
||||
if (res.code != 200) {
|
||||
let data = res.data || []
|
||||
let rule = data['rule'] || 0
|
||||
this.$message.error(res.message);
|
||||
if (rule == 3) {
|
||||
this.failPopState = true
|
||||
return
|
||||
}
|
||||
this.$message.error(res.message);
|
||||
|
||||
this.handleSubmitFailure(data)
|
||||
|
||||
return
|
||||
} else {
|
||||
if (status == 0) return
|
||||
let data = res.data
|
||||
this.qrcodeBase64 = data['qrcode']
|
||||
this.skipUrl = data['url']
|
||||
|
||||
@@ -1365,6 +1394,16 @@ export default {
|
||||
|
||||
},
|
||||
|
||||
// 判断 求房源的 同住人性别要求应不应该显示
|
||||
judgeGenderCohabitantsShow(field) {
|
||||
let type = this.info['type']
|
||||
let intermediary = this.intermediary
|
||||
if (intermediary != 6 || field != 'gender') return true
|
||||
if (type >>> 0 == 1 && field == 'gender') return true
|
||||
return false
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user