From 2ee5112f9078c2b05f8f954c9bef045513a7893f Mon Sep 17 00:00:00 2001 From: XiaoMo Date: Thu, 6 Apr 2023 11:00:11 +0800 Subject: [PATCH] =?UTF-8?q?a1300399510@qq.com=20=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E4=BA=8E=202023/04/06=20-11:00:01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/detail/detailIndex.vue | 35 ++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/src/views/detail/detailIndex.vue b/src/views/detail/detailIndex.vue index a6487e6..e443a3b 100755 --- a/src/views/detail/detailIndex.vue +++ b/src/views/detail/detailIndex.vue @@ -77,7 +77,7 @@ - + 查看当前捷报详情
@@ -376,32 +376,34 @@ export default { this.type = data.type this.token = data.token - if (this.type == 6) this.getOfferDetail() - else if (this.type == 5) this.getsummaryDetails() - else if (this.type == 3) this.getTenementDetails() + // if (this.type == 6) this.getOfferDetail() + // else if (this.type == 5) this.getsummaryDetails() + // else if (this.type == 3) this.getTenementDetails() + + this.getPostList() }) }, // 获取offer详情 getOfferDetail() { - - // https://offer.gter.net/api/forum/threadlist - this.$http.get("/api/forum/threadlist", { - token: this.token + this.$http.get("/api/forum/details", { + id: this.token }, 'offer').then(res => { let data = res.data - let offerinfo = data.offerinfo + // let offerinfo = data.offerinfo + let offerinfo = data.collegelist[0] + console.log("offerinfo", offerinfo); let useperformanceStr = "" offerinfo.useperformance && offerinfo.useperformance.forEach((el, index) => { useperformanceStr += el + (offerinfo.useperformance.length - 1 == index ? '' : '、') }) offerinfo['useperformanceStr'] = useperformanceStr - offerinfo['schoolname'] = offerinfo.school.name + // offerinfo['schoolname'] = offerinfo.school.name this.offerinfo = offerinfo - this.shareurl = data.shareurl + // this.shareurl = data.shareurl }) }, @@ -472,6 +474,17 @@ export default { }) }, + // 获取回复列表 + getPostList() { + this.$http.post("/api/thread/postList", { + token: this.token, + page: 1, + limit: 20 + }).then(res => { + console.log(res); + }) + }, + // 点击点赞 tapLike() {