| @@ -62,6 +62,7 @@ Page({ | |||
| vipDetailShow:false, | |||
| lookPrizeDetail:false, | |||
| lookIndex:null, | |||
| buyStateCouponCode:"", | |||
| testData:[ | |||
| { | |||
| awardDetailPicContentHeight:0, | |||
| @@ -306,7 +307,8 @@ Page({ | |||
| getBuyStates: function () { | |||
| this.setData({ | |||
| buyState: app.globalData.getBuyState.success, | |||
| buyStateTime: app.globalData.getBuyState.cdate | |||
| buyStateTime: app.globalData.getBuyState.cdate, | |||
| buyStateCouponCode: app.globalData.getBuyState.coupon_code | |||
| }) | |||
| }, | |||
| /** | |||
| @@ -820,7 +822,8 @@ Page({ | |||
| if (app.globalData.getBuyState.success != this.data.buyState) { | |||
| this.setData({ | |||
| buyState: app.globalData.getBuyState.success, | |||
| buyStateTime: app.globalData.getBuyState.cdate | |||
| buyStateTime: app.globalData.getBuyState.cdate, | |||
| buyStateCouponCode: app.globalData.getBuyState.coupon_code | |||
| }) | |||
| } | |||
| this.setData({ | |||
| @@ -885,5 +888,8 @@ Page({ | |||
| this.setData({ | |||
| vipDetailShow:!this.data.vipDetailShow | |||
| }) | |||
| }, | |||
| cardCodeCopy:function(){ | |||
| this.contentCopy(this.data.buyStateCouponCode); | |||
| } | |||
| }) | |||
| @@ -291,6 +291,7 @@ | |||
| <image style="width:750rpx;height:1900rpx;" src="{{imgUrl+'/newImages3/53.png'}}"></image> | |||
| <image class="newImages3-45" bindtap="vipDetailControl" src="{{imgUrl+'/newImages3/45.png'}}"></image> | |||
| </view> | |||
| <view class="cardCode">{{buyStateCouponCode}}<view bindtap="cardCodeCopy" class="cardCodeCopy">复制</view></view> | |||
| <!-- <view class="vipDetail"> | |||
| <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> | |||
| @@ -935,4 +935,23 @@ view{ | |||
| bottom: 70rpx; | |||
| width:276rpx; | |||
| 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; | |||
| } | |||
| @@ -301,6 +301,7 @@ Component({ | |||
| app.globalData.getBuyState = {}; | |||
| app.globalData.getBuyState.success = true; | |||
| app.globalData.getBuyState.cdate = res.data.cdate; | |||
| app.globalData.getBuyState.coupon_code = res.data.coupon_code; | |||
| // setTimeout(()=>{ | |||
| // this.closeXieyi(); | |||
| // },1500) | |||