},this) | },this) | ||||
}, | }, | ||||
getBuyState: function () {//查询是否已下订 | getBuyState: function () {//查询是否已下订 | ||||
this.wxRequest(this.globalData.urlRoot + "wxPay/v3/getLuckyTokenList", {source:2}, res => { | |||||
this.wxRequest(this.globalData.urlRoot + "wxPay/v3/getLuckyTokenList", {}, res => { | |||||
if (res.code == 200) { | if (res.code == 200) { | ||||
if (res.data) { | if (res.data) { | ||||
res.data.cdate = res.data.cdate ? res.data.cdate : ""; | res.data.cdate = res.data.cdate ? res.data.cdate : ""; |
} | } | ||||
}, | }, | ||||
startDraw(){//开始抽奖 | startDraw(){//开始抽奖 | ||||
// this.drawAniFun(5500,660); | |||||
// this.drawAniFun(3000,660); | |||||
// return; | // return; | ||||
if(!app.globalData.luckyTokenList.length){ | if(!app.globalData.luckyTokenList.length){ | ||||
wx.showToast({ | wx.showToast({ |
<image class="pageBg" src="{{imgUrl+'/newImages8/15.png'}}"></image> | <image class="pageBg" src="{{imgUrl+'/newImages8/15.png'}}"></image> | ||||
<view class="gameFrame"> | <view class="gameFrame"> | ||||
<view class="gameGroup"> | <view class="gameGroup"> | ||||
<image class="gameDial" animation="{{drawAni}}" src="{{imgUrl+'/newImages8/14.png'}}"></image> | |||||
<!-- <image class="gamePointer" bindtap="startDraw" src="{{imgUrl+'/newImages8/13.png'}}"></image> --> | |||||
<image class="gamePointer2" bindtap="startDraw" src="{{imgUrl+'/newImages8/13_2.png'}}"></image> | |||||
<image class="gameDial" animation="{{drawAni}}" src="{{imgUrl+'/newImages8/21.png'}}"></image> | |||||
<image class="gamePointer" bindtap="startDraw" src="{{imgUrl+'/newImages8/13.png'}}"></image> | |||||
<!-- <image class="gamePointer2" bindtap="startDraw" src="{{imgUrl+'/newImages8/13.png'}}"></image> --> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="recordFrame"> | <view class="recordFrame"> |
left: 50%; | left: 50%; | ||||
transform: translateX(-50%); | transform: translateX(-50%); | ||||
top:345rpx; | top:345rpx; | ||||
width:662rpx; | |||||
height:662rpx; | |||||
width:661rpx; | |||||
height:661rpx; | |||||
z-index: 9; | z-index: 9; | ||||
} | } | ||||
.gameGroup{ | .gameGroup{ | ||||
} | } | ||||
.gamePointer{ | .gamePointer{ | ||||
position: absolute; | position: absolute; | ||||
top: 200rpx; | |||||
top: 207rpx; | |||||
left: 50%; | left: 50%; | ||||
transform: translateX(-50%); | transform: translateX(-50%); | ||||
width: 119rpx; | width: 119rpx; | ||||
} | } | ||||
.gamePointer2{ | .gamePointer2{ | ||||
position: absolute; | position: absolute; | ||||
top: 270rpx; | |||||
left: 270rpx; | |||||
top: 207rpx; | |||||
left: 271rpx; | |||||
width: 119rpx; | width: 119rpx; | ||||
height: 120rpx; | height: 120rpx; | ||||
} | } |