| query.select('.tipContent').boundingClientRect(); | query.select('.tipContent').boundingClientRect(); | ||||
| var duration = 0;//动画时常 | var duration = 0;//动画时常 | ||||
| query.exec((option) => { | 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; | duration = option[1].width < option[0].width ? 10 : option[1].width / option[0].width * 10; | ||||
| this.aniFun(duration * 1000, -option[1].width); | this.aniFun(duration * 1000, -option[1].width); | ||||
| if (res.data.length >= this.data.configure.count) { | if (res.data.length >= this.data.configure.count) { |
| isbtn:true,//防重复点击 | isbtn:true,//防重复点击 | ||||
| vCodeImg:null, | vCodeImg:null, | ||||
| agreement:false, | agreement:false, | ||||
| auditDefeated:false, | |||||
| }, | }, | ||||
| /** | /** | ||||
| * 切换车主非车主 | * 切换车主非车主 | ||||
| if(res.data.adminState==1){//审核通过 | if(res.data.adminState==1){//审核通过 | ||||
| // this.setData({maskShow:true}) | // this.setData({maskShow:true}) | ||||
| wx.navigateTo({url: '/pages/scout/scout'}) | 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){ | if(res.data.adminState==0){ | ||||
| this.setData({maskShow:true}) | this.setData({maskShow:true}) | ||||
| } | } | ||||
| photoList:res.data.picArr, | photoList:res.data.picArr, | ||||
| getphone:res.data.mobile, | getphone:res.data.mobile, | ||||
| }) | }) | ||||
| }else if(res.data.adminState==-1){//审核失败 | |||||
| this.auditDefeatedControl(); | |||||
| } | } | ||||
| } | } | ||||
| }, this); | }, this); | ||||
| }, | }, | ||||
| auditDefeatedControl:function(){ | |||||
| this.setData({ | |||||
| auditDefeated:!this.data.auditDefeated | |||||
| }) | |||||
| }, | |||||
| /** | /** | ||||
| * 生命周期函数--监听页面隐藏 | * 生命周期函数--监听页面隐藏 | ||||
| */ | */ |
| </view> | </view> | ||||
| <view class="mask" wx:if="{{maskShow}}"> | <view class="mask" wx:if="{{maskShow}}"> | ||||
| <view class="ruleContent"> | <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> | <view class="returnbtn" bindtap="hiddenRule"></view> | ||||
| <image class="closeBtn" src="{{imgUrl+'/star/closebtn.png'}}" bindtap="hiddenRule"></image> | <image class="closeBtn" src="{{imgUrl+'/star/closebtn.png'}}" bindtap="hiddenRule"></image> | ||||
| </view> | </view> | ||||
| </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> | <agreement bindmyevent="agreementControl" wx:if="{{agreement}}"></agreement> | ||||
| </view> | </view> | ||||
| <tabBar></tabBar> | <tabBar></tabBar> |
| width: 29rpx; | width: 29rpx; | ||||
| height: 28rpx; | height: 28rpx; | ||||
| margin-right: 17rpx; | 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; | |||||
| } | } |