From 69e7d5efd4cfb965672ab04fa49ae00319c14976 Mon Sep 17 00:00:00 2001 From: cheng.xu Date: Tue, 12 Nov 2019 16:29:00 +0800 Subject: [PATCH] 二维码组件修改 --- components/qr_code/qr_code.wxml | 4 ++-- components/qr_code/qr_code.wxss | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/components/qr_code/qr_code.wxml b/components/qr_code/qr_code.wxml index 216521c..b6da6b4 100644 --- a/components/qr_code/qr_code.wxml +++ b/components/qr_code/qr_code.wxml @@ -2,7 +2,7 @@ - + @@ -10,7 +10,7 @@ {{object.val}} - + {{object.content}} 有效时间:{{object.now}} 至 {{object.validay}} diff --git a/components/qr_code/qr_code.wxss b/components/qr_code/qr_code.wxss index e58dcd3..c4eb9e2 100644 --- a/components/qr_code/qr_code.wxss +++ b/components/qr_code/qr_code.wxss @@ -78,26 +78,24 @@ letter-spacing:6rpx; /* 二维码边框*/ .qrcode_rim { width: 550rpx; - height:520rpx; + height:544rpx; display:flex; flex-direction:column; - position: absolute; left: 74rpx; -top: 130rpx; - } .qrcode{ width:520rpx; height:520rpx; - margin-top:-20rpx + margin-top:-27rpx } .r-code{ font-size:28rpx; padding-left: 25rpx; +margin-top: -5.5rpx; } @@ -122,7 +120,8 @@ top: 130rpx; } -.mt{ margin-top: 70rpx} +.mt{ margin-top:130rpx} +.mts{ margin-top:70rpx} .flex{ display: flex; justify-content:center; -- libgit2 0.21.4