This commit is contained in:
小鱼开发
2024-08-23 13:53:55 +08:00
parent ea82d284e8
commit 549cd26742
+3 -3
View File
@@ -9,7 +9,7 @@
<div class="swiper-slide bg-size-cover" v-for="item in list">
<div class="relative">
<img class="wp100 block" style="pointer-events:none;" :src="item.img"/>
<div class="absolute left-0 right-0 bottom-0 mb30 text-center font-24"
<div class="absolute left-0 right-0 bottom-0 mb5 text-center font-20"
:style="'color:'+fillStyle">{{posterTip}}
</div>
<img class="absolute right-0 bottom-0 mr40 mb80 imgsize-160X160"
@@ -141,8 +141,8 @@
codeimg.onload = function () {
ctx.fillStyle = that.fillStyle;
ctx.textAlign = "center";
ctx.font = "24px Georgia";
ctx.fillText(that.posterTip, that.canW / 2, that.canH - 34,);
ctx.font = "20px Georgia";
ctx.fillText(that.posterTip, that.canW / 2, that.canH - 5,);
ctx.drawImage(codeimg, that.canW - 200, that.canH - 240, 160, 160)
setTimeout(function () {
that.posterSrc = canvas.toDataURL("image/jpg")