修改小bug
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
<div class="housing-info-trail">{{ time['offshelftime'] }}</div>
|
<div class="housing-info-trail">{{ time['offshelftime'] }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="listing-verified flexacenter" v-if="verified == 1">
|
<div class="listing-verified flexacenter" v-if="props['verified'] == 1">
|
||||||
<img class="listing-verified-tick" src="@/assets/img/edit/tick.svg" />
|
<img class="listing-verified-tick" src="@/assets/img/edit/tick.svg" />
|
||||||
房源已认证
|
房源已认证
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dis-f jus-x al-item body-maxWidth" style="margin: auto;">
|
<div class="dis-f jus-x al-item body-maxWidth" style="margin: auto;">
|
||||||
<div class="logo-box dis-f al-item body-maxWidth">
|
<div class="logo-box dis-f al-item body-maxWidth" @click="goIndex()">
|
||||||
<img src="../../assets/homeImage/logo.png" class="logo-img" alt="">
|
<img src="../../assets/homeImage/logo.png" class="logo-img" alt="">
|
||||||
<img src="../../assets/homeImage/logoText.png" class="logo-text-img" alt="">
|
<img src="../../assets/homeImage/logoText.png" class="logo-text-img" alt="">
|
||||||
</div>
|
</div>
|
||||||
@@ -158,6 +158,10 @@ const loginBtn = type => {
|
|||||||
goTologin()
|
goTologin()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 跳转首页
|
||||||
|
const goIndex = () => router.push("/")
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.pos-r {
|
.pos-r {
|
||||||
@@ -246,6 +250,7 @@ const loginBtn = type => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.top-bg-img-box .info-box .logo-box {
|
.top-bg-img-box .info-box .logo-box {
|
||||||
|
cursor: pointer;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -116,10 +116,6 @@ const toConsumableArray = (arr) => {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert-form .reports {
|
|
||||||
height: 440px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.alert-form .reports .radio-area {
|
.alert-form .reports .radio-area {
|
||||||
margin-bottom: 40px;
|
margin-bottom: 40px;
|
||||||
}
|
}
|
||||||
@@ -135,7 +131,7 @@ const toConsumableArray = (arr) => {
|
|||||||
left: 50%;
|
left: 50%;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
width: 740px;
|
width: 740px;
|
||||||
height: 440px;
|
// height: 440px;
|
||||||
max-width: 90vw;
|
max-width: 90vw;
|
||||||
max-height: 90vh;
|
max-height: 90vh;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ axios.interceptors.request.use( //响应拦截
|
|||||||
showFullScreenLoading()
|
showFullScreenLoading()
|
||||||
// 开发时登录用的,可以直接替换小程序的 authorization
|
// 开发时登录用的,可以直接替换小程序的 authorization
|
||||||
// if (process.env.NODE_ENV == "development") config['headers']['authorization'] = "x2mmnl9grt51bpplj2k6ioiuummzhnw3"
|
// if (process.env.NODE_ENV == "development") config['headers']['authorization'] = "x2mmnl9grt51bpplj2k6ioiuummzhnw3"
|
||||||
if (process.env.NODE_ENV == "development") config['headers']['authorization'] = "0h870ovk2xckoqfsh8a3t3sg4sg5z7eg"
|
// if (process.env.NODE_ENV == "development") config['headers']['authorization'] = "0h870ovk2xckoqfsh8a3t3sg4sg5z7eg"
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- <header-nav :isNoTabList="true" :user="user"></header-nav> -->
|
|
||||||
<page-top-bar></page-top-bar>
|
<page-top-bar></page-top-bar>
|
||||||
<map-component v-if="mapComponentState" :info="info" @choosingLocation="choosingLocation" />
|
<map-component v-if="mapComponentState" :info="info" @choosingLocation="choosingLocation" />
|
||||||
<div class="content-box flexflex">
|
<div class="content-box flexflex">
|
||||||
<!-- 左边的信息盒子 -->
|
<!-- 左边的信息盒子 -->
|
||||||
<user-box :user="user" :type="type" :time="{ timestamp, updatetime, offshelftime }" :status="status"
|
<user-box :user="user" :type="type" :time="{ timestamp, updatetime, offshelftime }" :status="status"
|
||||||
:allowpublishednum="allowpublishednum" :id="id" :intermediary="intermediary"
|
:allowpublishednum="allowpublishednum" :id="id" :intermediary="intermediary"
|
||||||
:userIntermediary="userIntermediary" @handleAboutPopState="handleAboutPopState"></user-box>
|
:userIntermediary="userIntermediary" @handleAboutPopState="handleAboutPopState" :verified="verified"></user-box>
|
||||||
<div class="form-box shadow radius16 flex1">
|
<div class="form-box shadow radius16 flex1">
|
||||||
<div class="form-header">发布{{ intermediary == 6 ? '求' : '出租' }}房源</div>
|
<div class="form-header">发布{{ intermediary == 6 ? '求' : '出租' }}房源</div>
|
||||||
<div class="form-boxes">
|
<div class="form-boxes">
|
||||||
@@ -78,9 +77,9 @@
|
|||||||
<!-- 月租 -->
|
<!-- 月租 -->
|
||||||
<div v-if="item.field == 'rent' && intermediary != 6" ref="rent"
|
<div v-if="item.field == 'rent' && intermediary != 6" ref="rent"
|
||||||
class="form-option modeFive flexacenter" :class="{ 'pitch': info.rent }">
|
class="form-option modeFive flexacenter" :class="{ 'pitch': info.rent }">
|
||||||
<input class="modeFive-input flex1" v-model="info.rent" type="number" step="1" min="0"
|
<input class="modeFive-input flex1" v-model="info.rent" type="number" step="1" maxlength="9" min="0"
|
||||||
placeholder="请输入数字"
|
placeholder="请输入数字"
|
||||||
onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''">
|
onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : '';">
|
||||||
<div class="modeFive-unit">{{ item.unit }}</div>
|
<div class="modeFive-unit">{{ item.unit }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -758,12 +757,6 @@ export default {
|
|||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
|
||||||
'$store.state.user'(newValue) {
|
|
||||||
this.userIntermediary = newValue['intermediary']
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
mounted() {
|
||||||
// 访问URL中的查询参数
|
// 访问URL中的查询参数
|
||||||
const queryString = window.location.search;
|
const queryString = window.location.search;
|
||||||
@@ -773,6 +766,8 @@ export default {
|
|||||||
this.intermediary = urlParams.get('intermediary') || 3; // 默认写房东吧
|
this.intermediary = urlParams.get('intermediary') || 3; // 默认写房东吧
|
||||||
// this.verified = urlParams.get('verified') || 0;
|
// this.verified = urlParams.get('verified') || 0;
|
||||||
|
|
||||||
|
this.userIntermediary = this.$store.state.user['intermediary']
|
||||||
|
|
||||||
this.init();
|
this.init();
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -786,7 +781,6 @@ export default {
|
|||||||
userBox,
|
userBox,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
require(url) {
|
require(url) {
|
||||||
return require(url)
|
return require(url)
|
||||||
},
|
},
|
||||||
@@ -850,7 +844,6 @@ export default {
|
|||||||
if (info['type']) this.typeValue = info['type'] >>> 0
|
if (info['type']) this.typeValue = info['type'] >>> 0
|
||||||
|
|
||||||
let intermediary = data.intermediary
|
let intermediary = data.intermediary
|
||||||
// rentalduration
|
|
||||||
if (data['type'] == "edit") {
|
if (data['type'] == "edit") {
|
||||||
if (!info['rentalduration']) info['rentalduration'] = 0
|
if (!info['rentalduration']) info['rentalduration'] = 0
|
||||||
}
|
}
|
||||||
@@ -907,6 +900,7 @@ export default {
|
|||||||
|
|
||||||
this.info = info
|
this.info = info
|
||||||
this.verified = data.verified
|
this.verified = data.verified
|
||||||
|
// this.verified = 1
|
||||||
this.fieldinfoIdentity = fieldinfo.identity
|
this.fieldinfoIdentity = fieldinfo.identity
|
||||||
this.intermediary = intermediary
|
this.intermediary = intermediary
|
||||||
this.status = data.status
|
this.status = data.status
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
<!-- 右下角咨询 -->
|
<!-- 右下角咨询 -->
|
||||||
<circle-btn></circle-btn>
|
<circle-btn></circle-btn>
|
||||||
<back-to-top></back-to-top>
|
<back-to-top></back-to-top>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
@@ -88,7 +87,7 @@ const getData = () => {
|
|||||||
requestLoading = true
|
requestLoading = true
|
||||||
|
|
||||||
proxy.$get("/tenement/pc/api/apartment", {
|
proxy.$get("/tenement/pc/api/apartment", {
|
||||||
limit:10,
|
limit: 10,
|
||||||
page,
|
page,
|
||||||
...pitchValue
|
...pitchValue
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user