diff --git a/css/style.css b/css/style.css index d484f9e..1d0d73d 100644 --- a/css/style.css +++ b/css/style.css @@ -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 { diff --git a/css/style.less b/css/style.less index 76bd5c2..6472553 100644 --- a/css/style.less +++ b/css/style.less @@ -159,7 +159,7 @@ border-bottom: 1px solid #f2f2f2; .icon { width: 36px; - height: 36px; + // height: 36px; margin-right: 12px; } .school { diff --git a/index.html b/index.html index f60bd19..b4200fa 100644 --- a/index.html +++ b/index.html @@ -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")