no message
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
</div>
|
||||
<div class="mj-list" @scroll="handleListScroll">
|
||||
<a class="mj-item flexflex" :class="{ pitch: pitchIndex == index }" v-for="(item, index) in relatedlist" :key="index" @click.stop.prevent="handleItem(item['uniqid'])" :href="`./details/${item['uniqid']}`">
|
||||
<img class="item-bj" src="@/assets/img/item-bj.svg" />
|
||||
<div class="mj-header flexacenter">
|
||||
<img class="mj-avatar" :src="item['avatar']" />
|
||||
<div class="user-name">{{ item["username"] || "匿名用户" }}</div>
|
||||
@@ -359,6 +358,23 @@ onMounted(() => {
|
||||
|
||||
let floorAreaState = ref(false) // 底部操作显示状态
|
||||
|
||||
watch(
|
||||
() => route.path,
|
||||
(newValue, oldValue) => {
|
||||
// 在这里处理route.path的变化
|
||||
if (typeof window !== "undefined" && route.path) {
|
||||
if (window._hmt) window._hmt.push(["_trackPageview", route.fullPath])
|
||||
if (window._czc) {
|
||||
let location = window.location
|
||||
let contentUrl = location.pathname + location.hash
|
||||
let refererUrl = "/"
|
||||
window._czc.push(["_trackPageview", contentUrl, refererUrl])
|
||||
window._czc.push(["_setAutoPageview", false])
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
// 开启一个监听最底部是否在可视窗口内
|
||||
const openObserverBottom = () => {
|
||||
// 获取目标元素的引用
|
||||
@@ -456,7 +472,7 @@ const getDetails = () => {
|
||||
token = data["token"]
|
||||
info.value = data["info"]
|
||||
seo.value = data.seo
|
||||
iscollection.value = data.iscollection
|
||||
iscollection.value = data.iscollection || 0
|
||||
isdisplay.value = data.isdisplay
|
||||
islike.value = data.islike
|
||||
ismyself.value = data.ismyself
|
||||
@@ -1061,12 +1077,32 @@ const handleListScroll = e => {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
|
||||
&.pitch {
|
||||
.item-bj {
|
||||
display: block;
|
||||
&::before,
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
background: rgb(114, 219, 134);
|
||||
}
|
||||
|
||||
&::after {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 280px;
|
||||
height: 100%;
|
||||
border-radius: 10px;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
&::before {
|
||||
top: 50%;
|
||||
left: 280px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
transform: translate(-64%, -50%) rotate(45deg);
|
||||
}
|
||||
.mj-header {
|
||||
.user-name {
|
||||
color: #fff;
|
||||
|
@@ -24,7 +24,7 @@
|
||||
import { ElMessage } from "element-plus"
|
||||
let isNeedLogin = inject("isNeedLogin")
|
||||
const goLogin = inject("goLogin")
|
||||
console.log(process.server)
|
||||
|
||||
useHead({ script: [{ src: "https://app.gter.net/bottom?tpl=header&menukey=mj" }, { src: "https://app.gter.net/bottom?tpl=footer", body: true }] })
|
||||
|
||||
const gridContainer = ref(null)
|
||||
|
@@ -113,7 +113,12 @@
|
||||
import { ElMessage } from "element-plus"
|
||||
import zhCn from "element-plus/dist/locale/zh-cn.mjs"
|
||||
const router = useRouter()
|
||||
useHead({ script: [{ src: "https://app.gter.net/bottom?tpl=header&menukey=mj" }, { src: "https://app.gter.net/bottom?tpl=footer", body: true }] })
|
||||
useHead({
|
||||
script: [
|
||||
// { src: "https://app.gter.net/bottom?tpl=header&menukey=mj" },
|
||||
{ src: "https://app.gter.net/bottom?tpl=footer", body: true },
|
||||
],
|
||||
})
|
||||
|
||||
const setDisabled = time => {
|
||||
return time.getTime() > Date.now() // 可选历史天、可选当前天、不可选未来天
|
||||
@@ -125,7 +130,7 @@ onMounted(() => {
|
||||
|
||||
onBeforeMount(() => {
|
||||
clearBottom()
|
||||
clearTop()
|
||||
// clearTop()
|
||||
})
|
||||
|
||||
// 清除底部的次数
|
||||
@@ -139,7 +144,7 @@ const clearBottom = () => {
|
||||
setTimeout(() => clearBottom(), 50)
|
||||
return
|
||||
}
|
||||
if (clearBottomCount == 5) return
|
||||
if (clearBottomCount == 15) return
|
||||
indexFooter.style.display = "none"
|
||||
}
|
||||
|
||||
@@ -160,7 +165,6 @@ const clearTop = () => {
|
||||
}
|
||||
|
||||
let typetype = ref("")
|
||||
// const
|
||||
let token = ""
|
||||
const getInit = () => {
|
||||
publishInitHttp().then(res => {
|
||||
@@ -214,13 +218,10 @@ const querySchoolSearch = (queryString, cb) => {
|
||||
|
||||
data.forEach(element => {
|
||||
element["value"] = element["checkname"]
|
||||
if (element["name"] == queryString) isRepetition = true
|
||||
if (element["checkname"] == queryString) isRepetition = true
|
||||
})
|
||||
if (!isRepetition) {
|
||||
data.unshift({
|
||||
value: queryString,
|
||||
})
|
||||
}
|
||||
if (!isRepetition) data.push({ value: queryString })
|
||||
|
||||
cb(data)
|
||||
})
|
||||
}
|
||||
@@ -240,11 +241,8 @@ const queryMajorSearch = (queryString, cb) => {
|
||||
element["value"] = element["name"]
|
||||
if (element["name"] == queryString) isRepetition = true
|
||||
})
|
||||
if (!isRepetition) {
|
||||
data.unshift({
|
||||
value: queryString,
|
||||
})
|
||||
}
|
||||
if (!isRepetition) data.push({ value: queryString })
|
||||
|
||||
cb(data)
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user