Merge remote-tracking branch 'origin/main'

This commit is contained in:
2023-08-02 11:53:54 +08:00
5 changed files with 18 additions and 12 deletions

View File

@@ -6,7 +6,7 @@
indicator-position="none" ref="carousel" @change="carouselChange"> indicator-position="none" ref="carousel" @change="carouselChange">
<el-carousel-item v-for="(item, i) in list" :key="i"> <el-carousel-item v-for="(item, i) in list" :key="i">
<div class="dis-f jus-x al-item" v-if="item"> <div class="dis-f jus-x al-item" v-if="item">
<div class="img-box dis-f jus-x" v-if="item['type'] != 'attachment'"> <div class="img-box dis-f jus-x" style="width:auto;" v-if="item['type'] != 'attachment'">
<video :autoplay="false" controls :src="item.url || item['videourl']"></video> <video :autoplay="false" controls :src="item.url || item['videourl']"></video>
</div> </div>
<div class="img-box dis-f jus-x" v-else> <div class="img-box dis-f jus-x" v-else>

View File

@@ -21,7 +21,7 @@
</div> </div>
<div class="flex1 list scrollbar" @scroll="handleScroll"> <div class="flex1 list scrollbar" @scroll="handleScroll">
<div class="empty-box" v-if="false"> <div class="empty-box" v-if="list.length == 0 && !state">
<empty-duck></empty-duck> <empty-duck></empty-duck>
</div> </div>
<template v-for="(item, index) in list" :key="index"> <template v-for="(item, index) in list" :key="index">
@@ -147,11 +147,11 @@ let show = ref(false) //是否展示
let qrcode = ref("") // 关注二维码 let qrcode = ref("") // 关注二维码
let issubscribe = ref(0) // 是否已经关注公众号 let issubscribe = ref(0) // 是否已经关注公众号
let list = ref([]) // 列表数据 let list = ref([]) // 列表数据
let state = false // 请求状态 let state = ref(false) // 请求状态
let page = 1 // 页数 let page = 1 // 页数
const init = () => { const init = () => {
if (page == 0 || state) return if (page == 0 || state.value) return
state = true state.value = true
proxy.$post("/tenement/pc/api/user/messageList", { proxy.$post("/tenement/pc/api/user/messageList", {
page page
}).then((res) => { }).then((res) => {
@@ -168,12 +168,12 @@ const init = () => {
}).catch((err) => { }).catch((err) => {
emit('close') emit('close')
}).finally(() => { }).finally(() => {
state = false state.value = false
}) })
} }
const handleScroll = (event) => { const handleScroll = (event) => {
if (page == 0 || state) return if (page == 0 || state.value) return
const scrollContainer = event.target; // 获取滚动容器元素 const scrollContainer = event.target; // 获取滚动容器元素
const scrollHeight = scrollContainer.scrollHeight; // 元素内容的总高度 const scrollHeight = scrollContainer.scrollHeight; // 元素内容的总高度
const scrollTop = scrollContainer.scrollTop; // 滚动条距离滚动容器顶部的距离 const scrollTop = scrollContainer.scrollTop; // 滚动条距离滚动容器顶部的距离

View File

@@ -23,7 +23,8 @@ import {
ElSkeleton, ElSkeleton,
ElSkeletonItem, ElSkeletonItem,
ElBreadcrumb, ElBreadcrumb,
ElAffix ElAffix,
ElConfigProvider
// 其他需要的组件 // 其他需要的组件
} from 'element-plus' } from 'element-plus'
@@ -67,6 +68,8 @@ app.use(ElMessage)
app.use(ElBreadcrumb) app.use(ElBreadcrumb)
app.use(ElAffix) app.use(ElAffix)
app.use(ElConfigProvider)
app.use(lazyPlugin) app.use(lazyPlugin)
app.use(store).use(router).use(Axios) app.use(store).use(router).use(Axios)

View File

@@ -66,8 +66,10 @@
<div class="modeTwo-item flexcenter" :class="{ 'pitch': info['leasetime'] == 0 }" ref="leasetime" <div class="modeTwo-item flexcenter" :class="{ 'pitch': info['leasetime'] == 0 }" ref="leasetime"
@click="setValue('leasetime', 0)">随时</div> @click="setValue('leasetime', 0)">随时</div>
<div class="modeTwo-item flexacenter" :class="{ 'pitch': info['leasetime'] }" ref="leasetime"> <div class="modeTwo-item flexacenter" :class="{ 'pitch': info['leasetime'] }" ref="leasetime">
<el-config-provider :locale="locale">
<el-date-picker prefix-icon="" clear-icon="" :disabled-date="disabledDate" <el-date-picker prefix-icon="" clear-icon="" :disabled-date="disabledDate"
v-model="info.leasetime" type="date" placeholder="选择日期" :locale="locale"></el-date-picker> v-model="info.leasetime" type="date" placeholder="选择日期"></el-date-picker>
</el-config-provider>
<!-- {{ locale }} --> <!-- {{ locale }} -->
<img class="arrows-icon rotate0" src="@/assets/img/edit/arrows.svg" /> <img class="arrows-icon rotate0" src="@/assets/img/edit/arrows.svg" />
<img class="arrows-icon-pitch rotate0" src="@/assets/img/edit/blue-arrow.svg" /> <img class="arrows-icon-pitch rotate0" src="@/assets/img/edit/blue-arrow.svg" />
@@ -677,7 +679,7 @@ export default {
name: 'ZufangEdit', name: 'ZufangEdit',
data() { data() {
return { return {
locale: zhCn.el.datepicker, locale: zhCn,
value: '', value: '',
user: {}, user: {},
userIntermediary: 0, // 用户是否是 认证中介,需要全局获取 userIntermediary: 0, // 用户是否是 认证中介,需要全局获取

View File

@@ -301,6 +301,7 @@ const handleDelete = (index, status) => {
if (status == 0) stat.value['draft']-- if (status == 0) stat.value['draft']--
else if (status == 1) stat.value['listing']-- else if (status == 1) stat.value['listing']--
else stat.value['offshelf']-- else stat.value['offshelf']--
count.value['publish'] --
publishData.value['list'].splice(index, 1) publishData.value['list'].splice(index, 1)
nextTick(() => { nextTick(() => {
masonryInstancepublish.reloadItems(); masonryInstancepublish.reloadItems();