@@ -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 {
@@ -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();