*/ | */ | ||||
onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
return { | return { | ||||
title: '发现宝藏小程序!我中了'+(this.data.prizeLevel==2?'百元京东卡':'免费升舱大奖')+',来一起探寻更多惊喜吧!', | |||||
title: '发现宝藏小程序!我中了'+(this.data.prizeLevel==1?'免费升舱大奖':'百元京东卡')+',来一起探寻更多惊喜吧!', | |||||
imageUrl:this.data.imgUrl+'/newImages5/56.jpg', | imageUrl:this.data.imgUrl+'/newImages5/56.jpg', | ||||
path: "/pages/guess/guess" | path: "/pages/guess/guess" | ||||
} | } |
buyState: false, | buyState: false, | ||||
httpState:false,//是否正在进行http请求 | httpState:false,//是否正在进行http请求 | ||||
isUserInfo:false,//是否有个人信息 | isUserInfo:false,//是否有个人信息 | ||||
getSecondGuessInfoV2:null, | |||||
windowTipShow:false, | |||||
}, | }, | ||||
/** | /** | ||||
*/ | */ | ||||
onLoad: function (options) { | onLoad: function (options) { | ||||
app.globalData.nowPage = 3; | app.globalData.nowPage = 3; | ||||
this.setData({ | |||||
getSecondGuessInfoV2:app.globalData.getSecondGuessInfoV2 | |||||
}) | |||||
var getSecondGuessInfoV2 = app.globalData.getSecondGuessInfoV2; | var getSecondGuessInfoV2 = app.globalData.getSecondGuessInfoV2; | ||||
var userType = 3; | var userType = 3; | ||||
console.log(getSecondGuessInfoV2); | |||||
if(getSecondGuessInfoV2){ | if(getSecondGuessInfoV2){ | ||||
if(getSecondGuessInfoV2.lucky_result==-1){ | if(getSecondGuessInfoV2.lucky_result==-1){ | ||||
userType = 2 | userType = 2 | ||||
}) | }) | ||||
}, | }, | ||||
drawBtn:function(){//立即抽取大奖 | drawBtn:function(){//立即抽取大奖 | ||||
console.log(this.data.getSecondGuessInfoV2); | |||||
var lucky_result = 0; | |||||
if(this.data.getSecondGuessInfoV2.lucky_result==-2){ | |||||
lucky_result = this.data.getSecondGuessInfoV2.lucky_result; | |||||
}else if(this.data.getSecondGuessInfoV2.lucky_result==1){ | |||||
lucky_result = this.data.getSecondGuessInfoV2.lucky_result; | |||||
}else if(this.data.getSecondGuessInfoV2.lucky_result==2){ | |||||
lucky_result = this.data.getSecondGuessInfoV2.lucky_result; | |||||
} | |||||
if(lucky_result!=0){ | |||||
if(lucky_result==-2){ | |||||
var drawResult = 0; | |||||
if(lucky_result==1){ | |||||
drawResult = 1; | |||||
}else if(lucky_result==2){ | |||||
drawResult = 2; | |||||
}else{ | |||||
drawResult = 3; | |||||
} | |||||
this.setData({ | |||||
drawResult:drawResult, | |||||
drawState:lucky_result | |||||
}) | |||||
}else{ | |||||
this.windowTipControl(); | |||||
} | |||||
return; | |||||
} | |||||
if(this.data.httpState){ | if(this.data.httpState){ | ||||
return; | return; | ||||
} | } | ||||
drawResult:drawResult, | drawResult:drawResult, | ||||
drawState:res.data.lucky_result | drawState:res.data.lucky_result | ||||
}) | }) | ||||
app.globalData.getSecondGuessInfoV2.lucky_result = res.data.lucky_result | |||||
} | } | ||||
}, this); | }, this); | ||||
}, | }, | ||||
app.submitUserMsg(e.detail.userInfo.avatarUrl, e.detail.userInfo.nickName); | app.submitUserMsg(e.detail.userInfo.avatarUrl, e.detail.userInfo.nickName); | ||||
this.enterGuess(); | this.enterGuess(); | ||||
} | } | ||||
}, | |||||
windowTipControl:function(){ | |||||
this.setData({ | |||||
windowTipShow:!this.data.windowTipShow | |||||
}) | |||||
} | } | ||||
}) | }) |
</view> | </view> | ||||
<view class="slideMask"></view> | <view class="slideMask"></view> | ||||
</view> | </view> | ||||
<image class="bottomBtn2" bindtap="drawBtn" wx:if="{{guessResult==1 && !drawState}}" src="{{imgUrl+'/newImages6/2.png'}}"></image> | |||||
<view class="bottomBtn2" wx:if="{{guessResult==1 && drawState}}"> | |||||
<image class="bottomBtn2" bindtap="drawBtn" wx:if="{{guessResult==1}}" src="{{imgUrl+'/newImages6/2.png'}}"></image> | |||||
<!-- <image class="bottomBtn2" bindtap="drawBtn" wx:if="{{guessResult==1 && !drawState}}" src="{{imgUrl+'/newImages6/2.png'}}"></image> --> | |||||
<!-- <view class="bottomBtn2" wx:if="{{guessResult==1 && drawState}}"> | |||||
<image style="width:100%;height:100%;" bindtap="enterGuess" src="{{imgUrl+'/newImages6/21.png'}}"></image> | <image style="width:100%;height:100%;" bindtap="enterGuess" src="{{imgUrl+'/newImages6/21.png'}}"></image> | ||||
<button open-type="getUserInfo" wx:if="{{!isUserInfo}}" bindgetuserinfo="getUserWxMsg" style="min-height:0;width: 100%;" class="getUserInfoBtn"></button> | <button open-type="getUserInfo" wx:if="{{!isUserInfo}}" bindgetuserinfo="getUserWxMsg" style="min-height:0;width: 100%;" class="getUserInfoBtn"></button> | ||||
</view> | |||||
<image class="bottomBtn2" bindtap="goLuckyStar" wx:if="{{drawState==-2}}" src="{{imgUrl+'/newImages6/22.png'}}"></image> | |||||
</view> --> | |||||
<!-- <image class="bottomBtn2" bindtap="goLuckyStar" wx:if="{{drawState==-2}}" src="{{imgUrl+'/newImages6/22.png'}}"></image> --> | |||||
<image class="bottomBtn2" bindtap="goLuckyStar" wx:if="{{guessResult==2 || guessResult==3}}" src="{{imgUrl+'/newImages6/3.png'}}"></image> | <image class="bottomBtn2" bindtap="goLuckyStar" wx:if="{{guessResult==2 || guessResult==3}}" src="{{imgUrl+'/newImages6/3.png'}}"></image> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<image class="prizeWindowClose" bindtap="closeWindow" src="{{imgUrl+'/newImages5/12.png'}}"></image> | <image class="prizeWindowClose" bindtap="closeWindow" src="{{imgUrl+'/newImages5/12.png'}}"></image> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="ruleFrame ruleFrame2" wx:if="{{windowTipShow}}"> | |||||
<view class="windowTipGroup"> | |||||
<image class="windowTipImg" src="{{imgUrl+'/newImages6/14.png'}}"></image> | |||||
<view class="windowTipBtn"> | |||||
<image style="width:100%;height:100%;" bindtap="enterGuess" src="{{imgUrl+'/newImages6/13.png'}}"></image> | |||||
<button open-type="getUserInfo" wx:if="{{!isUserInfo}}" bindgetuserinfo="getUserWxMsg" style="left: 50%;transform: translateX(-50%);bottom: 66rpx;min-height:0;width: 100%;" class="getUserInfoBtn"></button> | |||||
</view> | |||||
<view class="windowTipClose"> | |||||
<image style="width:100%;height:100%;" bindtap="windowTipControl" src="{{imgUrl+'/newImages5/50.png'}}"></image> | |||||
<!-- <button open-type="getUserInfo" wx:if="{{!isUserInfo}}" bindgetuserinfo="getUserWxMsg" style="transform: translateX(0);min-height:0;width: 100%;" class="getUserInfoBtn"></button> --> | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<placingOrder bindplacing="placingControl" wx:if="{{placing}}"></placingOrder> | <placingOrder bindplacing="placingControl" wx:if="{{placing}}"></placingOrder> | ||||
<tabBar></tabBar> | <tabBar></tabBar> |
margin: 0; | margin: 0; | ||||
padding: 0; | padding: 0; | ||||
opacity: 0; | opacity: 0; | ||||
} | |||||
.windowTipGroup{ | |||||
position: relative; | |||||
width: 501rpx; | |||||
height: 470rpx; | |||||
} | |||||
.windowTipImg{ | |||||
width: 100%; | |||||
height: 100%; | |||||
} | |||||
.windowTipBtn{ | |||||
position: absolute; | |||||
left: 50%; | |||||
transform: translateX(-50%); | |||||
bottom: 66rpx; | |||||
width: 389rpx; | |||||
height: 60rpx; | |||||
} | |||||
.windowTipClose{ | |||||
position: absolute; | |||||
width: 42rpx; | |||||
height: 42rpx; | |||||
top: -32rpx; | |||||
right: -32rpx; | |||||
} | } |
}, | }, | ||||
cardCodeCopy:function(){ | cardCodeCopy:function(){ | ||||
this.contentCopy(this.data.couponListCode); | this.contentCopy(this.data.couponListCode); | ||||
}, | |||||
lookOrder:function(){//跳转到智趣启辰小程序的订单页面 | |||||
console.log("小程序跳转"); | |||||
wx.navigateToMiniProgram({ | |||||
appId:'wx1d585c8c2fffe589', | |||||
path:"/pages/carorder_info/carorder_info", | |||||
envVersion:"trial", | |||||
success(res) { | |||||
// 打开成功 | |||||
}, | |||||
complete(res){ | |||||
console.log(res); | |||||
} | |||||
}) | |||||
} | } | ||||
}) | }) |
<view class="selectText" style="color:{{selectNow==4?'#667ea3':'black'}}">我的卡包</view> | <view class="selectText" style="color:{{selectNow==4?'#667ea3':'black'}}">我的卡包</view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<image wx:if="{{selectNow<1 || selectNow>4}}" class="myCenterBotBg" src="{{imgUrl+'/images/myCenterBotBg.png'}}"></image> | |||||
<view class="myCenterBotBgGroup" wx:if="{{selectNow<1 || selectNow>4}}"> | |||||
<image class="myCenterBotBg" src="{{imgUrl+'/images/myCenterBotBg.png'}}"></image> | |||||
<image class="myCenterBotBtn" wx:if="{{buyState}}" bindtap="lookOrder" src="{{imgUrl+'/newImages6/24.png'}}"></image> | |||||
</view> | |||||
<view class="taskGroup" wx:if="{{selectNow==1}}"> | <view class="taskGroup" wx:if="{{selectNow==1}}"> | ||||
<view class="taskSelect" style="justify-content:center;"> | <view class="taskSelect" style="justify-content:center;"> | ||||
<!-- <view bindtap="selectTask" data-type='1' class="taskText {{taskNow==1?'taskText2':''}}">每日任务</view> --> | <!-- <view bindtap="selectTask" data-type='1' class="taskText {{taskNow==1?'taskText2':''}}">每日任务</view> --> |
align-items: center; | align-items: center; | ||||
justify-content: center; | justify-content: center; | ||||
} | } | ||||
.myCenterBotBg{ | |||||
.myCenterBotBgGroup{ | |||||
position: relative; | |||||
width: 750rpx; | width: 750rpx; | ||||
height: 589rpx; | height: 589rpx; | ||||
} | } | ||||
.myCenterBotBg{ | |||||
width: 100%; | |||||
height: 100%; | |||||
} | |||||
.myCenterBotBtn{ | |||||
position: absolute; | |||||
left: 50%; | |||||
transform: translateX(-50%); | |||||
bottom: 40rpx; | |||||
width: 652rpx; | |||||
height: 70rpx; | |||||
} | |||||
.taskSelect{ | .taskSelect{ | ||||
padding:0 55rpx; | padding:0 55rpx; | ||||
box-sizing: border-box; | box-sizing: border-box; |
authenticationShow:false | authenticationShow:false | ||||
}) | }) | ||||
} | } | ||||
// app.globalData.certificationState=2; | |||||
// app.globalData.certificationState=4; | |||||
this.setData({maskid: app.globalData.certificationState}) | this.setData({maskid: app.globalData.certificationState}) | ||||
if(app.globalData.certificationState==1){ | if(app.globalData.certificationState==1){ | ||||
this.setData({titleContent:'尊敬的启辰车主您好'}) | this.setData({titleContent:'尊敬的启辰车主您好'}) |
<!-- <image class="scoutbtn1" wx:if="{{maskid<4}}" bindtap="getPoster" src="{{imgUrl+'/newImages2/8.png'}}"></image> --> | <!-- <image class="scoutbtn1" wx:if="{{maskid<4}}" bindtap="getPoster" src="{{imgUrl+'/newImages2/8.png'}}"></image> --> | ||||
</view> | </view> | ||||
<view class="mask" wx:if="{{maskShow}}"> | <view class="mask" wx:if="{{maskShow}}"> | ||||
<view class="tipContent" wx:if="{{tipShow}}"> | |||||
<view class="tipContent" wx:if="{{tipShow}}" style="height:{{maskid>3?'460rpx':'403rpx'}};"> | |||||
<image wx:if="{{maskid==4}}" class="titleImg" src="{{imgUrl+'/star/scout/scoutTitle4.png?v=002'}}"></image> | <image wx:if="{{maskid==4}}" class="titleImg" src="{{imgUrl+'/star/scout/scoutTitle4.png?v=002'}}"></image> | ||||
<image wx:if="{{maskid==1}}" class="titleImg" src="{{imgUrl+'/star/scout/scoutTitle1.png?v=002'}}"></image> | <image wx:if="{{maskid==1}}" class="titleImg" src="{{imgUrl+'/star/scout/scoutTitle1.png?v=002'}}"></image> | ||||
<image wx:if="{{maskid==3}}" class="titleImg" src="{{imgUrl+'/star/scout/scoutTitle2.png?v=002'}}"></image> | <image wx:if="{{maskid==3}}" class="titleImg" src="{{imgUrl+'/star/scout/scoutTitle2.png?v=002'}}"></image> | ||||
<image wx:if="{{maskid==2}}" class="titleImg" src="{{imgUrl+'/star/scout/scoutTitle3.png?v=002'}}"></image> | <image wx:if="{{maskid==2}}" class="titleImg" src="{{imgUrl+'/star/scout/scoutTitle3.png?v=002'}}"></image> | ||||
<image class="txt" wx:if="{{maskid<4}}" src="{{imgUrl+'/star/scout/tipContent.png'}}"></image> | <image class="txt" wx:if="{{maskid<4}}" src="{{imgUrl+'/star/scout/tipContent.png'}}"></image> | ||||
<image class="txt2" wx:if="{{maskid>3}}" src="{{imgUrl+'/star/txt1.png'}}"></image> | |||||
<image class="txt2" wx:if="{{maskid>3}}" src="{{imgUrl+'/newImages6/23.png'}}"></image> | |||||
<image class="closeBtn" src="{{imgUrl+'/star/closebtn.png'}}" bindtap="hiddenTip"></image> | <image class="closeBtn" src="{{imgUrl+'/star/closebtn.png'}}" bindtap="hiddenTip"></image> | ||||
</view> | </view> | ||||
</view> | </view> |
margin: 70rpx auto 0 auto; | margin: 70rpx auto 0 auto; | ||||
} | } | ||||
.tipContent>.txt2{ | .tipContent>.txt2{ | ||||
width: 449rpx; | |||||
height: 181rpx; | |||||
width: 371rpx; | |||||
height: 233rpx; | |||||
margin: 70rpx auto 0 auto; | margin: 70rpx auto 0 auto; | ||||
} | } | ||||
.closeBtn { | .closeBtn { |