修改小bug
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
<template>
|
||||
<!-- <header-nav :isNoTabList="true" :user="user"></header-nav> -->
|
||||
<page-top-bar></page-top-bar>
|
||||
<map-component v-if="mapComponentState" :info="info" @choosingLocation="choosingLocation" />
|
||||
<div class="content-box flexflex">
|
||||
<!-- 左边的信息盒子 -->
|
||||
<user-box :user="user" :type="type" :time="{ timestamp, updatetime, offshelftime }" :status="status"
|
||||
: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-header">发布{{ intermediary == 6 ? '求' : '出租' }}房源</div>
|
||||
<div class="form-boxes">
|
||||
@@ -78,9 +77,9 @@
|
||||
<!-- 月租 -->
|
||||
<div v-if="item.field == 'rent' && intermediary != 6" ref="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="请输入数字"
|
||||
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>
|
||||
|
||||
@@ -758,12 +757,6 @@ export default {
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
'$store.state.user'(newValue) {
|
||||
this.userIntermediary = newValue['intermediary']
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// 访问URL中的查询参数
|
||||
const queryString = window.location.search;
|
||||
@@ -773,6 +766,8 @@ export default {
|
||||
this.intermediary = urlParams.get('intermediary') || 3; // 默认写房东吧
|
||||
// this.verified = urlParams.get('verified') || 0;
|
||||
|
||||
this.userIntermediary = this.$store.state.user['intermediary']
|
||||
|
||||
this.init();
|
||||
},
|
||||
components: {
|
||||
@@ -786,7 +781,6 @@ export default {
|
||||
userBox,
|
||||
},
|
||||
methods: {
|
||||
|
||||
require(url) {
|
||||
return require(url)
|
||||
},
|
||||
@@ -850,7 +844,6 @@ export default {
|
||||
if (info['type']) this.typeValue = info['type'] >>> 0
|
||||
|
||||
let intermediary = data.intermediary
|
||||
// rentalduration
|
||||
if (data['type'] == "edit") {
|
||||
if (!info['rentalduration']) info['rentalduration'] = 0
|
||||
}
|
||||
@@ -907,6 +900,7 @@ export default {
|
||||
|
||||
this.info = info
|
||||
this.verified = data.verified
|
||||
// this.verified = 1
|
||||
this.fieldinfoIdentity = fieldinfo.identity
|
||||
this.intermediary = intermediary
|
||||
this.status = data.status
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
<!-- 右下角咨询 -->
|
||||
<circle-btn></circle-btn>
|
||||
<back-to-top></back-to-top>
|
||||
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
@@ -88,7 +87,7 @@ const getData = () => {
|
||||
requestLoading = true
|
||||
|
||||
proxy.$get("/tenement/pc/api/apartment", {
|
||||
limit:10,
|
||||
limit: 10,
|
||||
page,
|
||||
...pitchValue
|
||||
}).then(res => {
|
||||
|
||||
Reference in New Issue
Block a user