修改小bug

This commit is contained in:
A1300399510 2023-07-31 16:44:27 +08:00
parent 0b3643e04d
commit de637cffbd
6 changed files with 16 additions and 22 deletions

View File

@ -39,7 +39,7 @@
<div class="housing-info-trail">{{ time['offshelftime'] }}</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" />
房源已认证
</div>

View File

@ -28,7 +28,7 @@
</div>
</div>
<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/logoText.png" class="logo-text-img" alt="">
</div>
@ -158,6 +158,10 @@ const loginBtn = type => {
goTologin()
}
//
const goIndex = () => router.push("/")
</script>
<style scoped>
.pos-r {
@ -246,6 +250,7 @@ const loginBtn = type => {
}
.top-bg-img-box .info-box .logo-box {
cursor: pointer;
height: 40px;
}

View File

@ -116,10 +116,6 @@ const toConsumableArray = (arr) => {
box-sizing: border-box;
}
.alert-form .reports {
height: 440px;
}
.alert-form .reports .radio-area {
margin-bottom: 40px;
}
@ -135,7 +131,7 @@ const toConsumableArray = (arr) => {
left: 50%;
top: 50%;
width: 740px;
height: 440px;
// height: 440px;
max-width: 90vw;
max-height: 90vh;
transform: translate(-50%, -50%);

View File

@ -14,7 +14,7 @@ axios.interceptors.request.use( //响应拦截
showFullScreenLoading()
// 开发时登录用的,可以直接替换小程序的 authorization
// 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;
},
error => {

View File

@ -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

View File

@ -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 => {