详情页加求定位
This commit is contained in:
parent
deffec9e26
commit
25e15aa336
1
dist/css/453.2765a3ca.css
vendored
Normal file
1
dist/css/453.2765a3ca.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/css/888.d39a7b72.css
vendored
1
dist/css/888.d39a7b72.css
vendored
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
File diff suppressed because one or more lines are too long
1
dist/js/470.d50c6eb8.js
vendored
Normal file
1
dist/js/470.d50c6eb8.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/621.cb507707.js
vendored
1
dist/js/621.cb507707.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/888.e02ab548.js
vendored
1
dist/js/888.e02ab548.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/928.ad9d345c.js
vendored
1
dist/js/928.ad9d345c.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -121,6 +121,27 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template v-else-if="type == 1">
|
||||
<div class="offer-content">
|
||||
<div class="offer-content-box">
|
||||
<div style="margin-bottom: 0.56rem;">
|
||||
<div class="location-title">个人信息</div>
|
||||
<div class="offer-content-item flexacenter" v-for="(item, index) in locationInfoData" :key="index">
|
||||
<div class="offer-content-key">{{ item.name }}</div>
|
||||
<div class="offer-content-value">{{ item.value }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="location-title">申请信息</div>
|
||||
<div class="offer-content-item flexacenter" v-for="(item, index) in locationThreadData" :key="index">
|
||||
<div class="offer-content-key">{{ item.name }}</div>
|
||||
<div class="offer-content-value">{{ item.value }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template v-else>
|
||||
<div class="offer-content">
|
||||
<div style="line-height: normal;" ref="vHtmlMessage" class="vHtmlMessage"></div>
|
||||
@ -383,6 +404,129 @@ export default {
|
||||
},
|
||||
|
||||
isloginBtnState: false,
|
||||
|
||||
locationInfoKey: [
|
||||
{
|
||||
key: "profession",
|
||||
name: "目前专业",
|
||||
},
|
||||
{
|
||||
key: "estate",
|
||||
name: "目前状态",
|
||||
},
|
||||
{
|
||||
key: "undergraduate_school",
|
||||
name: "本科学校",
|
||||
},
|
||||
{
|
||||
key: "gpa_score",
|
||||
name: "GPA",
|
||||
},
|
||||
{
|
||||
key: "gpa_ranking",
|
||||
name: "排名",
|
||||
},
|
||||
{
|
||||
key: "master_school",
|
||||
name: "硕士学校",
|
||||
},
|
||||
{
|
||||
key: "master_achievement",
|
||||
name: "成绩",
|
||||
},
|
||||
{
|
||||
key: "gre_total",
|
||||
name: "GRE",
|
||||
},
|
||||
{
|
||||
key: "ielts_total",
|
||||
name: "IELTS",
|
||||
},
|
||||
{
|
||||
key: "toefl_total",
|
||||
name: "TOEFL",
|
||||
},
|
||||
],
|
||||
|
||||
locationThreadKey: [
|
||||
{
|
||||
key: "profession",
|
||||
name: "申请专业",
|
||||
},
|
||||
{
|
||||
key: "profession_cid",
|
||||
name: "专业分类",
|
||||
},
|
||||
{
|
||||
key: "apply_master",
|
||||
name: "学位",
|
||||
},
|
||||
{
|
||||
key: "country",
|
||||
name: "国家或地区",
|
||||
},
|
||||
{
|
||||
key: "experience",
|
||||
name: "科研经验",
|
||||
},
|
||||
{
|
||||
key: "scholarship",
|
||||
name: "是否要奖学金",
|
||||
},
|
||||
{
|
||||
key: "lsat",
|
||||
name: "LSAT",
|
||||
},
|
||||
{
|
||||
key: "sex",
|
||||
name: "性别",
|
||||
},
|
||||
{
|
||||
key: "paper",
|
||||
name: "论文发表",
|
||||
},
|
||||
{
|
||||
key: "recommendation",
|
||||
name: "推荐信",
|
||||
},
|
||||
{
|
||||
key: "hope",
|
||||
name: "定位期望",
|
||||
},
|
||||
],
|
||||
|
||||
locationInfoData: [], // 定位的数据
|
||||
locationThreadData: [], // 定位的数据
|
||||
|
||||
estate: {
|
||||
// 定位 的 目前状态 键值对
|
||||
1: "本科生",
|
||||
2: "硕士生",
|
||||
3: "毕业工作",
|
||||
4: "其它",
|
||||
},
|
||||
|
||||
experience: {
|
||||
// 定位 的 科研经验 键值对
|
||||
0: 0,
|
||||
1: "1年",
|
||||
2: "2年",
|
||||
3: "3-5年",
|
||||
5: "5-10年",
|
||||
},
|
||||
|
||||
profession_cid: {
|
||||
1: "理工科",
|
||||
2: "法律",
|
||||
3: "商科",
|
||||
4: "非法律其他文科",
|
||||
5: "艺术",
|
||||
6: "其它",
|
||||
7: "建筑与设计",
|
||||
8: "人文",
|
||||
9: "CS/EE",
|
||||
10: "生农医药",
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
@ -425,6 +569,8 @@ export default {
|
||||
let data = res.data
|
||||
let info = data.info
|
||||
|
||||
console.log(data.type)
|
||||
|
||||
info["message"] = info["message"].trim()
|
||||
|
||||
const reg = new RegExp("\r\n", "g")
|
||||
@ -573,6 +719,7 @@ export default {
|
||||
else if (this.type == 5) this.getsummaryDetails()
|
||||
else if (this.type == 3) this.getTenementDetails()
|
||||
else if (this.type == 2) this.getInterviewDetails()
|
||||
else if (this.type == 1) this.getLocationDetails()
|
||||
|
||||
info["replies"] != 0 ? this.getPostList() : ""
|
||||
// this.getPostList()
|
||||
@ -898,7 +1045,7 @@ export default {
|
||||
},
|
||||
|
||||
setValue(key, value) {
|
||||
console.log("key", key, value)
|
||||
// console.log("key", key, value)
|
||||
this[key] = value
|
||||
},
|
||||
|
||||
@ -935,6 +1082,89 @@ export default {
|
||||
this.alert.state = false
|
||||
}, 1500)
|
||||
},
|
||||
|
||||
// 获取定位 数据
|
||||
getLocationDetails() {
|
||||
this.$http.post("/api/position/thread", { token: this.token }).then(res => {
|
||||
if (res.code != 200) return
|
||||
|
||||
const data = res.data
|
||||
|
||||
// console.log("data", data)
|
||||
const estate = this.estate
|
||||
const experience = this.experience
|
||||
const profession_cid = this.profession_cid
|
||||
const infokey = this.locationInfoKey || []
|
||||
const threadkey = this.locationThreadKey || []
|
||||
const info = data.info
|
||||
const thread = data.thread
|
||||
let obj = []
|
||||
infokey.forEach(element => {
|
||||
const key = element.key
|
||||
if (info[key]) {
|
||||
let value = ""
|
||||
if (key == "estate") {
|
||||
value = estate[info[key]]
|
||||
} else if (key == "gre_total") {
|
||||
value = `总分: ${info.gre_total} V: ${info.gre_v} Q: ${info.gre_q} AW: ${info.gre_aw}`
|
||||
} else if (key == "ielts_total") {
|
||||
value = `总分: ${info.ielts_total} R: ${info.ielts_r} L: ${info.ielts_l} S: ${info.ielts_s} W: ${info.ielts_w}`
|
||||
} else if (key == "toefl_total") {
|
||||
value = `总分: ${info.toefl_total} R: ${info.toefl_r} L: ${info.toefl_l} S: ${info.toefl_s} W: ${info.toefl_w}`
|
||||
} else {
|
||||
value = info[key]
|
||||
}
|
||||
obj.push({
|
||||
name: element.name,
|
||||
value,
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
this.locationInfoData = obj
|
||||
|
||||
let obj1 = []
|
||||
threadkey.forEach(element => {
|
||||
const key = element.key
|
||||
if (thread[key]) {
|
||||
let value = ""
|
||||
|
||||
if (key == "profession_cid") {
|
||||
value = profession_cid[thread[key]]
|
||||
if (thread.apply_llm) value += " LL.M"
|
||||
if (thread.apply_jd) value += " J.D"
|
||||
} else if (key == "country") {
|
||||
thread.country.forEach(element => {
|
||||
value += element.name + "、"
|
||||
})
|
||||
} else if (key == "scholarship") {
|
||||
value = "是"
|
||||
} else if (key == "sex") {
|
||||
if (thread.profession_cid == 2) value = thread[key] == 1 ? "男" : "女"
|
||||
else value = null
|
||||
} else if (key == "lsat") {
|
||||
if (thread.profession_cid == 2) value = thread['lsat']
|
||||
else value = null
|
||||
} else if (key == "experience") {
|
||||
value = experience[thread[key]]
|
||||
} else {
|
||||
value = thread[key]
|
||||
}
|
||||
|
||||
if (value != null) {
|
||||
obj1.push({
|
||||
name: element.name,
|
||||
value,
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
// console.log("obj1",obj1);
|
||||
|
||||
this.locationThreadData = obj1
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
components: {
|
||||
@ -1280,6 +1510,16 @@ export default {
|
||||
}
|
||||
|
||||
.offer-content-box {
|
||||
.location-title {
|
||||
height: 0.9333rem;
|
||||
background: rgba(246, 246, 246, 1);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-weight: 650;
|
||||
border-radius: 0.6667rem;
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
.offer-content-item {
|
||||
line-height: 0.6rem;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user