no message

This commit is contained in:
A1300399510
2024-01-03 11:42:49 +08:00
parent 42abde5285
commit 4a46a94688
47 changed files with 358 additions and 346 deletions

View File

@@ -467,25 +467,27 @@ let pitchIndex = ref(null) // 列表选中 index
const getRelatedlistHttp = () => {
if (relatedloading || relatedpage.value == 0) return
relatedloading = true
relatedlistHttp({ token, page: relatedpage.value }).then(res => {
if (res.code != 200) return
relatedlistHttp({ token, page: relatedpage.value })
.then(res => {
if (res.code != 200) return
let data = res.data
let data = res.data
relatedlist.value = relatedlist.value.concat(data.data)
relatedcount.value = data.count
// if (data.count > re) relatedpage
relatedlist.value = relatedlist.value.concat(data.data)
relatedcount.value = data.count
// if (data.count > re) relatedpage
// page++
if (relatedlist.value.length >= data["count"]) relatedpage.value = 0
else relatedpage.value++
// page++
if (relatedlist.value.length >= data["count"]) relatedpage.value = 0
else relatedpage.value++
CalculateSelectedList()
}).finally(() => {
relatedloading = false
})
CalculateSelectedList()
})
.finally(() => {
relatedloading = false
})
}
let seo = ref({})
@@ -1428,6 +1430,7 @@ const handleListScroll = e => {
color: #333;
margin-bottom: 10px;
word-break: break-all;
min-height: 22px;
.comments-reply {
color: #92a1bf;
display: inline;

View File

@@ -182,6 +182,7 @@ try {
}
}
.content {
min-height: 540px;
width: 1200px;
// height: 1000px;
margin: 0 auto 93px;

View File

@@ -2,4 +2,4 @@
<script setup>
const router = useRouter()
router.replace("/index.html")
</script>
</script>

View File

@@ -1,13 +1,13 @@
<template>
<div class="flexacenter save-box save-left" @click="submit(0)">
<img class="save-icon" src="@/assets/img/arrow-gray.png" />
保存并退出
</div>
<div class="flexacenter save-box save-right" @click="abandonSaving">
放弃保存
<img class="save-icon" src="@/assets/img/cross-icon.png" />
</div>
<div class="content">
<div class="flexacenter save-box save-left" @click="submit(0)">
<img class="save-icon" src="@/assets/img/arrow-gray.png" />
保存并退出
</div>
<div class="flexacenter save-box save-right" @click="abandonSaving">
放弃保存
<img class="save-icon" src="@/assets/img/cross-icon.png" />
</div>
<div class="header flexacenter">发布面经</div>
<div class="box flex1 flexflex">
<div class="box-left">
@@ -271,6 +271,7 @@ const saveAndExit = () => {
border-radius: 16px;
display: flex;
flex-direction: column;
position: relative;
.header {
font-weight: 650;
@@ -467,17 +468,29 @@ const saveAndExit = () => {
}
}
@media (max-width: 1300px) {
.save-box.save-left {
left: 0 !important;
}
.save-box.save-right {
right: 0 !important;
}
}
.save-box {
font-size: 14px;
color: #666666;
position: fixed;
top: 30px;
position: absolute;
top: 0;
cursor: pointer;
&.save-left {
left: 50px;
// left: 0;
left: calc((1200px - 100vw) / 2 + 50px);
}
&.save-right {
right: 50px;
// right: 0;
right: calc((1200px - 100vw) / 2 + 50px);
.save-icon {
width: 16px;
height: 16px;