no message
This commit is contained in:
@@ -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 = ""
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user