查看当前捷报详情
@@ -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() {