*/ | */ | ||||
data: { | data: { | ||||
imgUrl: app.globalData.urlStatic,//图片路径 | imgUrl: app.globalData.urlStatic,//图片路径 | ||||
ruleShow: true,//是否显示游戏玩法 | |||||
ruleShow: false,//是否显示游戏玩法 | |||||
ruleCloseShow: false,//是否显示游戏玩法关闭按钮 | ruleCloseShow: false,//是否显示游戏玩法关闭按钮 | ||||
clawTop:95,//爪子的top值 | clawTop:95,//爪子的top值 | ||||
clawLeft: 293,//爪子的left值 | clawLeft: 293,//爪子的left值 | ||||
this.setData({ | this.setData({ | ||||
scrollNum: this.data.scrollNum+=1 | scrollNum: this.data.scrollNum+=1 | ||||
}) | }) | ||||
},50); | |||||
},30); | |||||
}, | }, | ||||
getMore:function(){ | getMore:function(){ | ||||
if (!this.data.isMore){ | if (!this.data.isMore){ |
<view class="recordGroup" wx:for="{{recordList}}" wx:key="index"> | <view class="recordGroup" wx:for="{{recordList}}" wx:key="index"> | ||||
<view class="recordGroupLeft"> | <view class="recordGroupLeft"> | ||||
<view class="recordHeadGroup"> | <view class="recordHeadGroup"> | ||||
<image class="recordUserImg" src="{{userData.avatarUrl&&recordNow!=1?userData.avatarUrl:imgUrl+'/images/defaultHead.png'}}"></image> | |||||
<image class="recordUserImg" src="{{userData.avatarUrl?userData.avatarUrl:imgUrl+'/images/defaultHead.png'}}"></image> | |||||
</view> | </view> | ||||
<view class="recordMainGroup" style="width:230rpx;"> | <view class="recordMainGroup" style="width:230rpx;"> | ||||
<view class="rewardName">{{item.awardName}}</view> | <view class="rewardName">{{item.awardName}}</view> |
posterBg:[],//海报背景 | posterBg:[],//海报背景 | ||||
qrCodeUrl:"https://www.jiyou-tech.com/2020/496_qichen/static/images/testQrCode.png",//二维码图片 | qrCodeUrl:"https://www.jiyou-tech.com/2020/496_qichen/static/images/testQrCode.png",//二维码图片 | ||||
userHead: app.globalData.userInfoData ? app.globalData.userInfoData.avatarUrl : null,//用户头像 | userHead: app.globalData.userInfoData ? app.globalData.userInfoData.avatarUrl : null,//用户头像 | ||||
rankNum: '8908',//缓存数字 | |||||
rankNum: '0000',//缓存数字 | |||||
windowScale:0,//屏幕缩放比 | windowScale:0,//屏幕缩放比 | ||||
windowW: 0,//屏幕宽度 | windowW: 0,//屏幕宽度 | ||||
windowH: 0,//屏幕高度 | windowH: 0,//屏幕高度 | ||||
countNum += 1; | countNum += 1; | ||||
} | } | ||||
}) | }) | ||||
this.data.rankNum = this.data.rankNum.toString().split(""); | |||||
for (let i = 0; i < this.data.rankNum.length; i++) { | for (let i = 0; i < this.data.rankNum.length; i++) { | ||||
wx.getImageInfo({//缓存数字 | wx.getImageInfo({//缓存数字 | ||||
src: this.data.imgUrl + '/images/nums/' + this.data.rankNum[i] + '.png', | src: this.data.imgUrl + '/images/nums/' + this.data.rankNum[i] + '.png', | ||||
app.wxRequest(app.globalData.urlRoot +"userInfo/getCertificationCount",{},res=>{ | app.wxRequest(app.globalData.urlRoot +"userInfo/getCertificationCount",{},res=>{ | ||||
this.createQrcode(); | this.createQrcode(); | ||||
if(res.code==200){ | if(res.code==200){ | ||||
this.data.rankNum = res.data.total; | |||||
this.data.rankNum = res.data.total.toString().split(""); | |||||
this.setData({ | |||||
rankNum: this.data.rankNum | |||||
}) | |||||
} | } | ||||
},this) | },this) | ||||
}, | }, |
<view class="imgGroup"> | <view class="imgGroup"> | ||||
<image style="width:100%;height:100%;" src="{{imgUrl+'/images/tempImg'+(index+1)+'.jpg'}}"></image> | <image style="width:100%;height:100%;" src="{{imgUrl+'/images/tempImg'+(index+1)+'.jpg'}}"></image> | ||||
<view class="userMsg"> | <view class="userMsg"> | ||||
<!-- <image class="userHead" src="{{userHead}}"></image> --> | |||||
<image class="userHead" src="{{imgUrl+'/images/posterChoose.png'}}"></image> | |||||
<image class="userHead" src="{{userHead}}"></image> | |||||
<!-- <image class="userHead" src="{{imgUrl+'/images/posterChoose.png'}}"></image> --> | |||||
<view class="userNickName">{{userInfoData.nickName}}</view> | <view class="userNickName">{{userInfoData.nickName}}</view> | ||||
</view> | </view> | ||||
<view class="userNumber"> | <view class="userNumber"> |