@@ -448,6 +448,14 @@ Page({ | |||
query.select('.tipContent').boundingClientRect(); | |||
var duration = 0;//动画时常 | |||
query.exec((option) => { | |||
if(!option){ | |||
console.log("没有拿到节点信息"); | |||
setTimeout(()=>{ | |||
this.getGameAwardList(); | |||
},3000); | |||
return; | |||
} | |||
console.log(option[1].width); | |||
duration = option[1].width < option[0].width ? 10 : option[1].width / option[0].width * 10; | |||
this.aniFun(duration * 1000, -option[1].width); | |||
if (res.data.length >= this.data.configure.count) { |
@@ -27,6 +27,7 @@ Page({ | |||
isbtn:true,//防重复点击 | |||
vCodeImg:null, | |||
agreement:false, | |||
auditDefeated:false, | |||
}, | |||
/** | |||
* 切换车主非车主 | |||
@@ -367,7 +368,7 @@ Page({ | |||
if(res.data.adminState==1){//审核通过 | |||
// this.setData({maskShow:true}) | |||
wx.navigateTo({url: '/pages/scout/scout'}) | |||
}else if(res.data.adminState==0 || res.data.adminState==-1){//审核中&审核失败 | |||
}else if(res.data.adminState==0){//审核中 | |||
if(res.data.adminState==0){ | |||
this.setData({maskShow:true}) | |||
} | |||
@@ -399,11 +400,17 @@ Page({ | |||
photoList:res.data.picArr, | |||
getphone:res.data.mobile, | |||
}) | |||
}else if(res.data.adminState==-1){//审核失败 | |||
this.auditDefeatedControl(); | |||
} | |||
} | |||
}, this); | |||
}, | |||
auditDefeatedControl:function(){ | |||
this.setData({ | |||
auditDefeated:!this.data.auditDefeated | |||
}) | |||
}, | |||
/** | |||
* 生命周期函数--监听页面隐藏 | |||
*/ |
@@ -75,11 +75,18 @@ | |||
</view> | |||
<view class="mask" wx:if="{{maskShow}}"> | |||
<view class="ruleContent"> | |||
<image class="rule" src="{{imgUrl+'/star/scout/register/getok.png'}}" >></image> | |||
<image class="rule" src="{{imgUrl+'/star/scout/register/getok.png'}}" ></image> | |||
<view class="returnbtn" bindtap="hiddenRule"></view> | |||
<image class="closeBtn" src="{{imgUrl+'/star/closebtn.png'}}" bindtap="hiddenRule"></image> | |||
</view> | |||
</view> | |||
<view class="mask" wx:if="{{auditDefeated}}"> | |||
<view class="auditDefeated"> | |||
<image class="auditDefeatedBg" src="{{imgUrl+'/newImages5/84.png?v=002'}}" ></image> | |||
<image class="auditDefeatedBtn" bindtap="auditDefeatedControl" src="{{imgUrl+'/newImages5/85.png'}}" ></image> | |||
<image class="auditDefeatedcloseBtn" src="{{imgUrl+'/star/closebtn.png'}}" bindtap="auditDefeatedControl"></image> | |||
</view> | |||
</view> | |||
<agreement bindmyevent="agreementControl" wx:if="{{agreement}}"></agreement> | |||
</view> | |||
<tabBar></tabBar> |
@@ -311,4 +311,28 @@ image.arrowDown{ | |||
width: 29rpx; | |||
height: 28rpx; | |||
margin-right: 17rpx; | |||
} | |||
.auditDefeated{ | |||
position: relative; | |||
width: 549rpx; | |||
height: 393rpx; | |||
} | |||
.auditDefeatedBg{ | |||
width: 100%; | |||
height: 100%; | |||
} | |||
.auditDefeatedBtn{ | |||
position: absolute; | |||
left: 50%; | |||
transform: translateX(-50%); | |||
bottom: 60rpx; | |||
width: 231rpx; | |||
height: 50rpx; | |||
} | |||
.auditDefeatedcloseBtn{ | |||
position: absolute; | |||
right: -17rpx; | |||
top: -17rpx; | |||
width: 37rpx; | |||
height: 37rpx; | |||
} |