修改问题
This commit is contained in:
BIN
src/assets/img/publicImage/arc-shadow.png
Normal file
BIN
src/assets/img/publicImage/arc-shadow.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
@@ -7,7 +7,7 @@
|
|||||||
<div class="fail-text">已存为草稿</div>
|
<div class="fail-text">已存为草稿</div>
|
||||||
<div class="fail-hint">房源数量已达上限</div>
|
<div class="fail-hint">房源数量已达上限</div>
|
||||||
<div class="fail-hint" style="margin-bottom: 57px;">下架旧房源,便可发布新房源</div>
|
<div class="fail-hint" style="margin-bottom: 57px;">下架旧房源,便可发布新房源</div>
|
||||||
<div class="fail-btn flexcenter">
|
<div class="fail-btn flexcenter" @click.stop="$router.push('/user')">
|
||||||
房源管理<img class="fail-btn-icon" src="@/assets/img/edit/fail-btn-icon.svg" />
|
房源管理<img class="fail-btn-icon" src="@/assets/img/edit/fail-btn-icon.svg" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
</el-carousel>
|
</el-carousel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btm-seach-btn-box dis-f al-item jus-x" v-if="routePath !== '/seachPage'&&routePath !== '/detail'">
|
<div class="btm-seach-btn-box dis-f al-item jus-x" v-if="routePath !== '/seachPage'&&routePath !== '/detail'&&routePath !== '/apartmentDetail'&&routePath !== '/edit'">
|
||||||
<div class="body-maxWidth dis-f" style="height:48px;">
|
<div class="body-maxWidth dis-f" style="height:48px;">
|
||||||
<div class="tab-btn dis-f al-item jus-x" :class="{ 'tab-btn-click': item.path === tabBtnType }"
|
<div class="tab-btn dis-f al-item jus-x" :class="{ 'tab-btn-click': item.path === tabBtnType }"
|
||||||
v-for="(item, i) in seachTab.data" :key="i" @click="changeTabBtnType(item)">
|
v-for="(item, i) in seachTab.data" :key="i" @click="changeTabBtnType(item)">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="list-item" ref="list" @click="goDetail">
|
<div class="list-item" ref="list" @click="goDetail(data.status)">
|
||||||
<div class="authentication-box dis-f al-item" v-if="data.verified == 1">
|
<div class="authentication-box dis-f al-item" v-if="data.verified == 1">
|
||||||
<img src="../../assets/homeImage/authenticationLogo.png" class="logo" alt="">
|
<img src="../../assets/homeImage/authenticationLogo.png" class="logo" alt="">
|
||||||
<img src="../../assets/homeImage/topAuthenticationBg.svg" class="bg" alt="">
|
<img src="../../assets/homeImage/topAuthenticationBg.svg" class="bg" alt="">
|
||||||
@@ -190,7 +190,10 @@ watch(() => props.item.status, (newValue, oldValue) => {
|
|||||||
const cancelCollection = token => emit('cancelCollection', { token, index: props['index'] })
|
const cancelCollection = token => emit('cancelCollection', { token, index: props['index'] })
|
||||||
|
|
||||||
// 点击跳转详情页
|
// 点击跳转详情页
|
||||||
const goDetail = () => router.push(`/detail?uniqid=${data.uniqid}`)
|
const goDetail = status => {
|
||||||
|
console.log("status", status);
|
||||||
|
if (status == 1) router.push(`/detail?id=${data.uniqid}`)
|
||||||
|
}
|
||||||
|
|
||||||
// 跳转编辑页面
|
// 跳转编辑页面
|
||||||
const goEdit = () => router.push(`/edit?token=${data.token}`)
|
const goEdit = () => router.push(`/edit?token=${data.token}`)
|
||||||
|
|||||||
@@ -93,7 +93,10 @@ const routes = [
|
|||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(process.env.BASE_URL),
|
history: createWebHistory(process.env.BASE_URL),
|
||||||
mode: "history",
|
mode: "history",
|
||||||
routes
|
routes,
|
||||||
|
scrollBehavior(to, from, savedPosition) {
|
||||||
|
return { top: 0 };
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,14 +8,16 @@
|
|||||||
<div class="brand-abstract">{{ info['propaganda'] }}</div>
|
<div class="brand-abstract">{{ info['propaganda'] }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-content flexflex">
|
<div class="header-content flexflex">
|
||||||
|
<img class="arc" src="@/assets/img/publicImage/arc-shadow.png">
|
||||||
<div class="header-left">
|
<div class="header-left">
|
||||||
<!-- <image-watch :show="imageShow" :close="cloaseImageShow" :list="allCarouselsData"></image-watch> -->
|
<image-watch style="z-index: 1003;" :show="imageShow" :close="cloaseImageShow"
|
||||||
<image-watch style="z-index: 1003;" :show="imageShow" :close="cloaseImageShow" :list="allCarouselsData"></image-watch>
|
:list="imageList"></image-watch>
|
||||||
<div class="slideshow">
|
<div class="slideshow">
|
||||||
<el-carousel :autoplay="false" indicator-position="none" ref="remarkCaruselUp"
|
<el-carousel :autoplay="false" indicator-position="none" ref="remarkCaruselUp"
|
||||||
@change="carouselChange">
|
@change="carouselChange">
|
||||||
<el-carousel-item class="flexcenter" v-for="item in allCarouselsData">
|
<el-carousel-item class="flexcenter" v-for="item in allCarouselsData">
|
||||||
<img class="img" :src="item['image'] || item['imageurl']" @click="cloaseImageShow">
|
<img class="img" :src="item['image'] || item['imageurl']"
|
||||||
|
@click="cloaseImageShow(allCarouselsData)">
|
||||||
<!-- <img class="video-icon" src="@/assets/img/publicImage/video-icon.svg" alt=""> -->
|
<!-- <img class="video-icon" src="@/assets/img/publicImage/video-icon.svg" alt=""> -->
|
||||||
</el-carousel-item>
|
</el-carousel-item>
|
||||||
</el-carousel>
|
</el-carousel>
|
||||||
@@ -128,11 +130,13 @@
|
|||||||
src="@/assets/img/publicImage/gray-arrow.svg" alt="">
|
src="@/assets/img/publicImage/gray-arrow.svg" alt="">
|
||||||
</div>
|
</div>
|
||||||
<div class="media-list flexacenter no-scrollbar" :class="`element${index}`">
|
<div class="media-list flexacenter no-scrollbar" :class="`element${index}`">
|
||||||
<div class="media-item flexcenter" v-for="it in item['videos']">
|
<div class="media-item flexcenter" v-for="it in item['videos']"
|
||||||
|
@click="cloaseImageShow([...item['videos'], ...item['images']])">
|
||||||
<img class="media-img" :src="it['thumbnail']">
|
<img class="media-img" :src="it['thumbnail']">
|
||||||
<img class="media-icon" src="@/assets/img/apartmentDetail/media-icon.svg" />
|
<img class="media-icon" src="@/assets/img/apartmentDetail/media-icon.svg" />
|
||||||
</div>
|
</div>
|
||||||
<div class="media-item flexcenter" v-for="it in item['images']">
|
<div class="media-item flexcenter" v-for="it in item['images']"
|
||||||
|
@click="cloaseImageShow([...item['videos'], ...item['images']])">
|
||||||
<img class="media-img" :src="it['thumbnail']">
|
<img class="media-img" :src="it['thumbnail']">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -361,9 +365,14 @@ import footerpage from '@/components/footer/footer.vue'
|
|||||||
import viewMap from '@/components/public/viewMap.vue'
|
import viewMap from '@/components/public/viewMap.vue'
|
||||||
import transmitBtn from '@/components/public/transmitBtn.vue'
|
import transmitBtn from '@/components/public/transmitBtn.vue'
|
||||||
import imageWatch from '@/components/detail/imageWatch.vue';
|
import imageWatch from '@/components/detail/imageWatch.vue';
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
let router = useRouter()
|
||||||
|
|
||||||
|
|
||||||
|
let { uniqid } = router.currentRoute.value.query
|
||||||
|
|
||||||
import { copyToClipboard } from '@/utils/util.js'
|
import { copyToClipboard } from '@/utils/util.js'
|
||||||
const uniqid = "aWqSz58aKKvn"
|
// const uniqid = "aWqSz58aKKvn"
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
@@ -371,7 +380,13 @@ const store = useStore();
|
|||||||
const { wechat } = toRefs(store.state);
|
const { wechat } = toRefs(store.state);
|
||||||
|
|
||||||
let imageShow = ref(false) // 查看大图弹窗的状态
|
let imageShow = ref(false) // 查看大图弹窗的状态
|
||||||
const cloaseImageShow = () => imageShow.value = !imageShow.value
|
let imageList = ref([]) // 查看大图弹窗的状态
|
||||||
|
const cloaseImageShow = (list) => {
|
||||||
|
if (list) imageList.value = list
|
||||||
|
imageShow.value = !imageShow.value
|
||||||
|
}
|
||||||
|
|
||||||
|
// allCarouselsData
|
||||||
|
|
||||||
// 房间类型
|
// 房间类型
|
||||||
let roomList = ref([])
|
let roomList = ref([])
|
||||||
@@ -412,7 +427,14 @@ proxy.$get("/tenement/pc/api/apartment/details", { uniqid }).then(res => {
|
|||||||
|
|
||||||
handleAllCarouselsData()
|
handleAllCarouselsData()
|
||||||
|
|
||||||
handleNavData()
|
|
||||||
|
// setTimeout(() => {
|
||||||
|
nextTick(() => {
|
||||||
|
handleNavData()
|
||||||
|
})
|
||||||
|
|
||||||
|
// }, 2000)
|
||||||
|
|
||||||
if (data.withsameapartments > 0) dualBrandData()
|
if (data.withsameapartments > 0) dualBrandData()
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -494,9 +516,12 @@ let navTab = ref("roomEle")
|
|||||||
|
|
||||||
// 处理 navList 数据
|
// 处理 navList 数据
|
||||||
const handleNavData = () => {
|
const handleNavData = () => {
|
||||||
|
|
||||||
navconfig.forEach(element => {
|
navconfig.forEach(element => {
|
||||||
if (info.value[element.value] && element.value != 'roomEle' && element.value != 'companyEle') navList.value.push(element)
|
console.log("element", eval(element['value']).value);
|
||||||
else navList.value.push(element)
|
if (eval(element['value']).value) navList.value.push(element)
|
||||||
|
// if (info.value[element.value] && element.value != 'roomEle' && element.value != 'companyEle') navList.value.push(element)
|
||||||
|
// else navList.value.push(element)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -504,6 +529,7 @@ const handleNavData = () => {
|
|||||||
const handleClickNav = value => {
|
const handleClickNav = value => {
|
||||||
let scrollTop = 0
|
let scrollTop = 0
|
||||||
|
|
||||||
|
|
||||||
switch (value) {
|
switch (value) {
|
||||||
case "roomEle":
|
case "roomEle":
|
||||||
scrollTop = roomEle.value.offsetTop - 110;
|
scrollTop = roomEle.value.offsetTop - 110;
|
||||||
@@ -534,7 +560,7 @@ const handleClickNav = value => {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
navTab.value = value
|
if (value != 'eleseEle') navTab.value = value
|
||||||
|
|
||||||
window.scrollTo({ top: scrollTop, behavior: 'smooth' });
|
window.scrollTo({ top: scrollTop, behavior: 'smooth' });
|
||||||
}
|
}
|
||||||
@@ -634,11 +660,14 @@ const slideshowType = type => slideshowItem(carouselsconfig.value[type].index)
|
|||||||
|
|
||||||
let detailsLeft = ref(null)
|
let detailsLeft = ref(null)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.content {
|
.content {
|
||||||
margin: 0 auto;
|
margin: -36px auto 0;
|
||||||
|
position: relative;
|
||||||
font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
|
font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
@@ -676,7 +705,16 @@ let detailsLeft = ref(null)
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding: 25px 30px;
|
padding: 25px 30px;
|
||||||
margin-top: -20px;
|
margin-top: -20px;
|
||||||
border-radius: 16px;
|
border-radius: 16px 0 16px 16px;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.arc {
|
||||||
|
position: absolute;
|
||||||
|
width: 12px;
|
||||||
|
height: 12px;
|
||||||
|
top: -12px;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.header-left {
|
.header-left {
|
||||||
width: 511px;
|
width: 511px;
|
||||||
@@ -1531,7 +1569,7 @@ let detailsLeft = ref(null)
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
background-color: rgba(0, 0, 0, 0.7);
|
// background-color: rgba(0, 0, 0, 0.7);
|
||||||
z-index: 1002;
|
z-index: 1002;
|
||||||
|
|
||||||
.add-customer-box {
|
.add-customer-box {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<header-nav :isNoTabList="true" :user="user"></header-nav>
|
<!-- <header-nav :isNoTabList="true" :user="user"></header-nav> -->
|
||||||
|
<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">
|
||||||
<!-- 左边的信息盒子 -->
|
<!-- 左边的信息盒子 -->
|
||||||
@@ -77,7 +78,7 @@
|
|||||||
<!-- 月租 -->
|
<!-- 月租 -->
|
||||||
<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" 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>
|
||||||
@@ -667,7 +668,8 @@ import mapComponent from '@/components/edit/map.vue'
|
|||||||
import pageFooter from '@/components/footer/footer.vue'
|
import pageFooter from '@/components/footer/footer.vue'
|
||||||
import how from '@/components/edit/how-pop.vue'
|
import how from '@/components/edit/how-pop.vue'
|
||||||
import failPop from '@/components/edit/fail-pop.vue'
|
import failPop from '@/components/edit/fail-pop.vue'
|
||||||
import headerNav from '@/components/public/head.vue'
|
// import headerNav from '@/components/public/head.vue'
|
||||||
|
import pageTopBar from '@/components/pageTopBar/pageTopBar.vue'
|
||||||
import userBox from '@/components/edit/user-box.vue'
|
import userBox from '@/components/edit/user-box.vue'
|
||||||
import { setSeoTitle } from '@/utils/util.js'
|
import { setSeoTitle } from '@/utils/util.js'
|
||||||
|
|
||||||
@@ -779,7 +781,8 @@ export default {
|
|||||||
pageFooter,
|
pageFooter,
|
||||||
how,
|
how,
|
||||||
failPop,
|
failPop,
|
||||||
headerNav,
|
// headerNav,
|
||||||
|
pageTopBar,
|
||||||
userBox,
|
userBox,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -847,6 +850,10 @@ 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 (!info['rentalduration']) info['rentalduration'] = 0
|
||||||
|
}
|
||||||
|
|
||||||
if (intermediary == 6) {
|
if (intermediary == 6) {
|
||||||
if (info["rent"].length != 0) {
|
if (info["rent"].length != 0) {
|
||||||
@@ -864,7 +871,6 @@ export default {
|
|||||||
let arr = ["property", "floor", "sunshinearea"]
|
let arr = ["property", "floor", "sunshinearea"]
|
||||||
|
|
||||||
arr.forEach(element => {
|
arr.forEach(element => {
|
||||||
|
|
||||||
if (info[element] && info[element].length == 1 && info[element][0] == 0) info[element] = []
|
if (info[element] && info[element].length == 1 && info[element][0] == 0) info[element] = []
|
||||||
|
|
||||||
if (info[element] && info[element].length != 0) {
|
if (info[element] && info[element].length != 0) {
|
||||||
@@ -1182,7 +1188,10 @@ export default {
|
|||||||
|
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if (status == 0) return
|
if (status == 0) {
|
||||||
|
this.$router.push('/user')
|
||||||
|
return
|
||||||
|
}
|
||||||
this.qrcodeBase64 = data['qrcode']
|
this.qrcodeBase64 = data['qrcode']
|
||||||
this.skipUrl = data['url']
|
this.skipUrl = data['url']
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user