@@ -133,7 +133,12 @@ Page({ | |||||
} | } | ||||
}) | }) | ||||
}, | }, | ||||
mySpecial:function(){ | |||||
console.log("special"); | |||||
wx.navigateTo({ | |||||
url: '/pages/specialcourtesy/specialcourtesy', | |||||
}) | |||||
}, | |||||
/** | /** | ||||
* 生命周期函数--监听页面初次渲染完成 | * 生命周期函数--监听页面初次渲染完成 | ||||
*/ | */ | ||||
@@ -204,6 +209,9 @@ Page({ | |||||
} | } | ||||
}).then(res => { | }).then(res => { | ||||
console.log(res) | console.log(res) | ||||
that.setData({ | |||||
levelName: res.data.levelName | |||||
}) | |||||
if (res.data.nickName) { | if (res.data.nickName) { | ||||
that.setData({ | that.setData({ | ||||
ismember: true, | ismember: true, | ||||
@@ -27,8 +27,8 @@ | |||||
</view> | </view> | ||||
<view class='showQrcode' bindtap='hideQrcode' wx:if="{{showQrcode}}"> | <view class='showQrcode' bindtap='hideQrcode' wx:if="{{showQrcode}}"> | ||||
<view class="canvas-box"> | <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> --> | |||||
<button class='button'>专享折扣</button> | |||||
<text class='memberIds'>{{levelName}}</text> | |||||
<canvas hidden="{{canvasHidden}}" style="width:500rpx;height:460rpx;background:0 0 0 .6;margin:-10rpx auto;overflow:hidden" canvas-id="mycanvas2" /> | |||||
<button class='button' bindtap='mySpecial'>专享折扣</button> | |||||
</view> | </view> | ||||
</view> | </view> |
@@ -84,7 +84,7 @@ page { | |||||
.canvas-box { | .canvas-box { | ||||
position: fixed; | position: fixed; | ||||
width: 500rpx; | width: 500rpx; | ||||
height: 587rpx; | |||||
height: 671rpx; | |||||
overflow: hidden; | overflow: hidden; | ||||
left: 0; | left: 0; | ||||
top: 0; | top: 0; | ||||
@@ -93,6 +93,7 @@ page { | |||||
margin: auto; | margin: auto; | ||||
background: #fff; | background: #fff; | ||||
border-radius: 16rpx; | border-radius: 16rpx; | ||||
z-index:100; | |||||
} | } | ||||
.showQrcode text { | .showQrcode text { | ||||
@@ -102,10 +103,19 @@ page { | |||||
} | } | ||||
.button { | .button { | ||||
width: 680rpx; | |||||
height: 91rpx; | |||||
width: 414rpx; | |||||
text-align: center; | |||||
margin: 0 auto; | |||||
height: 80rpx; | |||||
line-height: 80rpx; | |||||
background: rgba(255, 255, 255, 1); | background: rgba(255, 255, 255, 1); | ||||
border-radius: 10rpx; | border-radius: 10rpx; | ||||
font-size: 32rpx; | font-size: 32rpx; | ||||
color: rgba(2, 192, 255, 1); | color: rgba(2, 192, 255, 1); | ||||
overflow: hidden; | |||||
margin-top: 38rpx; | |||||
} | } | ||||
.memberIds{ | |||||
padding-top: 30rpx; | |||||
font-size: 30rpx; | |||||
} |