no message
This commit is contained in:
parent
1698f63954
commit
39f2396c44
@ -144,7 +144,6 @@
|
||||
}
|
||||
.box .content.offer-details .details-header .icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
margin-right: 12px;
|
||||
}
|
||||
.box .content.offer-details .details-header .school .name {
|
||||
|
@ -159,7 +159,7 @@
|
||||
border-bottom: 1px solid #f2f2f2;
|
||||
.icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
// height: 36px;
|
||||
margin-right: 12px;
|
||||
}
|
||||
.school {
|
||||
|
@ -437,7 +437,7 @@
|
||||
selectBase64: "",
|
||||
},
|
||||
mounted() {
|
||||
// axios.defaults.headers.common["Authorization"] = "3v900y3avdzkp1ljhuycvhq2ck7ah01y"
|
||||
axios.defaults.headers.common["Authorization"] = "ld9bk0gpdkqkydoyhdiqkvlm68cgxmjc"
|
||||
|
||||
this.base01 = base01
|
||||
this.base02 = base02
|
||||
@ -463,8 +463,10 @@
|
||||
const canvas = document.createElement("canvas")
|
||||
canvas.width = img.naturalWidth
|
||||
canvas.height = img.naturalHeight
|
||||
|
||||
const ctx = canvas.getContext("2d")
|
||||
// 设置背景色为透明或白色
|
||||
ctx.fillStyle = "#ffffff" // 设置为白色
|
||||
ctx.fillRect(0, 0, canvas.width, canvas.height)
|
||||
ctx.drawImage(img, 0, 0)
|
||||
|
||||
this.offerinfo.school["base64"] = canvas.toDataURL("image/jpeg")
|
||||
@ -475,6 +477,9 @@
|
||||
canvas.height = img.naturalHeight
|
||||
|
||||
const ctx = canvas.getContext("2d")
|
||||
ctx.fillStyle = "#ffffff" // 设置为白色
|
||||
ctx.fillRect(0, 0, canvas.width, canvas.height)
|
||||
|
||||
ctx.drawImage(img, 0, 0)
|
||||
|
||||
this.offercollege[index]["base64"] = canvas.toDataURL("image/jpeg")
|
||||
|
Loading…
Reference in New Issue
Block a user