no message

This commit is contained in:
A1300399510
2024-01-03 15:28:16 +08:00
parent e5e3d10123
commit 4665ee5043
64 changed files with 769 additions and 731 deletions

View File

@@ -173,8 +173,8 @@ const handleListScroll = e => {
if (MyPopupState.value == "mj") getPublish()
}
let clearAllData = inject("clearAllData")
let getDetails = inject("getDetails")
let clearAllData = inject("clearAllData") || null
let getDetails = inject("getDetails") || null
// 打开详情页
const goDetails = uniqid => {
@@ -184,7 +184,8 @@ const goDetails = uniqid => {
nextTick(() => getDetails())
}
router.replace(`/details/${uniqid}`)
// router.replace(`/details/${uniqid}`)
goToURL(`/details/${uniqid}`)
show.value = false
MyPopupState.value = ""
}

View File

@@ -1,7 +1,7 @@
<template>
<header class="header flexacenter">
<section class="header flexacenter">
<div class="header-box flexacenter">
<img class="logo-icon" @click="goIndex" src="@/assets/img/logo-icon.png" />
<a href="/index.html"><img class="logo-icon" src="@/assets/img/logo-icon.png" /></a>
<div class="header-right flexacenter">
<div class="search-box flexacenter">
<input class="flex1" placeholder="输入搜索关键词" v-model="keyword" @keydown.enter="searchClick()" @focus="searchFocus" @blur="searchBlur" />
@@ -23,7 +23,7 @@
</div>
</div>
</div>
</header>
</section>
<MyPopup ref="MyPopupRef" :count="count"></MyPopup>
</template>
@@ -35,7 +35,7 @@ const router = useRouter()
const route = useRoute()
let isNeedLogin = inject("isNeedLogin")
let goLogin = inject("goLogin")
const goLogin = inject("goLogin")
let keyword = ref("")
@@ -43,8 +43,6 @@ onMounted(() => {
getHistoricalSearchList()
keyword.value = route.query["keyword"]
})
let clearAllData = inject("clearAllData")
console.log("clearAllData", clearAllData)
let count = ref({})
const getUser = () => {
@@ -60,9 +58,9 @@ watchEffect(() => {
})
//
const goIndex = () => {
router.push(`/index.html`)
}
// const goIndex = () => {
// // router.push(`/index.html`)
// }
//
const goPublish = () => {
if (isNeedLogin.value) {
@@ -70,7 +68,8 @@ const goPublish = () => {
return
}
router.push(`/publish`)
// router.push(`/publish`)
goToURL(`/publish`)
}
//
@@ -93,7 +92,8 @@ const setHistoricalSearchList = () => {
//
const searchClick = () => {
router.push(`/index.html?keyword=${keyword.value || ""}`)
// router.push(`/index.html?keyword=${keyword.value || ""}`)
goToURL(`/index.html?keyword=${keyword.value || ""}`, false)
setHistoricalSearchList()
searchBlur()
}
@@ -115,11 +115,6 @@ const handleClickHistoricalItem = value => {
searchClick()
}
//
const handleClickClear = () => {
console.log("点击清除")
}
let historicalSearchState = ref(false) //
let historicalSearchList = ref([]) //
@@ -136,7 +131,7 @@ const handleUser = key => {
</script>
<style scoped lang="less">
header.header {
.header {
min-width: 1200px;
padding-top: 42px;
margin-bottom: 40px;