-
+
+
{{ item.name }}
+
{{ offerinfo[item.key] }}
+
+
@@ -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
})
},