| vipDetailShow:false, | vipDetailShow:false, | ||||
| lookPrizeDetail:false, | lookPrizeDetail:false, | ||||
| lookIndex:null, | lookIndex:null, | ||||
| buyStateCouponCode:"", | |||||
| testData:[ | testData:[ | ||||
| { | { | ||||
| awardDetailPicContentHeight:0, | awardDetailPicContentHeight:0, | ||||
| getBuyStates: function () { | getBuyStates: function () { | ||||
| this.setData({ | this.setData({ | ||||
| buyState: app.globalData.getBuyState.success, | buyState: app.globalData.getBuyState.success, | ||||
| buyStateTime: app.globalData.getBuyState.cdate | |||||
| buyStateTime: app.globalData.getBuyState.cdate, | |||||
| buyStateCouponCode: app.globalData.getBuyState.coupon_code | |||||
| }) | }) | ||||
| }, | }, | ||||
| /** | /** | ||||
| if (app.globalData.getBuyState.success != this.data.buyState) { | if (app.globalData.getBuyState.success != this.data.buyState) { | ||||
| this.setData({ | this.setData({ | ||||
| buyState: app.globalData.getBuyState.success, | buyState: app.globalData.getBuyState.success, | ||||
| buyStateTime: app.globalData.getBuyState.cdate | |||||
| buyStateTime: app.globalData.getBuyState.cdate, | |||||
| buyStateCouponCode: app.globalData.getBuyState.coupon_code | |||||
| }) | }) | ||||
| } | } | ||||
| this.setData({ | this.setData({ | ||||
| this.setData({ | this.setData({ | ||||
| vipDetailShow:!this.data.vipDetailShow | vipDetailShow:!this.data.vipDetailShow | ||||
| }) | }) | ||||
| }, | |||||
| cardCodeCopy:function(){ | |||||
| this.contentCopy(this.data.buyStateCouponCode); | |||||
| } | } | ||||
| }) | }) |
| <image style="width:750rpx;height:1900rpx;" src="{{imgUrl+'/newImages3/53.png'}}"></image> | <image style="width:750rpx;height:1900rpx;" src="{{imgUrl+'/newImages3/53.png'}}"></image> | ||||
| <image class="newImages3-45" bindtap="vipDetailControl" src="{{imgUrl+'/newImages3/45.png'}}"></image> | <image class="newImages3-45" bindtap="vipDetailControl" src="{{imgUrl+'/newImages3/45.png'}}"></image> | ||||
| </view> | </view> | ||||
| <view class="cardCode">{{buyStateCouponCode}}<view bindtap="cardCodeCopy" class="cardCodeCopy">复制</view></view> | |||||
| <!-- <view class="vipDetail"> | <!-- <view class="vipDetail"> | ||||
| <image style="width:100%;height:100%;" src="{{imgUrl+'/newImages2/46.png?v=001'}}"></image> | <image style="width:100%;height:100%;" src="{{imgUrl+'/newImages2/46.png?v=001'}}"></image> | ||||
| <image class="vipDetailY" bindtap="vipDetailControl" src="{{imgUrl+'/newImages2/45.png'}}"></image> | <image class="vipDetailY" bindtap="vipDetailControl" src="{{imgUrl+'/newImages2/45.png'}}"></image> |
| bottom: 70rpx; | bottom: 70rpx; | ||||
| width:276rpx; | width:276rpx; | ||||
| height: 50rpx; | height: 50rpx; | ||||
| } | |||||
| .cardCode{ | |||||
| position: absolute; | |||||
| left: 200rpx; | |||||
| top: 450rpx; | |||||
| font-size: 30rpx; | |||||
| color: #f9ca80; | |||||
| display: flex; | |||||
| align-items: center; | |||||
| } | |||||
| .cardCodeCopy{ | |||||
| padding: 0 15rpx; | |||||
| background-color: gainsboro; | |||||
| height: 30rpx; | |||||
| font-size: 24rpx; | |||||
| line-height: 30rpx; | |||||
| color: white; | |||||
| margin-left: 20rpx; | |||||
| border-radius: 15rpx; | |||||
| } | } |
| app.globalData.getBuyState = {}; | app.globalData.getBuyState = {}; | ||||
| app.globalData.getBuyState.success = true; | app.globalData.getBuyState.success = true; | ||||
| app.globalData.getBuyState.cdate = res.data.cdate; | app.globalData.getBuyState.cdate = res.data.cdate; | ||||
| app.globalData.getBuyState.coupon_code = res.data.coupon_code; | |||||
| // setTimeout(()=>{ | // setTimeout(()=>{ | ||||
| // this.closeXieyi(); | // this.closeXieyi(); | ||||
| // },1500) | // },1500) |