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

This commit is contained in:
2023-04-04 12:00:10 +08:00
parent a0cfdaa4a3
commit 8dc77f9181
3 changed files with 37 additions and 13 deletions

View File

@@ -101,7 +101,7 @@
<img class="card-head-icon" :src="info.avatar" />
<div class="card-head-content flex1 flexflex">
<div class="card-head-name flexflex">{{ info.author }}</div>
<div class="card-head-time">2022-7-6 14:56</div>
<div class="card-head-time">{{ $formattedDate(info.dateline) }}</div>
</div>
<div class="card-head-fool">楼主</div>
</div>
@@ -120,7 +120,7 @@
</div> -->
</div>
<a class="examine-btn flexcenter" target="_blank" :href="shareurl">
<a class="examine-btn flexcenter" :href="shareurl">
查看当前捷报详情
<div class="examine-btn-outside flexcenter">
<svg-icon icon-class="arrowsRoundBlackLeft" class-name="examine-btn-icon"></svg-icon>
@@ -334,16 +334,16 @@ export default {
this.type = data.type
this.token = data.token
if (this.type == 6) {
this.getOfferDetail()
}
if (this.type == 6) this.getOfferDetail()
else if (this.type == 5) this.getsummaryDetails()
})
},
// 获取offer详情
getOfferDetail() {
this.$http.post("/api/details", {
token: "aKpet3Y6LVE50g0a1TMJ9CO_fWeZORk7ZswsZAkMwwupQ2lbtcsjmX1np5mUmPKVla8FzCF8ZNJySac3tX-r8ULfxTS6S4Grt_SaX84Tov9BHHh9L568EHRR9CMIbYIOQI76V-jgTuur3qck0L4lAvgbcwSi5c9MUS5qI7zXYMklqBguz5n0Fgy794uePqhF_W9PwA0IQwGuLWIcvSZ8RqrhUM4cadRC4TgxN2Mx"
token: this.token
}, 'offer').then(res => {
let data = res.data
let offerinfo = data.offerinfo
@@ -358,12 +358,26 @@ export default {
offerinfo['schoolName'] = offerinfo.school.name
this.offerinfo = offerinfo
this.shareurl = data.shareurl
})
},
// 获取总结详情
getsummaryDetails() {
this.$http.post("/api/details/summary", {
token: this.token
}, 'offer').then(res => {
let data = res.data
let offercollege = data.offercollege
console.log("offercollege", offercollege);
this.shareurl = data.shareurl
})
},
// 点击点赞
tapLike() {