diff --git a/src/views/index/allSections/AllSections.vue b/src/views/index/allSections/AllSections.vue index 9c1f591..254281b 100755 --- a/src/views/index/allSections/AllSections.vue +++ b/src/views/index/allSections/AllSections.vue @@ -10,9 +10,10 @@
{{ i.name }}
-
+ +
-
+
空星 实星
@@ -31,31 +32,20 @@ export default { list: [{ }], - starList: [ - { - title: "2023招生季[你好 招生官]", - text: "[权威、官方]的第一手信息。" - }, - { - title: "2023招生季[你好 招生官]", - text: "全球博士项目信息发布,查找23fall博士交流群 点击加入微信群 QQ群号461086769" - }, - { - title: "2023招生季[你好 招生官]", - text: "[权威、官方]的第一手信息。" - } - ], - showList: [] } }, methods: { allClick(index) { this.allActive = index }, - starClick(k) { + starClick(k, fid) { // if (this.starList[k].checked) this.starList[k].checked = false // else this.starList[k].checked = true - + this.$http.post("/api/operation/forumFav", { + fid + }).then(res => { + console.log(res); + }) this.$forceUpdate() }, @@ -64,6 +54,7 @@ export default { this.$http.post("/api/home/allForum").then((res) => { if (res.code != 200) return; this.list = res.data + console.log("res.data", res.data); }).catch(err => { this.$message.error(err.message) diff --git a/src/views/user/UserIndex.vue b/src/views/user/UserIndex.vue index fc9e9ad..a8153eb 100755 --- a/src/views/user/UserIndex.vue +++ b/src/views/user/UserIndex.vue @@ -133,7 +133,7 @@
-
退出登录
+
退出登录
@@ -169,6 +169,11 @@ export default { console.log(this.count); }) }, + + // 点击退出登录 + logOut() { + console.log("点击退出登录"); + }, }, };