a1300399510@qq.com 提交于 2023/04/06 -11:00:01

This commit is contained in:
XiaoMo 2023-04-06 11:00:11 +08:00
parent 760c0df385
commit 2ee5112f90

@ -77,7 +77,7 @@
</template>
</div>
<a class="examine-btn flexcenter" :href="shareurl">
<a class="examine-btn flexcenter" :href="offerinfo.url">
查看当前捷报详情
<div class="examine-btn-outside flexcenter">
<svg-icon icon-class="arrowsRoundBlackLeft" class-name="examine-btn-icon"></svg-icon>
@ -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() {