a1300399510@qq.com 提交于 2023/04/04 -12:40:02
This commit is contained in:
parent
927901b810
commit
ee5a2cd2ea
@ -108,10 +108,9 @@ const http = {
|
||||
method: 'get',
|
||||
url,
|
||||
baseURL: baseURL[baseURLName],
|
||||
|
||||
}
|
||||
if (params) config.params = params
|
||||
config.ispop = ispop
|
||||
config['ispop'] = ispop
|
||||
return service(config)
|
||||
},
|
||||
post(url, params, baseURLName, ispop = true) {
|
||||
@ -119,10 +118,9 @@ const http = {
|
||||
method: 'post',
|
||||
url: url,
|
||||
baseURL: baseURL[baseURLName],
|
||||
|
||||
}
|
||||
if (params) config.data = params
|
||||
config.ispop = ispop
|
||||
config['ispop'] = ispop
|
||||
return service(config)
|
||||
},
|
||||
}
|
||||
|
@ -284,7 +284,7 @@ export default {
|
||||
token: "",
|
||||
offerinfo: {}, // offer捷报详情
|
||||
offerinfoKey: [{
|
||||
key: "schoolName",
|
||||
key: "schoolname",
|
||||
name: "申请学校"
|
||||
}, {
|
||||
key: "degree",
|
||||
@ -355,7 +355,7 @@ export default {
|
||||
})
|
||||
|
||||
offerinfo['useperformanceStr'] = useperformanceStr
|
||||
offerinfo['schoolName'] = offerinfo.school.name
|
||||
offerinfo['schoolname'] = offerinfo.school.name
|
||||
|
||||
this.offerinfo = offerinfo
|
||||
this.shareurl = data.shareurl
|
||||
@ -364,13 +364,34 @@ export default {
|
||||
|
||||
// 获取总结详情
|
||||
getsummaryDetails() {
|
||||
this.$http.get(`/api/forum/details?id=${this.token}`, 'offer').then(res => {
|
||||
this.$http.get(`/api/forum/details`, {
|
||||
id: this.token
|
||||
}, 'offer').then(res => {
|
||||
let data = res.data
|
||||
console.log("data", data);
|
||||
// console.log("data", data);
|
||||
let collegelist = data.collegelist
|
||||
console.log(collegelist);
|
||||
|
||||
// console.log("offercollege", offercollege);
|
||||
this.info = { ...this.info, ...data.info }
|
||||
|
||||
collegelist.forEach((el, index) => {
|
||||
let useperformanceStr = ""
|
||||
el.useperformance && el.useperformance.forEach((el, index) => {
|
||||
console.log(el);
|
||||
// useperformanceStr += el + (el.useperformance.length - 1 == index ? '' : '、')
|
||||
})
|
||||
el['useperformanceStr'] = useperformanceStr
|
||||
|
||||
})
|
||||
|
||||
// let useperformanceStr = ""
|
||||
// offerinfo.useperformance && offerinfo.useperformance.forEach((el, index) => {
|
||||
// useperformanceStr += el + (offerinfo.useperformance.length - 1 == index ? '' : '、')
|
||||
// })
|
||||
|
||||
// offerinfo['useperformanceStr'] = useperformanceStr
|
||||
console.log(collegelist);
|
||||
|
||||
this.collegelist = collegelist
|
||||
this.shareurl = data.shareurl
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user