no message

This commit is contained in:
A1300399510 2024-11-05 14:21:13 +08:00
parent 1698f63954
commit 39f2396c44
3 changed files with 8 additions and 4 deletions

View File

@ -144,7 +144,6 @@
} }
.box .content.offer-details .details-header .icon { .box .content.offer-details .details-header .icon {
width: 36px; width: 36px;
height: 36px;
margin-right: 12px; margin-right: 12px;
} }
.box .content.offer-details .details-header .school .name { .box .content.offer-details .details-header .school .name {

View File

@ -159,7 +159,7 @@
border-bottom: 1px solid #f2f2f2; border-bottom: 1px solid #f2f2f2;
.icon { .icon {
width: 36px; width: 36px;
height: 36px; // height: 36px;
margin-right: 12px; margin-right: 12px;
} }
.school { .school {

View File

@ -437,7 +437,7 @@
selectBase64: "", selectBase64: "",
}, },
mounted() { mounted() {
// axios.defaults.headers.common["Authorization"] = "3v900y3avdzkp1ljhuycvhq2ck7ah01y" axios.defaults.headers.common["Authorization"] = "ld9bk0gpdkqkydoyhdiqkvlm68cgxmjc"
this.base01 = base01 this.base01 = base01
this.base02 = base02 this.base02 = base02
@ -463,8 +463,10 @@
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
const ctx = canvas.getContext("2d") const ctx = canvas.getContext("2d")
// 设置背景色为透明或白色
ctx.fillStyle = "#ffffff" // 设置为白色
ctx.fillRect(0, 0, canvas.width, canvas.height)
ctx.drawImage(img, 0, 0) ctx.drawImage(img, 0, 0)
this.offerinfo.school["base64"] = canvas.toDataURL("image/jpeg") this.offerinfo.school["base64"] = canvas.toDataURL("image/jpeg")
@ -475,6 +477,9 @@
canvas.height = img.naturalHeight canvas.height = img.naturalHeight
const ctx = canvas.getContext("2d") const ctx = canvas.getContext("2d")
ctx.fillStyle = "#ffffff" // 设置为白色
ctx.fillRect(0, 0, canvas.width, canvas.height)
ctx.drawImage(img, 0, 0) ctx.drawImage(img, 0, 0)
this.offercollege[index]["base64"] = canvas.toDataURL("image/jpeg") this.offercollege[index]["base64"] = canvas.toDataURL("image/jpeg")