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

View File

@ -77,7 +77,7 @@
</template> </template>
</div> </div>
<a class="examine-btn flexcenter" :href="shareurl"> <a class="examine-btn flexcenter" :href="offerinfo.url">
查看当前捷报详情 查看当前捷报详情
<div class="examine-btn-outside flexcenter"> <div class="examine-btn-outside flexcenter">
<svg-icon icon-class="arrowsRoundBlackLeft" class-name="examine-btn-icon"></svg-icon> <svg-icon icon-class="arrowsRoundBlackLeft" class-name="examine-btn-icon"></svg-icon>
@ -376,32 +376,34 @@ export default {
this.type = data.type this.type = data.type
this.token = data.token this.token = data.token
if (this.type == 6) this.getOfferDetail() // if (this.type == 6) this.getOfferDetail()
else if (this.type == 5) this.getsummaryDetails() // else if (this.type == 5) this.getsummaryDetails()
else if (this.type == 3) this.getTenementDetails() // else if (this.type == 3) this.getTenementDetails()
this.getPostList()
}) })
}, },
// offer // offer
getOfferDetail() { getOfferDetail() {
this.$http.get("/api/forum/details", {
// https://offer.gter.net/api/forum/threadlist id: this.token
this.$http.get("/api/forum/threadlist", {
token: this.token
}, 'offer').then(res => { }, 'offer').then(res => {
let data = res.data let data = res.data
let offerinfo = data.offerinfo // let offerinfo = data.offerinfo
let offerinfo = data.collegelist[0]
console.log("offerinfo", offerinfo);
let useperformanceStr = "" let useperformanceStr = ""
offerinfo.useperformance && offerinfo.useperformance.forEach((el, index) => { offerinfo.useperformance && offerinfo.useperformance.forEach((el, index) => {
useperformanceStr += el + (offerinfo.useperformance.length - 1 == index ? '' : '、') useperformanceStr += el + (offerinfo.useperformance.length - 1 == index ? '' : '、')
}) })
offerinfo['useperformanceStr'] = useperformanceStr offerinfo['useperformanceStr'] = useperformanceStr
offerinfo['schoolname'] = offerinfo.school.name // offerinfo['schoolname'] = offerinfo.school.name
this.offerinfo = offerinfo 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() { tapLike() {