no message
This commit is contained in:
@@ -9,11 +9,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <div class="empty-box flexcenter" v-loading="true" v-if="(MyPopupState == 'collect' && collectLoading) || (MyPopupState == 'mj' && publisloading)"></div> -->
|
||||
<div class="empty-box flexcenter" v-loading="true" v-if="(MyPopupState == 'collect' && collectLoading) || (MyPopupState == 'takevote' && takevoteloading) || (MyPopupState == 'publish' && publisloading)"></div>
|
||||
<div class="empty-box flexcenter" v-if="showList.length == 0">
|
||||
<Empty></Empty>
|
||||
</div>
|
||||
<el-scrollbar v-else height="479px">
|
||||
<!-- <el-scrollbar v-else height="40px"> -->
|
||||
<div class="content" @scroll="handleListScroll">
|
||||
<div class="item flexflex" v-for="(item, index) in showList" :key="item.uniqid" @click="goDetails(item['uniqid'] || item?.data?.uniqid)">
|
||||
<div class="left flexflex">
|
||||
@@ -115,7 +116,7 @@ const getPublish = () => {
|
||||
if (publisPage == 0 && !publisloading.value) return
|
||||
|
||||
publisloading.value = true
|
||||
MyUserPublishHttp({ page: publisPage })
|
||||
MyUserPublishHttp({ limit: 1, page: publisPage })
|
||||
.then(res => {
|
||||
if (res.code != 200) return
|
||||
let data = res.data
|
||||
@@ -151,6 +152,12 @@ const cutMy = (key, isEmpty) => {
|
||||
collectList = []
|
||||
collectPage = 1
|
||||
collectCount.value = 0
|
||||
|
||||
takevoteList = []
|
||||
takevotePage = 1
|
||||
|
||||
publishList = []
|
||||
publisPage = 1
|
||||
}
|
||||
|
||||
if (key == "collect" && collectList.length == 0) getCollect()
|
||||
@@ -238,6 +245,7 @@ const closeDialog = () => {
|
||||
|
||||
// const emit = defineEmits(["cutMy"]);
|
||||
const unbookmarkSamePage = inject("unbookmarkSamePage")
|
||||
const unbookmark = inject("unbookmark")
|
||||
|
||||
// 处理取消收藏
|
||||
const cancelCollection = (token, index, uniqid) => {
|
||||
@@ -281,7 +289,7 @@ const deleteVote = () => {
|
||||
publishList.splice(deleteobj["index"], 1)
|
||||
showList.value = [...publishList]
|
||||
|
||||
if (id == deleteobj["uniqid"]) unbookmarkSamePage()
|
||||
if (id == deleteobj["uniqid"]) unbookmark()
|
||||
|
||||
ElMessage.success(res.message)
|
||||
deleteobj = {}
|
||||
|
||||
Reference in New Issue
Block a user