imgUrl: app.globalData.urlStatic,//图片路径 | imgUrl: app.globalData.urlStatic,//图片路径 | ||||
yuyueShow:false, | yuyueShow:false, | ||||
userType:1, | userType:1, | ||||
isShowFun:false | |||||
isShowFun:false, | |||||
tipWindow2:false | |||||
}, | }, | ||||
/** | /** | ||||
if (!app.globalData.addPageEnterState.guessPrize) { | if (!app.globalData.addPageEnterState.guessPrize) { | ||||
app.addPageEnter("7C8AAA38F8D85EFC48C2995FB6EBAC19"); | app.addPageEnter("7C8AAA38F8D85EFC48C2995FB6EBAC19"); | ||||
app.globalData.addPageEnterState.guessPrize = true; | app.globalData.addPageEnterState.guessPrize = true; | ||||
this.tipWindowControl2(); | |||||
} | } | ||||
this.getSecondGuessInfo(); | this.getSecondGuessInfo(); | ||||
}, | }, | ||||
* 用户点击右上角分享 | * 用户点击右上角分享 | ||||
*/ | */ | ||||
onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
return { | |||||
title: '召唤预言帝!快来和我一起猜启辰星售价,赢升舱大奖!', | |||||
imageUrl:this.data.imgUrl+'/newImages5/56.jpg', | |||||
path: "/pages/guess/guess" | |||||
} | |||||
}, | }, | ||||
enterLucky:function(){//每日抽奖 | enterLucky:function(){//每日抽奖 | ||||
wx.navigateTo({ | wx.navigateTo({ | ||||
}) | }) | ||||
} | } | ||||
}, this); | }, this); | ||||
}, | |||||
tipWindowControl2:function(){ | |||||
this.setData({ | |||||
tipWindow2:!this.data.tipWindow2 | |||||
}) | |||||
} | } | ||||
}) | }) |
<view class="all"> | <view class="all"> | ||||
<view class="main"> | <view class="main"> | ||||
<image class="pageBg" src="{{imgUrl+'/newImages4/20.png'}}"></image> | <image class="pageBg" src="{{imgUrl+'/newImages4/20.png'}}"></image> | ||||
<image class="gameRule" src="{{imgUrl+'/newImages5/69.png?v=002'}}"></image> | |||||
<image class="gameRule" src="{{imgUrl+'/newImages5/76.png'}}"></image> | |||||
<image class="startBtn" bindtap="enterGuessPrize" wx:if="{{userType==1}}" src="{{imgUrl+'/newImages5/60.png'}}"></image> | <image class="startBtn" bindtap="enterGuessPrize" wx:if="{{userType==1}}" src="{{imgUrl+'/newImages5/60.png'}}"></image> | ||||
<image class="startBtn" bindtap="enterGuessPrize" wx:if="{{userType==4}}" src="{{imgUrl+'/newImages5/61.png'}}"></image> | <image class="startBtn" bindtap="enterGuessPrize" wx:if="{{userType==4}}" src="{{imgUrl+'/newImages5/61.png'}}"></image> | ||||
<image class="startBtn" bindtap="enterGuessPrize" wx:if="{{userType==3}}" src="{{imgUrl+'/newImages5/62.png'}}"></image> | <image class="startBtn" bindtap="enterGuessPrize" wx:if="{{userType==3}}" src="{{imgUrl+'/newImages5/62.png'}}"></image> | ||||
<image class="drawBtn" bindtap="enterLucky" src="{{imgUrl+'/versions/1.png'}}"></image> | <image class="drawBtn" bindtap="enterLucky" src="{{imgUrl+'/versions/1.png'}}"></image> | ||||
<image class="yuyue" bindtap="yuyueControl" src="{{imgUrl+'/newIcon/4.png'}}"></image> | <image class="yuyue" bindtap="yuyueControl" src="{{imgUrl+'/newIcon/4.png'}}"></image> | ||||
</view> | </view> | ||||
<view class="ruleFrame ruleFrame2" wx:if="{{tipWindow2}}"> | |||||
<view class="tipWindow"> | |||||
<image class="tipWindowBg" src="{{imgUrl+'/newImages5/77.png'}}"></image> | |||||
<image class="tipWindowClose" bindtap="tipWindowControl2" src="{{imgUrl+'/newImages4/27.png'}}"></image> | |||||
</view> | |||||
</view> | |||||
<yuyue bindyuyue="yuyueControl" wx:if="{{yuyueShow}}"></yuyue> | <yuyue bindyuyue="yuyueControl" wx:if="{{yuyueShow}}"></yuyue> | ||||
<tabBar></tabBar> | <tabBar></tabBar> | ||||
</view> | </view> |
} | } | ||||
.gameRule{ | .gameRule{ | ||||
width: 750rpx; | width: 750rpx; | ||||
height: 2505rpx; | |||||
height: 2513rpx; | |||||
margin-top: -1rpx; | margin-top: -1rpx; | ||||
} | } | ||||
.startBtn{ | .startBtn{ | ||||
position: fixed; | position: fixed; | ||||
right: 35rpx; | right: 35rpx; | ||||
top: 334rpx; | top: 334rpx; | ||||
} | |||||
.ruleFrame{ | |||||
position: fixed; | |||||
top:0; | |||||
left: 0; | |||||
height: calc(100vh - 120rpx); | |||||
overflow: auto; | |||||
} | |||||
.ruleFrame2{ | |||||
width: 100%; | |||||
display: flex; | |||||
align-items: center; | |||||
justify-content: center; | |||||
background-color: rgba(0,0,0,0.5); | |||||
z-index: 9; | |||||
} | |||||
.tipWindow{ | |||||
position: relative; | |||||
width: 501rpx; | |||||
height: 395rpx; | |||||
} | |||||
.tipWindowBg{ | |||||
width: 100%; | |||||
height: 100%; | |||||
} | |||||
.tipWindowClose{ | |||||
position: absolute; | |||||
top: -32rpx; | |||||
right: -32rpx; | |||||
width: 42rpx; | |||||
height: 42rpx; | |||||
} | } |
<image class="versions-5" bindtap="enterLucky" style="margin-top:20rpx;" src="{{imgUrl+'/versions/6.png'}}"></image> | <image class="versions-5" bindtap="enterLucky" style="margin-top:20rpx;" src="{{imgUrl+'/versions/6.png'}}"></image> | ||||
</view> --> | </view> --> | ||||
<view class="ruleFrame" wx:if="{{ruleShow}}"> | <view class="ruleFrame" wx:if="{{ruleShow}}"> | ||||
<image class="gameRule" src="{{imgUrl+'/newImages5/69.png'}}"></image> | |||||
<image class="gameRule" src="{{imgUrl+'/newImages5/76.png'}}"></image> | |||||
<image class="closeRule" bindtap="ruleControl" src="{{imgUrl+'/versions/21.png'}}"></image> | <image class="closeRule" bindtap="ruleControl" src="{{imgUrl+'/versions/21.png'}}"></image> | ||||
</view> | </view> | ||||
<view class="shareWindow" wx:if="{{shareShow}}"> | <view class="shareWindow" wx:if="{{shareShow}}"> |
} | } | ||||
.gameRule{ | .gameRule{ | ||||
width: 750rpx; | width: 750rpx; | ||||
height: 2505rpx; | |||||
height: 2513rpx; | |||||
margin-top: -1rpx; | margin-top: -1rpx; | ||||
} | } | ||||
.closeRule{ | .closeRule{ |
* 用户点击右上角分享 | * 用户点击右上角分享 | ||||
*/ | */ | ||||
onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
return { | |||||
title: '召唤预言帝!快来和我一起猜启辰星售价,赢升舱大奖!', | |||||
imageUrl: this.data.imgUrl+'/newImages5/56.jpg', | |||||
path: "/pages/guess/guess" | |||||
} | |||||
}, | }, | ||||
enterLucky:function(){//每日抽奖 | enterLucky:function(){//每日抽奖 | ||||
wx.navigateTo({ | wx.navigateTo({ |
<image class="pageBg" src="{{imgUrl+'/versions/20.png?v=002'}}"></image> | <image class="pageBg" src="{{imgUrl+'/versions/20.png?v=002'}}"></image> | ||||
<view class="topGroup"> | <view class="topGroup"> | ||||
<view style="position: relative;width:100%;height:100%;"> | <view style="position: relative;width:100%;height:100%;"> | ||||
<image class="newImages5-2" src="{{imgUrl+'/newImages5/68.png'}}"></image> | |||||
<image class="newImages5-2" src="{{imgUrl+'/newImages5/78.png'}}"></image> | |||||
<view class="lookDetail" bindtap="lookConfigure"></view> | <view class="lookDetail" bindtap="lookConfigure"></view> | ||||
</view> | </view> | ||||
<!-- <image class="newImages5-1" src="{{imgUrl+'/newImages5/1.png'}}"></image> --> | <!-- <image class="newImages5-1" src="{{imgUrl+'/newImages5/1.png'}}"></image> --> | ||||
<image class="drawBtn" bindtap="ruleControl" src="{{imgUrl+'/versions/7.png'}}"></image> | <image class="drawBtn" bindtap="ruleControl" src="{{imgUrl+'/versions/7.png'}}"></image> | ||||
<image class="yuyue" bindtap="enterLucky" src="{{imgUrl+'/versions/1.png'}}"></image> | <image class="yuyue" bindtap="enterLucky" src="{{imgUrl+'/versions/1.png'}}"></image> | ||||
<view class="ruleFrame" wx:if="{{ruleShow}}"> | <view class="ruleFrame" wx:if="{{ruleShow}}"> | ||||
<image class="gameRule" src="{{imgUrl+'/newImages5/69.png?v=002'}}"></image> | |||||
<image class="gameRule" src="{{imgUrl+'/newImages5/76.png'}}"></image> | |||||
<image class="closeRule" bindtap="ruleControl" src="{{imgUrl+'/versions/21.png'}}"></image> | <image class="closeRule" bindtap="ruleControl" src="{{imgUrl+'/versions/21.png'}}"></image> | ||||
</view> | </view> | ||||
<view class="ruleFrame ruleFrame2" wx:if="{{drawResult==1 || drawResult==2}}"> | <view class="ruleFrame ruleFrame2" wx:if="{{drawResult==1 || drawResult==2}}"> |
} | } | ||||
.topGroup{ | .topGroup{ | ||||
position: relative; | position: relative; | ||||
width: 677rpx; | |||||
height: 405rpx; | |||||
margin: 0 auto; | |||||
width: 711rpx; | |||||
height: 440rpx; | |||||
margin-left: auto; | |||||
margin-right: 0; | |||||
margin-top: 100rpx; | margin-top: 100rpx; | ||||
} | } | ||||
.lookDetail{ | .lookDetail{ | ||||
width: 634rpx; | width: 634rpx; | ||||
height: 170rpx; | height: 170rpx; | ||||
margin: 0 auto; | margin: 0 auto; | ||||
margin-top: 60rpx; | |||||
margin-top: 40rpx; | |||||
} | } | ||||
.newImages5-4{ | .newImages5-4{ | ||||
width: 150rpx; | width: 150rpx; | ||||
position: absolute; | position: absolute; | ||||
left: 50%; | left: 50%; | ||||
transform: translateX(-50%); | transform: translateX(-50%); | ||||
bottom: 50rpx; | |||||
bottom: 30rpx; | |||||
width: 711rpx; | width: 711rpx; | ||||
height: 70rpx; | height: 70rpx; | ||||
} | } | ||||
} | } | ||||
.gameRule{ | .gameRule{ | ||||
width: 750rpx; | width: 750rpx; | ||||
height: 2505rpx; | |||||
height: 2513rpx; | |||||
margin-top: -1rpx; | margin-top: -1rpx; | ||||
} | } | ||||
.closeRule{ | .closeRule{ |
*/ | */ | ||||
onLoad: function (options) { | onLoad: function (options) { | ||||
app.globalData.nowPage = 3; | app.globalData.nowPage = 3; | ||||
this.distanceDay(); | |||||
// this.distanceDay(); | |||||
if (app.globalData.openid) { | if (app.globalData.openid) { | ||||
this.loadFun(); | this.loadFun(); | ||||
} else { | } else { | ||||
onShareAppMessage: function () { | onShareAppMessage: function () { | ||||
return { | return { | ||||
title: '召唤预言帝!快来和我一起猜启辰星售价,赢升舱大奖!', | title: '召唤预言帝!快来和我一起猜启辰星售价,赢升舱大奖!', | ||||
imageUrl: this.data.imgUrl + "/versions/guessShareImg.jpg", | |||||
imageUrl: this.data.imgUrl+'/newImages5/56.jpg', | |||||
path: "/pages/guess/guess" | path: "/pages/guess/guess" | ||||
} | } | ||||
}, | }, |
<image class="pageBg" src="{{imgUrl+'/versions/20.png?v=002'}}"></image> | <image class="pageBg" src="{{imgUrl+'/versions/20.png?v=002'}}"></image> | ||||
<view class="topGroup"> | <view class="topGroup"> | ||||
<view style="position: relative;width:100%;height:100%;"> | <view style="position: relative;width:100%;height:100%;"> | ||||
<image class="newImages5-2" src="{{imgUrl+'/newImages5/68.png'}}"></image> | |||||
<image class="newImages5-2" src="{{imgUrl+'/newImages5/78.png'}}"></image> | |||||
<view class="lookDetail" bindtap="lookConfigure"></view> | <view class="lookDetail" bindtap="lookConfigure"></view> | ||||
</view> | </view> | ||||
<!-- <image class="newImages5-1" src="{{imgUrl+'/newImages5/1.png'}}"></image> --> | <!-- <image class="newImages5-1" src="{{imgUrl+'/newImages5/1.png'}}"></image> --> | ||||
<image class="newImages4-bg" src="{{imgUrl+'/newImages4/23.png'}}"></image> | <image class="newImages4-bg" src="{{imgUrl+'/newImages4/23.png'}}"></image> | ||||
<view class="inputFrame">{{stringValue}}</view> | <view class="inputFrame">{{stringValue}}</view> | ||||
<view wx:if="{{focusState}}" class="inputFrame2" style="left:{{34+stringValue.length*77}}rpx;"></view> | <view wx:if="{{focusState}}" class="inputFrame2" style="left:{{34+stringValue.length*77}}rpx;"></view> | ||||
<image class="tipImg" wx:if="{{tipImgShow}}" src="{{imgUrl+'/newImages5/40.png'}}"></image> | |||||
<image class="tipImg" wx:if="{{tipImgShow}}" src="{{imgUrl+'/newImages5/81.png'}}"></image> | |||||
<input class="inputPrice" value="{{stringValue}}" bindfocus="focusControl" bindblur="focusControl2" type="number" maxlength="6" bindinput="getValue"></input> | <input class="inputPrice" value="{{stringValue}}" bindfocus="focusControl" bindblur="focusControl2" type="number" maxlength="6" bindinput="getValue"></input> | ||||
</view> | </view> | ||||
<image class="newImages4-24" bindtap="submitPrice2" src="{{imgUrl+'/newImages4/24.png'}}"></image> | |||||
<image class="newImages4-24" bindtap="submitPrice2" src="{{imgUrl+'/newImages5/79.png'}}"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view wx:if="{{isGuess}}"> | <view wx:if="{{isGuess}}"> | ||||
<view class="slideMask"></view> | <view class="slideMask"></view> | ||||
</view> | </view> | ||||
<view class="shareGroup"> | <view class="shareGroup"> | ||||
<image class="newImages5-42" bindtap="enterPoster" src="{{imgUrl+'/newImages5/42.png'}}"></image> | |||||
<image class="newImages5-42" bindtap="enterPoster" src="{{imgUrl+'/newImages5/80.png'}}"></image> | |||||
<button open-type="getUserInfo" wx:if="{{!isUserInfo}}" bindgetuserinfo="getUserWxMsg" style="min-height:0;width: 100%;" class="shareBtn"></button> | <button open-type="getUserInfo" wx:if="{{!isUserInfo}}" bindgetuserinfo="getUserWxMsg" style="min-height:0;width: 100%;" class="shareBtn"></button> | ||||
</view> | </view> | ||||
<view class="dayGroup"> | |||||
<image class="newImages5-82" src="{{imgUrl+'/newImages5/82.png'}}"></image> | |||||
<!-- <view class="dayGroup"> | |||||
<image class="newImages5-43" src="{{imgUrl+'/newImages5/43.png'}}"></image> | <image class="newImages5-43" src="{{imgUrl+'/newImages5/43.png'}}"></image> | ||||
<view class="dayNum">{{slideDay[0]+slideDay[1]}}</view> | <view class="dayNum">{{slideDay[0]+slideDay[1]}}</view> | ||||
</view> | |||||
</view> --> | |||||
</view> | </view> | ||||
<image class="newImages5-30" bindtap="cartogramControl" src="{{imgUrl+'/newImages5/30.png'}}"></image> | |||||
<!-- <image class="newImages5-30" bindtap="cartogramControl" src="{{imgUrl+'/newImages5/30.png'}}"></image> --> | |||||
<image class="drawBtn" bindtap="ruleControl" src="{{imgUrl+'/versions/7.png'}}"></image> | <image class="drawBtn" bindtap="ruleControl" src="{{imgUrl+'/versions/7.png'}}"></image> | ||||
<image class="yuyue" bindtap="enterLucky" src="{{imgUrl+'/versions/1.png'}}"></image> | <image class="yuyue" bindtap="enterLucky" src="{{imgUrl+'/versions/1.png'}}"></image> | ||||
<view class="ruleFrame" wx:if="{{ruleShow}}"> | <view class="ruleFrame" wx:if="{{ruleShow}}"> | ||||
<image class="gameRule" src="{{imgUrl+'/newImages5/69.png?v=002'}}"></image> | |||||
<image class="gameRule" src="{{imgUrl+'/newImages5/76.png'}}"></image> | |||||
<image class="closeRule" bindtap="ruleControl" src="{{imgUrl+'/versions/21.png'}}"></image> | <image class="closeRule" bindtap="ruleControl" src="{{imgUrl+'/versions/21.png'}}"></image> | ||||
</view> | </view> | ||||
<view class="ruleFrame ruleFrame2" wx:if="{{tipWindow}}"> | <view class="ruleFrame ruleFrame2" wx:if="{{tipWindow}}"> |
} | } | ||||
.gameRule{ | .gameRule{ | ||||
width: 750rpx; | width: 750rpx; | ||||
height: 2505rpx; | |||||
height: 2513rpx; | |||||
margin-top: -1rpx; | margin-top: -1rpx; | ||||
} | } | ||||
.closeRule{ | .closeRule{ | ||||
} | } | ||||
.topGroup{ | .topGroup{ | ||||
position: relative; | position: relative; | ||||
width: 677rpx; | |||||
height: 405rpx; | |||||
margin: 0 auto; | |||||
width: 711rpx; | |||||
height: 440rpx; | |||||
margin-left: auto; | |||||
margin-right: 0; | |||||
margin-top: 100rpx; | margin-top: 100rpx; | ||||
} | } | ||||
.lookDetail{ | .lookDetail{ | ||||
box-sizing: border-box; | box-sizing: border-box; | ||||
} | } | ||||
.newImages4-24{ | .newImages4-24{ | ||||
width: 389rpx; | |||||
height: 60rpx; | |||||
width: 506rpx; | |||||
height: 70rpx; | |||||
margin:0 auto; | margin:0 auto; | ||||
margin-top: 25rpx; | margin-top: 25rpx; | ||||
} | } | ||||
opacity: 0; | opacity: 0; | ||||
} | } | ||||
.shareGroup{ | .shareGroup{ | ||||
width: 388rpx; | |||||
height: 60rpx; | |||||
width: 505rpx; | |||||
height: 70rpx; | |||||
position: relative; | position: relative; | ||||
margin: 0 auto; | margin: 0 auto; | ||||
margin-top: 20rpx; | margin-top: 20rpx; | ||||
margin-bottom: 37rpx; | margin-bottom: 37rpx; | ||||
} | } | ||||
.newImages5-42{ | .newImages5-42{ | ||||
width: 388rpx; | |||||
height: 60rpx; | |||||
width: 505rpx; | |||||
height: 70rpx; | |||||
} | } | ||||
.dayGroup{ | .dayGroup{ | ||||
position: relative; | position: relative; | ||||
right: -42rpx; | right: -42rpx; | ||||
width: 42rpx; | width: 42rpx; | ||||
height: 42rpx; | height: 42rpx; | ||||
} | |||||
.newImages5-82{ | |||||
width: 464rpx; | |||||
height: 26rpx; | |||||
margin: 0 auto; | |||||
margin-top: 45rpx; | |||||
} | } |