* 生命周期函数--监听页面显示 | * 生命周期函数--监听页面显示 | ||||
*/ | */ | ||||
onShow: function () { | onShow: function () { | ||||
// app.globalData.certificationState=4; | |||||
app.globalData.certificationState=4; | |||||
this.setData({maskid: app.globalData.certificationState}) | this.setData({maskid: app.globalData.certificationState}) | ||||
if(app.globalData.certificationState==1){ | if(app.globalData.certificationState==1){ | ||||
this.setData({titleContent:'尊敬的启辰车主您好'}) | this.setData({titleContent:'尊敬的启辰车主您好'}) |
<view class="showView"> | <view class="showView"> | ||||
<view class="content"> | <view class="content"> | ||||
<image class="bg" src="{{imgUrl+'/star/scout/bg.jpg'}}"></image> | <image class="bg" src="{{imgUrl+'/star/scout/bg.jpg'}}"></image> | ||||
<image class="reward" src="{{imgUrl+'/star/tu1.png'}}"></image> | |||||
<image class="reward" wx:if="{{maskid<4}}" src="{{imgUrl+'/star/scout/reward.png'}}"></image> | |||||
<image class="reward" wx:if="{{maskid>3}}" src="{{imgUrl+'/star/tu1.png'}}"></image> | |||||
<view class="btn" bindtap="getPoster">立即分享,赚取奖励</view> | <view class="btn" bindtap="getPoster">立即分享,赚取奖励</view> | ||||
<button class="btn2" wx:if="{{iconShow}}" open-type="getUserInfo" bindgetuserinfo="getUserWxMsg"></button> | <button class="btn2" wx:if="{{iconShow}}" open-type="getUserInfo" bindgetuserinfo="getUserWxMsg"></button> | ||||
</view> | </view> |
} | } | ||||
.reward{ | .reward{ | ||||
width: 602rpx; | width: 602rpx; | ||||
height: 446rpx; | |||||
height: 548rpx; | height: 548rpx; | ||||
margin: 43rpx auto 0 auto; | margin: 43rpx auto 0 auto; | ||||
} | } | ||||
color: #ffffff; | color: #ffffff; | ||||
border-radius: 15rpx; | border-radius: 15rpx; | ||||
background-color: #2a558d; | background-color: #2a558d; | ||||
margin: 120rpx auto 40rpx auto; | |||||
margin: 20rpx auto 40rpx auto; | |||||
} | } | ||||
.btn2{ | .btn2{ | ||||
text-align: center; | text-align: center; |