Ver código fonte

[首页弹出二维码的样式修改]

tags/广东版3.2.1
meo 6 anos atrás
pai
commit
3dca13216a
2 arquivos alterados com 17 adições e 4 exclusões
  1. +2
    -1
      pages/index/index.wxml
  2. +15
    -3
      pages/index/index.wxss

+ 2
- 1
pages/index/index.wxml Ver arquivo

@@ -28,6 +28,7 @@
<view class='showQrcode' bindtap='hideQrcode' wx:if="{{showQrcode}}">
<view class="canvas-box">
<canvas hidden="{{canvasHidden}}" style="height:500rpx;background:0 0 0 .6;margin:10rpx auto;" canvas-id="mycanvas2" />
<text class='memberIds'>会员号:{{memberId}}</text>
<!-- <text class='memberIds'>会员号:{{memberId}}</text> -->
<button class='button'>专享折扣</button>
</view>
</view>

+ 15
- 3
pages/index/index.wxss Ver arquivo

@@ -70,6 +70,7 @@ page {
width: 70rpx;
margin-right: 20rpx;
}

.showQrcode {
position: fixed;
top: 0;
@@ -79,6 +80,7 @@ page {
z-index: 1000;
background: rgba(0, 0, 0, 0.6);
}

.canvas-box {
position: fixed;
width: 500rpx;
@@ -90,10 +92,20 @@ page {
right: 0;
margin: auto;
background: #fff;
border-radius: 16rpx;
border-radius: 16rpx;
}
.showQrcode text{

.showQrcode text {
display: block;
text-align: center;
font-size: 28rpx;
}
}

.button {
width: 680rpx;
height: 91rpx;
background: rgba(255, 255, 255, 1);
border-radius: 10rpx;
font-size: 32rpx;
color: rgba(2, 192, 255, 1);
}

Carregando…
Cancelar
Salvar