增加个判断
This commit is contained in:
parent
df74f025f5
commit
a3dcccb93d
@ -234,6 +234,11 @@
|
|||||||
.box .content.bj .offer-background-content .grade-content-item:not(:last-of-type) .grade-content-value {
|
.box .content.bj .offer-background-content .grade-content-item:not(:last-of-type) .grade-content-value {
|
||||||
border-right: 1px solid #ebebeb;
|
border-right: 1px solid #ebebeb;
|
||||||
}
|
}
|
||||||
|
.box .content.bj .offer-background-content .grade-content-item:last-of-type {
|
||||||
|
font-weight: 650;
|
||||||
|
font-size: 18px;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
.box .content.bj .offer-background-content.offer-background-content-text {
|
.box .content.bj .offer-background-content.offer-background-content-text {
|
||||||
padding: 24px 17px;
|
padding: 24px 17px;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
|
@ -264,6 +264,12 @@
|
|||||||
border-right: 1px solid #ebebeb;
|
border-right: 1px solid #ebebeb;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:last-of-type {
|
||||||
|
font-weight: 650;
|
||||||
|
font-size: 18px;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.offer-background-content-text {
|
&.offer-background-content-text {
|
||||||
|
29
index.html
29
index.html
@ -165,7 +165,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box" v-if="moodmessage && moodmessage.length != 0">
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<img class="index" crossorigin="anonymous" :src="base03" />
|
<img class="index" crossorigin="anonymous" :src="base03" />
|
||||||
@ -232,12 +232,18 @@
|
|||||||
<div class="key">学位</div>
|
<div class="key">学位</div>
|
||||||
<div class="value flexacenter" style="white-space: nowrap; flex-wrap: wrap;">
|
<div class="value flexacenter" style="white-space: nowrap; flex-wrap: wrap;">
|
||||||
{{ item.degree }}
|
{{ item.degree }}
|
||||||
|
<template v-if="item.semester">
|
||||||
<div class="vertical-line"></div>
|
<div class="vertical-line"></div>
|
||||||
{{ item.semester }}
|
{{ item.semester }}
|
||||||
|
</template>
|
||||||
|
<template v-if="item.noticedate">
|
||||||
<div class="vertical-line"></div>
|
<div class="vertical-line"></div>
|
||||||
{{ item.noticedate }}通知
|
{{ item.noticedate }}通知
|
||||||
|
</template>
|
||||||
|
<template v-if="item.apply_results">
|
||||||
<div class="vertical-line"></div>
|
<div class="vertical-line"></div>
|
||||||
<div v-if="item.apply_results" class="normal" :class="'results' + item.apply_results_status">{{ item.apply_results }}</div>
|
<div v-if="item.apply_results" class="normal" :class="'results' + item.apply_results_status">{{ item.apply_results }}</div>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="item.useperformance.length != 0" class="item flexacenter">
|
<div v-if="item.useperformance.length != 0" class="item flexacenter">
|
||||||
@ -254,7 +260,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box" v-if="info.content">
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<img class="index" crossorigin="anonymous" :src="base02" />
|
<img class="index" crossorigin="anonymous" :src="base02" />
|
||||||
@ -437,7 +443,6 @@
|
|||||||
this.offerinfo.school["base64"] = canvas.toDataURL("image/jpeg")
|
this.offerinfo.school["base64"] = canvas.toDataURL("image/jpeg")
|
||||||
} else {
|
} else {
|
||||||
const img = this.$refs["schoolimg" + index][0]
|
const img = this.$refs["schoolimg" + index][0]
|
||||||
// console.log("img", img)
|
|
||||||
const canvas = document.createElement("canvas")
|
const canvas = document.createElement("canvas")
|
||||||
canvas.width = img.naturalWidth
|
canvas.width = img.naturalWidth
|
||||||
canvas.height = img.naturalHeight
|
canvas.height = img.naturalHeight
|
||||||
@ -445,27 +450,9 @@
|
|||||||
const ctx = canvas.getContext("2d")
|
const ctx = canvas.getContext("2d")
|
||||||
ctx.drawImage(img, 0, 0)
|
ctx.drawImage(img, 0, 0)
|
||||||
|
|
||||||
// console.log("666", canvas.toDataURL("image/jpeg"))
|
|
||||||
|
|
||||||
this.offercollege[index]["base64"] = canvas.toDataURL("image/jpeg")
|
this.offercollege[index]["base64"] = canvas.toDataURL("image/jpeg")
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
}
|
}
|
||||||
|
|
||||||
// return
|
|
||||||
// fetch(url)
|
|
||||||
// .then(response => response.blob())
|
|
||||||
// .then(blob => {
|
|
||||||
// const reader = new FileReader()
|
|
||||||
// reader.onloadend = () => {
|
|
||||||
// if (type == "offer") {
|
|
||||||
// this.offerinfo.school["base64"] = reader.result
|
|
||||||
// } else {
|
|
||||||
// this.offercollege[index]["base64"] = reader.result
|
|
||||||
// this.$forceUpdate()
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// reader.readAsDataURL(blob)
|
|
||||||
// })
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 获取 offer 详情
|
// 获取 offer 详情
|
||||||
|
Loading…
Reference in New Issue
Block a user