a1300399510@qq.com 提交于 2023/04/03 -12:40:02
This commit is contained in:
parent
7908c0f5fc
commit
895d5546f7
@ -29,9 +29,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="head-more-right">
|
<div class="head-more-right">
|
||||||
<!-- 消息 -->
|
<!-- 消息 -->
|
||||||
<div class="information-box" v-if="false">
|
<div class="information-box" v-if="userInfo.messagenum">
|
||||||
<img class="information-icon" src="@/assets/img/headerNav/information.png" />
|
<img class="information-icon" src="@/assets/img/headerNav/information.png" />
|
||||||
<div class="red-dot flexcenter">2</div>
|
<div class="red-dot flexcenter">{{ userInfo.messagenum }}</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 登录按钮 -->
|
<!-- 登录按钮 -->
|
||||||
<div v-if="!islogin" class="loginBtn flexcenter" @click="handleRegister">
|
<div v-if="!islogin" class="loginBtn flexcenter" @click="handleRegister">
|
||||||
@ -78,6 +78,7 @@ export default {
|
|||||||
islogin: false,
|
islogin: false,
|
||||||
userInfo: {},
|
userInfo: {},
|
||||||
menu: [],
|
menu: [],
|
||||||
|
hotSearchkeywords: [], // 热门搜索
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: ["issearch", "needgetuser", "userinfo"],
|
props: ["issearch", "needgetuser", "userinfo"],
|
||||||
@ -118,9 +119,12 @@ export default {
|
|||||||
this.$http.post("/api/index",).then((res) => {
|
this.$http.post("/api/index",).then((res) => {
|
||||||
if (res.code != 200) return;
|
if (res.code != 200) return;
|
||||||
// this.prototype.userInfo = res.data.user
|
// this.prototype.userInfo = res.data.user
|
||||||
this.userInfo = res.data.user;
|
// this.userInfo = res.data.user;
|
||||||
this.islogin = res.data.user.uid > 0 ? true : false;
|
this.islogin = res.data.user.uid > 0 ? true : false;
|
||||||
console.log(this.userInfo, "userInfo");
|
this.hotSearchkeywords = res.data.hotSearchkeywords
|
||||||
|
this.prototype.userInfo = res.data.user
|
||||||
|
console.log(this.prototype.userInfo, "userInfo");
|
||||||
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.$message.error(err.message)
|
this.$message.error(err.message)
|
||||||
});
|
});
|
||||||
|
@ -51,7 +51,6 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
allClick(index) {
|
allClick(index) {
|
||||||
this.allActive = index
|
this.allActive = index
|
||||||
console.log(index);
|
|
||||||
},
|
},
|
||||||
starClick(k) {
|
starClick(k) {
|
||||||
// if (this.starList[k].checked) this.starList[k].checked = false
|
// if (this.starList[k].checked) this.starList[k].checked = false
|
||||||
@ -66,7 +65,6 @@ export default {
|
|||||||
if (res.code != 200) return;
|
if (res.code != 200) return;
|
||||||
this.list = res.data
|
this.list = res.data
|
||||||
|
|
||||||
console.log(this.list, "list");
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.$message.error(err.message)
|
this.$message.error(err.message)
|
||||||
});
|
});
|
||||||
@ -77,14 +75,6 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
created() {
|
|
||||||
console.log("dfgkljdflkdfgj");
|
|
||||||
console.log(this.allActive);
|
|
||||||
|
|
||||||
|
|
||||||
// https://forum.gter.net
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user