a1300399510@qq.com 提交于 2023/04/04 -11:20:02
This commit is contained in:
parent
681703809e
commit
aa20120f7a
@ -24,7 +24,6 @@ const service = axios.create({
|
||||
service.interceptors.request.use(config => {
|
||||
//发请求前做的一些处理,数据转化,配置请求头,设置token,设置loading等,根据需求去添加
|
||||
//注意使用token的时候需要引入cookie方法或者用本地localStorage等方法,推荐js-cookie
|
||||
console.log(config, "config");
|
||||
// config['baseURL'] = "https://offer.gter.net"
|
||||
config['headers']['authorization'] = "qj2q1qk1on0curclipghjtv5ja1g9eq2"
|
||||
return config
|
||||
|
@ -21,7 +21,7 @@
|
||||
<!-- -->
|
||||
<div class="card flexcenter">
|
||||
<!-- 总结开始 -->
|
||||
<div class="card-item shadow">
|
||||
<div class="card-item shadow" v-if="type == 5">
|
||||
<div class="card-head flexacenter">
|
||||
<img class="card-head-icon"
|
||||
src="https://axure-file.lanhuapp.com/md516b251fb-9cfa-46fc-a9b6-2a41a7b4dc37__3ad73406ff4bc8b138dafc6dcbf1a635.svg" />
|
||||
@ -96,7 +96,7 @@
|
||||
<!-- 总结结束 -->
|
||||
|
||||
<!-- offer -->
|
||||
<div class="card-item shadow">
|
||||
<div class="card-item shadow" v-if="type == 6">
|
||||
<div class="card-head flexacenter">
|
||||
<img class="card-head-icon"
|
||||
src="https://axure-file.lanhuapp.com/md516b251fb-9cfa-46fc-a9b6-2a41a7b4dc37__3ad73406ff4bc8b138dafc6dcbf1a635.svg" />
|
||||
@ -109,10 +109,14 @@
|
||||
<div class="offer-content">
|
||||
<div class="offer-content-box">
|
||||
|
||||
<div class="offer-content-item flexacenter" v-for="item in 7" :key="item">
|
||||
<div class="offer-content-item flexacenter" v-for="(item, index) in offerinfoKey" :key="index">
|
||||
<div class="offer-content-key">{{ item.name }}</div>
|
||||
<div class="offer-content-value">{{ offerinfo[item.key] }}</div>
|
||||
</div>
|
||||
<!-- <div class="offer-content-item flexacenter" v-for="item in 7" :key="item">
|
||||
<div class="offer-content-key">申请专业</div>
|
||||
<div class="offer-content-value">韦仕敦大学</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<div class="examine-btn flexcenter">
|
||||
@ -278,8 +282,28 @@ export default {
|
||||
type: 0, // 定位帖 1 面经 2 租房帖 3 总结 5 捷报 6
|
||||
token: "",
|
||||
offerinfo: {}, // offer捷报详情
|
||||
|
||||
|
||||
offerinfoKey: [{
|
||||
key: "school.name",
|
||||
name: "申请学校"
|
||||
}, {
|
||||
key: "degree",
|
||||
name: "学位"
|
||||
}, {
|
||||
key: "professional",
|
||||
name: "专业"
|
||||
}, {
|
||||
key: "apply_results",
|
||||
name: "申请结果"
|
||||
}, {
|
||||
key: "semester",
|
||||
name: "入学学期"
|
||||
}, {
|
||||
key: "noticedate",
|
||||
name: "通知时间"
|
||||
}, {
|
||||
key: "useperformanceStr",
|
||||
name: "使用成绩"
|
||||
}]
|
||||
|
||||
|
||||
};
|
||||
@ -316,9 +340,23 @@ export default {
|
||||
this.$http.post("/api/details", {
|
||||
token: "aKpet3Y6LVE50g0a1TMJ9CO_fWeZORk7ZswsZAkMwwupQ2lbtcsjmX1np5mUmPKVla8FzCF8ZNJySac3tX-r8ULfxTS6S4Grt_SaX84Tov9BHHh9L568EHRR9CMIbYIOQI76V-jgTuur3qck0L4lAvgbcwSi5c9MUS5qI7zXYMklqBguz5n0Fgy794uePqhF_W9PwA0IQwGuLWIcvSZ8RqrhUM4cadRC4TgxN2Mx"
|
||||
}, 'offer').then(res => {
|
||||
console.log("res", res);
|
||||
let data = res.data
|
||||
this.offerinfo = data.offerinfo
|
||||
let offerinfo = data.offerinfo
|
||||
console.log("offerinfo", offerinfo);
|
||||
let useperformanceStr = ""
|
||||
// offerinfo['useperformanceStr'] = ""
|
||||
offerinfo.useperformance.forEach((el, index) => {
|
||||
console.log(el, index);
|
||||
})
|
||||
|
||||
// offerinfo['useperformanceStr'] = JSON.stringify(offerinfo.useperformance).replace(/\[|\]|,/g, function (matched) {
|
||||
// if (matched === '[' || matched === ']') return ''
|
||||
// else return '、';
|
||||
// });
|
||||
|
||||
console.log(offerinfo['useperformanceStr']);
|
||||
|
||||
this.offerinfo = offerinfo
|
||||
})
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user