Browse Source

二维码大小调整

xhj 2 năm trước cách đây
mục cha
commit
bdedd78ebe
2 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 4 2
      card/poster/poster.css
  2. 1 1
      card/poster/poster.vue

+ 4 - 2
card/poster/poster.css

@@ -88,12 +88,14 @@ page{
 	margin: 0rpx auto 0;
 	z-index: 1;
 	position: relative;
+	overflow: hidden;
 }
 
 .code image {
-	width: 100%;
-	height: 100%;
+	width: 280rpx;
+	height: 280rpx;
 	border-radius: 16rpx;
+	margin: 30rpx;
 }
 
 .infos {

+ 1 - 1
card/poster/poster.vue

@@ -204,7 +204,7 @@ export default {
 					
 				// 小程序码
 				this.roundRect(ctx,(width - 340) / 2, 340,340, 340,16)
-				ctx.drawImage(code.path, (width - 340) / 2, 340, 340, 340);
+				ctx.drawImage(code.path, (width - 340) / 2+30, 340+30, 290, 290);
 				ctx.restore()
 				ctx.save();